]> git.proxmox.com Git - grub2.git/blob - ChangeLog
* grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
[grub2.git] / ChangeLog
1 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
2
3 * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
4 check as some mkfs implementations omit it.
5
6 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
7
8 * docs/grub.texi (Unicode): Mention identifier and space limitations.
9
10 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
11
12 * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
13 Add new member volname2.
14 (grub_jfs_label): Use volname2 if available.
15
16 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
17
18 * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
19 over last_mounted as seen in image generated by mkfs.nilfs2.
20 (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
21
22 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
23
24 * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
25 to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
26 (grub_fat_label) [MODE_EXFAT]: Use macros for size.
27
28 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
29
30 * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
31 over the sector.
32
33 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
34
35 * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
36 subvolume name (by removing a bogus and useless check).
37
38 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
39
40 * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
41 sizeof while on it.
42
43 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
44
45 * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
46 (grub_scsi_read_capacity10): ... this.
47 (grub_scsi_read_capacity16): New function.
48 (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
49 0xffffffff.
50 Fix off-by-one error.
51 * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
52 64-bit unsigned.
53 * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
54 (grub_scsi_read_capacity10): ... this.
55 (grub_scsi_read_capacity_data): Rename to ...
56 (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
57 (grub_scsi_read_capacity16): New struct.
58 (grub_scsi_read_capacity16_data): Likewise.
59 (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
60 grub_scsi_cmd_read_capacity10.
61 New command grub_scsi_cmd_read_capacity16.
62
63 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
64
65 SCSI >2TiB support.
66
67 * grub-core/disk/scsi.c (grub_scsi_read16): New function.
68 (grub_scsi_write16): Likewise.
69 (grub_scsi_read): Use read16 when necessary.
70 (grub_scsi_write): Likewise.
71 * include/grub/scsicmd.h (grub_scsi_read16): New struct.
72 (grub_scsi_write16): Likewise.
73 (grub_scsi_cmd_t): Add READ16 and WRITE16.
74
75 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
76
77 SCSI write support (for usbms mainly).
78
79 * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
80 a const pointer.
81 (grub_scsi_write): Implement.
82 * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
83
84 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
85
86 * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
87 variable.
88
89 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
90
91 * grub-core/lib/posix_wrap/string.h (memchr): New function.
92
93 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
94
95 * po/POTFILES.in: Regenerate.
96
97 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
98
99 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
100 with grub_printf to avoid unnecessary fatal failure.
101
102 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
103
104 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
105 (INT_MAX): Likewise.
106 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
107 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
108 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
109 (strcpy): Likewise.
110 (strstr): Likewise.
111 (strchr): Likewise.
112 (strncpy): Likewise.
113 (strcat): Likewise.
114 (strncat): Likewise.
115 (strcoll): Likewise.
116 * include/grub/types.h (GRUB_SHRT_MAX): New define.
117 (GRUB_INT_MAX): Likewise.
118
119 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
120
121 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
122 unexpected error.
123 (optimize_utf8): Likewise.
124 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
125
126 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
127
128 * grub-core/boot/i386/pc/lnxboot.S: Use
129 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
130 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
131 location.
132 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
133 definition.
134 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
135
136 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
137
138 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
139 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
140 now to avoid double free.
141 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
142 hostdisk.
143 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
144 * util/grub-probe.c (escape_of_path): Always return a new copy.
145 (print_full_name): Escape path.
146 (probe): Don't call grub_util_devname_to_ofpath on NULL.
147 Fix hints on abstractions.
148
149 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
150
151 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
152 Don't add "root" line if no compatibility hont is available.
153 Suggested by: Seth Goldberg.
154
155 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
156
157 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
158 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
159 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
160 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
161
162 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
163
164 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
165
166 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
167
168 * util/grub-pe2elf.c (ehdr): Make static.
169 (shdr): Likewise.
170 (num_sections): Likewise.
171 (offset): Likewise.
172
173 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
174
175 Eliminate ofpath limits and possible overflows.
176
177 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
178 (OF_PATH_MAX): Removed.
179 (MAX_DISK_CAT): New const.
180 (find_obppath): Use allocated rather than preallocated buffer.
181 Return result. Argument of_path removed. All users updated.
182 Add missing fdstat.
183 (xrealpath): New function.
184 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
185 Allocate rather than use preallocated buffer. All users updated.
186 (__of_path_common): Use allocated rather than preallocatecd buffer.
187 Return result. Argument of_path removed. All users updated.
188 (vendor_is_ATA): Read only needed part form the file.
189 (check_sas): Allocate depending on contents rather than fixed.
190 (main) [STANDALONE]: Handle NULL result.
191
192 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
193
194 * grub-core/normal/completion.c (iterate_dev): Close the disk.
195
196 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
197
198 Cryptodisk write support.
199
200 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
201 (grub_cryptodisk_decrypt): Moved logic to ...
202 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
203 (grub_cryptodisk_write): Implement.
204 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
205 (grub_util_fd_write): ... this. Make global.
206 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
207
208 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
209
210 * include/grub/list.h (grub_list_remove): Don't crash if element is
211 removed twice.
212
213 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
214
215 Rename ofconsole to console.
216
217 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
218 as sysnonym to console.
219 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
220 * grub-core/term/ieee1275/console.c: ... this. All users updated.
221 Rename grub_ofconsole_ to grub_console_. All users updated
222 (grub_console_term_output): Rename "ofconsole" to "console".
223 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
224 as "console".
225
226 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
227
228 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
229 handling.
230 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
231 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
232 GRUB_DISK_DEVICE_FILE_ID.
233
234 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
235
236 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
237 and improve performance.
238
239 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
240
241 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
242 missing ieee1275/ prefix on whole disk.
243
244 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
245
246 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
247 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
248
249 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
250
251 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
252
253 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
254
255 Merge common RAID and LVM logic to an abstract diskfilter.
256 Add LDM support using the same framework.
257
258 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
259 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
260 (libgrubmods): Remove grub-core/disk/raid.c and
261 grub-core/partmap/gpt.c.
262 * grub-core/Makefile.core.def (ldm): New module.
263 (raid): Renamed to diskfilter. All users updated.
264 * grub-core/disk/raid.c: Moved to ...
265 * grub-core/disk/diskfilter.c: ... here.
266 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
267 (lv_num): New var.
268 (find_array): Renamed to ...
269 (find_lv): ... this. Support multi-LV. Skip nameless LVs
270 (grub_is_array_readable): Renamed to ...
271 (grub_is_lv_readable): ... this. Support multinode hierarchy.
272 (insert_array): New argument id.
273 (is_node_readable): New function.
274 (scan_device): Rename to ...
275 (scan_disk): .. this. Restrict to one disk.
276 (scan_devices): New function.
277 (grub_diskfilter_iterate): Support multi-LV.
278 Skip invisible and nameless LVs.
279 (grub_diskfilter_memberlist): Support multi-LV.
280 (grub_diskfilter_read_node): New function.
281 (grub_raid_read): Most of logic moved to ...
282 (read_segment): ... here
283 (read_lv): New function.
284 (grub_diskfilter_get_vg_by_uuid): New function.
285 (grub_diskfilter_make_raid): Likewise.
286 * grub-core/disk/ldm.c: New file.
287 * grub-core/disk/lvm.c (vg_list): Removed.
288 (lv_count): Likewise.
289 (scan_depth): Likewise.
290 (is_lv_readable): Likewise.
291 (grub_lvm_getvalue): Advance pointer past the number.
292 (find_lv): Removed.
293 (do_lvm_scan): Refactored into ...
294 (grub_lvm_detect): ... this. Support raid.
295 (grub_lvm_iterate): Removed.
296 (grub_lvm_memberlist): Likewise.
297 (grub_lvm_open): Likewise.
298 (grub_lvm_close): Likewise.
299 (read_lv): Likewise.
300 (read_node): Likewise.
301 (is_node_readable): Likewise.
302 (is_lv_readable): Likewise.
303 (grub_lvm_read): Likewise.
304 (grub_lvm_write): Likewise.
305 (grub_lvm_dev): Use diskfilter
306 (GRUB_MOD_INIT): Likewise.
307 (GRUB_MOD_FINI): Likewise.
308 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
309 new interface.
310 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
311 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
312 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
313 grub_diskfilter_read_node.
314 Fix a bug with xor.
315 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
316 grub_diskfilter_read_node.
317 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
318 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
319 (grub_disk_dev_iterate): Move from here...
320 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
321 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
322 Make global.
323 (grub_hostdisk_find_partition_start): Likewise.
324 (grub_hostdisk_os_dev_to_grub_drive): New function.
325 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
326 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
327 * util/getroot.c (make_device_name): ... here.
328 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
329 Move to ...
330 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
331 * grub-core/kern/emu/hostdisk.c
332 (convert_system_partition_to_system_disk): Move to ...
333 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
334 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
335 * util/getroot.c (device_is_wholedisk): ... here.
336 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
337 * util/getroot.c (find_system_device): ... here.
338 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
339 Move to ...
340 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
341 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
342 Move to ...
343 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
344 Handle LDM.
345 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
346 Move to ...
347 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
348 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
349 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
350 DISKFILTER.
351 * include/grub/raid.h: Renamed to ...
352 * include/grub/diskfilter.h: ... this.
353 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
354 (GRUB_RAID_LAYOUT_*): Make into array.
355 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
356 (grub_diskfilter_vg): New struct.
357 (grub_diskfilter_pv_id): Likewise.
358 (grub_raid_member): Removed.
359 (grub_raid_array): Likewise.
360 (grub_diskfilter_pv): New struct.
361 (grub_diskfilter_lv): Likewise.
362 (grub_diskfilter_segment): Likewise.
363 (grub_diskfilter_node): Likewise.
364 (grub_diskfilter_get_vg_by_uuid): New proto.
365 (grub_raid_register): Inline.
366 (grub_diskfilter_unregister): Likewise.
367 (grub_diskfilter_make_raid): New proto.
368 (grub_diskfilter_vg_register): Likewise.
369 (grub_diskfilter_read_node): Likewise.
370 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
371 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
372 (grub_util_is_ldm): Likewise.
373 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
374 (grub_hostdisk_find_partition_start): Likewise.
375 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
376 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
377 New definition.
378 (grub_gpt_partition_map_iterate): New proto.
379 * include/grub/lvm.h (grub_lvm_vg): Removed.
380 (grub_lvm_pv): Likewise.
381 (grub_lvm_lv): Likewise.
382 (grub_lvm_segment): Likewise.
383 (grub_lvm_node): Likewise.
384 * util/getroot.c [...]
385 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
386 (probe_abstraction): Likewise.
387 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
388 (main): Remove dead logic.
389
390 2012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
391
392 Simplify root device discover and don't fail when trying to open
393 incorrect devices.
394
395 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
396 function.
397 (get_diskname_from_path): Likewise.
398 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
399 of iterating.
400
401 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
402
403 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
404
405 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
406
407 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
408 pastthe end.
409
410 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
411
412 * util/grub-install.in: Add missing \.
413 Reported by: gentoofan
414
415 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
416
417 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
418 (direct_read): Use correct compressed size.
419 (grub_squash_read_data): Likewise.
420
421 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
422
423 * docs/grub.texi (Platform limitations): New section.
424 (Platform-specific operations): Likewise.
425 * docs/grub-dev.texi (Porting): Likewise.
426
427 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
428
429 IEEE1275 disk write support.
430
431 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
432 const void *.
433 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
434 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
435 and seek loginc to ...
436 (grub_ofdisk_prepare): ... here.
437 (grub_ofdisk_write): Implement.
438
439 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
440
441 ARC disk write support.
442
443 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
444 (reopen): New argument writable. All users updated.
445 Handle required access mode.
446 (grub_arcdisk_write): Implement.
447 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
448 (grub_arc_firmware_vector): Make buffer to write a const buffer.
449
450 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
451
452 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
453 (read_sblock): Don't attempt to read superblocks outside the disk size.
454
455 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
456
457 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
458 first superblock to find the second one when possible.
459
460 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
461
462 * util/grub-install.in: Fix an ARC bug.
463 Print a warning if no platform-specific setup is available.
464
465 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
466
467 Use static allocation rather than scratch pointer in reed_solomon.
468 It decreases its size significantly and avoids a variable in .text.
469
470 * grub-core/lib/reed_solomon.c (scratch): Removed.
471 (chosenstat): New const or static array.
472 (sigma): Likewise.
473 (errpot): Likewise.
474 (errpos): Likewise.
475 (sy): Likewise.
476 (mstat): Likewise.
477 (errvals): Likewise.
478 (eqstat): Likewise.
479 (pol_evaluate): Replace x with log_x argument. All users updated.
480 (syndroms): Removed.
481 (gauss_solve): Use statically allocated arrays.
482 (rs_recover): Likewise.
483 Calculate syndroms directly.
484 (decode_block): Use statically allocated arrays.
485 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
486 (main) [TEST]: Allow -DTEST -DSTANDALONE.
487
488 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
489
490 Eliminate fixed limit on reed solomon decoder length.
491
492 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
493 rather than hardcoding the address.
494 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
495 no_reed_solomon_length.
496 Move gate_a20 to no-reed-solomon part.
497 Don't force a particular size of no reed-solomon part.
498 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
499 Removed.
500 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
501 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
502
503 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
504
505 * grub-core/commands/wildcard.c (match_files): Handle filenames
506 without explicit device.
507 (wildcard_expand): Don't add explicit device if not already present.
508 * tests/grub_script_echo1.in: Add a new expansion test.
509
510 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
511
512 Replace single-linked with double-linked lists. It results in more
513 compact and more efficient code.
514
515 * grub-core/kern/list.c (grub_list_push): Moved from here ...
516 * include/grub/list.h (grub_list_push): ... to here. Set prev.
517 (grub_list_remove): Moved from here ...
518 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
519 (grub_prio_list_insert): Set prev.
520 * include/grub/list.h (grub_list): Add prev. All users updated.
521
522 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
523
524 Handle newer autotools. Add some missing quotes while on it.
525
526 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
527 (pkglib_DATA): Move grub-mkconfig_lib from here ...
528 (pkgdata_DATA): ... here.
529 * Makefile.util.def (update-grub_lib): Removed.
530 * conf/Makefile.common (pkglib_DATA): Removed.
531 (pkglib_SCRIPTS): Likewise.
532 (pkgdata_DATA): New variable.
533 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
534 needed.
535 Add missing quotes.
536 Remove unused variable while on it.
537 * tests/util/grub-shell.in: Likewise.
538 * util/grub-install.in: Likewise.
539 * util/grub-mkconfig.in: Likewise.
540 * util/grub-mknetdir.in: Likewise.
541 * util/grub-mkrescue.in: Likewise.
542 * util/grub-mkstandalone.in: Likewise.
543 * util/grub.d/00_header.in: Likewise.
544 * util/grub.d/10_hurd.in: Likewise.
545 * util/grub.d/10_illumos.in: Likewise.
546 * util/grub.d/10_kfreebsd.in: Likewise.
547 * util/grub.d/10_linux.in: Likewise.
548 * util/grub.d/10_netbsd.in: Likewise.
549 * util/grub.d/10_windows.in: Likewise.
550 * util/grub.d/20_linux_xen.in: Likewise.
551 * util/grub.d/30_os-prober.in: Likewise.
552 * util/update-grub_lib.in: Removed.
553
554 2012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
555
556 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
557 a workaround for intel problem.
558
559 2012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
560 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
561 2012-01-23 pfsmorigo
562
563 * util/grub-install.in: Support dd'in into PreP partition.
564 * util/grub-probe.c (probe): Support discovering partition type.
565 (main): Support -t msdos_parttype.
566
567 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
568
569 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
570 infinite recursion using counter.
571 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
572 init to skip it if the magic check fails.
573 (dec_stream_header): Init s->crc32.
574
575 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
576 2012-01-22 Zachary Bedell <pendorbound@gmail.com>
577 2012-01-22 Richard Laager <rlaager@wiktel.com>
578
579 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
580 All users updated.
581 (find_bestub): Determine correct size.
582 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
583 (scan_disk): Align the size down.
584 Call check pool before find_bestub to have ashift.
585
586 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
587
588 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
589 dprintf in no-malloc zone.
590
591 2012-01-22 Mario Limonciello <mario_limonciello@dell.com>
592
593 * configure.ac: Add back in test for limits.h.
594
595 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
596
597 Support 4K-sector NTFS.
598
599 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
600 (grub_ntfs_data): Remove blocksize.
601 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
602 Remove data argument. All users updated.
603
604 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
605
606 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
607 being in .text to avoid dprel references.
608 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
609 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
610 (grub_arch_highmemsize): Likewise.
611 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
612 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
613 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
614
615 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
616
617 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
618
619 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
620 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
621
622 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
623
624 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
625 GRUB_UTIL.
626 (grub_set_datetime_cmos): Likewise.
627
628 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
629
630 Make XZ compression parameters dependent on target and not host CPU.
631
632 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
633 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
634
635 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
636
637 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
638 set but not used variable.
639
640 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
641
642 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
643 created when no uuid support is compiled into mkfs.reiser.
644
645 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
646
647 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
648 (utf8_to_macroman): Do the opposite.
649 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
650
651 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
652
653 * configure.ac: Refise build qemu_mips w/o unifont.
654
655 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
656
657 Eliminate grub_min/grub_max prone to overflow usage.
658
659 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
660 (poll_nonroot_hub): Likewise.
661 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
662 (grub_affs_label): Likewise.
663 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
664 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
665 (grub_hfs_label): Likewise.
666 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
667 * grub-core/fs/zfs/zfs.c (MIN): Remove.
668 (zap_leaf_array_equal): Use grub_size. Remove MIN.
669 (zap_leaf_array_get): Likewise.
670 (dnode_get_path): Likewise.
671 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
672 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
673 * grub-core/script/execute.c (grub_script_break): Likewise.
674 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
675 grub_max.
676 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
677 * include/grub/misc.h (grub_min): Removed.
678 (grub_max): Likewise.
679
680 2012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
681
682 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
683 direct.inode = 0.
684
685 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
686
687 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
688
689 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
690
691 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
692
693 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
694
695 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
696 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
697
698 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
699
700 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
701 rather than a hack for grub_strncasemap.
702
703 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
704
705 Support multiple initrds
706 Note: part of this was accidently committed in r3739.
707
708 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
709 initrd.
710 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
711 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
712 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
713 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
714 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
715
716 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
717
718 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
719 disks with unknown size.
720 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
721
722 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
723
724 Remove defines pertaining to arbitrary limits not affecting GRUB
725 anymore.
726
727 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
728 (EXT2_MAX_SYMLINKCNT): Likewise.
729 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
730 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
731 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
732 (GRUB_PXE_MAX_BLKSIZE): Likewise.
733 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
734 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
735 (DN_MAX_OBJECT_SHIFT): Likewise.
736 (DN_MAX_OFFSET_SHIFT): Likewise.
737 (DN_MAX_OBJECT): Likewise.
738 (DNODES_PER_LEVEL_SHIFT): Likewise.
739 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
740 (SPA_MAXBLOCKSIZE): Likewise.
741 (SPA_BLOCKSIZES): Likewise.
742 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
743 (MZAP_MAX_BLKSZ): Likewise.
744
745 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
746
747 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
748 handle NULL appropriately.
749 Remove MIN.
750
751 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
752
753 Fix efiemu.
754
755 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
756 cpu/types.h.
757 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
758 * configure.ac: Fix efiemu check.
759
760 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
761
762 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
763 grub_probe.
764 Reported by: adamwill
765
766 2012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
767
768 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
769
770 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
771
772 Fix handling of wide characters in gfxterm.
773
774 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
775 (clear_char): Likewise.
776 (paint_char): Skip code == NULL chars.
777 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
778
779 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
780
781 * grub-core/normal/charset.c: Move comment to right place.
782
783 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
784
785 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
786 (GRUB_AFFS_FLAG_FFS): Put back where it was.
787 (grub_affs_mount): Revert the correct version checking.
788
789 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
790
791 * docs/grub.texi (Unicode): Mention several other unsupported features.
792
793 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
794
795 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
796 case statements as compile-time one.
797 (direct_read): Prevent spurious warnings.
798 (grub_squash_read_data): Likewise.
799
800 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
801
802 Various squash4 fixes and LZO and XZ support.
803
804 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
805 Add xzembed source files.
806 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
807 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
808 (grub_squash_inode): New subtype long_dir.
809 (SQUASH_TYPE_LONG_DIR): New inode type.
810 (COMPRESSION): New enum.
811 (XZBUFSIZ): New const.
812 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
813 (read_chunk): Use data->decompress.
814 (zlib_decompress): New function.
815 (lzo_decompress): Likewise.
816 (xz_decompress): Likewise.
817 (squash_mount): Set new data fields.
818 (grub_squash_iterate_dir): Handle long dir.
819 (squash_unmount): Free xzdec and xzbuf.
820 (grub_squash_open): Check ino type.
821 (direct_read): Stylistic fixes. Use data->decompress.
822 (grub_squash_read_data): Likewise.
823 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
824 (get_byte): Likewise.
825 (grub_zlib_disk_read): Removed.
826 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
827 (GRUB_POSIX_BOOL_DEFINED): New define.
828 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
829 * grub-core/lib/xzembed/xz.h: Addmissing includes.
830 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
831 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
832
833 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
834
835 Don't override more informative errors.
836
837 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
838 * grub-core/font/font.c (open_section): Likewise.
839 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
840 filename. Don't override errors.
841 (grub_cmd_openbsd_ramdisk): Don't override errors.
842 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
843 (grub_cmd_initrd): Likewise.
844 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
845 (grub_cmd_initrd): Likewise.
846 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
847 (grub_cmd_linux): Likewise.
848 (grub_cmd_initrd): Likewise.
849 (grub_cmd_payload): Likewise.
850 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
851 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
852 (grub_cmd_module): Likewise.
853 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
854 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
855 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
856 (grub_cmd_xnu_mkext): Likewise.
857 (grub_cmd_xnu_ramdisk): Likewise.
858 (grub_xnu_check_os_bundle_required): Likewise.
859 (grub_xnu_load_kext_from_dir): Likewise.
860 (grub_cmd_xnu_kextdir): Likewise.
861 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
862
863 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
864
865 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
866 as 1024 in block size field. Found on one of my test images.
867 Small optimisation while on it.
868
869 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
870
871 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
872 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
873 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
874 performance fixes while on it.
875 (grub_sfs_close): Fix memory leak while on it.
876 (grub_sfs_label): Convert Latin1 to UTF-8.
877
878 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
879
880 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
881 space to avoid overflows.
882 (grub_hfs_label): Convert from macroman to UTF-8.
883
884 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
885
886 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
887
888 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
889
890 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
891
892 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
893
894 * unicode: Import Unicode 6.0 data.
895
896 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
897
898 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
899 outside of range.
900
901 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
902
903 Avoid cutting in the middle of UTF-8 character.
904
905 * include/grub/charset.h (grub_getend): New function.
906 * grub-core/script/function.c (grub_script_function_find): Use
907 grub_getend.
908 * grub-core/normal/completion.c (add_completion): Likewise.
909
910 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
911
912 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
913 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
914 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
915 (GRUB_UNICODE_TAG_END): Likewise.
916 (GRUB_UNICODE_LAST_VALID): Likewise.
917
918 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
919
920 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
921 len and make it smaller. All users updated.
922 * util/import_unicode.py: Put length and not end character.
923 Check length.
924
925 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
926
927 Make better Unicode-compliant and unify some UTF-8 code pathes.
928
929 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
930 valid character.
931 (grub_is_valid_utf8): Use grub_utf8_process.
932 Check resulting code range.
933 (grub_utf8_to_ucs4): Use grub_utf8_process.
934 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
935 valid character.
936
937 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
938
939 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
940
941 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
942
943 * docs/grub.texi (Filesystems): Mention AFS.
944
945 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
946
947 * docs/grub.texi (Filesystems): Clarify restrictions.
948 (Regexp): Mention non-Unicode regexp behaviour.
949 (Other): Mention non-Unicode matching behaviour.
950
951 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
952
953 Make HFS implementation use MacRoman.
954
955 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
956 (macroman): New const array.
957 (macroman_to_utf8): New function.
958 (utf8_to_macroman): Likewise.
959 (grub_hfs_find_dir): Use utf8_to_macroman.
960 (grub_hfs_dir): Use macroman_to_utf8.
961 Set case_insensitive.
962
963 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
964
965 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
966
967 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
968
969 Integrate hints into autogeneration scripts.
970
971 * docs/grub.texi (Filesystems): Add a hostdisk example.
972 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
973 (grub-probe): Add ofpath.
974 * gentpl.py: Remove group nosparc64.
975 * grub-core/commands/search.c (cache_entry): New struct.
976 (cache): New var.
977 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
978 * grub-core/commands/search_wrap.c (options): Add platform-specific
979 hint options.
980 (grub_cmd_search): Handle platform-specific hints.
981 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
982 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
983 (grub_util_biosdisk_data): Likewise.
984 (grub_util_biosdisk_open): Set device_map.
985 (read_device_map): Handle "" as indication of no map.
986 Set device_map.
987 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
988 (grub_util_biosdisk_get_compatibility_hint): New function.
989 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
990 * include/grub/emu/hostdisk.h
991 (grub_util_biosdisk_get_compatibility_hint): New proto.
992 * util/grub-install.in: Don't call grub-mkdevicemap.
993 Add platform-specific hint to load.cfg.
994 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
995 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
996 hints. Set root preliminary to compatibility hint, not to OS name.
997 * util/grub-probe.c (PRINT_*): Add hints.
998 (print): Make static.
999 (escape_of_path): New function.
1000 (guess_bios_drive): Likewise.
1001 (guess_efi_drive): Likewise.
1002 (guess_baremetal_drive): Likewise.
1003 (print_full_name): Likewise.
1004 (probe): Handle hints.
1005 (main): Likewise.
1006 * util/ieee1275/devicemap.c: Removed.
1007 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
1008 updated.
1009 (grub_util_devname_to_ofpath): Return NULL on failure.
1010
1011 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
1012 resource leak.
1013 * util/getroot.c (grub_util_pull_device): Fix memory leak.
1014
1015 * po/POTFILES.in: Regenerated.
1016
1017 Allow purely long options
1018
1019 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
1020 (SHORT_ARG_USAGE): Likewise.
1021 (grub_arg_show_help): Compare opt with help_options.
1022 (parse_option): Receive opt as argument. If makes big simplificatons.
1023 All users updated
1024
1025 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
1026
1027 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
1028 Restructure to avoid warning.
1029
1030 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
1031
1032 * util/grub-install.in: Account for possible escaped comma in device
1033 name.
1034
1035 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
1036
1037 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
1038 channel.
1039
1040 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
1041
1042 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
1043 allocation and zero-setting.
1044 (grub_ieee1275_get_devname): Check that alias is complete.
1045
1046 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
1047
1048 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
1049 unaligned segments.
1050
1051 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
1052
1053 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
1054 prefix.
1055 (grub_ofdisk_open): Check and discard ieee1275 prefix.
1056 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
1057 Add ieee1275 prefix.
1058
1059 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
1060
1061 * docs/grub.texi (Filesystems): Update.
1062
1063 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
1064
1065 Support odc, newc and bigendian cpio formats.
1066
1067 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
1068 * grub-core/Makefile.core.def (newc): New module.
1069 (odc): Likewise.
1070 (cpio_be): Likewise.
1071 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
1072 (MAGIC): Likewise.
1073 (MAGIC2): Likewise.
1074 (head) [MODE_ODC]: Adapt for the format.
1075 (head) [MODE_NEWC]: Likewise.
1076 (head) [!MODE_*]: Write fields of interest as arrays.
1077 (MAGIC_USTAR): Removed.
1078 (read_number) [MODE_NEWC]: Change to hex.
1079 (read_number) [!MODE_*]: Parse binary arrays.
1080 (grub_cpio_find_file): Factor out the code for better structure and
1081 always use read_number.
1082 (grub_cpio_mount): Use MAGIC and MAGIC2.
1083 (grub_cpio_dir): Exit on first hook non-0 return.
1084 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
1085 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
1086 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
1087 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
1088 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
1089 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
1090 * grub-core/fs/newc.c: New file.
1091 * grub-core/fs/odc.c: Likewise.
1092 * grub-core/fs/cpio_be.c: Likewise.
1093
1094 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
1095
1096 Fix handling of tar numbers occupying the whole field.
1097
1098 * grub-core/fs/cpio.c (read_number): New function.
1099 (grub_cpio_find_file): Use read_number instead of strtoull.
1100
1101 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
1102
1103 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
1104 occupying the whole field size.
1105
1106 2011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
1107
1108 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
1109
1110 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
1111
1112 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
1113
1114 2011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
1115
1116 * grub-core/Makefile.core.def (lzma_decompress): Add missing
1117 TARGET_IMG_LDFLAGS.
1118
1119 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
1120
1121 * util/getroot.c (ESCAPED_PATH_MAX): New define.
1122 (mountinfo_entry): Increase the field size to take escaping into
1123 account.
1124 (find_root_device_from_libzfs): Add one byte to size of strings for
1125 security.
1126
1127 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
1128
1129 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
1130 an assert.
1131 * util/grub-setup.c (setup): Likewise.
1132
1133 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
1134
1135 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
1136 _LzmaDecodeA.
1137
1138 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
1139
1140 * docs/grub.texi (Internationalisation): New section.
1141
1142 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
1143
1144 * docs/grub.texi (Loopback booting): New section.
1145
1146 2011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
1147
1148 * util/grub-mkstandalone.in: Fix minor typo errors.
1149
1150 2011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
1151
1152 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
1153
1154 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
1155 net/icmp.c and net/icmp6.c.
1156 (http): New module.
1157 (priority_queue): Likewise.
1158 * grub-core/io/bufio.c: Rewritten.
1159 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
1160 TYPE_WITH_CONFIGFILE_OPTION.
1161 (legacy_commands): Add bootp and dhcp.
1162 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
1163 (grub_legacy_parse): Likewise.
1164 * grub-core/lib/priority_queue.c: New file.
1165 * grub-core/net/arp.c: Add missing license header.
1166 (arp_find_entry): Removed.
1167 (arp_find_entry): Likewise.
1168 (grub_net_arp_resolve): Rename to ...
1169 (grub_net_arp_send_request): ...this.
1170 (grub_net_arp_receive): New card argument.
1171 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
1172 Set router and DNS server.
1173 (grub_net_configure_by_dhcp_ack): Handle routing information.
1174 (grub_cmd_bootp): Set checksum.
1175 (grub_bootp_init): Remove net_dhcp.
1176 * grub-core/net/dns.c: New file.
1177 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
1178 completion.
1179 (get_card_packet): Handle allocation.
1180 (grub_efinet_findcards): Set mtu.
1181 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
1182 (get_card_packet): Handle allocation.
1183 (emucard): Set mtu.
1184 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
1185 (GRUB_MOD_INIT): Set mtu.
1186 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
1187 mtu.
1188 (get_card_packet): Handle allocation.
1189 (grub_ofnet_findcards): Set mtu.
1190 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
1191 assert.
1192 (grub_net_recv_ethernet_packet): Handle IPv6.
1193 * grub-core/net/http.c: New file.
1194 * grub-core/net/icmp.c: Likewise.
1195 * grub-core/net/icmp6.c: Likewise.
1196 * grub-core/net/ip.c (ip6addr): New type.
1197 (ip6hdr): Likewise.
1198 (reassemble): Likewise.
1199 (cmp): New function.
1200 (reassembles): New variable.
1201 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
1202 (id): New variable.
1203 (send_fragmented): New function.
1204 (grub_net_send_ip_packet): Rename to ...
1205 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
1206 Handle non-UDP.
1207 (grub_net_recv_ip_packets): Rename to ...
1208 (handle_dgram): ... this. Check checksum. Handle non-UDP.
1209 (free_rsm): New function.
1210 (free_old_fragments): Likewise.
1211 (grub_net_recv_ip4_packets): New function.
1212 (grub_net_send_ip6_packet): Likewise.
1213 (grub_net_send_ip_packet): Likewise.
1214 (grub_net_recv_ip6_packets): Likewise.
1215 (grub_net_recv_ip_packets): Likewise.
1216 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
1217 (LINK_LAYER_CACHE_SIZE): New const.
1218 (link_layer_find_entry): New function.
1219 (grub_net_link_layer_add_address): Likewise.
1220 (grub_net_link_layer_resolve_check): Likewise.
1221 (grub_net_link_layer_resolve): Likewise.
1222 (grub_net_ipv6_get_slaac): Likewise.
1223 (grub_net_ipv6_get_link_local): Likewise.
1224 (grub_cmd_ipv6_autoconf): Likewise.
1225 (parse_ip): Handle one number representation.
1226 (parse_ip6): New functoion.
1227 (match_net): Handle IPv6.
1228 (grub_net_resolve_address): Handle IPv6 and DNS.
1229 (grub_net_resolve_net_address): Handle IPv6.
1230 (route_cmp): New function.
1231 (grub_net_route_address): Find best route.
1232 (grub_net_addr_to_str): Handle IPv6.
1233 (grub_net_addr_cmp): New function.
1234 (grub_net_add_addr): Register local route.
1235 (print_net_address): Handle net address.
1236 (grub_net_poll_cards): Retransmit TCP.
1237 (grub_net_poll_cards_idle_real): Likewise.
1238 (have_ahead): New function.
1239 (grub_net_seek_real): Use underlying seek.
1240 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
1241 * grub-core/net/tcp.c: New file.
1242 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
1243 (cmp): New function.
1244 (ack): Likewise.
1245 (tftp_receive): Handle unordered input.
1246 (destroy_pq): New function.
1247 (tftp_close): Close pq.
1248 * grub-core/net/udp.c: Put missing license header.
1249 (grub_net_udp_socket): New function.
1250 (udp_socket_register): Likewise.
1251 (grub_net_udp_close): Likewise.
1252 (grub_net_recv_udp_packet): Check checksum.
1253 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
1254 * include/grub/misc.h (grub_memchr): New function.
1255 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
1256 (grub_net_card_driver): Return buf in recv.
1257 (grub_net_slaac_mac_list): New struct.
1258 (grub_network_level_protocol_id): Add ipv6.
1259 (grub_net_network_level_addr): Likewise.
1260 (grub_net_network_level_net_addr): Likewise.
1261 (grub_net_app_protocol): Add seek.
1262 (grub_net_socket): Removed.
1263 (grub_net_sockets): Likewise.
1264 (grub_net_socket_register): Likewise.
1265 (grub_net_socket_unregister): Likewise.
1266 (FOR_NET_SOCKETS): Likewise.
1267 (grub_net_add_addr): Add const.
1268 (GRUB_NET_BOOTP_*): New enum.
1269 (grub_net_addr_cmp): New proto.
1270 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
1271 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
1272 (grub_net_hwaddr_to_str): NEw proto.
1273 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
1274 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
1275 (grub_dns_init): New proto.
1276 (grub_dns_fini): Likewise.
1277 (grub_net_tcp_retransmit): Likewise.
1278 (grub_net_link_layer_add_address): Likewise.
1279 (grub_net_link_layer_resolve_check): Likewise.
1280 (grub_net_link_layer_resolve): Likewise.
1281 (grub_net_dns_lookup): Likewise.
1282 (grub_net_add_dns_server): Likewise.
1283 (grub_net_remove_dns_server): Likewise.
1284 (GRUB_NET_TRIES): New const.
1285 (GRUB_NET_INTERVAL): Likewise.
1286 * include/grub/net/arp.h: Mostly rewritten.
1287 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
1288 * include/grub/net/ip.h: Mostly rewritten.
1289 * include/grub/net/netbuff.h: Indent.
1290 * include/grub/net/tcp.h: New file.
1291 * include/grub/net/udp.h: Mostly rewritten.
1292 * include/grub/priority_queue.h: New file.
1293 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
1294 (grub_swap_bytes64_compile_time): Likewise.
1295 (grub_cpu_to_be16_compile_time): Likewise.
1296 (grub_cpu_to_be32_compile_time): Likewise.
1297 (grub_cpu_to_be64_compile_time): Likewise.
1298 (grub_be_to_cpu64_compile_time): Likewise.
1299
1300 2011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1301
1302 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
1303 UINT_TO_PTR with cast.
1304
1305 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1306
1307 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
1308 don't use them.
1309
1310 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1311
1312 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
1313 already there.
1314
1315 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1316
1317 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
1318 confusing ipxe.
1319
1320 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1321
1322 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
1323 Add missing const attribute.
1324 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
1325 Likewise.
1326 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
1327 Likewise.
1328
1329 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1330
1331 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
1332 misaligned access.
1333 (serpent_setkey): Likewise.
1334 (serpent_encrypt_internal): Likewise.
1335 (serpent_decrypt_internal): Likewise.
1336 (serpent_encrypt): Don't put an alignment-increasing cast.
1337 (serpent_decrypt): Likewise.
1338 (serpent_test): Likewise.
1339
1340 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1341
1342 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
1343
1344 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1345
1346 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
1347
1348 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
1349 grub_addr_t casts.
1350 (PTR_TO_UINT64): Likewise.
1351 (PTR_TO_UINT32): Likewise.
1352
1353 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1354
1355 * util/grub-mkimage.c (generate_image): Decrease the higher limit
1356 because of stack.
1357 * util/grub-setup.c (setup): Don't add redundancy past the higher load
1358 limit.
1359
1360 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1361
1362 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
1363 text_width > available width a bit more gracefully.
1364
1365 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1366
1367 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
1368 current address calculation.
1369
1370 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1371
1372 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
1373 stack.
1374 (encode_block): Likewise.
1375
1376 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1377
1378 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
1379 certainety.
1380
1381 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1382
1383 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
1384 non-RS part to avoid RS messing with GDT.
1385 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
1386 Increase to suit in realmode routines.
1387
1388 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1389
1390 * grub-core/kern/i386/realmode.S: Increase alignment.
1391 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
1392
1393 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1394
1395 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
1396 be deterministic.
1397 (syndroms): Compute 0 syndrom.
1398 (rs_recover): Use 0 syndrom.
1399
1400 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1401
1402 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
1403
1404 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1405
1406 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
1407 brackets.
1408
1409 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1410
1411 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
1412 account.
1413 (get_top_pad): Likewise.
1414 (get_right_pad): Likewise.
1415 (get_bottom_pad): Likewise.
1416
1417 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1418
1419 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
1420
1421 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1422
1423 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
1424 attribute as the structure isn't guaranteed to be properly aligned.
1425 (grub_efi_pci_device_path): Likewise.
1426 (grub_efi_pccard_device_path): Likewise.
1427 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
1428 specify the size of `memory_type'.
1429 (grub_efi_vendor_device_path): Likewise.
1430 (grub_efi_controller_device_path): Likewise.
1431 (grub_efi_acpi_device_path): Likewise.
1432 (grub_efi_expanded_acpi_device_path): Likewise.
1433 (grub_efi_atapi_device_path): Likewise.
1434 (grub_efi_scsi_device_path): Likewise.
1435 (grub_efi_fibre_channel_device_path): Likewise.
1436 (grub_efi_1394_device_path): Likewise.
1437 (grub_efi_usb_device_path): Likewise.
1438 (grub_efi_usb_class_device_path): Likewise.
1439 (grub_efi_i2o_device_path): Likewise.
1440 (grub_efi_mac_address_device_path): Likewise.
1441 (grub_efi_ipv4_device_path): Likewise.
1442 (grub_efi_ipv6_device_path): Likewise.
1443 (grub_efi_infiniband_device_path): Likewise.
1444 (grub_efi_uart_device_path): Likewise.
1445 (grub_efi_vendor_messaging_device_path): Likewise.
1446 (grub_efi_hard_drive_device_path): Likewise.
1447 (grub_efi_cdrom_device_path): Likewise.
1448 (grub_efi_vendor_media_device_path): Likewise.
1449 (grub_efi_file_path_device_path): Likewise.
1450 (grub_efi_protocol_device_path): Likewise.
1451 (grub_efi_piwg_device_path): Likewise.
1452 (grub_efi_bios_device_path): Likewise.
1453
1454 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1455
1456 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
1457 (grub_ucs4_to_utf8_alloc): Likewise.
1458 (grub_ucs4_to_utf8): Likewise.
1459 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
1460 (grub_ucs4_to_utf8_alloc): Likewise.
1461
1462 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1463
1464 AFFS never uses unicode.
1465
1466 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
1467 (grub_latin1_to_utf8): New inline function.
1468 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
1469
1470 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1471
1472 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
1473 overflow.
1474
1475 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1476
1477 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
1478 (grub_squash_dirent_header): Likewise.
1479 (read_chunk): Don't double swap.
1480 (grub_squash_iterate_dir): Fix swap sizes.
1481
1482 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1483
1484 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
1485
1486 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1487
1488 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
1489 (grub_hfs_iterate_dir): Likewise.
1490
1491 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1492
1493 Fix video on platforms where unaligned access is forbidden.
1494 Make several optimisations while on it.
1495
1496 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
1497 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
1498 (grub_video_fbblit_replace_32bit_1bit): Likewise.
1499 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
1500 Disable.
1501 (grub_video_fbblit_replace_16bit_1bit):
1502 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
1503 (grub_video_fbblit_replace_8bit_1bit): Likewise.
1504 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
1505 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
1506 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
1507 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
1508 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
1509 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
1510 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
1511 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
1512 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
1513 (grub_video_fbblit_replace_index_RGB888): Likewise.
1514 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
1515 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
1516 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
1517 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
1518 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
1519 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
1520 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
1521 Disable.
1522 (grub_video_fbblit_blend_XXX565_1bit):
1523 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
1524 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
1525 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
1526 void *.
1527 * grub-core/video/fb/video_fb.c (common_blitter)
1528 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
1529 (grub_video_fb_create_render_target_from_pointer)
1530 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
1531 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
1532 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
1533 definition.
1534 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
1535
1536 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1537
1538 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
1539 HH22 and HM10 relocations.
1540
1541 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1542
1543 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
1544
1545 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1546
1547 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
1548 allocation succeeded.
1549
1550 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1551
1552 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
1553 argument a u8 pointer. All users updated.
1554 Handle unaligned buffers.
1555
1556 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1557
1558 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
1559 add_part to workaround compiler bug.
1560
1561 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1562
1563 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
1564
1565 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1566
1567 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
1568 Reserve alignment invariants.
1569 (grub_multiboot_load): Likewise.
1570 (retrieve_video_parameters): Likewise.
1571 (grub_multiboot_make_mbi): Likewise.
1572
1573 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1574
1575 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
1576 incorrect pointer.
1577
1578 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1579
1580 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
1581 (grub_pata_pio_write): Likewise.
1582
1583 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1584
1585 Add noreturn attributes and remove unreachable code.
1586
1587 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
1588 code.
1589 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
1590 code. Mark as noreturn.
1591 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
1592 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
1593 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
1594 unreachable code.
1595 * grub-core/kern/main.c (grub_main): Mark as noreturn.
1596 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
1597 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
1598 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
1599 * include/grub/kernel.h (grub_main): Mark as noreturn.
1600 * include/grub/reader.h (grub_rescue_run): Likewise.
1601
1602 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1603
1604 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
1605 redundant declaration.
1606
1607 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1608
1609 * include/grub/net.h (grub_net_network_level_interfaces): Remove
1610 redundant declaration.
1611 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
1612
1613 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1614
1615 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
1616 to ensure alignment.
1617 (grub_hdparm_print_identify): Make argument uint16 * to ensure
1618 alignment. Ensure tmp alignment.
1619 (grub_cmd_hdparm): Ensure buf alignment.
1620 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
1621 to ensure alignment.
1622 (grub_ata_dumpinfo): Ensure text alignment.
1623 (grub_atapi_identify): Preserve alignment invariant.
1624 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
1625
1626 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1627
1628 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
1629 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
1630 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
1631 * include/grub/misc.h (grub_reboot)
1632 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
1633 (grub_halt) [__mips__]: Likewise.
1634
1635 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1636
1637 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
1638 Remove redundant declaration.
1639 (grub_mmap_get_post64): Likewise.
1640 (grub_mmap_get_upper): Likewise.
1641 (grub_mmap_get_lower): Likewise.
1642
1643 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1644
1645 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
1646 uint32_t * to ensure alignment.
1647 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
1648
1649 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1650
1651 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
1652 uint16_t * to ensure alignment.
1653 (sun_pc_partition_map_iterate): Make `block' a union to ensure
1654 alignment.
1655
1656 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1657
1658 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
1659 to ensure alignment.
1660 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
1661
1662 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1663
1664 * grub-core/fs/ntfs.c (u16at): Make into inline function.
1665 Handle unaligned pointers.
1666 (u32at): Likewise.
1667 (u64at): Likewise.
1668 (fixup): Use byte access instead of v16at.
1669 (find_attr): Fix imporper usage of v32at.
1670 (read_data): Likewise.
1671 (list_file): Handle byte-swapping and unaligned strings.
1672 (grub_ntfs_label): Likewise.
1673
1674 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1675
1676 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
1677 as it's not necessarily aligned.
1678
1679 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1680
1681 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
1682 redundant declaration.
1683 (grub_serial_init): Likewise.
1684 (grub_terminfo_init): Likewise.
1685
1686 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1687
1688 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
1689 function.
1690 (ZAP_HASH_IDX): Likewise.
1691 (ZAP_LEAF_HASH_SHIFT): Likewise.
1692 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
1693 (LEAF_HASH): Likewise.
1694 (ZAP_LEAF_NUMCHUNKS): Likewise.
1695 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
1696 alignment invariants. Return pointer. All users updated.
1697 (ZAP_LEAF_ENTRY): Make into inline function.
1698 (NBBY): Removed.
1699 (xor): LIkewise.
1700 (xor_out): Use grub_crypto_xor.
1701 (dnode_get_path): Use grub_get_unaligned.
1702 (nvlist_find_value): Likewise.
1703 (grub_zfs_nvlist_lookup_uint64): Likewise.
1704 (grub_zfs_nvlist_lookup_string): Likewise.
1705 (get_nvlist_size): Likewise.
1706 (grub_zfs_open): Likewise.
1707 (fill_fs_info): Likewise.
1708 (grub_zfs_dir): Likewise.
1709 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
1710 alignment invariants.
1711 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
1712 necessarily aligned.
1713
1714 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1715
1716 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
1717
1718 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1719
1720 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
1721 arithmetic to conserve alignment invariants.
1722
1723 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1724
1725 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
1726 redundant declaration.
1727 (grub_efiemu_mm_obtain_request): Likewise.
1728 (grub_efiemu_prepare): Likewise.
1729
1730 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1731
1732 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
1733 to match types.
1734
1735 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1736
1737 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
1738 case of aunaligned recptr.
1739 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
1740 alignment.
1741 (grub_hfsplus_btree_search): Handle unaligned index.
1742
1743 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1744
1745 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
1746 to get freetag and skip.
1747
1748 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1749
1750 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
1751 array.
1752 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
1753 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
1754
1755 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1756
1757 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
1758 name for checksum and fix allocation algorithm.
1759
1760 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1761
1762 * include/grub/types.h (grub_properly_aligned_t): New type.
1763 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
1764 (grub_get_unaligned16): Add explicit casts.
1765 (grub_get_unaligned32): Likewise.
1766 (grub_get_unaligned64): Likewise.
1767 (grub_set_unaligned16): New function.
1768 (grub_set_unaligned32): Likewise.
1769
1770 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1771
1772 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
1773
1774 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1775
1776 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
1777 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
1778 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
1779
1780 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1781
1782 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
1783 conditionals.
1784
1785 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1786
1787 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
1788 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
1789
1790 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1791
1792 Unify and improve RAID and crypto xor.
1793
1794 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
1795 changed to grub_crypto_xor
1796 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
1797 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
1798 Use bigger types when possible.
1799
1800 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1801
1802 * grub-core/disk/raid.c (scan_devices): Fix condition.
1803
1804 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1805
1806 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
1807 Make name a const ptr.
1808
1809 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1810
1811 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
1812 first argument a const pointer.
1813 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
1814 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
1815 proto.
1816 (grub_children_iterate): Likewise.
1817 (grub_machine_mmap_iterate): Remove redundant declaration.
1818
1819 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1820
1821 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
1822 (grub_cmd_acpi) [!x86]: Disable EBDA.
1823
1824 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1825
1826 Enable UTF8 in gnulib regexp.
1827
1828 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
1829 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
1830 (isupper): Use grub_isupper.
1831 (isascii): New inline function.
1832 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
1833 * grub-core/lib/posix_wrap/wctype.h: Likewise.
1834 * grub-core/normal/charset.c (grub_utf8_process): New function.
1835 (grub_utf8_to_utf16): Use grub_utf8_process.
1836 (grub_encode_utf8_character): New function.
1837 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
1838 * include/grub/charset.h (grub_utf8_process): New declaration.
1839 (grub_encode_utf8_character): Likewise.
1840 * include/grub/misc.h (grub_islower): New inline function.
1841 (grub_isupper): Likewise.
1842 (grub_strchrsub): Moved down to fix the definitions.
1843
1844 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1845
1846 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
1847 specification.
1848
1849 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1850
1851 * include/grub/loader.h (grub_loader_register_preboot_hook):
1852 Use struct preboot * and not void * for handle. All users updated.
1853 (grub_loader_unregister_preboot_hook): Likewise.
1854
1855 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
1856
1857 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
1858 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
1859 UTF-16-BE. All users updated.
1860 (grub_hfsplus_cmp_catkey): Fix unicode handling.
1861 (grub_hfsplus_iterate_dir): Likewise.
1862 (grub_hfsplus_label): Likewise.
1863
1864 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
1865
1866 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
1867
1868 2011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
1869
1870 Add missing const qualifiers.
1871
1872 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
1873 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
1874 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
1875 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
1876 (grub_lvm_check_flag): Likewise.
1877 * grub-core/efiemu/i386/coredetect.c
1878 (grub_efiemu_get_default_core_name): Likewise
1879 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
1880 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
1881 * grub-core/fs/ntfs.c (fixup): Likewise.
1882 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
1883 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
1884 (fzap_lookup): Likewise.
1885 (zap_lookup): Likewise.
1886 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
1887 * grub-core/lib/legacy_parse.c (check_option): Likewise.
1888 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
1889 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
1890 (grub_freebsd_add_meta_module): Likewise.
1891 (grub_cmd_freebsd_module): Likewise.
1892 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
1893 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
1894 (grub_xnu_writetree_get_size): Likewise.
1895 (grub_xnu_writetree_toheap_real): Likewise.
1896 (grub_xnu_find_key): Likewise.
1897 (grub_xnu_create_key): Likewise.
1898 (grub_xnu_create_value): Likewise.
1899 (grub_xnu_register_memory): Likewise.
1900 (grub_xnu_check_os_bundle_required): Likewise.
1901 (grub_xnu_scan_dir_for_kexts): Likewise.
1902 (grub_xnu_load_kext_from_dir): Likewise.
1903 * grub-core/normal/color.c (color_list): Likewise.
1904 * grub-core/normal/completion.c (current_word): Likewise.
1905 * grub-core/normal/menu_entry.c (insert_string): Likewise.
1906 * grub-core/term/serial.c (grub_serial_find): Likewise.
1907 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
1908 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
1909 Likewise.
1910 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
1911 (grub_freebsd_add_meta_module): Likewise.
1912 * include/grub/lib/arg.h (grub_arg_option): Likewise.
1913 * include/grub/net.h (grub_net_card_driver): Likewise.
1914 (grub_net_card): Likewise.
1915 (grub_net_app_protocol): Likewise.
1916 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
1917 * include/grub/serial.h (grub_serial_find): Likewise.
1918 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
1919 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
1920 (grub_xnu_create_value): Likewise.
1921 (grub_xnu_find_key): Likewise.
1922 (grub_xnu_scan_dir_for_kexts): Likewise.
1923 (grub_xnu_load_kext_from_dir): Likewise.
1924
1925 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
1926 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
1927 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
1928 Moved from here ...
1929 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
1930
1931 2011-11-28 Colin Watson <cjwatson@ubuntu.com>
1932
1933 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
1934
1935 2011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
1936
1937 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
1938 (read_device): Fix size calculation.
1939
1940 2011-11-25 Robert Millan <rmh@gnu.org>
1941
1942 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
1943 (find_root_device_from_libzfs): Add zpool output parser to be used
1944 as fallback when libzfs isn't available.
1945
1946 2011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
1947
1948 * po/Makefile.in.in: Add missing escape-continuation.
1949
1950 2011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
1951
1952 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
1953
1954 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
1955
1956 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
1957
1958 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
1959
1960 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
1961
1962 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
1963
1964 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
1965
1966 2011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
1967
1968 * grub-core/lib/adler32.c: Add missing license specification.
1969 * grub-core/lib/crc64.c: Likewise.
1970 * grub-core/loader/i386/pc/plan9.c: Likewise.
1971 * grub-core/partmap/plan.c: Likewise.
1972
1973 2011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
1974
1975 Add facility to debug GRUB with gdb under qemu.
1976
1977 * grub-core/gdb_grub.in: New file.
1978 * grub-core/gmodule.pl.in: Likewise.
1979 * grub-core/Makefile.core.def (gmodule.pl): New script.
1980 (gdb_grub): Likewise.
1981
1982 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
1983
1984 * util/grub-mount.c (argp_parser): Accept relative pathes.
1985 * util/grub-fstest.c (argp_parser): Likewise.
1986
1987 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
1988
1989 Plan9 support.
1990
1991 * Makefile.util.def (libgrubmods): Add
1992 grub-core/partmap/plan.c.
1993 * docs/grub.texi: Notice Plan9 support.
1994 * grub-core/Makefile.core.def (plan9): New module.
1995 (part_plan): Likewise.
1996 * grub-core/loader/i386/pc/plan9.c: New file.
1997 * grub-core/partmap/plan.c: Likewise.
1998 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
1999 define.
2000 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
2001 * include/grub/mm.h (grub_extend_alloc): New inline function.
2002
2003 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2004
2005 Make Reed-Solomon faster by using power of generator representation of
2006 GF(256)*.
2007
2008 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
2009 (gf_double_t): Likewise.
2010 (gf_invert): Removed.
2011 (gf_powx): New array.
2012 (gf_powx_inv): Likewise.
2013 (scratch): Move higher.
2014 (gf_reduce): Removed.
2015 (gf_mul): Use powx.
2016 (gf_invert): Likewise.
2017 (init_inverts): Replaced with ...
2018 (init_powx): ...this. All users updated.
2019 (pol_evaluate): Replace multiplications with additions.
2020 (rs_encode): Likewise.
2021 (gauss_eliminate): Call gf_invert.
2022 (grub_reed_solomon_add_redundancy): Call init_powx.
2023 (grub_reed_solomon_recover): Call init_powx unconditionally.
2024
2025 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2026
2027 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
2028
2029 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2030
2031 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
2032 disk->partiton for safety.
2033
2034 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2035
2036 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
2037 Fix a memory leak.
2038 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
2039
2040 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2041
2042 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
2043
2044 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2045
2046 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
2047
2048 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2049
2050 Fix spaces handling in proc/self/mountinfo.
2051
2052 * util/getroot.c (unescape): New function.
2053 (grub_find_root_device_from_mountinfo): Use unescape.
2054
2055 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2056
2057 Support ZFS embedding.
2058
2059 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
2060 (grub_zfs_fs): Register grub_zfs_embed.
2061
2062 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2063
2064 Fix MIPS compilation.
2065
2066 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
2067 * include/grub/offsets.h: Rename decompressor fields from
2068 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
2069 * util/grub-mkimage.c (image_targets): Use new names.
2070
2071 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2072
2073 Defer multiboot device parsing until we're in compressed part.
2074
2075 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
2076 bsd_part. setdevice has fallen into disuse.
2077 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
2078 (bsd_part): Likewise.
2079 (boot_dev): New variable.
2080 (multiboot_trampoline): Don't parse multiboot device.
2081 Pass multiboot device in %edx.
2082 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
2083 grub_boot_device.
2084 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
2085 Likewise.
2086 * grub-core/kern/i386/pc/startup.S: Save edx.
2087 (grub_boot_drive): Removed.
2088 (grub_install_dos_part): Likewise.
2089 (grub_install_bsd_part): Likewise.
2090 (grub_boot_device): New variable.
2091 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
2092 (grub_install_bsd_part): Likewise.
2093 (grub_boot_drive): Likewise.
2094 (grub_boot_device): New variable.
2095 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
2096 Removed.
2097 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
2098 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
2099 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
2100 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
2101 * util/grub-install.in: Remove redundant condition.
2102
2103 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2104
2105 Fix bug introduced by previous commit.
2106
2107 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
2108
2109 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2110
2111 Use decompressors framework on i386-pc. It increases core size
2112 by 46 bytes but improves compatibility and maintainability.
2113
2114 * grub-core/Makefile.core.def (lzma_decompress): New image.
2115 (kernel): Add i386_pc_ldflags.
2116 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
2117 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
2118 to real_to_prot, prot_to_real and device info.
2119 * include/grub/offsets.h: Renamed decompressor offsets.
2120 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
2121 (image_target_desc): Remove raw_size and rename decompressor fields.
2122 (compress_kernel): Handle lzma.
2123 (generate_image): Handle decompressors on i386-pc.
2124
2125 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2126
2127 * configure.ac: Add -fno-asynchronous-unwind-tables.
2128
2129 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2130
2131 Move assembly code to C by using intwrap. It increases core size
2132 by 88 bytes but improves compatibility and maintainability.
2133
2134 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
2135 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
2136 ... here. Translated to C.
2137 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
2138 * grub-core/term/i386/pc/console.c (grub_console_getkey):
2139 ... here. Translated to C.
2140 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
2141 * grub-core/term/i386/pc/console.c (grub_console_getxy):
2142 ... here. Translated to C.
2143 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
2144 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
2145 ... here. Translated to C.
2146 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
2147 * grub-core/term/i386/pc/console.c (grub_console_cls):
2148 ... here. Translated to C.
2149 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
2150 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
2151 ... here. Translated to C.
2152 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
2153 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
2154 Translated to C.
2155 * grub-core/term/i386/pc/console.c (int10_9): New function.
2156 (grub_console_putchar): Likewise.
2157 * include/grub/i386/pc/console.h: Removed the not anymore shared
2158 functions.
2159
2160 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2161
2162 Move grub_chainloader_real_boot out of the kernel.
2163
2164 * grub-core/Makefile.am: Remove machine/loader.h.
2165 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
2166 Removed.
2167 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
2168 variable.
2169 (grub_relocator16_keep_a20_enabled): Likewise.
2170 (grub_relocator16_boot): Fill new variables.
2171 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
2172 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
2173 relocator.
2174 (grub_chainloader_unload): Likewise.
2175 (grub_chainloader_cmd): Likewise.
2176 * include/grub/i386/pc/loader.h: Removed.
2177 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
2178 and esi. All initialisers updated.
2179
2180 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2181 2011-11-12 Colin Watson <cjwatson@ubuntu.com>
2182
2183 * Makefile.util.def (grub-mount): New util.
2184 * .bzrignore: Add grub-mount.
2185 * configure.ac: Check for fuse and enable grub-mount if available.
2186 * docs/man/grub-mount.h2m: New file.
2187 * util/grub-mount.c: Likewise.
2188
2189 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2190
2191 * grub-core/commands/efi/fixvideo.c: Gettextize.
2192 * grub-core/commands/hashsum.c: Likewise.
2193 * grub-core/commands/i386/cmostest.c: Likewise.
2194 * grub-core/commands/i386/pc/drivemap.c: Likewise.
2195 * grub-core/commands/i386/pc/lsapm.c: Likewise.
2196 * grub-core/commands/i386/pc/sendkey.c: Likewise.
2197 * grub-core/commands/lsmmap.c: Likewise.
2198 * grub-core/commands/menuentry.c: Likewise.
2199 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
2200 * grub-core/commands/setpci.c: Likewise.
2201 * grub-core/loader/i386/bsd.c: Likewise.
2202 * grub-core/loader/i386/linux.c: Likewise.
2203 * util/getroot.c: Likewise.
2204 * util/grub-editenv.c: Likewise.
2205 * util/grub-fstest.c: Likewise.
2206 * util/grub-mkfont.c: Likewise.
2207 * util/grub-mkimage.c: Likewise.
2208 * util/grub-mkpasswd-pbkdf2.c: Likewise.
2209 * util/grub-pe2elf.c: Likewise.
2210 * util/grub-probe.c: Likewise.
2211 * util/grub-setup.c: Likewise.
2212 * util/ieee1275/ofpath.c: Likewise.
2213 * util/misc.c: Likewise.
2214 * util/raid.c: Likewise.
2215
2216 2011-11-11 Robert Millan <rmh@gnu.org>
2217
2218 * util/getroot.c (grub_util_get_geom_abstraction): Remove
2219 __attribute__((unused)) from `os_dev', which *is* being used.
2220
2221 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2222
2223 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
2224 forgotten define.
2225 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
2226 GRUB_IA64_DL_GOT_ALIGN.
2227 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
2228 GRUB_IA64_DL_TRAMP_ALIGN.
2229
2230 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2231
2232 Replace grub_fatal with normal errors in i386 linux loader.
2233
2234 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
2235 (allocate_pages): Check find_efi_mmap_size return value.
2236 (grub_e820_add_region): Return error.
2237 (grub_linux_boot): Check mmap return value.
2238
2239 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2240
2241 * grub-core/commands/acpihalt.c: Gettextized.
2242 * grub-core/commands/cacheinfo.c: Likewise.
2243 * grub-core/commands/cmp.c: Likewise.
2244 * grub-core/commands/efi/loadbios.c: Likewise.
2245 * grub-core/commands/gptsync.c: Likewise.
2246 * grub-core/commands/ieee1275/suspend.c: Likewise.
2247 * grub-core/commands/legacycfg.c: Likewise.
2248 * grub-core/commands/memrw.c: Likewise.
2249 * grub-core/commands/minicmd.c: Likewise.
2250 * grub-core/commands/parttool.c: Likewise.
2251 * grub-core/commands/time.c: Likewise.
2252 * grub-core/commands/videoinfo.c: Likewise.
2253 * grub-core/disk/geli.c: Likewise.
2254 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
2255 * grub-core/disk/luks.c: Likewise.
2256 * grub-core/disk/lvm.c: Likewise.
2257 * grub-core/font/font_cmd.c: Likewise.
2258 * grub-core/fs/zfs/zfscrypt.c: Likewise.
2259 * grub-core/fs/zfs/zfsinfo.c: Likewise.
2260 * grub-core/gfxmenu/view.c: Likewise.
2261 * grub-core/kern/emu/hostdisk.c: Likewise.
2262 * grub-core/kern/emu/main.c: Likewise.
2263 * grub-core/kern/emu/misc.c: Likewise.
2264 * grub-core/kern/emu/mm.c: Likewise.
2265 * grub-core/kern/mips/arc/init.c: Likewise.
2266 * grub-core/kern/mips/loongson/init.c: Likewise.
2267 * grub-core/kern/partition.c: Likewise.
2268 * grub-core/lib/i386/halt.c: Likewise.
2269 * grub-core/lib/mips/arc/reboot.c: Likewise.
2270 * grub-core/lib/mips/loongson/reboot.c: Likewise.
2271 * grub-core/loader/i386/pc/chainloader.c: Likewise.
2272 * grub-core/loader/i386/xnu.c: Likewise.
2273 * grub-core/loader/multiboot.c: Likewise.
2274 * grub-core/net/bootp.c: Likewise.
2275 * grub-core/net/net.c: Likewise.
2276 * grub-core/normal/term.c: Likewise.
2277 * grub-core/partmap/bsdlabel.c: Likewise.
2278 * grub-core/parttool/msdospart.c: Likewise.
2279 * grub-core/term/gfxterm.c: Likewise.
2280 * grub-core/term/terminfo.c: Likewise.
2281 * grub-core/video/i386/pc/vbe.c: Likewise.
2282 * util/grub-menulst2cfg.c: Likewise.
2283 * util/grub-mkdevicemap.c: Likewise.
2284 * util/grub-mklayout.c: Likewise.
2285 * util/grub-mkrelpath.c: Likewise.
2286 * util/grub-script-check.c: Likewise.
2287 * util/ieee1275/grub-ofpathname.c: Likewise.
2288 * util/resolve.c: Likewise.
2289
2290 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2291
2292 Support %1$d syntax.
2293
2294 * tests/printf_unit_test.c: New file.
2295 * Makefile.util.def (printf_test): New test.
2296 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
2297
2298 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2299
2300 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
2301 fix.
2302
2303 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2304
2305 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
2306 dprintf.
2307 * grub-core/font/font.c (grub_font_load): Likewise.
2308
2309 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2310
2311 * util/grub-macho2img.c: Add comment concerning gettext.
2312 * grub-core/lib/legacy_parse.c: Likewise.
2313
2314 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2315
2316 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
2317 (grub_xvasprintf): Likewise.
2318
2319 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2320
2321 Add const keyword to grub_env_get and gettextize week days.
2322
2323 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
2324 (grub_read_hook_datetime): Return const char *.
2325 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
2326 updated.
2327 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
2328 Mark for gettext.
2329 (grub_get_weekday_name): Return const char *. Call gettext.
2330 * grub-core/script/argv.c (grub_script_argv_append): Receive const
2331 char * and len as the argument. All users updated.
2332 (grub_script_argv_split_append): Receive const char *.
2333 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
2334 * include/grub/env.h (grub_env_get): Likewise.
2335 (grub_env_read_hook_t): Return const char *.
2336 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
2337 (grub_script_argv_split_append): Likewise.
2338
2339 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2340
2341 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
2342
2343 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2344
2345 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
2346 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
2347
2348 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2349
2350 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
2351 Fix prototype.
2352
2353 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2354
2355 Fix mips compilation.
2356
2357 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
2358 normal decoder.
2359 (hashes): Use in embed decoder as well (for sizes).
2360 (dec_stream_header): Fix embed decompressor logic.
2361 (dec_stream_footer): Likewise.
2362
2363 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2364
2365 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
2366 an error and not a fatal on unrecognised relocation types.
2367
2368 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2369
2370 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
2371 Issue error rather than printf on unknown arguments.
2372
2373 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2374
2375 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
2376 Make buf a const.
2377
2378 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2379
2380 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
2381 Fix module name.
2382
2383 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2384
2385 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
2386 leftover debug printf.
2387
2388 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2389
2390 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
2391
2392 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2393
2394 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
2395 A stylistic fix.
2396
2397 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2398
2399 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
2400
2401 2011-11-10 Shea Levy <slevy@tieronedesign.com>
2402
2403 Allow all modules to perform serial IO
2404
2405 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
2406 * include/grub/serial.h (grub_serial_port_configure): New inline
2407 function.
2408 (grub_serial_port_fetch): Likewise.
2409 (grub_serial_port_put): Likewise.
2410 (grub_serial_port_fini): Likewise.
2411 (grub_serial_find): New proto.
2412
2413 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2414
2415 Put symlink at the end of the node and fix a potential
2416 memory corruption.
2417
2418 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
2419 Make symlink into an array.
2420 (set_rockridge): Set have_symlink and alloc_dirents.
2421 (grub_iso9660_read_symlink): Use new layout.
2422 (grub_iso9660_iterate_dir): Fix memory corruption.
2423 Use new layout.
2424 (grub_iso9660_dir): Set have_symlink.
2425 (grub_iso9660_open): Likewise.
2426
2427 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2428
2429 Remove local keyword.
2430
2431 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
2432 (version_test_gt): Likewise.
2433 (version_find_latest): Likewise.
2434 (gettext_printf): Likewise.
2435 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
2436
2437 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2438
2439 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
2440
2441 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2442
2443 Fix ZFS memory and resource leaks.
2444
2445 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
2446 All users updated.
2447 Free type on exit.
2448 (fill_vdev_info): New parameter inserted. All users updated.
2449 (check_pool_label): Likewise.
2450 (scan_disk): Likewise.
2451 (scan_devices): Close non-inserted disks.
2452 (fzap_iterate): Free l.
2453 (unmount_device): Free children descripto memory.
2454
2455 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2456
2457 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
2458 argument (access out of bounds).
2459
2460 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2461
2462 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
2463 >= 6 drives.
2464
2465 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2466
2467 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
2468 Fix declaration.
2469
2470 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
2471
2472 Fix several memory leaks.
2473
2474 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
2475 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
2476 (grub_cpio_dir): Likewise.
2477 * grub-core/fs/fat.c (grub_fat_label): Likewise.
2478 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
2479 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
2480 (grub_romfs_label): Likewise.
2481 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
2482 (squash_unmount): New function.
2483 (grub_squash_dir): Fix memory leak.
2484 (grub_squash_open): Likewise.
2485 (grub_squash_read): Likewise.
2486 (grub_squash_mtime): Likewise.
2487 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
2488 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
2489 * util/grub-fstest.c (fstest): Likewise.
2490
2491 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
2492
2493 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
2494 avoid accessing beyond the array.
2495
2496 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
2497
2498 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
2499
2500 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
2501
2502 Several AFFS fixes.
2503
2504 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
2505 (GRUB_AFFS_FLAG_FFS): Removed.
2506 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
2507 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
2508 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
2509 (grub_fshelp_node): Make block 32-bit.
2510 Add block_cache and last_block_cache.
2511 (grub_affs_read_block): Fill and use block cache.
2512 (grub_affs_read_file): Removed.
2513 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
2514 boot block.
2515 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
2516 safety.
2517 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
2518 space.
2519 (grub_affs_close): Free block cache.
2520 (grub_affs_read): Use grub_fshelp_read_file directly.
2521
2522 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2523
2524 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
2525 with no error set.
2526
2527 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2528
2529 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
2530 used variable.
2531 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
2532 Likewise.
2533
2534 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2535
2536 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
2537
2538 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
2539 byteswap when needed.
2540
2541 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2542
2543 Fix FreeBSD compilation.
2544
2545 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
2546 to avoid circular dependency.
2547 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
2548 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
2549 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
2550
2551 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2552
2553 Fix ZFS crypto error types.
2554
2555 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
2556 (grub_gcm_decrypt): Likewise.
2557 (grub_zfs_load_key_real): Fix error code type. Handle possible error
2558 from PBKDF2.
2559
2560 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2561
2562 Illumos support.
2563
2564 * Makefile.util.def (10_illumos): New script.
2565 * configure.ac: Set COND_HOST_ILLUMOS.
2566 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
2567 Support Illumos calls.
2568 (find_partition_start) [__sun__]: Likewise.
2569 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
2570 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
2571 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
2572 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
2573 device.
2574 * util/grub-probe.c (probe) [__sun__]: Do character check.
2575 * util/grub.d/10_illumos.in: New file.
2576
2577 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2578
2579 Support escaped commas in hostdisk.
2580
2581 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
2582 (find_grub_drive): Use unescape_cmp.
2583 (make_device_name): Escape commas.
2584
2585 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2586
2587 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
2588
2589 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2590
2591 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
2592 variable.
2593
2594 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2595
2596 Support trampoline jumps on powerpc.
2597
2598 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
2599 __ia64__ path.
2600 (grub_dl_load_segments): Set mod->sz.
2601 (grub_dl_flush_cache): Flush whole space occupied by module, not just
2602 segments.
2603 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
2604 (jump): Likewise.
2605 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
2606 function.
2607 (trampoline): New struct.
2608 (trampoline_template): New const.
2609 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
2610 * include/grub/dl.h (grub_dl): Add sz element.
2611 [__powerpc__]: Follow __ia64__.
2612 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
2613 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
2614 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
2615 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
2616
2617 2011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
2618
2619 ZFS crypto support.
2620
2621 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
2622 * grub-core/Makefile.core.def (zfscrypt): New module.
2623 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
2624 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
2625 it. All users updated.
2626 (grub_zfs_decrypt): New var.
2627 (grub_zfs_load_key): Likewise.
2628 (zio_checksum_functions): Add SHA256+MAC.
2629 (zio_checksum_verify): Handle incomplete comparison due to MAC.
2630 (zio_read): Handle encrypted blocks.
2631 (zap_verify): Remove incorrect check.
2632 (fzap_iterate): Handle non-standard fzap.
2633 (zap_iterate): Likewise.
2634 (zap_iterate_u64): New function.
2635 (dnode_get_fullpath): Load keys.
2636 * grub-core/fs/zfs/zfscrypt.c: New file.
2637 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
2638 (grub_crypto_ecb_encrypt): Make input const.
2639 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
2640 (grub_crypto_ecb_encrypt): Make input const.
2641 (GRUB_CIPHER_AES): New macro.
2642 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
2643 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
2644 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
2645 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
2646 prefix. All users updated.
2647 (grub_zfs_add_key): New proto.
2648 (grub_zfs_decrypt): Likewise.
2649 (grub_zfs_load_key): Likewise.
2650 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
2651 * util/grub-fstest.c (options): Add -K option.
2652 (argp_parser): Likewise.
2653
2654 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
2655
2656 Support zle compression on ZFS.
2657
2658 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
2659 (decomp_table): Add zle.
2660 * include/grub/zfs/zio.h (zio_compress): Add zle.
2661
2662 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
2663
2664 Support BtrFS embedding.
2665
2666 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
2667 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
2668 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
2669 * util/grub-setup.c (setup): Use fs embedding if available.
2670 Add additional sanity check.
2671
2672 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
2673
2674 * util/grub-install.in: Fix condition for config_opt.
2675
2676 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
2677
2678 Support third redundancy strip on raidz3.
2679
2680 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
2681 Return error on singularity. All users updated.
2682 (read_device): Don't stop on 3rd failure on raidz3.
2683
2684 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
2685
2686 Support case-insensitive ZFS subvolumes.
2687
2688 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
2689 All users updated.
2690 (zap_hash): Likewise.
2691 (name_cmp): New function.
2692 (zap_leaf_array_equal): New parameter case_insensitive.
2693 All users updated.
2694 (zap_leaf_lookup): Likewise.
2695 (fzap_lookup): Likewise.
2696 (zap_lookup): Likewise.
2697 (dnode_get_path): New parameter case_insensitive. Retrieve case
2698 sensitiviness of a volume. All users updated.
2699 (dnode_get_fullpath): New parameter case_insensitive.
2700 All users updated.
2701 (grub_zfs_dir): Set info.case_insensitiveness.
2702
2703 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
2704
2705 Support second redundancy strip on raidz(2,3).
2706
2707 * grub-core/fs/zfs/zfs.c (powx): New array.
2708 (powx_inv): Likewise.
2709 (poly): New const.
2710 (xor_out): New function.
2711 (gf_mul): Likewise.
2712 (recovery): Likewise.
2713 (read_device): Use second redundancy strip.
2714
2715 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
2716
2717 Use a power of generator representation of GF(256) multiplication group
2718 to save space time and complexity.
2719
2720 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
2721 (raid6_table2): Likewise.
2722 (powx): New array.
2723 (powx_inv): Likewise.
2724 (poly): New const.
2725 (grub_raid_block_mul): Replace with ...
2726 (grub_raid_block_mulx): ...this.
2727 (grub_raid6_init_table): Rewritten.
2728 (grub_raid6_recover): Use power of generator representation.
2729
2730 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
2731
2732 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
2733 for the right device.
2734
2735 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
2736
2737 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
2738 expected by grub-mkimage and it's more clear since there is no implicit
2739 padding.
2740
2741 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
2742
2743 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
2744 disk.
2745 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
2746
2747 2011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
2748
2749 * util/grub-mkrescue.in: Fix handling xorriso option.
2750
2751 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
2752
2753 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
2754 NULL.
2755
2756 2011-11-03 crocket <crockabiscuit@gmail.com>
2757
2758 * util/grub.d/10_linux.in: Add Slackware initrd naming.
2759
2760 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
2761
2762 XZ CRC64 and SHA256 support.
2763
2764 * Makefile.util.def (libgrubmods): Add crc64.c.
2765 * grub-core/Makefile.core.def (crc64): New module.
2766 * grub-core/lib/crc64.c: New file.
2767 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
2768 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
2769 Fix the type.
2770 (MAX_HASH_SIZE): New define.
2771 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
2772 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
2773 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
2774 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
2775 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
2776 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
2777 Handle non-crc32 hashes.
2778 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
2779 (dec_stream_header): Handle non-crc32 hashes.
2780 (dec_stream_footer): Likewise.
2781 (dec_block_header): Likewise.
2782 (dec_main): Likewise.
2783 (xz_dec_init): Likewise.
2784 (xz_dec_reset): Likewise.
2785 (xz_dec_end): Likewise.
2786 * util/import_gcry.py: Add CRC64 line.
2787
2788 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
2789
2790 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
2791 as well.
2792
2793 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
2794
2795 Make reiserfs label retrieval similar to other *_label functions.
2796
2797 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
2798 (REISERFS_MAX_LABEL_LENGTH): Removed.
2799 (REISERFS_LABEL_OFFSET): Likewise.
2800 (grub_reiserfs_label): Rewritten.
2801
2802 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
2803
2804 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
2805 field.
2806
2807 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
2808
2809 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
2810
2811 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
2812
2813 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
2814 drive failure on both raidz and raidz2.
2815
2816 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
2817
2818 Fix RAIDZ(2) for >= 5 devices.
2819
2820 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
2821 asize argument. All users updated.
2822
2823 2011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
2824
2825 Fix RAIDZ(2).
2826
2827 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
2828 (fill_vdev_info_real): Set ashift.
2829 (read_device): Rewrite RAIDZ part based on reverse engineering.
2830
2831 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
2832
2833 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
2834 don't report potentially unavialiable fields in debug output.
2835 (find_path): Fix double-free and memory leak.
2836
2837 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
2838
2839 Read label on UFS1.
2840
2841 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
2842 (grub_ufs_fs): Always set .label.
2843
2844 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
2845
2846 Use shifts in UFS.
2847
2848 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
2849 (grub_ufs_data): New field log2_blksz.
2850 (grub_ufs_read_file): Use shifts.
2851 (grub_ufs_mount): Check block size and logarithm it.
2852
2853 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
2854
2855 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
2856 long symlinks.
2857
2858 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
2859
2860 Handle symlinks and long names on tar and cpio.
2861
2862 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
2863 (ATTR_FILE): Likewise.
2864 (ATTR_DIR): Likewise.
2865 (ATTR_LNK): Likewise.
2866 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
2867 (grub_cpio_find_file): Fill mode, handle linkname field as well as
2868 L and K entries.
2869 (grub_cpio_mount): Zero-fill data.
2870 (handle_symlink): New function.
2871 (grub_cpio_dir): Handle symlinks.
2872 (grub_cpio_open): Likewise.
2873 (grub_cpio_close) [MODE_USTAR]: Free linkname.
2874
2875 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
2876
2877 Fix iso9660 filename limitations and fix memory leaks.
2878
2879 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
2880 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
2881
2882 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
2883
2884 Fix JFS file name length limitations.
2885
2886 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
2887 (grub_jfs_diropen): Fix maximum filename length.
2888 (grub_jfs_getent): Fix filename length.
2889 (grub_jfs_lookup_symlink): Fix size checks.
2890
2891 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
2892
2893 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
2894 string.
2895
2896 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
2897
2898 Leverage BFS implementation to read AFS.
2899
2900 * Makefile.util.def (libgrubmods): Add afs.c.
2901 * grub-core/Makefile.core.def (afs): New module
2902 * grub-core/fs/afs.c: New file.
2903 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
2904
2905 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
2906
2907 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
2908
2909 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
2910
2911 * grub-core/fs/bfs.c: Run indent.
2912
2913 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
2914
2915 BFS implementation based on the specification.
2916
2917 * grub-core/fs/bfs.c: New file.
2918 * Makefile.util.def (libgrubmods): Add bfs.c.
2919 * grub-core/Makefile.core.def (bfs): New module.
2920
2921 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
2922
2923 * util/grub-fstest.c (cmd_cp): Clarify error message.
2924 (cmd_cmp): Likewise.
2925
2926 2011-10-30 Yves Blusseau <blusseau@zetam.org>
2927
2928 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
2929 and befs_be.
2930
2931 2011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
2932
2933 Remove afs and befs because of copyright problem.
2934
2935 * grub-core/fs/afs.c: Removed.
2936 * grub-core/fs/afs_be.c: Removed.
2937 * grub-core/fs/befs.c: Removed.
2938 * grub-core/fs/befs_be.c: Removed.
2939 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
2940 * grub-core/Makefile.core.def (afs): Removed.
2941 (afs_be): Likewise.
2942 (befs): Likewise.
2943 (befs_be): Likewise.
2944
2945 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
2946
2947 Prefer rockridge over Joliet.
2948
2949 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
2950 to ...
2951 (set_rockridge): ... here.
2952 (grub_iso9660_mount): Check rockridge on the primary label when
2953 discovering. Ignore Joliet if Rockridge is present.
2954
2955 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
2956
2957 Use shifts in nilfs2.
2958
2959 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
2960 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
2961 (grub_nilfs2_palloc_entries_per_group): Replace with ...
2962 (grub_nilfs2_log_palloc_entries_per_group): ... this.
2963 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
2964 (grub_nilfs2_entries_per_block): Replaced with ...
2965 (grub_nilfs2_log_entries_per_block_log): ... this.
2966 (grub_nilfs2_blocks_per_group): Replaced with ...
2967 (grub_nilfs2_blocks_per_group_log): ... this.
2968 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
2969 (grub_nilfs2_blocks_per_desc_block_log): ... this.
2970 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
2971 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
2972 (grub_nilfs2_palloc_entry_offset): Replaced ...
2973 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
2974 (grub_nilfs2_dat_translate): Use shifts.
2975 (grub_nilfs2_read_inode): Likewise.
2976 (GRUB_MOD_INIT): Ensure that logs are correct.
2977
2978 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
2979
2980 Use shifts in minix filesystem.
2981
2982 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
2983 (GRUB_MINIX_ZONE2SECT): Likewise.
2984 (grub_minix_data): Replace block_size with log_block_size.
2985 (grub_minix_read_file): Use shifts.
2986 (grub_minix_mount): Check block size and take a logarithm.
2987
2988 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
2989
2990 Use shifts in squash4.
2991
2992 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
2993 (squash_mount): Check block size and take logarithm.
2994 (direct_read): Use shifts.
2995
2996 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
2997
2998 Correct befs block counting logic.
2999
3000 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
3001 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
3002 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
3003 (grub_afs_read_inode): Use block_shift.
3004 (RANGE_SHIFT): New definition.
3005 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
3006 unexpected conditions, use shifts and appropriate types.
3007 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
3008
3009 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3010
3011 * grub-core/disk/raid.c (scan_devices): Check partition.
3012 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
3013
3014 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3015
3016 Support BFS (befs) UUID.
3017
3018 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
3019 (grub_afs_small_data_element_header): New struct.
3020 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
3021 (grub_afs_read_attribute) [MODE_BFS]: New function.
3022 (grub_afs_iterate_dir): Allocate for complete inode.
3023 (grub_afs_mount): Likewise.
3024 (grub_afs_uuid) [MODE_BFS]: New function.
3025 (grub_afs_fs) [MODE_BFS]: Add .uuid.
3026
3027 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3028
3029 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
3030 (zfs_unmount): Fix memory leak.
3031
3032 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3033
3034 Support NTFS reparse points.
3035
3036 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
3037 (symlink_descriptor): New struct.
3038 (grub_ntfs_read_symlink): New function.
3039 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
3040 (grub_ntfs_open): Likewise.
3041
3042 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3043
3044 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
3045
3046 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3047
3048 fstest xnu_uuid subcommand.
3049
3050 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
3051 grub-core/commands/xnu_uuid.c.
3052 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
3053 (fstest): Handle xnu_uuid.
3054 (options): Document xnu_uuid.
3055 (argp_parser): Parse xnu_uuid.
3056
3057 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3058
3059 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
3060 -l argument. Add newline at the end if printing.
3061 (GRUB_MOD_INIT): Document -l.
3062
3063 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3064
3065 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
3066
3067 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3068
3069 ZFS multi-device and version 33 support.
3070
3071 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
3072 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
3073 (grub_zfs_data): Add multidev-ice-related fields.
3074 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
3075 (dva_get_offset): Make dva const.
3076 (zfs_fetch_nvlist): New function.
3077 (fill_vdev_info_real): Likewise.
3078 (fill_vdev_info): Likewise.
3079 (check_pool_label): Likewise.
3080 (scan_disk): Likewise.
3081 (scan_devices): Likewise.
3082 (read_device): Likewise.
3083 (read_dva): Likewise.
3084 (zio_read_gang): Use read_dva.
3085 (zio_read_data): Likewise.
3086 (zap_leaf_lookup): Add missing endian conversion.
3087 (zap_verify): Add missing endian conversion. All users updated.
3088 (fzap_lookup): Likewise.
3089 (fzap_iterate): Likewise.
3090 (dnode_get_path): Handle SA bonus.
3091 (nvlist_find_value): Make input const. All users updated.
3092 (unmount_device): New function.
3093 (zfs_unmount): Use unmount_device.
3094 (zfs_mount): Use scan_disk.
3095 (zfs_mtime): New function.
3096 (grub_zfs_open): Handle system attributes.
3097 (fill_fs_info): Likewise.
3098 (grub_zfs_dir): Likewise.
3099 (grub_zfs_fs): Add mtime.
3100 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
3101 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
3102 (SA_MTIME_OFFSET): Likewise.
3103 (SA_SYMLINK_OFFSET): Likewise.
3104 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
3105 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
3106 (fstest): Support zfsinfo.
3107 (argp_parser): Likewise.
3108
3109 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3110
3111 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
3112 error.
3113
3114 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3115
3116 ZFS fixes.
3117
3118 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
3119 sharing the same block. Iterate over correct number of indices.
3120 (dnode_get_path): Handle symlinks correctly.
3121
3122 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3123
3124 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
3125
3126 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3127
3128 Read label on HFS+.
3129
3130 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
3131 (grub_hfsplus_btree_search): Fix types.
3132 (grub_hfsplus_label): Implement.
3133
3134 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3135
3136 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
3137
3138 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3139
3140 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
3141
3142 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3143
3144 Fix symlink handling on iso9660.
3145
3146 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
3147 All users updated.
3148 (grub_iso9660_susp_iterate): Accept zero-size iterate.
3149 (grub_iso9660_read_symlink): Moved most of code ...
3150 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
3151
3152 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3153
3154 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
3155 Use union to avoid breaking strict-aliasing rules.
3156
3157 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3158
3159 Support multi-extent iso files.
3160
3161 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
3162 Add node.
3163 (grub_fshelp_node): Revamp. All users updated.
3164 (FLAG_*): New enum.
3165 (read_node): New function.
3166 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
3167 All users updated.
3168 (grub_iso9660_mount): Don't attempt to read sua when there is none.
3169 (get_node_size): New function.
3170 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
3171 entries.
3172 Fix memory leak on . and ..
3173 (grub_iso9660_read): Use read_node.
3174 (grub_iso9660_close): Free node.
3175
3176 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3177
3178 Fix tar 4G limit and handle paths containing dot.
3179
3180 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
3181 (canonicalize): New function.
3182 (grub_cpio_find_file): Use canonicalize. Store offs in
3183 grub_disk_addr_t.
3184 (grub_cpio_dir): Use grub_disk_addr_t.
3185 (grub_cpio_open): Likewise.
3186
3187 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3188
3189 Fix handling of uncompressed blocks on squashfs and break 4G limit.
3190
3191 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
3192 unused flags.
3193 (grub_squash_inode): Add long_file and block_size.
3194 (grub_squash_cache_inode): New struct.
3195 (grub_squash_dirent): Make types into enum.
3196 (SQUASH_TYPE_LONG_REGULAR): New type.
3197 (grub_squash_frag_desc): Add field size.
3198 (SQUASH_BLOCK_FLAGS): New enum.
3199 (grub_squash_data): Use grub_squash_cache_inode.
3200 (grub_fshelp_node): Make ino_chunk 64-bit.
3201 (read_chunk): Minor argument change. All users updated.
3202 (squash_mount): Use correct le_to_cpu.
3203 (grub_squash_open): Handle LONG_REGULAR.
3204 (direct_read): New function.
3205 (grub_squash_read_data): Handle blocks correctly.
3206
3207 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3208
3209 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
3210
3211 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3212
3213 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
3214
3215 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
3216
3217 Fix 2G limit on ZFS.
3218
3219 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
3220 types.
3221 (uberblock_verify): Likewise.
3222 (dmu_read): Likewise.
3223 (grub_zfs_read): Likewise. Remove invalid cast.
3224
3225 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
3226
3227 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
3228 (grub_jfs_blkno): Fix incorrect shift.
3229 (grub_jfs_read_file): Use more appropriate types.
3230
3231 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
3232
3233 Support triple indirect on minix2 and minix3.
3234
3235 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
3236 Declare triple_indir_zone.
3237 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
3238 indirect.
3239
3240 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
3241
3242 Minix FS fixes.
3243
3244 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
3245 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
3246 Rename ctime to mtime. All users updated.
3247 (grub_minix_get_file_block): Fix types and double indirect computations.
3248
3249 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
3250
3251 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
3252 if no label is found.
3253 (grub_fat_iterate_dir): Fix file size type.
3254 (grub_fat_iterate_dir): Likewise.
3255
3256 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
3257
3258 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
3259 save some space.
3260 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
3261 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
3262
3263 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
3264
3265 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
3266
3267 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
3268
3269 * util/import_gcry.py: Accept space between # and include.
3270
3271 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
3272
3273 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
3274
3275 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
3276
3277 Fine grainely disable warnings on lexer. Remove Wno-error on it.
3278
3279 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
3280 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
3281 yylex_strncpy.
3282 * grub-core/script/yylex.l: Add fine-grained #pragma.
3283
3284 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
3285
3286 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
3287 New inline function.
3288 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
3289 Likewise.
3290 (memset) [GRUB_UTIL]: Likewise.
3291 (memcmp) [GRUB_UTIL]: Likewise.
3292
3293 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
3294
3295 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
3296 inline function rather than a define.
3297
3298 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
3299
3300 * util/grub-setup.c: Add missing include.
3301
3302 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
3303
3304 * util/ieee1275/grub-ofpathname.c: Add missing include.
3305
3306 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
3307
3308 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
3309 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
3310 Likewise.
3311
3312 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
3313
3314 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
3315 grub_memcmp usage.
3316
3317 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
3318
3319 * util/grub-install.in: Add datarootdir as per automake manual
3320 suggestion.
3321 * util/grub-mknetdir.in: Likewise.
3322
3323 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
3324
3325 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
3326 suggestion.
3327 * util/grub.d/10_kfreebsd.in: Likewise.
3328 * util/grub.d/10_linux.in: Likewise.
3329 * util/grub.d/10_netbsd.in: Likewise.
3330 * util/grub.d/10_windows.in: Likewise.
3331 * util/grub.d/20_linux_xen.in: Likewise.
3332
3333 2011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3334
3335 Remove redundant grub_kernel_image_size.
3336
3337 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
3338 _edata and _start.
3339 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
3340 the small code. It moves it only by few bytes but simplifies the code.
3341 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
3342 _start.
3343 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
3344 (grub_kernel_image_size): Removed.
3345 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
3346 (grub_kernel_image_size): Removed.
3347 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
3348 compiled with Apple toolchain.
3349 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
3350 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
3351 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
3352 (grub_total_module_size): Likewise.
3353 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
3354 Removed.
3355 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
3356 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
3357 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
3358 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
3359 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
3360 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
3361 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
3362 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
3363 Removed.
3364 (grub_total_module_size): Removed.
3365 * util/grub-mkimage.c (image_target_desc): Remove image_size.
3366 (image_targets): Likewise.
3367 Set .compressed_size to no field on sparc.
3368 (generate_image): Remove kernel_image_size handling.
3369
3370 2011-10-19 Szymon Janc <szymon@janc.net.pl>
3371
3372 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
3373 NULL pointer dereference.
3374
3375 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3376
3377 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
3378 done with a dedicated section.
3379
3380 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
3381 Ensure the correct position of boot_path.
3382 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
3383 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
3384 other fields.
3385 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
3386 * include/grub/boot.h: Removed. All references removed.
3387 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
3388 Removed.
3389 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
3390
3391 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3392
3393 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
3394 name.
3395
3396 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3397
3398 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
3399
3400 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3401
3402 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
3403 Don't add the bogus brackets.
3404
3405 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3406
3407 ExFAT support.
3408
3409 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
3410 * grub-core/Makefile.core.def (exfat): New module.
3411 * grub-core/fs/exfat.c: New file.
3412 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
3413 (GRUB_FAT_ATTR_*): Make into an enum.
3414 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
3415 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
3416 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
3417 (GRUB_FAT_MAXFILE): Removed.
3418 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
3419 (grub_current_fat_bpb_t): New type.
3420 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
3421 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
3422 (grub_fat_dir_node_t): New type.
3423 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
3424 (fat_log2) [MODE_EXFAT]: Removed.
3425 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
3426 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
3427 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
3428 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
3429 (grub_fat_label) [MODE_EXFAT]: New function.
3430 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
3431 reserved_first_sector to 0.
3432
3433 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3434
3435 Move grub_reboot out of the kernel.
3436
3437 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
3438 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
3439 * grub-core/lib/efi/reboot.c: ... here.
3440 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
3441 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
3442 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
3443 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
3444 * grub-core/lib/i386/reboot_trampoline.S: ... here.
3445 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
3446 * grub-core/lib/ieee1275/reboot.c: ... here.
3447 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
3448 * grub-core/lib/mips/arc/reboot.c: ... here.
3449 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
3450 * grub-core/lib/mips/loongson/reboot.c: ...here.
3451 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
3452 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
3453 * include/grub/emu/misc.h (grub_reboot): New function declaration.
3454 * include/grub/i386/reboot.h: New file.
3455 * include/grub/mips/loongson/ec.h: Fix includes.
3456 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
3457 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
3458 * grub-core/lib/i386/reboot.c: New file.
3459
3460 2011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3461
3462 Make grub_prefix into module to fix the arbitrary limit and save
3463 some space.
3464
3465 * grub-core/kern/emu/main.c (grub_prefix): Removed.
3466 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
3467 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
3468 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
3469 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
3470 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
3471 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
3472 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
3473 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
3474 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
3475 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
3476 * include/grub/ia64/efi/kernel.h: Removed.
3477 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
3478 (grub_prefix): Removed.
3479 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
3480 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
3481 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
3482 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
3483 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
3484 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
3485 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
3486 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
3487 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
3488 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
3489 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
3490 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
3491 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
3492 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
3493 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
3494 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
3495 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
3496 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
3497 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
3498 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
3499 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
3500 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
3501 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
3502 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
3503 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
3504 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
3505 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
3506 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
3507 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
3508 from module.
3509 * util/grub-mkimage.c (image_target_desc): Removed prefix and
3510 prefix_end.
3511 (image_targets): Likewise.
3512 (generate_image): Put prefix as a module.
3513
3514 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
3515
3516 Replace grub_module_iterate with FOR_MODULES.
3517
3518 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
3519 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
3520 (grub_efi_modules_addr): ...this.
3521 * grub-core/kern/efi/init.c (grub_modbase): New variable.
3522 (grub_efi_init): Set grub_modbase.
3523 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
3524 (grub_modbase): New variable.
3525 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
3526 (grub_modbase): New variable.
3527 (grub_machine_init): Set grub_modbase.
3528 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
3529 (grub_modbase): New variable.
3530 (grub_machine_init): Set grub_modbase.
3531 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
3532 (grub_modbase): New variable.
3533 (grub_machine_init): Set grub_modbase.
3534 * grub-core/kern/main.c (grub_module_iterate): Remove.
3535 (grub_modules_get_end): Use grub_modbase.
3536 (grub_load_modules): Use FOR_MODULES.
3537 (grub_load_config): Likewise.
3538 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
3539 (grub_modbase): New variable.
3540 (grub_machine_init): Set grub_modbase.
3541 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
3542 (grub_modbase): New variable.
3543 (grub_machine_init): Set grub_modbase.
3544 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
3545 Removed.
3546 (grub_modbase): New variable.
3547 (grub_machine_init): Set grub_modbase.
3548 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
3549 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
3550 (grub_module_iterate): Likewise.
3551 (grub_modbase): New variable declaration.
3552 (FOR_MODULES): New macro.
3553
3554 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
3555
3556 * configure.ac: Check for __ctzdi2 and __ctzsi2.
3557 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
3558
3559 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
3560
3561 Fix few obvious type discrepancies.
3562
3563 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
3564 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
3565 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
3566 variable.
3567 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
3568 and connected types.
3569 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
3570 offset.
3571 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
3572 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
3573 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
3574 and connected types.
3575
3576 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
3577
3578 Fix python 3.x incompatibilities.
3579
3580 * gentpl.py: Put brackets around print strings.
3581 * util/import_gcry.py: Open explicitly as utf-8.
3582 Use in instead of has_key.
3583
3584 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
3585
3586 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
3587 (GRUB_XFS_INO_AGBITS): Make into inline function.
3588 (GRUB_XFS_INO_INOINAG): Likewise.
3589 (GRUB_XFS_INO_AG): Likewise.
3590 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
3591 (GRUB_XFS_EXTENT_OFFSET): Likewise.
3592 (GRUB_XFS_EXTENT_BLOCK): Likewise.
3593 (GRUB_XFS_EXTENT_SIZE): Likewise.
3594 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
3595 (GRUB_XFS_NEXT_DIRENT): Likewise.
3596 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
3597 (grub_xfs_read_file): Fix offset type.
3598
3599 2011-10-15 Robert Millan <rmh@gnu.org>
3600
3601 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
3602
3603 2011-10-15 Robert Millan <rmh@gnu.org>
3604
3605 Fix build problem on FreeBSD and GNU/kFreeBSD.
3606
3607 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
3608
3609 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
3610
3611 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
3612
3613 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
3614 types.
3615 (grub_hfsplus_btree_recoffset): Likewise.
3616 (grub_hfsplus_btree_recptr): Likewise.
3617 (grub_hfsplus_find_block): Likewise.
3618 (grub_hfsplus_btree_search): Likewise.
3619 (grub_hfsplus_read_block): Likewise.
3620 (grub_hfsplus_read_file): Likewise.
3621 (grub_hfsplus_mount): Likewise.
3622 (grub_hfsplus_btree_iterate_node): Likewise.
3623 (grub_hfsplus_btree_search): Likewise.
3624 (grub_hfsplus_iterate_dir): Likewise.
3625 (grub_hfsplus_read): A small code simplification.
3626
3627 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
3628
3629 * grub-core/kern/emu/hostdisk.c
3630 (convert_system_partition_to_system_disk): Don't assume that children
3631 of mapper nodes are mapper nodes.
3632
3633 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
3634
3635 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
3636 * include/grub/misc.h (grub_isxdigit): New function.
3637 * grub-core/video/colors.c (my_isxdigit): Removed. All users
3638 switched to grub_isxdigit.
3639 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
3640 number starting with a letter.
3641
3642 2011-10-09 Robert Millan <rmh@gnu.org>
3643
3644 LVM support for FreeBSD and GNU/kFreeBSD.
3645
3646 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
3647 GNU/kFreeBSD.
3648 (LVM_DEV_MAPPER_STRING): Move from here ...
3649 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
3650 * util/getroot.c: Include `<grub/util/lvm.h>'.
3651 (grub_util_get_dev_abstraction): Enable
3652 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
3653 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
3654 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
3655 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
3656 support it.
3657 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
3658 GNU/kFreeBSD.
3659 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
3660 when LVM abstraction is required for ${GRUB_DEVICE}.
3661
3662 2011-10-06 Szymon Janc <szymon@janc.net.pl>
3663
3664 Add support for LZO compression in GRUB:
3665 - import of minilzo library,
3666 - LZO decompression for btrfs,
3667 - lzop files decompression.
3668
3669 * grub-core/io/lzopio.c: New file.
3670 * grub-core/lib/adler32.c: Likewise.
3671 * grub-core/lib/minilzo/lzoconf.h: Likewise.
3672 * grub-core/lib/minilzo/lzodefs.h: Likewise.
3673 * grub-core/lib/minilzo/minilzo.c: Likewise.
3674 * grub-core/lib/minilzo/minilzo.h: Likewise.
3675 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
3676 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
3677 grub-core/lib/minilzo/minilzo.c to common.
3678 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
3679 cflags in cppflags.
3680 * grub-core/Makefile.core.def (btrfs): Likewise.
3681 * grub-core/Makefile.core.def (lzopio): New module.
3682 (adler32): Likewise.
3683 * grub-core/fs/btrfs.c: Include minilzo.h.
3684 (GRUB_BTRFS_COMPRESSION_LZO): New define.
3685 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
3686 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
3687 (grub_btrfs_lzo_decompress): New function.
3688 (grub_btrfs_extent_read): Add support for LZO compression type.
3689 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
3690 (GRUB_USHRT_MAX): Likewise.
3691 (GRUB_UINT_MAX): Likewise.
3692 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
3693 (UINT_MAX): Likewise.
3694 (CHAR_BIT): Likewise.
3695 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
3696 grub-core/lib/posix_wrap/limits.h
3697 (UCHAR_MAX): Likewise.
3698 * include/grub/file.h (grub_file_filter_id): New compression filter
3699 GRUB_FILE_FILTER_LZOPIO.
3700 * include/grub/file.h (grub_file_filter_id): Set
3701 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
3702 * include/grub/types.h (grub_get_unaligned16): New function.
3703 (grub_get_unaligned32): Likewise.
3704 (grub_get_unaligned64): Likewise.
3705 * util/import_gcry.py (cryptolist): Add adler32.
3706
3707 2011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
3708
3709 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
3710 in perspective decreases the complexity of build system and fixes
3711 compilation right now.
3712
3713 2011-10-01 Ales Nesrsta <starous@volny.cz>
3714
3715 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
3716 (fixed problem related to using UHCI with coreboot).
3717
3718 2011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
3719
3720 * gentpl.py: Use Autogen macros so that the output template file
3721 (Makefile.tpl) size is reduced.
3722
3723 2011-09-29 Mads Kiilerich <mads@kiilerich.com>
3724
3725 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
3726 extra_dist.
3727
3728 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
3729
3730 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
3731 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
3732
3733 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
3734
3735 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
3736 _fullpath.
3737
3738 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
3739
3740 Remove extra declaration of sleep for mingw32.
3741
3742 * util/misc.c (sleep) [__MINGW32__]: Removed.
3743 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
3744
3745 2011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
3746
3747 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
3748 type and packname.
3749 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
3750 Resurrected.
3751 (NETBSD_BTINFO_BOOTWEDGE): New definition.
3752 (grub_netbsd_btinfo_bootwedge): New struct.
3753 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
3754 New function.
3755 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
3756
3757 2011-09-28 Thomas Haller <thomas.haller@fen-net.de>
3758
3759 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
3760 loader.
3761
3762 2011-09-28 Andreas Born <futur.andy@googlemail.com>
3763
3764 Fix incorrect identifiers in bash-completion.
3765
3766 * util/bash-completion.d/grub-completion.bash.in
3767 (_grub_mkpasswd-pbkdf2): Rename to ...
3768 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
3769 (_grub_script-check): Rename to ...
3770 (_grub_script_check): ... this. All users updated.
3771
3772 2011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
3773
3774 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
3775 Return 0 if disk isn't biosdisk.
3776
3777 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
3778
3779 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
3780 on NetBSD.
3781 * Makefile.util.def (grub-fstest): Likewise.
3782
3783 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
3784
3785 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
3786 Get sector size from disk label.
3787
3788 2011-09-05 Colin Watson <cjwatson@ubuntu.com>
3789
3790 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
3791 */README* as well as README*.
3792 Reported by: Axel Beckert.
3793
3794 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
3795
3796 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
3797 case of less than 256 MiB of RAM.
3798
3799 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
3800
3801 * grub-core/commands/wildcard.c (make_regex): Handle @.
3802
3803 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
3804
3805 * util/grub-install.in: Move cryptodisk logic to appropriate place.
3806
3807 2011-08-21 Szymon Janc <szymon@janc.net.pl>
3808
3809 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
3810 AC_LANG_CONFTEST macros.
3811
3812 2011-08-20 Szymon Janc <szymon@janc.net.pl>
3813
3814 Add grub-fstest option to uncompress data for commands.
3815
3816 * util/grub-fstest.c (uncompress): New var.
3817 (options): New option -u.
3818
3819 2011-08-20 Szymon Janc <szymon@janc.net.pl>
3820
3821 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
3822 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
3823
3824 2011-08-20 Szymon Janc <szymon@janc.net.pl>
3825
3826 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
3827 file type was not recognized correctly (not gzip or corrupted).
3828
3829 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
3830
3831 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
3832 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
3833
3834 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
3835
3836 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
3837 loongson.
3838 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
3839 video_radeon_fuloong2e.
3840 * grub-core/video/radeon_fuloong2e.c: New file.
3841 * include/grub/video.h (grub_video_id_t): Add new ID
3842 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
3843
3844 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
3845
3846 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
3847 define.
3848 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
3849 that PRID matches the detected subplatform and reset the subplatform
3850 if it doesn't.
3851
3852 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
3853
3854 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
3855
3856 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
3857
3858 Fix PCI iterating on functions >= 4.
3859
3860 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
3861 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
3862 Removed.
3863 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
3864 (grub_pci_read): Fix bitmask.
3865 (grub_pci_read_word): Likewise.
3866 (grub_pci_read_byte): Likewise.
3867 (grub_pci_write): Likewise.
3868 (grub_pci_write_word): Likewise.
3869 (grub_pci_write_byte): Likewise.
3870
3871 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
3872
3873 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
3874 can still be specified in TARGET_CFLAGS)
3875
3876 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
3877
3878 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
3879
3880 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
3881 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
3882 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
3883 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
3884 (FULOONG): Rename to ...
3885 (FULOONG2F): ... this. All users updated.
3886 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
3887 (machtype_fuloong2f_str): ... this.
3888 (machtype_fuloong2e_str): New string.
3889 Check for machtype_fuloong2e_str.
3890 * grub-core/loader/mips/linux.c (loongson_machtypes)
3891 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
3892 * grub-core/term/serial.c (loongson_defserial)
3893 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
3894 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
3895 loongson_defserial.
3896 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
3897 Rename to ...
3898 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
3899 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
3900 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
3901 to IMAGE_FULOONG2F_FLASH. All users updated.
3902 (image_targets): Rename images.
3903 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
3904
3905 2011-08-19 Szymon Janc <szymon@janc.net.pl>
3906
3907 Make enable of disk cache statistics code configurable.
3908
3909 * configure.ac: --enable-cache-stats added.
3910 * config.h.in (DISK_CACHE_STATS): New define.
3911 * grub-core/Makefile.core.def (cacheinfo): New command.
3912 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
3913 * grub-core/commands/cacheinfo.c: New file.
3914 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
3915 moved to cacheinfo.c.
3916 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
3917 debug code.
3918 * include/grub/disk.h: Likewise.
3919
3920 2011-08-19 Szymon Janc <szymon@janc.net.pl>
3921
3922 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
3923 * grub-core/Makefile.am: Likewise.
3924
3925 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
3926
3927 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
3928 non-zero pull.
3929
3930 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
3931
3932 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
3933 All users updated.
3934 (grub_jfs_lookup_symlink): Use correct starting inode.
3935
3936 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
3937
3938 * util/grub-setup.c (main): Add missing gcry initialisation.
3939
3940 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
3941
3942 Don't accept text modes on EFI when booting Linux.
3943
3944 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
3945 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
3946
3947 2011-08-15 Mario Limonciello <mario_limonciello@dell.com>
3948 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
3949
3950 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
3951 use of "/path/.." as in grub-install for EFI as well as handling
3952 symlinks correctly.
3953 Fixes Debian bug #637768.
3954
3955 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
3956
3957 * util/grub-probe.c: Remove duplicate #include.
3958
3959 2011-08-10 Robert Millan <rmh@gnu.org>
3960
3961 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
3962
3963 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
3964 function.
3965 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
3966 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
3967
3968 2011-08-03 Robert Millan <rmh@gnu.org>
3969
3970 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
3971 la_array as packed.
3972 Reported by: Zachary Bedell
3973
3974 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
3975
3976 * configure.ac: The Loongson port requires grub-mkfont due to its
3977 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
3978 be built.
3979
3980 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
3981
3982 * util/grub-install.in: Don't source grub-mkconfig_lib until after
3983 processing arguments (otherwise help2man fails when GRUB has not yet
3984 been installed).
3985
3986 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
3987
3988 New script grub-mkstandalone.
3989
3990 * Makefile.util.def (grub-mkstandalone): New script.
3991 * docs/man/grub-mkstandalone.h2m: New file.
3992 * util/grub-mkstandalone.in: Likewise.
3993
3994 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
3995
3996 Support ATA disks with 4K sectors.
3997
3998 * include/grub/ata.h (grub_ata): New member log_sector_size.
3999 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
4000 (grub_ata_identify): Read sector size.
4001 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
4002
4003 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
4004
4005 * util/grub-install.in: Don't use uhci outside of x86.
4006
4007 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
4008
4009 * util/grub-mkrescue.in: Add missing quotes.
4010
4011 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
4012
4013 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
4014 dereference.
4015
4016 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
4017
4018 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
4019
4020 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
4021
4022 * include/grub/video.h: add missing EXPORT_FUND on
4023 grub_video_edid_checksum and grub_video_edid_preferred_mode.
4024
4025 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
4026
4027 * include/grub/mips/kernel.h: Fix define conflict.
4028
4029 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
4030
4031 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
4032 all four ways.
4033
4034 2011-07-21 Colin Watson <cjwatson@ubuntu.com>
4035
4036 Preferred resolution detection for VBE.
4037
4038 * grub-core/video/video.c (grub_video_edid_checksum): New function.
4039 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
4040 the Flat Panel extension, in line with the X.org VESA driver.
4041 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
4042 New function.
4043 (grub_vbe_bios_get_ddc_capabilities): Likewise.
4044 (grub_vbe_bios_read_edid): Likewise.
4045 (grub_vbe_get_preferred_mode): Likewise.
4046 (grub_video_vbe_setup): When the mode is "auto", try to get the
4047 preferred mode from VBE, and use the largest mode that is no larger
4048 than the preferred mode (some BIOSes expose a preferred mode that is
4049 not in their mode list!). If this fails, fall back to 640x480 as a
4050 safe conservative choice.
4051 (grub_video_vbe_get_edid): New function.
4052 (grub_video_vbe_adapter): Add get_edid.
4053 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
4054 (struct grub_video_adapter): Add get_edid.
4055 (grub_video_edid_checksum): Add prototype.
4056 (grub_video_edid_preferred_mode): Likewise.
4057 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
4058 structure.
4059
4060 * grub-core/commands/videoinfo.c (print_edid): New function.
4061 (grub_cmd_videoinfo): Print EDID if available.
4062
4063 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
4064 is more appropriate on a wider range of platforms than 640x480.
4065 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
4066 documentation.
4067
4068 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
4069
4070 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
4071
4072 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
4073
4074 * po/POTFILES.in: Regenerate.
4075
4076 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
4077
4078 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
4079 incorrect memory usage.
4080
4081 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
4082
4083 * util/grub-install.in: Source grub-mkconfig_lib.
4084
4085 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
4086
4087 Remove getroot.c from core on emu platform.
4088
4089 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
4090 kern/emu/raid.c.
4091 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
4092 useless.
4093 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
4094 * util/getroot.c (get_win32_path): ... here.
4095 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
4096 * util/getroot.c (fini_libzfs): ... here.
4097 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
4098 * util/getroot.c (grub_get_libzfs_handle): ... here.
4099 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
4100 Moved from here...
4101 * util/getroot.c (grub_find_zpool_from_dir): ... here.
4102 * grub-core/kern/emu/misc.c
4103 (grub_make_system_path_relative_to_its_root): Moved from here...
4104 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
4105 * grub-core/kern/emu/getroot.c: Moved from here ...
4106 * util/getroot.c: ... here. All users updated.
4107 * grub-core/kern/emu/raid.c: Moved from here ...
4108 * util/raid.c: ... here. All users updated.
4109
4110 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
4111
4112 * po/POTFILES.in: Regenerate.
4113
4114 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
4115
4116 Fix compilation on GNU/Linux.
4117
4118 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
4119 Disable geli.
4120 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
4121 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
4122 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
4123
4124 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
4125 2011-07-07 Michael Gorven <michael@gorven.za.net>
4126 2011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
4127
4128 LUKS and GELI support.
4129
4130 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
4131 grub-core/disk/luks.c, grub-core/disk/geli.c,
4132 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
4133 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
4134 grub-core/lib/arg.c.
4135 (libgrubmods.a): Remove gcrypts cflags and cppflags.
4136 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
4137 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
4138 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
4139 (grub-bin2h): Add libgcry.a.
4140 (grub-mkimage): Likewise.
4141 (grub-mkrelpath): Likewise.
4142 (grub-script-check): Likewise.
4143 (grub-editenv): Likewise.
4144 (grub-mkpasswd-pbkdf2): Likewise.
4145 (grub-pe2elf): Likewise.
4146 (grub-fstest): Likewise.
4147 (grub-mkfont): Likewise.
4148 (grub-mkdevicemap): Likewise.
4149 (grub-probe): Likewise.
4150 (grub-ofpath): Likewise.
4151 (grub-mklayout): Likewise.
4152 (example_unit_test): Likewise.
4153 (grub-menulst2cfg): Likewise.
4154 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
4155 * grub-core/Makefile.core.def (cryptodisk): New module.
4156 (luks): Likewise.
4157 (geli): Likewise.
4158 * grub-core/disk/AFSplitter.c: New file.
4159 * grub-core/disk/cryptodisk.c: Likewise.
4160 * grub-core/disk/geli.c: Likewise.
4161 * grub-core/disk/luks.c: Likewise.
4162 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
4163 grub_util_is_lvm.
4164 (grub_util_get_dm_abstraction): New function.
4165 (grub_util_follow_gpart_up): Likewise.
4166 (grub_util_get_geom_abstraction): Likewise.
4167 (grub_util_get_dev_abstraction): Use new functions.
4168 (grub_util_pull_device): Pull GELI and LUKS.
4169 (grub_util_get_grub_dev): Handle LUKS and GELI.
4170 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
4171 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
4172 (follow_geom_up): Removed.
4173 (grub_util_fd_seek): New function.
4174 (open_device): Use grub_util_fd_seek.
4175 (nread): Rename to ..
4176 (grub_util_fd_read): ... this. All users updated.
4177 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
4178 (grub_crypto_cbc_decrypt): Likewise.
4179 (grub_crypto_hmac_write): Likewise.
4180 (grub_crypto_hmac_buffer): Likewise.
4181 (grub_password_get): Extend to util.
4182 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
4183 New member modname.
4184 (gcry_md_spec) [GRUB_UTIL]: Likewise.
4185 * include/grub/cryptodisk.h: New file.
4186 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
4187 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
4188 LUKS and GELI.
4189 (grub_util_follow_gpart_up): New proto.
4190 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
4191 (grub_util_fd_read): Likewise.
4192 (grub_cryptodisk_cheat_mount): Likewise.
4193 (grub_util_cryptodisk_print_uuid): Likewise.
4194 (grub_util_get_fd_sectors): Likewise.
4195 * util/grub-fstest.c (mount_crypt): New var.
4196 (fstest): Mount crypto if requested.
4197 (options): New option -C.
4198 (argp_parser): Parse -C.
4199 (main): Init and fini gcry.
4200 * util/grub-install.in: Support cryptodisk install.
4201 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
4202 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
4203 cryptodisk.
4204 (prepare_grub_to_access_device): Likewise.
4205 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
4206 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
4207 (probe_cryptodisk_uuid): New function.
4208 (probe_abstraction): Likewise.
4209 (probe): Use new functions.
4210 * util/import_gcry.py: Create Makefile.utilgcry.def.
4211 Add modname member.
4212
4213 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
4214
4215 Lazy device scanning.
4216
4217 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
4218 (grub-setup): Remove util/raid.c.
4219 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
4220 * grub-core/disk/lvm.c (scan_depth): New variable.
4221 (grub_lvm_iterate): Rescan if necessary.
4222 (find_lv): New function based on grub_lvm_open.
4223 (grub_lvm_open): Use find_lv. Rescan on error.
4224 (is_node_readable): New function.
4225 (is_lv_readable): Likewise.
4226 (grub_lvm_scan_device): Skip already found disks.
4227 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
4228 Stop if searched device is found and readable.
4229 * grub-core/disk/raid.c (inscnt): New variable.
4230 (scan_depth): Likewise.
4231 (scan_devices): New function based on grub_raid_register. Abort if
4232 looked for device is found.
4233 (grub_raid_iterate): Rescan if needed.
4234 (find_array): NEw function based on -grub_raid_open.
4235 (grub_raid_open): Use find_array and rescan.
4236 (insert_array): Set became_readable_at.
4237 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
4238 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
4239 New function.
4240 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
4241 (grub_util_pull_device): New function.
4242 (grub_util_get_grub_dev): Call grub_util_pull_device.
4243 * util/raid.c: Moved to ..
4244 * grub-core/kern/emu/raid.c: ... here.
4245 (grub_util_raid_getmembers): New parameter "bootable".
4246 All users updated. Support 1.x.
4247 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
4248 All users updated.
4249 * include/grub/disk.h (grub_disk_pull_t): New enum.
4250 (grub_disk_dev): Change iterate prototype.
4251 All users updated.
4252 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
4253 New proto.
4254 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
4255 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
4256 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
4257 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
4258 All users updated.
4259 * include/grub/util/raid.h: Removed.
4260
4261 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
4262
4263 * po/POTFILES.in: Regenerate.
4264
4265 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
4266
4267 Unify sparc init with other ieee1275.
4268
4269 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
4270 instead of kern/sparc64/ieee1275/init.c.
4271 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
4272 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
4273 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
4274 grub/machine/kernel.h.
4275 (grub_ieee1275_original_stack) [__sparc__]: New variable.
4276 (grub_claim_heap) [__sparc__]: Use sparc version.
4277 (grub_machine_init): Moved args parsing to
4278 (grub_parse_cmdline): ...this.
4279 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
4280 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
4281 New definition.
4282 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
4283
4284 Move BOOTP to separate file.
4285
4286 * grub-core/Makefile.core.def (net): Add net/bootp.c.
4287 * grub-core/net/net.c: Move all BOOTP functions to
4288 * grub-core/net/bootp.c: ... here.
4289
4290 Use frame interface on PXE.
4291
4292 * grub-core/Makefile.core.def (pxecmd): Removed.
4293 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
4294 * grub-core/commands/i386/pc/pxecmd.c: Removed.
4295 * grub-core/i386/pc/pxe.c: Moved from here ...
4296 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
4297 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
4298 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
4299
4300 EFI network support.
4301
4302 * grub-core/Makefile.core.def (efinet): New module.
4303 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
4304 here...
4305 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
4306 All users updated.
4307 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
4308 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
4309 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
4310 * grub-core/net/drivers/efi/efinet.c: New file.
4311 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
4312 (grub_efi_net_config): New extern var.
4313
4314 Various cleanups and bugfixes.
4315
4316 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
4317 error.
4318 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
4319 disk declared as partition.
4320 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
4321 leak on failure.
4322 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
4323 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
4324 (grub_debug_zalloc): Likewise.
4325 (grub_debug_realloc): Likewise.
4326 (grub_debug_memalign): Likewise.
4327 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
4328 Check that target is IPv4.
4329 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
4330 local-mac-address as fallback.
4331 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
4332 memory leak.
4333 * grub-core/net/ip.c (ipchksum): Rename to ...
4334 (grub_net_ip_chksum): ... this. All users updated.
4335 (grub_net_recv_ip_packets): Special handling for DHCP.
4336 * util/grub-mkimage.c (generate_image): Zero-out aout header.
4337
4338 Unify prefix handling
4339
4340 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
4341 (grub_machine_get_bootlocation): ... this.
4342 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
4343 (grub_machine_get_bootlocation): ... this.
4344 (grub_prefix): New variable.
4345 (prefix): Removed.
4346 (root_dev): New variable.
4347 (dir): Likewise.
4348 (main): Use new variables.
4349 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
4350 Revamped into ...
4351 (grub_machine_get_bootlocation): ... this.
4352 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
4353 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
4354 (grub_machine_get_bootlocation): ... this.
4355 (grub_machine_set_prefix): Removed.
4356 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
4357 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
4358 Revamped into ...
4359 (grub_machine_get_bootlocation): ... this.
4360 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
4361 (grub_set_prefix_and_root): ... this. All users updated.
4362 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
4363 Revamped into ...
4364 (grub_machine_get_bootlocation): ... this.
4365 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
4366 (grub_machine_get_bootlocation): New proto.
4367 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
4368
4369 Less intrusive and more reliable seek on network implementation.
4370
4371 * grub-core/kern/file.c (grub_file_net_seek): Removed.
4372 (grub_file_seek): Don't call grub_file_net_seek.
4373 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
4374 (grub_net_fs_read_real): .. this.
4375 (grub_net_seek_real): Use net->offset.
4376 (grub_net_fs_read): Seek if necessary.
4377
4378 Unify IEEE1275 netwotk config with the other platforms.
4379
4380 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
4381 New variable.
4382 (grub_machine_get_bootlocation): Support network.
4383 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
4384 Support type and device parsing.
4385 (grub_ieee1275_get_device_type): New function.
4386 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
4387 into ...
4388 (grub_ieee1275_net_config_real): ... this.
4389 (grub_ofnet_probecards): Removed.
4390 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
4391 * include/grub/ieee1275/ofnet.h: Removed.
4392 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
4393 extern var.
4394 (grub_ieee1275_get_device_type): New function.
4395
4396 Unify network device closing across platforms and make more robust.
4397
4398 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
4399 grub_grubnet_fini.
4400 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
4401 already.
4402 * grub-core/net/net.c (grub_net_network_level_interface_register):
4403 Update num_ifaces.
4404 (grub_net_card_unregister): Close all interfaces.
4405 (receive_packets): Don't poll if no iterfaces are registered.
4406 Open if necessary.
4407 (grub_net_fini_hw): New function.
4408 (grub_net_restore_hw): Likewise.
4409 (fini_hnd): New variable.
4410 (GRUB_MOD_INIT): Register preboot hook.
4411 (GRUB_MOD_FINI): Run and unregister preboot hook.
4412
4413 Poll network cards when idle.
4414
4415 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
4416 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
4417 * grub-core/net/net.c (receive_packets): Save last poll time.
4418 (grub_net_poll_cards_idle_real): New function.
4419 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
4420 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
4421 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
4422
4423 Rename ofnet interfaces.
4424
4425 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
4426 (grub_ofnet_findcards): Use ofnet_%s names.
4427
4428 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
4429
4430 Cleanup socket opening.
4431
4432 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
4433 (grub_net_fs_close): Likewise.
4434 (grub_net_fs_read_real): Use eof member.
4435 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
4436 (+grub_net_udp_close): New inline function.
4437
4438 * include/grub/net/tftp.h: Moved to the top of ...
4439 * grub-core/net/tftp.c: ... here.
4440 * include/grub/net/ip.h: Moved mostly to the top of ...
4441 * grub-core/net/ip.c: ... here.
4442 * include/grub/net/ethernet.h: Moved mostly to the top of ...
4443 * grub-core/net/ethernet.c: ... here.
4444
4445 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
4446
4447 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
4448 FS name.
4449
4450 * include/grub/net/ip.h (ipv4_ini): Removed.
4451 (ipv4_fini): Likewise.
4452
4453 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
4454 (grub_net_send_ip_packets): Likewise.
4455
4456 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
4457
4458 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
4459 grub_read_cmos prototype.
4460
4461 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
4462
4463 VGA text support in qemu-mips
4464
4465 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
4466 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
4467 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
4468 text.
4469 * grub-core/kern/i386/qemu/init.c: Renamed to ...
4470 * grub-core/kern/vga_init.c: ... this.
4471 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
4472 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
4473 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
4474 Adjust.
4475 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
4476 GRUB_MACHINE_PCI_IO_BASE.
4477
4478 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
4479
4480 MIPS qemu flash support.
4481
4482 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
4483 magic.
4484 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
4485 (grub_machine_init): Probe memory if its size isn't known.
4486 * util/grub-mkimage.c (image_targets): Add flash targets.
4487 (generate_image): Handle flash targets.
4488
4489 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
4490
4491 MIPS qemu at_keyboard support.
4492
4493 * gentpl.py (videoinkernel): Add qemu-mips.
4494 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
4495 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
4496 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
4497 modules.
4498 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
4499 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
4500 * grub-core/term/serial.c (grub_serial_register)
4501 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
4502
4503 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
4504
4505 CMOS support on sparc.
4506
4507 * gentpl.py (cmos): Add powerpc and sparc.
4508 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
4509 powerpc and sparc.
4510 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
4511 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
4512 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
4513 grub_set_datetime_cmos.
4514 * grub-core/lib/ieee1275/cmos.c: New file.
4515 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
4516 (find_rtc): Set no_ieee1275_rtc on error.
4517 (grub_get_datetime): Call grub_get_datetime_cmos on error.
4518 (grub_set_datetime): Call grub_set_datetime_cmos on error.
4519 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
4520 fail. Move value to argument. All users updated
4521 (grub_cmos_write): Likewise.
4522 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
4523 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
4524 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
4525 grub_get_datetime_cmos and grub_set_datetime_cmos.
4526
4527 2011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
4528
4529 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
4530 sourcing grub-mkconfig_lib.
4531 * util/update-grub_lib.in: Likewise.
4532 * util/grub.d/00_header.in: Likewise.
4533 * util/grub.d/10_hurd.in: Likewise.
4534 * util/grub.d/10_kfreebsd.in: Likewise.
4535 * util/grub.d/10_linux.in: Likewise.
4536 * util/grub.d/10_netbsd.in: Likewise.
4537 * util/grub.d/10_windows.in: Likewise.
4538 * util/grub.d/20_linux_xen.in: Likewise.
4539 * util/grub.d/30_os-prober.in: Likewise.
4540
4541 2011-06-28 Colin Watson <cjwatson@ubuntu.com>
4542
4543 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
4544 default_bg_color rather than black.
4545 (grub_gfxterm_fullscreen): Likewise.
4546 (grub_gfxterm_background_color_cmd): Save new background color in
4547 default_bg_color.
4548
4549 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
4550
4551 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
4552
4553 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
4554
4555 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
4556 mismerge.
4557
4558 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
4559
4560 Chainloading on coreboot support.
4561
4562 * grub-core/Makefile.core.def (chain): Add coreboot.
4563 * grub-core/loader/i386/coreboot/chainloader.c: New file.
4564
4565 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
4566
4567 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
4568 if it happens.
4569
4570 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
4571
4572 Implement time command.
4573
4574 * grub-core/Makefile.core.def (time): New module.
4575 * grub-core/commands/time.c: New file.
4576 * grub-core/script/parser.y: Remove "time" keyword.
4577 * grub-core/script/yylex.l: Likewise.
4578
4579 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
4580
4581 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
4582
4583 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
4584
4585 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
4586 when handling leftovers.
4587
4588 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
4589
4590 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
4591 so that help2man doesn't fail.
4592
4593 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
4594
4595 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
4596 type in pointers on sparc64.
4597 (get_card_packet): Likewise.
4598
4599 2011-06-27 Colin Watson <cjwatson@ubuntu.com>
4600
4601 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
4602 with `*'.
4603 (grub_cmd_videoinfo): Fetch current video mode.
4604
4605 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
4606
4607 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
4608 because of underlying system restrictions.
4609
4610 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
4611
4612 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
4613 necessary.
4614
4615 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
4616
4617 Coreboot video support.
4618
4619 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
4620 (vbe): Likewise.
4621 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
4622 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
4623 here ...
4624 * grub-core/kern/i386/int.S: ... here.
4625 * grub-core/video/i386/pc/vbe.c: Updated includes.
4626 * grub-core/video/i386/pc/vga.c: Likewise.
4627 * include/grub/i386/coreboot/memory.h
4628 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
4629 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
4630 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
4631 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
4632 Disable interrupts.
4633 * include/grub/i386/pc/vga.h: Removed. All users updated.
4634
4635 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
4636
4637 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
4638 definitions for dprintf.
4639 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
4640
4641 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
4642
4643 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
4644 prototype.
4645 (get_card_packet): Likewise.
4646
4647 2011-06-26 Yves Blusseau <blusseau@zetam.org>
4648
4649 Display the path of the file when file is not found
4650
4651 * grub-core/fs/fat.c: Display the filename when file is not found.
4652 * grub-core/fs/fshelp.c: Likewise.
4653 * grub-core/fs/hfs.c: Likewise.
4654 * grub-core/fs/jfs.c: Likewise.
4655 * grub-core/fs/minix.c: Likewise.
4656 * grub-core/fs/ufs.c: Likewise.
4657 * grub-core/fs/btrfs.c: Likewise.
4658 * grub-core/commands/i386/pc/play.c: Likewise.
4659
4660 2011-06-26 Szymon Janc <szymon@janc.net.pl>
4661
4662 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
4663 pointer checks before calling grub_free().
4664 * grub-core/commands/wildcard.c (match_devices): Likewise.
4665 * grub-core/commands/wildcard.c (match_files): Likewise.
4666 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
4667 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
4668 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
4669 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
4670 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
4671 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
4672 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
4673 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
4674 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
4675
4676 2011-06-25 Patrick <p55@mailinator.com>
4677
4678 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
4679
4680 2011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
4681
4682 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
4683 (grub_pxe_send): Likewise.
4684 (GRUB_MOD_INIT): Fix types.
4685
4686 2011-06-24 Szymon Janc <szymon@janc.net.pl>
4687
4688 * grub-core/io/xzio.c: Fix code style issues
4689
4690 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
4691 2011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
4692
4693 Network infrastructure.
4694 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
4695
4696 * include/grub/net/arp.h: New file.
4697 * include/grub/net/device.h: Likewise.
4698 * include/grub/net/ethernet.h: Likewise.
4699 * include/grub/net/ip.h: Likewise.
4700 * include/grub/net/netbuff.h: Likewise.
4701 * include/grub/net/tftp.h: Likewise.
4702 * include/grub/net/udp.h: Likewise.
4703 * include/grub/ieee1275/ofnet.h: Likewise.
4704 * include/grub/emu/export.h: Likewise.
4705 * include/grub/net.h: Likewise.
4706 * grub-core/net/arp.c: Likewise.
4707 * grub-core/net/ethernet.c: Likewise.
4708 * grub-core/net/ip.c: Likewise.
4709 * grub-core/net/udp.c: Likewise.
4710 * grub-core/net/tftp.c: Likewise.
4711 * grub-core/net/netbuff.c: Likewise.
4712 * grub-core/net/net.c: Likewise.
4713 * grub-core/net/drivers/emu/emunet.c: Likewise.
4714 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
4715 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
4716 export.h.
4717 * grub-core/Makefile.core.def (net): New module.
4718 (tftp): Likewise.
4719 (ofnet): Likewise.
4720 (emunet): Likewise.
4721 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
4722 network protocols.
4723 * grub-core/kern/device.c (grub_net_open) : New variable.
4724 (grub_device_open): Handle network device.
4725 (grub_device_close): Likewise.
4726 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
4727 (grub_grubnet_fini): Likewise.
4728 (grub_file_seek): Seek in network device.
4729 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
4730 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
4731 network root.
4732 (grub_machine_fini): Call grub_grubnet_fini.
4733 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
4734 network.
4735 (grub_ieee1275_get_aliasdevname): New function.
4736 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
4737 Add unofficial Solaris network info.
4738 (grub_multiboot_make_mbi): Likewise.
4739 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
4740 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
4741 * include/grub/device.h (grub_fs): Removed.
4742 * include/grub/err.h (grub_err_t): Add network-related values.
4743 * include/grub/i386/pc/pxe.h: Removed bootp parts.
4744 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
4745 (grub_ieee1275_get_aliasdevname): New proto.
4746 * include/grub/net.h: Rewritten.
4747
4748 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
4749
4750 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
4751 names.
4752
4753 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
4754
4755 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
4756 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
4757 it truncates the output.
4758 Reported by: Ximin Luo.
4759
4760 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
4761
4762 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
4763
4764 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
4765
4766 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
4767 partmap before abstraction.
4768
4769 2011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
4770
4771 * util/grub-mkconfig_lib.in: Add missing quotes.
4772
4773 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
4774
4775 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
4776 old method if mountinfo would return /dev/root and /dev/root doesn't
4777 exist.
4778
4779 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
4780
4781 ZFS zlib support
4782
4783 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
4784 (decomp_table): Add zlib entries.
4785 (zio_read): USe 8 bits for compression function rather than 3.
4786 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
4787
4788 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
4789
4790 * grub-core/disk/ahci.c: Add missing license statements.
4791 * grub-core/fs/romfs.c: Likewise.
4792 * grub-core/lib/ia64/setjmp.S: Likewise.
4793 * grub-core/loader/i386/pc/freedos.c: Likewise.
4794 * grub-core/loader/ia64/efi/linux.c: Likewise.
4795 * grub-core/video/colors.c: Likewise.
4796 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
4797
4798 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
4799
4800 AHCI support.
4801
4802 * grub-core/Makefile.core.def (ata_pthru): Removed.
4803 (ahci): New module.
4804 (pata): Likewise.
4805 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
4806 on unload.
4807 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
4808 readwrite.
4809 (grub_hdparm_do_check_powermode_cmd): Likewise.
4810 (grub_hdparm_do_smart_cmd): Likewise.
4811 (grub_hdparm_set_val_cmd): Likewise.
4812 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
4813 * grub-core/disk/ahci.c: New file.
4814 * grub-core/disk/ata.c: Factor out the low-level part into ...
4815 * grub-core/disk/pata.c: ... here.
4816 * grub-core/disk/ata_pthru.c: Contents moved to ...
4817 * grub-core/disk/pata.c: ... here.
4818 * grub-core/disk/scsi.c (grub_scsi_names): New array.
4819 (grub_scsi_iterate): Use grub_scsi_names.
4820 (grub_scsi_open): Likewise.
4821 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
4822 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
4823 (grub_ata_regs_t): New struct.
4824 (grub_disk_ata_pass_through_parms): Likewise.
4825 (grub_ata_device): Renamed to ...
4826 (grub_ata): ... this.
4827 (grub_ata_dev): New struct.
4828 Removed all low-level inline functions.
4829 * include/grub/scsi.h: Add PATA and AHCI subsystems.
4830 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
4831 iterate hooks and open. All users updated.
4832 * util/grub-install.in: Handle AHCI disk module.
4833
4834 2011-06-23 Szymon Janc <szymon@janc.net.pl>
4835
4836 Add support for DRI and RSTn markers in JPEG files.
4837
4838 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
4839 (JPEG_MARKER_RST0): Likewise.
4840 (JPEG_MARKER_RST1): Likewise.
4841 (JPEG_MARKER_RST2): Likewise.
4842 (JPEG_MARKER_RST3): Likewise.
4843 (JPEG_MARKER_RST4): Likewise.
4844 (JPEG_MARKER_RST5): Likewise.
4845 (JPEG_MARKER_RST6): Likewise.
4846 (JPEG_MARKER_RST7): Likewise.
4847 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
4848 (grub_jpeg_decode_dri): New function.
4849 (grub_jpeg_decode_sos): Move image data related part into
4850 grub_jpeg_decode_data function.
4851 (grub_jpeg_decode_data): New function.
4852 (grub_jpeg_reset): New function.
4853 (grub_jpeg_decode_jpeg): Handle new markers.
4854
4855 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
4856
4857 * util/ieee1275/ofpath.c (check_sas): Close fd.
4858 (main): Free of_path.
4859 Reported by: David Volgyes <dvolgyes>.
4860
4861 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
4862
4863 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
4864 Reported by: David Volgyes <dvolgyes>.
4865
4866 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
4867
4868 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
4869 file after stat.
4870 Reported by: David Volgyes <dvolgyes>.
4871
4872 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
4873
4874 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
4875
4876 Reported by: David Volgyes <dvolgyes>.
4877
4878 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
4879
4880 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
4881 Prevent memory leak.
4882
4883 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
4884
4885 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
4886 (main): Close file.
4887 Reported by: David Volgyes <dvolgyes>.
4888
4889 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
4890
4891 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
4892 to continue if allocation is failed.
4893
4894 Reported by: David Volgyes <dvolgyes>.
4895
4896 2011-06-23 David Volgyes <dvolgyes>
4897
4898 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
4899 dereference.
4900
4901 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
4902
4903 Fix spurious warning.
4904
4905 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
4906 (acorn_partition_map_find): Use .bin member.
4907
4908 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
4909
4910 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
4911 /dev/root as a valid device.
4912
4913 2011-06-23 Jim Meyering <meyering@redhat.com>
4914
4915 Avoid NULL deref in grub_device_open.
4916
4917 * grub-core/kern/device.c (grub_device_open): Don't dereference
4918 a NULL pointer upon failed grub_env_get.
4919
4920 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
4921
4922 Support non-512B sectors and agglomerate reads.
4923
4924 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
4925 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
4926 (disk_io_guid): Removed.
4927 (make_devices): Locate solely by BlockIO.
4928 (grub_efidisk_open): Fill log_sector_size and total_sectors.
4929 (grub_efidisk_read): Use read_blocks.
4930 (grub_efidisk_write): Use write_blocks.
4931 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
4932 log_sector_size.
4933 (get_safe_sectors): Handle non-512B sectors.
4934 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
4935 sectors.
4936 (grub_biosdisk_write): Handle non-512B sectors.
4937 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
4938 (grub_scsi_read): Remove special non-512B block handling (now handled
4939 one level up).
4940 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
4941 and do sanity checks.
4942 (grub_disk_adjust_range): Handle non-512B sectors.
4943 (transform_sector): New function.
4944 (grub_disk_read_small): Likewise.
4945 (grub_disk_read): Rewritten.
4946 (grub_disk_write): Handle non-512B sectors.
4947 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
4948 log_sector_size.
4949 (open_device): Use log_sector_size.
4950 (grub_util_biosdisk_read): Likewise.
4951 (grub_util_biosdisk_write): Likewise.
4952 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
4953 non-512B sectors.
4954 (pc_partition_map_embed): Likewise.
4955 * include/grub/disk.h (grub_disk): New field log_sector_size.
4956 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
4957 (GRUB_DISK_CACHE_BITS): Increased to 6.
4958 * util/grub-fstest.c (fstest): New command testload.
4959 (argp_parser): Likewise.
4960
4961 2011-06-16 Robert Millan <rmh@gnu.org>
4962
4963 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
4964 `ata' driver on kernel of FreeBSD 9.
4965
4966 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
4967 (get_ataraid_disk_name): New functions.
4968 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
4969 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
4970 get_ataraid_disk_name() and get_ada_disk_name().
4971
4972 2011-06-13 Colin Watson <cjwatson@ubuntu.com>
4973
4974 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
4975 input format.
4976
4977 2011-05-29 Colin Watson <cjwatson@ubuntu.com>
4978
4979 * docs/grub.texi (Obtaining and Building GRUB): Substitute
4980 `ftp.gnu.org' for `alpha.gnu.org'.
4981
4982 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
4983
4984 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
4985 partitions under /dev/disk/by-id/.
4986
4987 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
4988
4989 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
4990 after ten consecutive open failures. Scanning all the way up to
4991 10000 is excessive and can cause serious performance problems in
4992 some configurations.
4993 Fixes Ubuntu bug #787461.
4994
4995 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
4996
4997 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
4998 opening new one.
4999
5000 2011-05-21 Colin Watson <cjwatson@ubuntu.com>
5001 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
5002
5003 Don't stat devices unless we have to.
5004
5005 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
5006 dir == /dev/mapper.
5007 (grub_guess_root_device): Use already known os_dev if possible.
5008 * grub-core/kern/emu/hostdisk.c
5009 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
5010 if device is known to be a dm one.
5011
5012 2011-05-20 Colin Watson <cjwatson@ubuntu.com>
5013
5014 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
5015 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
5016 Reported by: Pawel Tecza.
5017
5018 2011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
5019
5020 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
5021 (lsefisystab): Likewise.
5022 (lssal): Likewise.
5023 (lsefimmap): Likewise.
5024 (hdparm): Enable on qemu-mips.
5025 (setjmp): Add ia64 nodist.
5026 (serial): Simplify tags.
5027
5028 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
5029
5030 * Makefile.util.def (grub-ofpathname): Install manual page.
5031
5032 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
5033
5034 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
5035
5036 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
5037
5038 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
5039
5040 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
5041
5042 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
5043 into dprintf.
5044
5045 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
5046
5047 Use full 64-bit division.
5048
5049 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
5050 (grub_divmod64): ... this.
5051 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
5052 version.
5053
5054 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
5055
5056 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
5057 `source'.
5058
5059 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
5060
5061 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
5062 to avoid accidents when debugging with 'sh -x'.
5063 * grub-core/gensyminfo.sh.in: Likewise.
5064 * tests/example_scripted_test.in: Likewise.
5065 * tests/grub_cmd_regexp.in: Likewise.
5066 * tests/grub_script_blanklines.in: Likewise.
5067 * tests/grub_script_dollar.in: Likewise.
5068 * tests/grub_script_expansion.in: Likewise.
5069 * tests/grub_script_final_semicolon.in: Likewise.
5070 * tests/partmap_test.in: Likewise.
5071 * tests/util/grub-shell-tester.in: Likewise.
5072 * tests/util/grub-shell.in: Likewise.
5073
5074 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
5075
5076 Move gfxmenu color handling to video, so that gfxterm can use it
5077 too.
5078
5079 * grub-core/gfxmenu/named_colors.c: Move to ...
5080 * grub-core/video/colors.c: ... here. Rename
5081 grub_gui_get_named_color to grub_video_get_named_color.
5082 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
5083 * grub-core/video/colors.c (my_isxdigit): ... here.
5084 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
5085 Move to ...
5086 * grub-core/video/colors.c (parse_hex_color_component): ... here.
5087 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
5088 to ...
5089 * grub-core/video/colors.c (grub_video_parse_color): ... here.
5090
5091 * include/grub/gui.h (grub_gui_color_t): Move to ...
5092 * include/grub/video.h (grub_video_rgba_color_t): ... here.
5093 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
5094 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
5095 * include/grub/gui.h (grub_gui_map_color): Move to ...
5096 * include/grub/video.h (grub_video_map_rgba_color): ... here.
5097 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
5098 to ...
5099 * include/grub/video.h (grub_video_get_named_color): ... here.
5100 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
5101 * include/grub/video.h (grub_video_parse_color): ... here.
5102
5103 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
5104 video/colors.c.
5105 (gfxmenu): Remove gfxmenu/named_colors.c.
5106 (video) [videomodules]: Add video/colors.c.
5107
5108 Add a background_color command.
5109
5110 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
5111 function.
5112 (GRUB_MOD_INIT): Register background_color command.
5113 (GRUB_MOD_FINI): Unregister background_color command.
5114 (redraw_screen_rect): Allow blend/replace of text layer to be
5115 controlled independently from whether there is a background bitmap.
5116 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
5117 changing bitmap.
5118
5119 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
5120
5121 Patch BPB in ntldr and chainloader --bpb.
5122
5123 * grub-core/fs/fat.c: Include grub/fat.h.
5124 (grub_fat_bpb): Moved to ...
5125 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
5126 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
5127 grub/ntfs.h.
5128 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
5129 Moved from here...
5130 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
5131 here.
5132 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
5133 New function.
5134 (grub_chainloader_cmd): Patch BPB if --bpb is given.
5135 (GRUB_MOD_INIT): Show --bpb.
5136 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
5137 * grub-core/normal/main.c (features): New variable.
5138 (GRUB_MOD_INIT): Set feature_* variables.
5139 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
5140 proto.
5141 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
5142
5143 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
5144
5145 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
5146 for cleanness.
5147
5148 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
5149
5150 FreeDOS direct loading support.
5151
5152 * docs/grub.texi (Supported OS): Add FreeDOS.
5153 * grub-core/Makefile.core.def (freedos): New module.
5154 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
5155 variable.
5156 (grub_relocator16_boot): Handle %ebx.
5157 * grub-core/lib/i386/relocator16.S: Likewise.
5158 * grub-core/loader/i386/pc/freedos.c: New file.
5159
5160 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
5161
5162 Long Linux command line support.
5163
5164 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
5165 (maximal_cmdline_size): New variable.
5166 (allocate_pages): Use maximal_cmdline_size.
5167 (grub_cmd_linux): Set and use maximal_cmdline_size.
5168 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
5169 (allocate_pages): Use maximal_cmdline_size.
5170 (grub_cmd_linux): Set and use maximal_cmdline_size.
5171 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
5172 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
5173 and cmdline_size.
5174
5175 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
5176 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
5177
5178 Improve devmapper support
5179
5180 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
5181 (grub_util_is_lvm): New function.
5182 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
5183 than lvm if not dmraid.
5184 Handle mapped md nodes.
5185 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
5186 (grub_util_device_is_mapped): ... this. Make always available. All users
5187 updated.
5188 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
5189 (convert_system_partition_to_system_disk): Handle lvm, mpath and
5190 dmraid nodes.
5191 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
5192
5193 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
5194
5195 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
5196
5197 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
5198 * grub-core/modinfo.sh.in: New file.
5199 * grub-core/Makefile.core.def (modinfo.sh): New script.
5200 * util/grub-mknetdir.in: Use modinfo.sh.
5201 * util/grub-mkrescue.in: Likewise.
5202
5203 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
5204
5205 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
5206 Fix potential usage of Elf32 instead of Elf64 when compiling on
5207 32-bit architecture. Add endianness macros while on it.
5208
5209 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
5210
5211 Use mipsel- rather than mips- in directories involving mipsel ports to
5212 allow both endiannesses coexist.
5213
5214 * configure.ac: proparate target_cpu=mipsel rather than resetting to
5215 mips. All conditions adjusted.
5216 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
5217 variable.
5218 * util/grub-install.in: Adjust conditions to take renaming into account.
5219 * util/grub-mkimage.c (image_targets): Likewise. New target
5220 mips-qemu_mips-elf for bigendian mips.
5221
5222 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
5223
5224 Avoid unnecessary copying on MIPS.
5225
5226 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
5227 early if src == dest.
5228 * util/grub-mkimage.c (generate_image): Arange for src == dest if
5229 compression is none.
5230
5231 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
5232
5233 Reduce memory footprint on SGI by putting modules before the kernel
5234 as opposed to after.
5235
5236 * grub-core/Makefile.core.def (kernel): Increase linking address.
5237 (none_decompress): Likewise.
5238 (xz_decompress): Likewise.
5239 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
5240 address.
5241 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
5242 layout change.
5243 (grub_arch_modules_addr): New function.
5244 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
5245 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
5246 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
5247 here.
5248 * grub-core/kern/mips/startup.S (total_size): Rename to ...
5249 (grub_total_modules_size): ... this. Make global.
5250 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
5251 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
5252 New definition.
5253 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
5254 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
5255 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
5256 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
5257 * util/grub-mkimage.c (image_target_desc): New flag
5258 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
5259 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
5260 (generate_image): Handle images with modules before kernel.
5261
5262 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
5263
5264 Prevent potential loss of memory map by overwrite on qemu-mips.
5265
5266 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
5267 Save ram size in $s4.
5268 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
5269 All users changed to grub_arch_memsize.
5270 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
5271 Loongson.
5272 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
5273 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
5274 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
5275 external variable.
5276
5277 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
5278
5279 * .bzrignore: Remove grub-dumpbios.
5280
5281 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
5282
5283 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
5284 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
5285 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
5286 existing options which append).
5287 * docs/grub.texi (Simple configuration): Document new options.
5288 Reported by: Ian Jackson. Fixes Debian bug #617538.
5289
5290 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
5291
5292 * util/grub-fstest.c (cmd_cat): New function.
5293 (fstest): Handle CMD_CAT.
5294 (options): Add cat.
5295 (argp_parser): Handle cat.
5296
5297 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
5298
5299 * Makefile.util.def (grub-bin2h): Don't install.
5300 * docs/man/grub-bin2h.h2m: Remove.
5301
5302 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
5303
5304 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
5305 place.
5306
5307 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
5308
5309 Reenable qemu-mips port.
5310
5311 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
5312 Fix small arc bug while on it.
5313 * gentpl.py: Handle qemu_mips.
5314 * grub-core/Makefile.am: Likewise.
5315 * grub-core/Makefile.core.def: Likewise.
5316 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
5317 inappropriate includes.
5318 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
5319 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
5320 * grub-core/kern/main.c (grub_modules_get_end)
5321 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
5322 * grub-core/kern/mips/qemu-mips: Moved to ..
5323 * grub-core/kern/mips/qemu_mips: ... this.
5324 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
5325 (grub_machine_init): Call terminfo_init and serial_init.
5326 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
5327 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
5328 New variable.
5329 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
5330 parameter passing.
5331 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
5332 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
5333 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
5334 * include/grub/mips/qemu_mips/cmos.h: New file.
5335 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
5336 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
5337 Removed.
5338 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
5339 Use correct mips-style address.
5340 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
5341 (GRUB_TICKS_PER_SECOND): Removed.
5342 (grub_get_rtc): Likewise.
5343 (grub_cpu_idle): Likewise.
5344 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
5345 New definition.
5346 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
5347 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
5348 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
5349 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
5350 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
5351 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
5352 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
5353 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
5354
5355 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
5356
5357 SGI ARCS port.
5358
5359 * Makefile.util.def (libgrubmods.a): Add dvh.c.
5360 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
5361 platforms.
5362 * configure.ac: New target mips-arc.
5363 * gentpl.py: Likewise.
5364 * grub-core/Makefile.am: Likewise.
5365 * grub-core/Makefile.core.def: Likewise.
5366 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
5367 (none_decompress): Likewise.
5368 (lsdev): New module.
5369 (datetime): Use lib/arc/datetime.c on ARC.
5370 (part_dvh): New module.
5371 * grub-core/commands/arc/lsdev.c: New file.
5372 * grub-core/disk/arc/arcdisk.c: Likewise.
5373 * grub-core/kern/mips/arc/init.c: Likewise.
5374 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
5375 aligned addresses.
5376 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
5377 support.
5378 (grub_arch_dl_relocate_symbols): Likewise.
5379 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
5380 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
5381 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
5382 platforms.
5383 * grub-core/lib/arc/datetime.c: New file.
5384 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
5385 pci.h on non-loongson.
5386 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
5387 (grub_linux_boot): Set unused registers to 0.
5388 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
5389 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
5390 * grub-core/mmap/mips/uppermem.c: ...here.
5391 * grub-core/partmap/dvh.c: New file.
5392 * grub-core/term/arc/console.c: Likewise.
5393 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
5394 (grub_terminfo_set_current): Add terminal "arc".
5395 (grub_terminfo_readkey): Support ARC sequences.
5396 * include/grub/arc/arc.h: New file.
5397 * include/grub/arc/console.h: Likewise.
5398 * include/grub/disk.h (grub_disk_dev_id): Add
5399 GRUB_DISK_DEVICE_ARCDISK_ID.
5400 * include/grub/mips/arc/kernel.h: New file.
5401 * include/grub/mips/arc/memory.h: Likewise.
5402 * include/grub/mips/arc/time.h: Likewise.
5403 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
5404 * include/grub/mips/kernel.h (grub_halt): ... here.
5405 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
5406 here...
5407 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
5408 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
5409 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
5410 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
5411 proto.
5412 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
5413 from here ...
5414 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
5415 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
5416 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
5417 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
5418 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
5419 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
5420 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
5421 (grub_phys_addr_t): Moved from here ...
5422 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
5423 (grub_vtop): Moved from here ...
5424 * include/grub/mips/memory.h (grub_vtop): ... here.
5425 (grub_map_memory): Moved from here ...
5426 * include/grub/mips/memory.h (grub_map_memory): ... here.
5427 (grub_unmap_memory): Moved from here ...
5428 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
5429 (grub_machine_mmap_iterate): Moved from here ...
5430 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
5431 (grub_mmap_get_lower): Moved from here ...
5432 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
5433 (grub_mmap_get_upper): Moved from here ...
5434 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
5435 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
5436 here ...
5437 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
5438 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
5439 here ...
5440 * include/grub/mips/time.h (grub_get_rtc): ... here.
5441 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
5442 here ...
5443 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
5444 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
5445 here ...
5446 * include/grub/mips/time.h (grub_cpu_idle): ... here.
5447 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
5448 definition.
5449 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
5450 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
5451 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
5452 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
5453 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
5454 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
5455 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
5456 (GRUB_MACHINE_LINK_ADDR): Likewise.
5457 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
5458 to 6.
5459 * util/grub-install.in: Run dvhtool on ARC.
5460 * util/grub-mkimage.c (image_targets): Add mips-arc.
5461 (generate_image): Handle ECOFF output for mips-arc.
5462
5463 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
5464
5465 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
5466 blocks.
5467
5468 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
5469
5470 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
5471 after enabling port.
5472
5473 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
5474
5475 Skip incorrect USB devices.
5476
5477 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
5478 configcnt == 0.
5479 * include/grub/usb.h (grub_usb_err_t): New enum value
5480 GRUB_USB_ERR_BADDEVICE.
5481
5482 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
5483
5484 Fuloong video init support.
5485
5486 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
5487 well.
5488 (grub_vga_read_arx): New function.
5489 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
5490 definition.
5491 (framebuffer): New members io, mmioptr and mmiobase.
5492 (read_sis_cmd): New function.
5493 (write_sis_cmd): Likewise.
5494 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
5495 rather than 640x400.
5496 * grub-core/video/sis315_init.c: New file.
5497
5498 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
5499
5500 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
5501 non-loongson.
5502 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
5503 to grub_dl_register_symbol.
5504
5505 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
5506
5507 Fix compilation errors.
5508
5509 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
5510 potentially unused.
5511 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
5512 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
5513 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
5514 to loongson machines.
5515
5516 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
5517
5518 Several FS mtime support.
5519
5520 * grub-core/fs/affs.c (grub_affs_time): New struct.
5521 (grub_affs_file): New field mtime.
5522 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
5523 type. Removed 'size'. New field 'di'. All users updated.
5524 (grub_affs_mount): Simplify checsum checking.
5525 (grub_affs_iterate_dir): New helper grub_affs_create_node.
5526 (grub_affs_dir): Handle mtime.
5527 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
5528 (grub_cpio_dir): Likewise.
5529 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
5530 (grub_hfs_filerec): New field mtime.
5531 (grub_hfs_dir): Handle mtime.
5532 (grub_hfs_mtime): New function.
5533 (grub_hfs_fs): Register grub_hfs_mtime.
5534 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
5535 (grub_iso9660_dir): New field mtime.
5536 (grub_fshelp_node): New field dirent.
5537 (iso9660_to_unixtime): New function.
5538 (iso9660_to_unixtime2): Likewise.
5539 (grub_iso9660_read_symlink): Use node->dirent.
5540 (grub_iso9660_iterate_dir): Likewise.
5541 (grub_iso9660_dir): Set mtime.
5542 (grub_iso9660_mtime): New function.
5543 (grub_iso9660_fs): Register grub_iso9660_mtime.
5544 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
5545 (grub_jfs_inode): New fields atime, ctime and mtime.
5546 (grub_jfs_dir): Set mtime.
5547 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
5548 * grub-core/fs/ntfs.c (list_file): Set mtime.
5549 (grub_ntfs_dir): Likewise.
5550 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
5551 (grub_reiserfs_iterate_dir): Set mtime.
5552 (grub_reiserfs_dir): Likewise.
5553 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
5554 (grub_fshelp_node): Likewise.
5555 (grub_sfs_iterate_dir): Set mtime.
5556 (grub_sfs_dir): Likewise.
5557 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
5558 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
5559 (grub_xfs_inode): New fields atime, mtime, ctime.
5560 (grub_xfs_dir): Set mtime.
5561 * include/grub/datetime.h (grub_datetime2unixtime): New function.
5562 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
5563 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
5564
5565 Support UDF symlinks.
5566
5567 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
5568 (grub_ufs_read_symlink): New function. All users updated.
5569
5570 Check amiga partmap checksum.
5571
5572 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
5573 (grub_amiga_partition): Likewise.
5574 (amiga_partition_map_checksum): New function.
5575 (amiga_partition_map_iterate): Check checksum.
5576
5577 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
5578
5579 ROMFS support.
5580
5581 * Makefile.util.def (libgrubmods.a): Add romfs.
5582 * grub-core/Makefile.core.def (romfs): New module.
5583 * grub-core/fs/romfs.c: New file.
5584
5585 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
5586
5587 Squashfs v4 support.
5588
5589 * Makefile.util.def (libgrubmods.a): Add squash4.
5590 * grub-core/Makefile.core.def (squash4): New module.
5591 * grub-core/fs/squash4.c: New file.
5592 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
5593 disk_input_start, disk_input.
5594 (get_byte): Handle disk_input.
5595 (grub_zlib_disk_read): New function.
5596 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
5597
5598 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
5599 2011-05-15 Feiran Zheng <famcool@gmail.com>
5600
5601 * Makefile.util.def (libgrubmods.a): Add minix3.
5602 * grub-core/Makefile.core.def (minix3): New module.
5603 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
5604 (GRUB_MINIX_BSIZE): Removed.
5605 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
5606 (grub_minix_ino_t): New type.
5607 (grub_minix_le_to_cpu_ino): New macro.
5608 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
5609 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
5610 (grub_minix_data): New field block_size.
5611 (grub_minix_read_file): Handle 64-bit correctly.
5612 * grub-core/fs/minix3.c: New file.
5613
5614 2011-05-15 Tristan Gingold <gingold@free.fr>
5615 2011-05-15 Robert Millan <rmh.grub@aybabtu.com>
5616 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
5617
5618 IA64 support.
5619
5620 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
5621 * configure.ac: Add ia64-efi target.
5622 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
5623 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
5624 * gentpl.py: Add ia64_efi platform.
5625 Rename x86_efi to efi and Add ia64-efi. All users updated.
5626 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
5627 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
5628 Remove kern/generic/rtc_get_time_ms.c on EFI.
5629 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
5630 kern/ia64/dl_helper.c on ia64-efi.
5631 Add kern/emu/cache.c on emu.
5632 (linux): Use on loader/ia64/efi/linux.c on ia64.
5633 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
5634 whether symbol is a function.
5635 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
5636 (grub_symbol): New field 'isfunc'.
5637 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
5638 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
5639 (grub_dl_load_segments): Place all sections into the same region.
5640 [__ia64__]: Create trampolines and got.
5641 [GRUB_MACHINE_EMU]: Call mprotect.
5642 (grub_dl_resolve_symbols): Resolve symbol type as well.
5643 [__ia64__]: Create function descriptors.
5644 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
5645 (grub_rtc_get_time_ms): ... this. Expressions simplified.
5646 (grub_get_rtc): New function.
5647 * grub-core/kern/emu/cache.c [__ia64__]: New file.
5648 * grub-core/kern/emu/cache.S: Renamed to ...
5649 * grub-core/kern/emu/cache_s.S: ... this.
5650 [__ia64__]: Add a nop.
5651 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
5652 [__ia64__]: New function.
5653 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
5654 * grub-core/kern/ia64/dl.c: New file.
5655 * grub-core/kern/ia64/dl_helper.c: Likewise.
5656 * grub-core/kern/ia64/efi/init.c: New file.
5657 * grub-core/kern/ia64/efi/startup.S: Likewise.
5658 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
5659 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
5660 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
5661 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
5662 * grub-core/loader/ia64/efi/linux.c: New file.
5663 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
5664 (GRUB_MOD_DEP): Likewise.
5665 (grub_dl) [__ia64__]: New fields got and tramp.
5666 (grub_dl): New field 'base'.
5667 (grub_dl_register_symbol): New argument isfunc. All users updated.
5668 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
5669 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
5670 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
5671 (grub_ia64_dl_get_tramp_got_size): New proto.
5672 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
5673 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
5674 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
5675 * include/grub/efi/api.h: Skip call wrappers on ia64.
5676 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
5677 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
5678 * include/grub/elf.h (ELF_ST_INFO): New definition.
5679 * include/grub/ia64/efi/kernel.h: New file.
5680 * include/grub/ia64/efi/memory.h: Likewise.
5681 * include/grub/ia64/efi/time.h: Likewise.
5682 * include/grub/ia64/kernel.h: Likewise.
5683 * include/grub/ia64/setjmp.h: Likewise (from glibc).
5684 * include/grub/ia64/time.h: New file.
5685 * include/grub/ia64/types.h: Likewise.
5686 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
5687 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
5688 New protos.
5689 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
5690 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
5691 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
5692 * util/grub-mkimage.c (image_target_desc): New field pe_target.
5693 All users updated.
5694 (EFI64_HEADER_SIZE): New definition. All users updated.
5695 (image_targets): Add ia64-efi.
5696 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
5697 jumpers_addr. All users updated.
5698 Create function descriptors.
5699 (count_funcs): New function.
5700 (unaligned_uint32): New struct.
5701 (MASK20): New definition.
5702 (MASK19): Likewise.
5703 (MASKF21): Likewise.
5704 (add_value_to_slot_20b): New function.
5705 (add_value_to_slot_21_real): Likewise.
5706 (add_value_to_slot_21): Likewise.
5707 (ia64_kernel_trampoline): New struct.
5708 (nopm): New variable.
5709 (jump): Likewise.
5710 (make_trampoline): New function.
5711 (relocate_addresses): Handle ia64.
5712 (make_reloc_section): Likewise.
5713 (load_image): Likewise.
5714
5715 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
5716
5717 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
5718 warning. Move variables before code while on it.
5719
5720 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
5721
5722 Fuloong support.
5723
5724 * configure.ac: Rename yeeloong platform to loongson. All users updated.
5725 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
5726 * grub-core/boot/mips/loongson/fuloong.S: New file.
5727 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
5728 Explicitly init CS5536.
5729 [FULOONG]: Don't use serial until CS5536 is available.
5730 Set GPIO based on dumps.
5731 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
5732 [FULOONG]: Handle GPIO and memory controller differences.
5733 Parse machine type in $a2.
5734 * grub-core/boot/mips/startup_raw.S: Determine and save the
5735 architecture.
5736 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
5737 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
5738 init on architecture type.
5739 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
5740 SIS315E. Don't init at_keyboard on fuloong.
5741 (grub_halt): Support Fuloong.
5742 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
5743 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
5744 (loongson_machtypes): New array.
5745 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
5746 type.
5747 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
5748 config. All users updated. Handle CS5536 serial.
5749 * grub-core/term/serial.c (grub_serial_register): Conditionalise
5750 default port on machine type. Register serial as inactive.
5751 * grub-core/video/sis315pro.c: New file.
5752 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
5753 definition.
5754 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
5755 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
5756 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
5757 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
5758 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
5759 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
5760 to ...
5761 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
5762 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
5763 definition.
5764 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
5765 (grub_arch_machine): New extern var.
5766 * include/grub/mips/loongson/serial.h
5767 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
5768 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
5769 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
5770 (GRUB_MACHINE_SERIAL_PORT0): ... this.
5771 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
5772 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
5773 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
5774 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
5775 * include/grub/term.h (grub_term_register_input_inactive): New inline
5776 function.
5777 (grub_term_register_output_inactive): Likewise.
5778 * include/grub/video.h (grub_video_driver_id): New value
5779 GRUB_VIDEO_DRIVER_SIS315PRO.
5780 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
5781 New field "names". All users updated.
5782 New field value IMAGE_FULOONG_FLASH.
5783 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
5784
5785 2011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
5786
5787 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
5788 and add some clarification.
5789
5790 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
5791
5792 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
5793 platforms if kernel is compressed.
5794
5795 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
5796
5797 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
5798 unused modules since currently referrence counter isn't reliable and
5799 there isn't much memory to recover there anyway.
5800
5801 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
5802
5803 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
5804 rather than resetting it to allow modules to reference themselves
5805 in init.
5806
5807 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
5808
5809 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
5810 counter on dependencies since grub_dl_unref already handles this.
5811
5812 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
5813
5814 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
5815 on error if not already done.
5816
5817 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
5818
5819 Fix few potential memory misusage.
5820
5821 * grub-core/font/font.c (load_font_index): Don't free char_index to
5822 avoid double free.
5823 (grub_font_load): Zero-fill font at alloc for safety.
5824 Close file on error.
5825 (free_font): Free bmp_idx.
5826
5827 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
5828
5829 * docs/grub.texi (Installation): Fix several outdated claims.
5830
5831 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
5832
5833 Handle module_license on windows.
5834
5835 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
5836 sections shifted.
5837 (insert_string): Make argument const char * instead of char *.
5838 (write_section_data): Handle long section names.
5839 Handle module_license.
5840
5841 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
5842
5843 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
5844 handle class-free menuentries.
5845 (grub_normal_add_menu_entry): Add a check to be sure.
5846
5847 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
5848
5849 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
5850 PgUp and PgDown.
5851
5852 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
5853
5854 * configure.ac: Bump version to 1.99.
5855
5856 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
5857
5858 Give ATA device a bit more time on first try in order to allow disks
5859 to spin up.
5860
5861 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
5862 if dev->present is 1. Reset dev->present on failure.
5863 (grub_ata_device_initialize): Set dev->present to 1.
5864 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
5865 (grub_ata_device): New member 'present'.
5866
5867 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
5868
5869 * util/grub-mkimage.c (generate_image): Update hash.
5870
5871 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
5872
5873 Flush caches on DMA memory.
5874
5875 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
5876 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
5877 (grub_dma_free): Likewise.
5878 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
5879
5880 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
5881
5882 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
5883 to avoid asm treating ld and sd as macros.
5884
5885 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
5886
5887 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
5888 decompressor.
5889
5890 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
5891
5892 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
5893 grub_decompress_core since later would fail if grub_decompress_core
5894 is too far.
5895
5896 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
5897
5898 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
5899 R_MIPS_JALR since it's used by newer compiler.
5900
5901 2011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
5902
5903 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
5904
5905 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
5906
5907 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
5908 file_path to 0 for surety.
5909 (grub_chainloader_boot): Set exit_data to NULL.
5910 Unset the loader once done.
5911 (grub_cmd_chainloader): Fix confusing error message if file is empty.
5912
5913 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
5914
5915 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
5916 unknown key into a dprintf.
5917
5918 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
5919
5920 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
5921 on first non-existant partition.
5922
5923 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
5924
5925 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
5926 openning fails.
5927 Reported by: Mark Korenberg.
5928
5929 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
5930
5931 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
5932 overflow.
5933
5934 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
5935
5936 * util/grub-mkimage.c (main): Explicitely flush and sync the output
5937 before closing to ensure that it will be readable by grub-setup.
5938
5939 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
5940
5941 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
5942 (devpath_1): Use MAKE_PIWG_PATH.
5943 (devpath_2): Likewise.
5944 (devpath_3): Likewise.
5945 (devpath_4): Likewise.
5946 (devpath_5): Likewise.
5947 (devpath_6): Likewise.
5948
5949 The appleldr.mod was checked that to be binary identical to previous
5950 version.
5951
5952 2011-05-05 Zach <mikezackles>
5953
5954 Support 2010 Macbooks.
5955
5956 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
5957 (devs): Add devpath_6.
5958
5959 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
5960
5961 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
5962 /dev/random. /dev/urandom is good enough for our purposes (salting).
5963
5964 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
5965
5966 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
5967
5968 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
5969
5970 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
5971 hexadecimal.
5972
5973 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
5974
5975 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
5976 and not 0 on failure.
5977
5978 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
5979
5980 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
5981 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
5982 disk; otherwise grub_fs_probe will not fall back to the next
5983 filesystem.
5984 (grub_pxefs_open): Likewise, for consistency.
5985 Reported and tested by: Ezekiel Grave.
5986
5987 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
5988
5989 * tests/partmap_test.in: Don't hardcode path to parted.
5990 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
5991
5992 2011-05-01 Colin Watson <cjwatson@ubuntu.com>
5993
5994 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
5995 of `ls' to find out which devices are available.
5996
5997 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
5998
5999 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
6000 than source address for efi mmap buffer.
6001
6002 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6003
6004 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
6005 wrong action on non-detecting the magic.
6006
6007 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6008
6009 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
6010 already supplied by another part of the module (fixes compilation on
6011 FreeBSD).
6012
6013 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6014
6015 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
6016 match the one used by mdadm.
6017
6018 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
6019
6020 * po/README: Add instructions for creating po/LINGUAS.
6021
6022 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
6023
6024 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
6025 #551428.
6026
6027 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
6028 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
6029 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
6030 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
6031 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
6032 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
6033 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
6034 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
6035 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
6036 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
6037 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
6038 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
6039 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
6040 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
6041 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
6042 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
6043 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
6044 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
6045 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
6046 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
6047 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
6048 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
6049
6050 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
6051
6052 * grub-core/kern/emu/getroot.c
6053 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
6054 test that was incorrectly reintroduced in r3214.
6055 Reported by: Ian Dall. Fixes Savannah bug #33133.
6056
6057 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
6058
6059 Fix stack pointer handling in 16-bit relocator.
6060
6061 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
6062 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
6063 Fixes Ubuntu bug #683904.
6064
6065 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6066
6067 * configure.ac: Bump version to 1.99~rc2.
6068
6069 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6070
6071 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
6072 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
6073 * grub-core/lib/x86_64/setjmp.S: Likewise.
6074 * grub-core/lib/mips/setjmp.S: Likewise.
6075 * grub-core/lib/powerpc/setjmp.S: Likewise.
6076 * grub-core/lib/sparc64/setjmp.S: Likewise.
6077
6078 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6079
6080 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
6081 * grub-core/lib/efi/datetime.c: Likewise.
6082
6083 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6084
6085 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
6086 New function.
6087 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
6088 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
6089 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
6090
6091 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6092
6093 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
6094 bitmap.
6095 (grub_gfxterm_term_init): Likewise.
6096
6097 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6098
6099 Take into account the decorations the computing menu entry width.
6100
6101 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
6102 (grub_gfxmenu_create_box): Register get_border_width.
6103 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
6104 if available.
6105 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
6106 get_border_width.
6107
6108 2011-04-18 Endres Puschner <code@e7p.de>
6109
6110 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
6111 Don't skip first class.
6112
6113 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
6114
6115 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
6116 chunks.
6117 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
6118
6119 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
6120
6121 Complete 64-bit division support.
6122
6123 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
6124 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
6125 * include/grub/misc.h (grub_divmod64): Rename to ...
6126 (grub_divmod64_full): ... this.
6127 (grub_divmod64): New inline function.
6128
6129 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
6130
6131 * util/grub-mkimage.c (generate_image): Add forgotten comma.
6132
6133 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
6134
6135 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
6136 performing the necessary test.
6137
6138 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6139
6140 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
6141 (kfreebsd.elf): Likewise.
6142 (pc-chainloader.elf): Likewise.
6143 (ntldr.elf): Likewise.
6144
6145 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6146
6147 Identify RAID by its UUID rather than (guessed) name.
6148
6149 * grub-core/disk/raid.c (ascii2hex): New function.
6150 (grub_raid_open): Accept mduuid/%s specification.
6151 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
6152 (get_mdadm_uuid): ... this.
6153 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
6154
6155 2011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
6156
6157 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
6158 to negative size.
6159
6160 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
6161
6162 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
6163 btrfs subvolume.
6164 * util/grub.d/20_linux_xen.in: Likewise.
6165
6166 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
6167
6168 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
6169 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
6170
6171 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
6172 Build a list of relevant visible mounts using the mnt_id and
6173 parent_mnt_id fields, and then scan that list at the end.
6174
6175 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
6176
6177 * docs/grub.texi (normal): New section.
6178 (normal_exit): New section.
6179 (Embedded configuration): Add reference to normal.
6180 (GRUB only offers a rescue shell): Likewise.
6181 * docs/grub-dev.texi (Error Handling): Fix typo.
6182
6183 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
6184
6185 * NEWS: Drop obsolete entry about probe-only btrfs support.
6186
6187 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
6188
6189 * util/import_gcry.py: Fix typo.
6190
6191 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6192
6193 * NEWS: Add btrfs support.
6194
6195 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6196 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
6197
6198 BtrFS support. Written by me (Vladimir) with important bugfixes and
6199 even more important testing by Colin.
6200
6201 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
6202 * grub-core/Makefile.core.def (btrfs): Add crc.c.
6203 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
6204 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
6205 mem_input_off and mem_input. All users updated to accept in-RAM input.
6206 (gzio_seek): New function.
6207 (test_zlib_header): Likewise.
6208 (grub_gzio_read): Likewise.
6209 (grub_zlib_decompress): Likewise.
6210 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
6211 Accept partial and non-virtual mounts.
6212 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
6213 avoid receiving /dev/dm-X as device.
6214 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
6215 Handle bind and partial mounts.
6216 * grub-core/lib/crc.c: New file.
6217 * include/grub/deflate.h: Likewise.
6218 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
6219 proto.
6220 * include/grub/lib/crc.h: New file.
6221
6222 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6223
6224 Implement automatic module license checking according to new GNU
6225 guidelines.
6226
6227 * grub-core/kern/dl.c (grub_dl_check_license): New function.
6228 (grub_dl_load_core): Use grub_dl_check_license.
6229 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
6230 (GRUB_MOD_LICENSE): Likewise.
6231 (GRUB_MOD_DUAL_LICENSE): Likewise.
6232 All modules updated.
6233
6234 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
6235
6236 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
6237 reserved_first_sector to 1. btrfs reserves plenty of space for boot
6238 loaders.
6239 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
6240
6241 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6242
6243 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
6244
6245 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6246
6247 * util/grub-fstest.c (read_file): Report GRUB error if file opening
6248 failed.
6249
6250 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6251
6252 * grub-core/kern/file.c (grub_file_open): Don't take into account the
6253 parenthesis in the middle of the filename.
6254
6255 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
6256
6257 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
6258 rather than trying to put initrd way too high.
6259 Reported by: Ryan Lortie <desrt@desrt.ca>
6260
6261 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
6262
6263 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
6264 improperly removed string.
6265
6266 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
6267
6268 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
6269 is_disk.
6270 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
6271 (open_device) Likewise.
6272 (grub_util_biosdisk_close): Likewise.
6273 Reported by: Mark Korenberg.
6274
6275 2011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
6276
6277 * util/grub-mkconfig_lib.in: Add missing quotes.
6278
6279 2011-04-10 Colin Watson <cjwatson@ubuntu.com>
6280
6281 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
6282 is NULL.
6283
6284 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
6285
6286 Dynamically count the number of lines for the lower banner.
6287
6288 * grub-core/normal/menu_entry.c (per_term_screen): New member
6289 num_entries.
6290 (print_down): Use num_entries.
6291 (update_screen): Likewise.
6292 (grub_menu_entry_run): Set num_entries.
6293 * grub-core/normal/menu_text.c (menu_viewer_data): New member
6294 num_entries.
6295 (grub_print_message_indented): Move real part to ...
6296 (grub_print_message_indented_real): ... here. Additional argument
6297 dry_run.
6298 (draw_border): Additional argument num_entries.
6299 (print_message): Additional argument dry_run.
6300 (print_entries): Receive menu viewer data.
6301 (grub_menu_init_page): New argment num_entries.
6302 (menu_text_set_chosen_entry): Use num_entries.
6303 (grub_menu_try_text): Likewise.
6304 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
6305 All users updated.
6306 (grub_ucs4_count_lines): New function.
6307 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
6308 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
6309 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
6310 (grub_term_border_height): Likewise.
6311 (grub_term_num_entries): Likewise.
6312
6313 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
6314
6315 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
6316 Remove now unused string.
6317
6318 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
6319
6320 * docs/grub-dev.texi (Finding your way around): Update for 1.99
6321 build system.
6322 (Getting started): GRUB is developed in Bazaar now, not Subversion.
6323
6324 (Comment): Fix typo.
6325 (Getting started): General copy-editing.
6326 (Typical Development Experience): Likewise.
6327 (Error Handling): Likewise.
6328 (Video API): Likewise.
6329
6330 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
6331
6332 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
6333 throughout.
6334
6335 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
6336
6337 * util/grub-mkimage.c (main): Handle special naming of yeeloong
6338 directory.
6339
6340 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
6341
6342 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
6343 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
6344 "development".
6345
6346 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
6347
6348 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
6349 grub_strcpy since the lines aren't necessarily 0-terminated.
6350
6351 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
6352
6353 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
6354 root on legacy.
6355
6356 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
6357
6358 * grub-core/commands/probe.c (options): Argument to set isn't optional.
6359 (GRUB_MOD_INIT): DEVICE isn't optional.
6360
6361 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
6362
6363 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
6364 word on new line if it's too long anyway. Fixes a hang.
6365
6366 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
6367
6368 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
6369 const.
6370 * util/grub-setup.c (main): Reuse md device name if available.
6371 * util/raid.c (grub_util_raid_getmembers): Receive device name and
6372 not GRUB name as argument.
6373 Based on patch by: Florian Wagner <fwagner>.
6374
6375 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
6376
6377 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
6378 Place mbi on low memory for better compatibility.
6379
6380 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
6381
6382 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
6383
6384 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
6385 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
6386
6387 * autogen.sh: Ensure that collate and ctype locale is C.
6388 * conf/Makefile.common: Likewise.
6389
6390 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
6391
6392 * grub-core/normal/menu.c: Add missing include.
6393
6394 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
6395
6396 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
6397
6398 2011-04-08 Martin Zuther <mzuther@mzuther.de>
6399
6400 * util/grub-mkconfig.in: Ignore emacsen backup.
6401
6402 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
6403
6404 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
6405 on open.
6406 (grub_util_biosdisk_close): Likewise.
6407
6408 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
6409
6410 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
6411 const attribute and use grub_isdigit.
6412
6413 2011-04-06 Andrey <dev_null@ukr.net>
6414
6415 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
6416 gcc warning.
6417
6418 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
6419
6420 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
6421 useful grub_dprintf's.
6422
6423 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
6424
6425 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
6426
6427 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
6428
6429 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
6430
6431 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
6432
6433 Output errors if theme loading failed.
6434
6435 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
6436 grub_gfxterm_fullscreen on error paths to ...
6437 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
6438 theme loading error.
6439
6440 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
6441
6442 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
6443 space for older compilers.
6444 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
6445
6446 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
6447
6448 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
6449 and report them as not RAID members since they are useless for GRUB.
6450 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
6451
6452 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
6453
6454 Increase LVM implementation robustness in order not to crash on
6455 configurations like pvmove. Previously code assumed that in some places
6456 only lvs or only pvs are used whereas it seems that they are used
6457 interchangeably.
6458
6459 * grub-core/disk/lvm.c (read_node): New function.
6460 (read_lv): Use read_node.
6461 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
6462 Match volumes only at the end when all lvs are found. Take both
6463 pvs (first) and lvs (second) into account.
6464 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
6465 mirror_* into node_*. All users updated.
6466 (grub_lvm_stripe): Merge this ...
6467 (grub_lvm_mirror): ... and this ...
6468 (grub_lvm_node): ... into this. All users updated.
6469
6470 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
6471
6472 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
6473 of function to allow further scanning for LVMs.
6474
6475 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
6476
6477 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
6478 on failed seek as it breaks open fd reusage.
6479
6480 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
6481
6482 * util/grub-install.in: Add a recommendation to use --recheck before
6483 reporting bugs.
6484
6485 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
6486
6487 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
6488 are obtained.
6489
6490 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
6491
6492 GRUB developper manual based on existing Internals section and
6493 contributions by the various authors with active copyright assignment.
6494
6495 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
6496 * docs/font_char_metrics.png: New file.
6497 * docs/font_char_metrics.txt: Likewise.
6498 * docs/grub-dev.texi: Likewise.
6499 * docs/grub.texi (Internals): Move from here ...
6500 * docs/grub-dev.texi: ... here.
6501
6502 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
6503
6504 Store the loopback device as data on loopback grub_disk structures,
6505 rather than the file it points to. This fixes use of freed memory
6506 if an existing loopback device is replaced.
6507
6508 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
6509 disk->data, not dev->file.
6510 (grub_loopback_read): Adjust file assignment to match.
6511 Fixes Ubuntu bug #742967.
6512
6513 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
6514
6515 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
6516 when replacing an existing device.
6517
6518 2011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
6519
6520 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
6521 memory corruptions.
6522
6523 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
6524 unsigned.
6525 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
6526 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
6527 (grub_jfs_read_inode): Likewise.
6528 (grub_jfs_opendir): Likewise. Remove now useless casts.
6529 (grub_jfs_getent): Likewise.
6530 Make ino a grub_uint32_t rather than int.
6531 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
6532 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
6533 division and module with bit operations.
6534 (grub_jfs_find_file): Make ino a grub_uint32_t.
6535 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
6536
6537 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
6538
6539 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
6540 warning. (This was in fact always initialised before use, but GCC
6541 wasn't smart enough to prove that.)
6542 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
6543
6544 2011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
6545
6546 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
6547 stack alignment.
6548 (efi_wrap_1): Likewise.
6549 (efi_wrap_2): Likewise.
6550 (efi_wrap_3): Likewise.
6551 (efi_wrap_4): Likewise.
6552 (efi_wrap_5): Likewise.
6553 (efi_wrap_6): Likewise.
6554 (efi_wrap_10): Likewise.
6555 Based on information by: Red Hat/Peter Jones.
6556
6557 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
6558
6559 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
6560 set-but-not-used variable.
6561
6562 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
6563
6564 * docs/grub.texi (Simple configuration): Be more explicit about
6565 GRUB_DEFAULT, and add an example.
6566 Reported by: Leslie Rhorer.
6567
6568 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
6569
6570 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
6571 shell".
6572
6573 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
6574
6575 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
6576 * util/grub.d/20_linux_xen.in: Likewise.
6577
6578 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
6579
6580 * util/grub.d/10_linux.in: Try alternative config filenames where
6581 we parse config file.
6582 * util/grub.d/20_linux_xen.in: Likewise.
6583
6584 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
6585
6586 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
6587 * util/grub.d/20_linux_xen.in: Likewise.
6588
6589 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
6590
6591 * grub-core/disk/raid.c (insert_array): Add few potentially
6592 useful grub_util_info.
6593 (grub_raid_register): Likewise.
6594
6595 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
6596
6597 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
6598 Preserve partition number in mdadm code path.
6599
6600 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
6601
6602 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
6603 few potentially useful grub_util_info.
6604
6605 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
6606
6607 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
6608
6609 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
6610
6611 * docs/grub.texi (default): Use @example rather than nested
6612 itemized lists to avoid breaking gendocs.
6613
6614 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
6615
6616 * docs/grub.texi (Future): Update.
6617
6618 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
6619
6620 * docs/grub.texi (Environment): New chapter.
6621 (Changes from GRUB Legacy): Link to "Environment block" section for
6622 details of limitations.
6623 (Simple configuration): Likewise. Link to documentation of gfxmode
6624 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
6625 respectively.
6626 (Shell-like scripting): Note that normal variables are stored in the
6627 environment.
6628 (gettext): Link to documentation of lang and locale_dir.
6629 (list_env): New section.
6630 (load_env): New section.
6631 (save_env): New section.
6632
6633 (Reporting bugs): Fix typo.
6634
6635 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
6636
6637 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
6638 the example.
6639
6640 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
6641
6642 * grub-core/term/at_keyboard.c (set_scancodes)
6643 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
6644
6645 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
6646
6647 * docs/grub.texi (Menu-specific commands): Remove some semantics
6648 that were true in GRUB Legacy but not in GRUB 2.
6649 (submenu): New section.
6650 (false): New section.
6651 (read): New section.
6652 (true): New section.
6653
6654 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
6655
6656 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
6657
6658 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
6659
6660 * docs/grub.texi (Simple configuration): Explain some of the
6661 current limitations of grub-mkconfig.
6662 Reported by: Leslie Rhorer.
6663
6664 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
6665
6666 Old macs search for boot.efi rather than for bootia32.efi.
6667
6668 * util/grub-install.in: Copy bootia32.efi to boot.efi.
6669 * util/grub-mkrescue.in: Likewise.
6670 Suggested by: Peter Jones.
6671
6672 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
6673
6674 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
6675
6676 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
6677
6678 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
6679 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
6680 (grub_lvm_mirror): New struct.
6681 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
6682 (grub_lvm_iterate): Iterate only visible volumes.
6683 (grub_lvm_read): Factor out to ..
6684 (read_lv): ... this. Support mirrors.
6685 (grub_lvm_read): New wrapper function.
6686 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
6687 stripped or mirrored.
6688
6689 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
6690
6691 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
6692
6693 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
6694
6695 * docs/grub.texi (loopback): New section.
6696
6697 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
6698
6699 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
6700 removed -p option.
6701
6702 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
6703
6704 * docs/grub.texi (BIOS installation): New section, partly based on
6705 previous text in other sections.
6706 (Installing GRUB using grub-install): Replace BIOS discussion with a
6707 cross-reference.
6708 (Images): Likewise.
6709
6710 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
6711
6712 * grub-core/kern/emu/hostdisk.c (find_partition_start)
6713 [HAVE_DIOCGDINFO]: Add safety checks.
6714
6715 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
6716
6717 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
6718 per default compiled in kernel and prior to 8.0 isn't shipped at all.
6719
6720 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
6721
6722 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
6723 real_sb->size is zero (e.g. RAID-0), get the disk size from
6724 real_sb->data_size instead.
6725 Fixes Ubuntu bug #743136.
6726
6727 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
6728
6729 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
6730 printf clauses for printing size and start.
6731
6732 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
6733
6734 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
6735 Reported and tested by: Timothy Nikkel.
6736
6737 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
6738
6739 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
6740 (dirty_region_add_real): ... this.
6741 (dirty_region_add): Don't discard margin refresh when performing
6742 scheduled repaint.
6743
6744 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
6745
6746 * grub-core/lib/relocator.c (allocate_regstart)
6747 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
6748 terminals are capabple of malloc-free operation.
6749 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
6750 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
6751
6752 2011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
6753
6754 * util/grub-setup.c: Copy the partition table zone if floppy support
6755 is disabled, even if no partition table is found.
6756
6757 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
6758 during POST if an invalid partition table is contained in the PBR
6759 of the active partition when GRUB is installed to a partition.
6760
6761 2011-03-28 Colin Watson <cjwatson@debian.org>
6762
6763 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
6764 comment.
6765
6766 2011-03-28 Colin Watson <cjwatson@debian.org>
6767
6768 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
6769 to be specific about what kind of RAID device we're scanning for.
6770
6771 2011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
6772
6773 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
6774 return freed string.
6775
6776 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
6777
6778 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
6779
6780 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
6781
6782 Use libgeom on FreeBSD to detect partitions.
6783
6784 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
6785 (grub-mkrelpath): Likewise.
6786 (grub-script-check): Likewise.
6787 (grub-editenv): Likewise.
6788 (grub-mkpasswd-pbkdf2): Likewise.
6789 (grub-fstest): Likewise.
6790 (grub-mkfont): Likewise.
6791 (grub-mkdevicemap): Likewise.
6792 (grub-probe): Likewise.
6793 (grub-setup): Likewise.
6794 (grub-ofpathname): Likewise.
6795 (grub-mklayout): Likewise.
6796 (example_unit_test): Likewise.
6797 (grub-menulst2cfg): Likewise.
6798 * grub-core/Makefile.core.def (grub-emu): Likewise.
6799 (grub-emu-lite): Likewise.
6800 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
6801 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
6802 define HAVE_DIOCGDINFO.
6803 (follow_geom_up) [FreeBSD]: New function.
6804 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
6805 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
6806 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
6807 unconditionally of HAVE_DIOCGDINFO.
6808
6809 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
6810
6811 Fix FreeBSD compilation problem.
6812
6813 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
6814 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
6815
6816 2011-03-24 Colin Watson <cjwatson@ubuntu.com>
6817
6818 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
6819 Switch back to page zero before loading a kernel, since some kernel
6820 drivers expect that.
6821 Thanks to: Felix Kuehling.
6822
6823 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
6824
6825 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
6826 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
6827 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
6828
6829 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
6830
6831 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
6832 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
6833
6834 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
6835
6836 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
6837 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
6838 malloc is disabled.
6839
6840 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
6841
6842 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
6843 for modules headers when counting the needed allocation size.
6844
6845 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
6846
6847 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
6848 if no ASCII character is found to prevent crash.
6849
6850 2011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
6851
6852 * grub-core/video/bitmap.c (match_extension): Ignore case.
6853
6854 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
6855
6856 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
6857
6858 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
6859
6860 * grub-core/script/parser.y: Declare "time" as valid argument.
6861
6862 2011-03-23 Peter Jones <pjones@redhat.com>
6863
6864 Fix incorrect assert failure reporting.
6865
6866 * grub-core/tests/example_functional_test.c (example_test): Add
6867 a failure comment.
6868 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
6869 (failure_start): ...this. Check that malloc succeeded.
6870 Don't call xvasprintf. Return failure struct.
6871 (failure_append_vtext): New function.
6872 (failure_append_text): Likewise.
6873 (add_failure): Likewise.
6874 (grub_test_assert_helper): Likewise.
6875 * include/grub/test.h (grub_test_assert_helper): New declaration.
6876 (grub_test_assert): Macro rewritten.
6877
6878 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
6879
6880 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
6881
6882 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
6883
6884 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
6885
6886 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
6887
6888 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
6889 into GRUB-style one.
6890
6891 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
6892
6893 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
6894 error and not grub_errno.
6895 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
6896
6897 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
6898
6899 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
6900 GRUB_USB_SPEED_NONE in case of failure and not the error code.
6901
6902 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
6903
6904 * grub-core/efiemu/i386/pc/cfgtables.c
6905 (grub_machine_efiemu_init_tables): Make declaration a prototype.
6906 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
6907 (grub_xnu_unlock): Likewise.
6908 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
6909
6910 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
6911
6912 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
6913 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
6914 * grub-core/commands/hashsum.c (aliases): Likewise.
6915 * grub-core/commands/setpci.c (pci_registers): Likewise.
6916 * grub-core/disk/usbms.c (attach_hook): Likewise.
6917 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
6918 (zio_checksum_table): Likewise.
6919 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
6920 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
6921 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
6922 * grub-core/lib/relocator.c (leftovers): Likewise.
6923 (extra_blocks): Likewise.
6924 * grub-core/loader/i386/bsd.c (relocator): Likewise.
6925 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
6926 (modules_last): Likewise.
6927 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
6928 (devices): Likewise.
6929 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
6930 (modules_last): Likewise.
6931 * grub-core/normal/auth.c (users): Likewise.
6932 * grub-core/normal/context.c (initial_menu): Likewise.
6933 (current_menu): Likewise.
6934 * grub-core/normal/crypto.c (crypto_specs): Likewise.
6935 * grub-core/term/serial.c (grub_serial_ports): Likewise.
6936 (grub_serial_terminfo_input_template): Likewise.
6937 (grub_serial_terminfo_output_template): Likewise.
6938 (grub_serial_terminfo_input): Likewise.
6939 (grub_serial_terminfo_output): Likewise.
6940 (registered): Likewise.
6941 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
6942
6943 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
6944
6945 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
6946 grub_video_mode_type_t.
6947 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
6948 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
6949 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
6950
6951 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
6952
6953 * util/grub-install.in: Correct the x86-64 name as x86_64.
6954
6955 2011-03-11 Colin Watson <cjwatson@ubuntu.com>
6956
6957 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
6958 initial chunk read from the kernel always includes GRUB's multiboot
6959 header, which is now outside the first sector.
6960
6961 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
6962
6963 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
6964 cached mmap_size, so that this works correctly when called multiple
6965 times.
6966 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
6967
6968 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
6969
6970 * docs/grub.texi (Simple configuration): Tidy up formatting.
6971
6972 2011-03-07 Szymon Janc <szymon@janc.net.pl>
6973
6974 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
6975 Set-but-not-used variable removed.
6976
6977 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6978
6979 Workaround yet another IEEE1275 bug.
6980
6981 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
6982 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
6983 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
6984 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
6985 is set.
6986 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
6987 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
6988
6989 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6990
6991 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
6992 error.
6993
6994 2011-02-11 Colin Watson <cjwatson@ubuntu.com>
6995
6996 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
6997 empty, since in that case we can only generate either nothing or a
6998 syntactically invalid configuration file.
6999 Reported by: Michal Suchanek. Fixes Debian bug #612898.
7000
7001 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
7002
7003 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
7004 (Making a GRUB bootable CD-ROM): Likewise.
7005 (Invoking grub-mkrescue): New section.
7006 Reported by: Yann Dirson. Fixes Debian bug #612585.
7007
7008 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
7009
7010 * util/grub-install.in: Remove unnecessary brackets from tr
7011 arguments.
7012 * util/grub.d/10_hurd.in: Likewise.
7013 * util/grub.d/10_kfreebsd.in: Likewise.
7014 * util/grub.d/10_linux.in: Likewise.
7015 * util/grub.d/20_linux_xen.in: Likewise.
7016 Reported by: Jamie Heilman. Fixes Debian bug #612564.
7017
7018 2011-02-08 Colin Watson <cjwatson@ubuntu.com>
7019
7020 * include/grub/file.h (not_easly_seekable): Rename to ...
7021 (not_easily_seekable): ... this. Update all users.
7022
7023 2011-01-28 Colin Watson <cjwatson@ubuntu.com>
7024
7025 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
7026 grub-mkrescue.
7027
7028 2011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
7029
7030 * util/grub-mkimage.c (generate_image): Refuse to create the images
7031 bigger than the actual flash (512K) in Loongson machines. 512K is also
7032 the biggest chip supported by them.
7033
7034 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
7035
7036 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
7037
7038 2011-01-22 Anthony DeRobertis <anthony@derobert.net>
7039
7040 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
7041 super_offset field.
7042
7043 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
7044
7045 * util/grub-install.in: Ignore install device on platforms
7046 where it doesn't make sense. Always use UUIDs except on pc, efi and
7047 sparc64.
7048 Reported by: Daniel Kahn Gillmor.
7049
7050 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
7051
7052 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
7053
7054 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
7055
7056 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
7057 (iterate_real): Don't rely on partition being non-NULL.
7058
7059 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
7060
7061 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
7062 supported platforms. Put a compile time assert for this rather than
7063 generate a warning with 32-bit shift.
7064
7065 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
7066
7067 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
7068 logical expression more readable.
7069
7070 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
7071
7072 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
7073 even if some elements have a name.
7074 Reported by: Alexander GQ Gerasiov.
7075
7076 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
7077
7078 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
7079 path unreadable if `grub-probe -t abstraction' fails, for example if
7080 memberlist fails on an LVM volume group.
7081 Reported by: Darius Jahandarie.
7082
7083 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
7084
7085 * docs/grub.texi (Simple configuration): Document
7086 GRUB_PRELOAD_MODULES.
7087
7088 2011-01-17 Colin Watson <cjwatson@ubuntu.com>
7089
7090 * .bzrignore: Remove nonexistent grub-pbkdf2.
7091
7092 2011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7093
7094 * configure.ac: Bump version to 1.99~rc1.
7095
7096 2011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
7097
7098 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
7099 for safety.
7100
7101 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7102
7103 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
7104 module.
7105
7106 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7107
7108 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
7109
7110 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
7111
7112 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
7113 diskdevid.
7114
7115 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
7116
7117 Fix compilation on cygwin.
7118
7119 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
7120 -R .drectve on cygwin.
7121 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
7122 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
7123 (COND_CYGWIN): New condition.
7124 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
7125 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
7126 not @TARGET_OBJ2ELF@.
7127 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
7128 type to determine whether aux is to be used.
7129
7130 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7131
7132 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
7133 realpath'ed device string.
7134 Handle floppy (somewhat).
7135 Issue error in unknown case rather than garbage.
7136 Reported by: Axel Beckert.
7137
7138 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7139
7140 * util/grub.d/00_header.in (load_video): Handle the case when no video
7141 drivers available.
7142 Thanks to: Axel Beckert.
7143
7144 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7145
7146 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
7147 variable. Fixes problem on big endian platforms.
7148
7149 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7150
7151 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
7152 It doesn't work well there.
7153
7154 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7155
7156 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
7157 warning.
7158 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
7159 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
7160 counter.
7161
7162 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7163
7164 Use alias->path rather than buggy "canon".
7165
7166 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
7167 (ofdisk_hash_add): New argument curcan. All users updated.
7168
7169 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
7170
7171 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
7172
7173 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
7174
7175 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
7176 loadmask before doing any calculations. Use correct type for offset.
7177 (grub_linux_load64): Likewise.
7178
7179 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
7180
7181 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
7182 with NULL.
7183 (console_grub_equivalences_unshift): Likewise.
7184 Reported by: Daniel Dehennin.
7185
7186 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
7187
7188 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
7189 (set_env_limn_ro): Likewise.
7190 (GRUB_MOD_INIT): Likewise.
7191 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
7192 ARRAY_SIZE while on it.
7193 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
7194 * grub-core/normal/context.c (grub_env_export): Move from here ...
7195 * grub-core/kern/env.c (grub_env_export): ... here.
7196 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
7197 prefix.
7198 * grub-core/kern/main.c (grub_main): Export root and prefix.
7199 * include/grub/env.h (grub_env_export): Export.
7200 Reported by: Seth Goldberg.
7201
7202 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
7203
7204 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
7205 Take into account space used by ELF sections and multiboot palette.
7206 Reported by: Grégoire Sutre.
7207
7208 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
7209
7210 * BUGS: New file.
7211
7212 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
7213
7214 Pass more appropriate video id to Linux.
7215
7216 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
7217 grub_video_get_driver_id and variable gfxpayloadforcelfb to
7218 fill have_vga.
7219 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
7220 shift params->lfb_size.
7221 * include/grub/i386/linux.h: Make an enume out of have_vga values.
7222
7223 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
7224
7225 * util/grub-menulst2cfg.c: Add missing include of misc.h.
7226
7227 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
7228
7229 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
7230 separator and pass bootpath/devid even if only one of them is available.
7231 Reported by: Seth Goldberg.
7232
7233 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
7234
7235 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
7236 implementations bug on them.
7237
7238 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
7239 memory.
7240 (filter_memory_map): Likewise.
7241
7242 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
7243
7244 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
7245 Reported by: nebuchadnezzar.
7246
7247 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
7248
7249 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
7250 Reported by: nebuchadnezzar.
7251
7252 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
7253
7254 Submenu default support.
7255
7256 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
7257 auto_boot. All users updated.
7258 Declared static.
7259 Handle chosen and default with submenus.
7260 (grub_menu_execute_with_fallback): Declared static.
7261 Don't notify failure if autobooted. Upper level does it.
7262 (menuentry_eq): New function.
7263 (get_entry_number): Use menuentry_eq.
7264 (show_menu): New parameter "autobooted". All users updated.
7265 (grub_show_menu): Likewise.
7266 * include/grub/normal.h (grub_show_menu): Likewise.
7267 * include/grub/menu.h (grub_menu_execute_entry): Removed.
7268 (grub_menu_execute_with_fallback): Likewise.
7269
7270 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
7271
7272 * util/grub-mklayout.c (usage): Update help text.
7273
7274 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
7275
7276 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
7277
7278 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
7279
7280 * util/grub-menulst2cfg.c (main): Trim the line.
7281
7282 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
7283
7284 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
7285 (grub_machine_init): Don't check amount of low memory as reportedly
7286 INT 12h can be broken and if low memory is too low we wouldn't have
7287 gotten into grub_machine_init anyway.
7288
7289 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
7290
7291 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
7292 (grub_machine_mmap_iterate): Take low memory into account
7293
7294 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
7295
7296 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
7297 badfs.
7298 Reported by: TiCPU.
7299
7300 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
7301
7302 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
7303 members errors.
7304
7305 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
7306
7307 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
7308 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
7309
7310 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
7311
7312 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
7313 openbsd and netbsd types being in part_bsd module.
7314
7315 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
7316
7317 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
7318 (_FILE_OFFSET_BITS): Likewise.
7319 Reported by: Seth Goldberg.
7320
7321 2011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
7322
7323 * configure.ac: Check for libdevmapper header.
7324
7325 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
7326
7327 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
7328 avoid aliasing.
7329 (fzap_lookup): Likewise.
7330 (dnode_get): Likewise.
7331 (make_mdn): Likewise.
7332 (zfs_mount): Likewise.
7333 (fzap_iterate): Use temporary pointer to avoid aliasing.
7334 (grub_zfs_read): Likewise.
7335 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
7336 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
7337 pointers to avoid aliasing.
7338 (grub_cmd_xnu_kernel64): Likewise.
7339 (grub_xnu_load_driver): Likewise.
7340
7341 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
7342
7343 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
7344 aliasing warning.
7345 (grub_cmd_terminal_output): Likewise.
7346 Reported and tested by: Grégoire Sutre.
7347
7348 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
7349
7350 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
7351 warning.
7352 Reported and tested by: Grégoire Sutre.
7353
7354 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
7355
7356 * configure.ac: Do CPU substitution even if it's specified explicitly.
7357 Reported and tested by: Alain Greppin.
7358
7359 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
7360
7361 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
7362 Reported and tested by: Alain Greppin.
7363
7364 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
7365
7366 Satisfy some bison versions need for inttypes.h.
7367
7368 * grub-core/lib/posix_wrap/inttypes.h: New file.
7369 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
7370 (int16_t): Likewise.
7371 (int32_t): Likewise.
7372 (int64_t): Likewise.
7373 Reported and tested by: Alain Greppin.
7374
7375 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
7376
7377 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
7378 Silence spurious warning.
7379 Reported and tested by: Alain Greppin.
7380
7381 2011-01-07 Szymon Janc <szymon@janc.net.pl>
7382
7383 * docs/grub.texi (Support automatic decompression): Update with xz
7384 decompression support.
7385
7386 2011-01-07 Szymon Janc <szymon@janc.net.pl>
7387
7388 Improve loaders' kernel command line handling.
7389
7390 * grub-core/lib/cmdline.c: New file.
7391 * include/grub/lib/cmdline.h: Likewise.
7392 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
7393 grub_create_loader_cmdline to create kernel command line.
7394 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
7395 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
7396 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
7397 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
7398 (linux): Add lib/cmdline.c on common.
7399
7400 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
7401
7402 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
7403 inopos might be unaligned.
7404
7405 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
7406
7407 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
7408 endian transformations.
7409 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
7410 Based on report by: Doug Nazar.
7411
7412 2011-01-07 Doug Nazar <nazard.michi@gmail.com>
7413
7414 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
7415 array->members[i].start_sector.
7416 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
7417
7418 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
7419
7420 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
7421 Reported and tested by: Grégoire Sutre.
7422
7423 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
7424
7425 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
7426 avoid causing test failures by clearing the screen.
7427
7428 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
7429
7430 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
7431 Fix prefix check to handle the case where dir ends with a slash
7432 (most significantly, "/" itself).
7433 Reported by: Michael Vogt.
7434
7435 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
7436
7437 Run terminfo_cls on initing terminfo output to clear the screen and
7438 move the cursor to (0,0).
7439
7440 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
7441 Call grub_terminfo_output_init.
7442 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
7443 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
7444 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
7445
7446 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
7447
7448 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
7449 only when needed.
7450
7451 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
7452
7453 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
7454 CTRL.
7455
7456 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
7457
7458 The E820 type 5 is BADRAM, not EXEC_CODE.
7459
7460 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
7461 (GRUB_E820_BADRAM): New define.
7462 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
7463 into reserved. Propagate BADRAM.
7464 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
7465 (GRUB_E820_BADRAM): New define.
7466
7467 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
7468
7469 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
7470 Ignore the memory post-4G.
7471 (grub_relocator_firmware_alloc_region): Additional debug statement.
7472
7473 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
7474
7475 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
7476 names.
7477 Reported by: David Pravec.
7478
7479 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
7480
7481 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
7482 BIOSes.
7483
7484 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
7485
7486 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
7487 Prevent overflow.
7488 (grub_reed_solomon_recover): Likewise.
7489
7490 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
7491
7492 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
7493
7494 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
7495
7496 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
7497 variable.
7498
7499 2011-01-04 Colin Watson <cjwatson@ubuntu.com>
7500
7501 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
7502 descriptions of extract_legacy_entries_source and
7503 extract_legacy_entries_configfile.
7504 Reported by: Seung Soo, Ha.
7505
7506 2011-01-03 Colin Watson <cjwatson@ubuntu.com>
7507
7508 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
7509 on devices that do not implement function 0.
7510
7511 2011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
7512
7513 * grub-core/fs/hfsplus.c: Make parent unsigned.
7514 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
7515 overflows.
7516 (grub_hfsplus_cmp_extkey): Likewise
7517
7518 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
7519
7520 * util/grub-install.in: Correctly use bootloader_id and not
7521 GRUB_DISTRIBUTOR on efibootmgr line.
7522
7523 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
7524
7525 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
7526
7527 2010-12-31 Ian Campbell <ijc@hellion.org.uk>
7528
7529 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
7530 Xen and reorder menu item wording to make it clearer that this entry
7531 will launch Xen. Print separate messages when loading Xen and
7532 Linux.
7533
7534 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
7535
7536 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
7537 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
7538 loop in case of incorrect amiga partmap.
7539
7540 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
7541
7542 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
7543 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
7544 Reported by:EHeM.
7545
7546 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
7547
7548 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
7549 spurious warning.
7550 Reported by: crocket
7551
7552 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
7553
7554 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
7555 Preload EFIemu.
7556 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
7557
7558 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
7559
7560 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
7561 is loaded
7562 (grub_cmd_xnu_kextdir): Likewise.
7563 (grub_cmd_xnu_splash): Likewise.
7564
7565 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
7566
7567 Avoid using Reed-Solomon with 0 redundancy.
7568
7569 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
7570 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
7571 or 0 redundancy.
7572 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
7573 (grub_reed_solomon_recover): Likewise.
7574
7575 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
7576
7577 Don't use disk subsystem in freebsd_boot.
7578
7579 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
7580 (freebsd_biosdev): Likewise.
7581 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
7582 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
7583
7584 2010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
7585
7586 Handling of files of unknown size is currently limited. They can't be
7587 used e.g. for initrd or modules. Moreover gzip handling of not
7588 easily seekable files is buggy. Disable unknown file size for now. May
7589 be inefficient but works.
7590
7591 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
7592 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
7593
7594 2010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
7595
7596 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
7597 floppy probe.
7598
7599 2010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
7600
7601 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
7602
7603 2010-12-25 Shea Levy <shlevy>
7604
7605 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
7606
7607 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7608
7609 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
7610 Windows Server 2008.
7611 Reported by: Devin Giddings.
7612
7613 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7614
7615 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
7616 writing an error message because of async power management.
7617 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
7618 (grub_reboot): Likewise.
7619
7620 2010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
7621
7622 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
7623 keep unit tests from failing when they shouldn't.
7624
7625 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
7626
7627 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
7628 previous patch increased the size of the RS code by 20 bytes (at
7629 least with gcc-4.4), so increase this by 20 bytes to match.
7630 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
7631
7632 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
7633
7634 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
7635 scratch area. Make sure to initialise chosen in standalone mode as
7636 well as non-standalone.
7637 Reported by: Robert Hooker and Andy Whitcroft.
7638 Tested by: Andy Whitcroft.
7639
7640 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
7641
7642 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
7643 constructing a new unescaped string and passing it to grub_xputs in
7644 one go, rather than passing characters to grub_printf one at a time.
7645
7646 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
7647
7648 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
7649 initialising utf16.
7650
7651 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
7652
7653 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
7654 comment. Add an extra layer of quotation, requiring the output of
7655 this function to be used in a printf format string.
7656 (gettext_printf): New function.
7657 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
7658 Extract translatable strings from here-documents and use a temporary
7659 variable instead, so that xgettext can find them.
7660 * util/grub.d/10_kfreebsd.in: Likewise.
7661 * util/grub.d/10_linux.in: Likewise.
7662 * util/grub.d/20_linux_xen.in: Likewise.
7663
7664 * po/grub.d.sed: New file.
7665 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
7666 arguments. Set c-format flags on all strings extracted from
7667 util/grub.d/ (xgettext refuses to include these itself for strings
7668 it extracted from a shell file, but these really are c-format).
7669
7670 2010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
7671
7672 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
7673 Avoid next pointing to nowhere.
7674
7675 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
7676
7677 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
7678 rather than assuming than rootblock is exactly in the middle.
7679 (grub_affs_label): Likewise.
7680
7681 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
7682
7683 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
7684 reserved_first_sector to 0.
7685 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
7686 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
7687 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
7688
7689 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
7690
7691 Fix handling of UTF-16 UDF labels.
7692
7693 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
7694 (read_string): .. here.
7695 (grub_udf_label): Use read_string.
7696
7697 2010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
7698
7699 * grub-core/normal/menu_entry.c (run): Execute commands from menu
7700 editor under argument scope.
7701 Reported by: Jordan Uggla
7702
7703 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
7704
7705 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
7706
7707 2010-12-18 Colin Watson <cjwatson@ubuntu.com>
7708
7709 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
7710 line, and other keys scroll an entire page (previous handling was
7711 for \r and \n to scroll a page and other keys to scroll two lines).
7712
7713 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
7714
7715 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
7716 Set ptrdest to correct get_physical_target_address rather than
7717 incorrect get_virtual_current_address.
7718
7719 2010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
7720
7721 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
7722 correct cat to grub_uint8_t * rather than grub_uint32_t *.
7723
7724 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
7725
7726 * .bzrignore: Ignore grub-core/rs_decoder.S.
7727
7728 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
7729
7730 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
7731 .mo/.mo.gz opening sequence to ...
7732 (grub_mofile_open_lang): ... here.
7733 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
7734 * util/grub.d/00_header.in (grub_lang): Include country part of
7735 locale.
7736 Reported by: Mario Limonciello.
7737
7738 2010-12-09 Robert Millan <rmh@gnu.org>
7739
7740 * NEWS: Document addition of ZFS support.
7741
7742 2010-12-04 Colin Watson <cjwatson@ubuntu.com>
7743
7744 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
7745 rather than `/ 2', as the latter requires -Wa,--divide which would
7746 require bumping our minimum binutils version.
7747
7748 2010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
7749
7750 * util/grub-script-check.c (main): Print script line number on
7751 error.
7752
7753 2010-12-01 Robert Millan <rmh@gnu.org>
7754
7755 * grub-core/fs/zfs/zfs.c: New file.
7756 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
7757 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
7758 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
7759 * grub-core/fs/zfs/zfsinfo.c: Likewise.
7760
7761 * include/grub/zfs/dmu.h: Likewise.
7762 * include/grub/zfs/dmu_objset.h: Likewise.
7763 * include/grub/zfs/dnode.h: Likewise.
7764 * include/grub/zfs/dsl_dataset.h: Likewise.
7765 * include/grub/zfs/dsl_dir.h: Likewise.
7766 * include/grub/zfs/sa_impl.h: Likewise.
7767 * include/grub/zfs/spa.h: Likewise.
7768 * include/grub/zfs/uberblock_impl.h: Likewise.
7769 * include/grub/zfs/vdev_impl.h: Likewise.
7770 * include/grub/zfs/zap_impl.h: Likewise.
7771 * include/grub/zfs/zap_leaf.h: Likewise.
7772 * include/grub/zfs/zfs.h: Likewise.
7773 * include/grub/zfs/zfs_acl.h: Likewise.
7774 * include/grub/zfs/zfs_znode.h: Likewise.
7775 * include/grub/zfs/zil.h: Likewise.
7776 * include/grub/zfs/zio.h: Likewise.
7777 * include/grub/zfs/zio_checksum.h: Likewise.
7778
7779 * Makefile.util.def: Build ZFS into libgrubmods.
7780 * grub-core/Makefile.core.def: Build zfs.mod.
7781
7782 2010-11-30 Szymon Janc <szymon@janc.net.pl>
7783
7784 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
7785 variable.
7786 * grub-core/commands/wildcard.c (match_files): Likewise.
7787
7788 2010-11-30 Robert Millan <rmh@gnu.org>
7789
7790 * grub-core/loader/i386/bsd.c
7791 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
7792 whether kernel is loaded using grub_loader_is_loaded(), rather
7793 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
7794 certain error conditions.
7795
7796 2010-11-30 Robert Millan <rmh@gnu.org>
7797
7798 * grub-core/commands/echo.c: Include `<grub/term.h>'.
7799 (grub_cmd_echo): Call grub_refresh() after printing a message.
7800
7801 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
7802
7803 Avoid using tricks for initialising endian variables.
7804
7805 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
7806 Make const.
7807 (GRUB_MOD_INIT): Don't byte-swap.
7808 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
7809 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
7810 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
7811 (grub_swap_bytes32_compile_time): Likewise.
7812 (grub_cpu_to_le32_compile_time): Likewise.
7813 (grub_cpu_to_le16_compile_time): Likewise.
7814
7815 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
7816
7817 * util/grub-setup.c (setup): Stop recommending --force. People who
7818 understand the dangers of blocklists are able to find this option
7819 anyway and the ones who don't shouldn't use it anyway.
7820
7821 2010-11-26 Robert Millan <rmh@gnu.org>
7822
7823 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
7824 Update all users.
7825
7826 2010-11-26 Colin Watson <cjwatson@ubuntu.com>
7827
7828 Fix LVM-on-RAID probing.
7829
7830 * util/grub-probe.c (probe): Remember which disk was detected as
7831 RAID (perhaps an LVM physical volume). Use that disk's raidname
7832 rather than that of the top-level disk.
7833
7834 2010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
7835
7836 Fix cmdline argument quotes for setparams command of menuentry
7837 definitions.
7838
7839 * grub-core/commands/menuentry.c (setparams_prefix): Use single
7840 quotes for arguments.
7841 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
7842 grub_strchrsub function instead.
7843
7844 * include/grub/misc.h (grub_strchrsub): New function.
7845
7846 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
7847
7848 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
7849 effort by skipping "." and ".." entries up-front.
7850 Suggested by: Michael Lazarev.
7851
7852 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
7853
7854 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
7855 ldflags to ldadd, to fix link line ordering.
7856 (none_decompress): Likewise.
7857
7858 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
7859
7860 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
7861 platforms.
7862 (grub-emu-lite): Remove kern/emu/cache.S.
7863
7864 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
7865
7866 * util/deviceiter.c (compare_devices): If the by-id link for a
7867 device couldn't be resolved, fall back to sorting by the by-id link
7868 rather than segfaulting.
7869 Reported and tested by: Daniel Mierswa.
7870
7871 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
7872
7873 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
7874 ldflags, to fix link line ordering.
7875
7876 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
7877
7878 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
7879 linkers are picky about this.
7880
7881 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
7882
7883 * grub-core/Makefile.am (command.lst): Adjust sed expression
7884 ordering so that extended and priority commands aren't treated as
7885 ordinary commands.
7886
7887 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
7888
7889 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
7890 Remove byte-swapping function calls, which are not valid in
7891 structure initialisers.
7892 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
7893 non-const.
7894 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
7895 grub_gpt_partition_type_bios_boot.
7896
7897 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
7898
7899 Fix test program build on GNU/kFreeBSD.
7900
7901 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
7902 $(LIBNVPAIR)' library dependencies.
7903
7904 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
7905
7906 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
7907
7908 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
7909
7910 * util/grub-install.in: Remove excessive quoting that broke
7911 installations to RAID devices.
7912
7913 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
7914
7915 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
7916 bootloader version instead of 0.
7917
7918 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
7919
7920 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
7921 warning.
7922
7923 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
7924
7925 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
7926 retrieve the metadat sector if size isn't known.
7927 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
7928
7929 2010-11-18 Robert Millan <rmh@gnu.org>
7930
7931 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
7932 with grub_memcmp().
7933
7934 2010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
7935
7936 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
7937 arrow.
7938 Reported by: Jordan Uggla.
7939
7940 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
7941
7942 Make better UTF compliant.
7943
7944 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
7945 sequences as incorrect.
7946 (grub_is_valid_utf8): Likewise.
7947 (grub_utf8_to_ucs4): Likewise.
7948 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
7949 (grub_ucs4_to_utf8_alloc): Likewise.
7950 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
7951
7952 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
7953
7954 Make legacy_source behave like source.
7955
7956 * grub-core/commands/legacycfg.c (legacy_file): Don't call
7957 grub_show_menu.
7958 (grub_cmd_legacy_source): Call grub_show_menu if needed.
7959
7960 2010-11-16 Colin Watson <cjwatson@debian.org>
7961
7962 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
7963 (-Wunused implies -Wunused-parameter, but not vice versa).
7964
7965 2010-11-16 Colin Watson <cjwatson@ubuntu.com>
7966
7967 * configure.ac: Make error messages less confusing by testing for
7968 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
7969 accepted, but produces a diagnostic if something else is wrong).
7970
7971 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
7972
7973 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
7974 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
7975 (now unused).
7976 (grub_keyboard_controller_init)
7977 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
7978 read the initial state since controller isn't inited yet.
7979
7980 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
7981
7982 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
7983 allocate_regbeg may need to create new chunk header.
7984
7985 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
7986
7987 Fix quoting in legacy parser.
7988
7989 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
7990 single quotes.
7991 (grub_legacy_parse): Likewise.
7992 Reported by: Jordan Uggla.
7993 Tested by: Jordan Uggla.
7994
7995 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
7996
7997 Don't add -lgcc on i386 and x86_64.
7998
7999 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
8000 * conf/Makefile.common (LDADD_KERNEL): Likewise.
8001 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
8002
8003 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
8004
8005 * configure.ac: Add -Wno-trampolines when supported.
8006
8007 2010-11-14 Modestas Vainius <modax@debian.org>
8008
8009 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
8010 fakeraid.
8011
8012 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
8013
8014 Add generic logical block size support for UDF.
8015
8016 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
8017 (GRUB_UDF_BLKSZ): Removed.
8018 (struct grub_udf_data): New field "lbshift" to hold the logical block
8019 size of the file system in log2 format. All users updated.
8020 (sblocklist): Change type to unsigned.
8021 (grub_udf_mount): Change type of "sblklist" to unsigned.
8022 Move AVDP search before VRS recognition, because the latter requires
8023 knowledge of the logical block size, which is detected during the
8024 former.
8025 Detect and validate logical block size during AVDP search, adding
8026 support for block sizes 512, 1024 and 4096.
8027 Make VRS recognition independent of block size.
8028
8029 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
8030
8031 Properly handle deleted files on UDF.
8032
8033 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
8034 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
8035 set.
8036
8037 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
8038
8039 Support reading files larger than 2 GiB.
8040
8041 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
8042 "offset" to grub_off_t.
8043 (grub_udf_read_file): Likewise for parameter "pos".
8044
8045 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
8046
8047 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
8048 unavailable.
8049 (Simple configuration): Refer to Changes from GRUB Legacy about
8050 save_env availability.
8051
8052 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
8053
8054 * util/grub-install.in: Ignore empty partition table detection
8055 instead of trying to include part_ module.
8056
8057 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
8058
8059 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
8060 LVM on RAID support.
8061
8062 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
8063
8064 Properly define WORDS_BIGENDIAN in wrapped environments.
8065
8066 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
8067 definition.
8068 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
8069
8070 Reported by: Manoel Rebelo Abranches.
8071 Tested by: Manoel Rebelo Abranches.
8072
8073 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
8074
8075 * util/grub-mkconfig.in: Fix quoting.
8076
8077 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
8078
8079 Support big ext2 files.
8080
8081 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
8082 (grub_ext2_read_block): Support triple indirect blocks.
8083 (grub_ext2_read_file): Use 64-bit types and read size_high.
8084 (grub_ext2_open): Read size_high.
8085 Reported by: Ximin Luo.
8086 Tested by: Manoel Rebelo Abranches.
8087
8088 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
8089
8090 * util/grub-install.in: Handle filenames containing spaces.
8091 Reported by: Jordan Uggla.
8092 Tested by: Jordan Uggla.
8093
8094 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
8095
8096 * util/grub-mkconfig.in (grub_script_check): New variable.
8097 Use grub_script_check instead of grub-script-check.
8098 Reported by: Barry Jackson.
8099
8100 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
8101
8102 * docs/grub.texi (menu): Correct the order.
8103 Reported by: D. Hugh Redelmeier.
8104
8105 2010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8106
8107 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
8108 jump.
8109
8110 2010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
8111
8112 * include/grub/elfload.h (grub_elf32_size): New parameter.
8113 All users updated.
8114 Return maximum segments alignment.
8115 (grub_elf64_size): Likewise.
8116 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
8117 Return maximum segments alignment.
8118 (grub_elf64_size): Likewise.
8119 * grub-core/loader/powerpc/ieee1275/linux.c:
8120 (grub_linux_claimmap_iterate): New function. Uses the
8121 "available" property in the "memory" node for memory allocation
8122 for kernel in the PowerPC loader.
8123 (grub_linux_load32): Correctly find linux entry point offset.
8124 (grub_linux_load64): Likewise.
8125
8126 2010-11-07 Robert Millan <rmh@gnu.org>
8127
8128 On mips-yeeloong, build with -march=loongson2f when this flag is
8129 available (GCC >= 4.4).
8130 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
8131 `-march=mips3'.
8132 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
8133 or otherwise add -march=mips3.
8134
8135 2010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
8136
8137 Suppress shell expansion on echo '*' and echo "*" like cases.
8138 Reported by: Jordan Uggla.
8139
8140 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
8141 string arguments before shell expansion.
8142 * tests/grub_cmd_echo.in: New testcases.
8143
8144 2010-11-07 Robert Millan <rmh@gnu.org>
8145
8146 * conf/mips-qemu-mips.rmk: Remove stale file from previous
8147 transition.
8148
8149 2010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
8150
8151 * grub-core/kern/emu/hostdisk.c
8152 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
8153
8154 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
8155
8156 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
8157 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
8158 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
8159
8160 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
8161
8162 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
8163
8164 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
8165
8166 * util/grub-install.in: Replace useless recomendation to pass
8167 --modules with a recomendation to report a bug.
8168
8169 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
8170
8171 Properly register serial terminfo.
8172 Reported by: Jordan Uggla
8173
8174 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
8175 const.
8176 (grub_serial_terminfo_output_template): Likewise.
8177 (grub_cmd_serial): Register "serial" with terminfo.
8178 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
8179 grub_serial_terminfo_output.
8180
8181 2010-11-05 Robert Millan <rmh@gnu.org>
8182
8183 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
8184 needed).
8185
8186 2010-11-05 Robert Millan <rmh@gnu.org>
8187
8188 On Yeeloong, pass machine type information to Linux.
8189
8190 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
8191 (LOONGSON_MACHTYPE): New macro, set to
8192 "machtype=lemote-yeeloong-2f-8.9inches".
8193 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
8194 additional argument to Linux.
8195
8196 2010-11-04 Robert Millan <rmh@gnu.org>
8197
8198 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
8199 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
8200 (its SATA disks are detected as slaveless IDE master drives on
8201 kFreeBSD).
8202 Reported by Carsten Aulbert.
8203
8204 2010-11-02 Colin Watson <cjwatson@ubuntu.com>
8205
8206 * util/bin2h.c (main): Fix spelling error in generated output.
8207
8208 2010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
8209
8210 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
8211
8212 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
8213
8214 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
8215 vga= option is supplied.
8216
8217 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
8218
8219 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
8220 * util/grub.d/10_kfreebsd.in: Likewise.
8221 * util/grub.d/10_linux.in: Likewise.
8222 * util/grub.d/20_linux_xen.in: Likewise.
8223
8224 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
8225
8226 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
8227 argument as an argument to no-argument option.
8228
8229 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
8230
8231 * util/grub.d/10_linux.in: Add missing load_video with explicit
8232 GRUB_GFXPAYLOAD_LINUX.
8233
8234 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
8235
8236 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
8237
8238 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
8239
8240 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
8241 elements with invlid index.
8242 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
8243 * grub-core/disk/raid.c (insert_array): Automatically reallocate
8244 members.
8245 * include/grub/raid.h (grub_raid_member): New struct.
8246 (grub_raid_array): Transform devices and start_sector into usage of
8247 grub_raid_member. All users updated
8248 (allocated_devs): New member.
8249
8250 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
8251
8252 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
8253 is modified
8254
8255 2010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
8256
8257 NetBSD build fix for getline function conflict from gnulib.
8258
8259 * Makefile.util.def (libgrubkern.a): New library for grub kernel
8260 components that depend on gnulib headers.
8261 (libgrubmods.a): Renamed from earlier libgrub.a.
8262 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
8263
8264 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
8265
8266 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
8267 install rather than creating a broken install.
8268
8269 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
8270
8271 * util/grub-setup.c (argp): Remove misleading example of installing to
8272 a partition.
8273
8274 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
8275
8276 * util/grub-setup.c (setup): Clarify the error message.
8277
8278 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
8279
8280 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
8281
8282 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
8283
8284 * grub-core/kern/emu/misc.c
8285 (grub_make_system_path_relative_to_its_root)
8286 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
8287
8288 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
8289
8290 * grub-core/kern/emu/misc.c
8291 (grub_make_system_path_relative_to_its_root): Revert r2882.
8292
8293 2010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
8294
8295 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
8296 useless field head. All users updated.
8297 (free_subchunk): Correct handling of IN_REGION subchunk.
8298
8299 2010-10-22 Colin Watson <cjwatson@ubuntu.com>
8300
8301 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
8302 (Supported kernels): Likewise.
8303
8304 2010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
8305
8306 Make mktemp invocations portable.
8307
8308 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
8309 exit if mktemp fails.
8310 * tests/grub_script_blockarg.in: Likewise.
8311 * tests/partmap_test.in: Likewise.
8312 * tests/util/grub-shell-tester.in: Likewise.
8313 * tests/util/grub-shell.in: Likewise.
8314 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
8315 * Makefile.am: Likewise, and chain shell commands with `&&'
8316 instead of ';'.
8317 * util/grub-mkrescue.in: Use the same explicit template as above, and
8318 exit if mktemp fails.
8319
8320 2010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
8321
8322 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
8323 Linux kernel, reported by Dennis Schridde.
8324
8325 2010-10-17 Szymon Janc <szymon@janc.net.pl>
8326
8327 * grub-core/normal/auth.c (grub_auth_check_authentication):
8328 Set-but-not-used variable removed.
8329
8330 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
8331
8332 * docs/grub.texi (GNU/Linux): Document APM unavailability with
8333 32-bit linux protocol.
8334
8335 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
8336
8337 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
8338 cursor shape for sanity.
8339
8340 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
8341
8342 * docs/grub.texi (Installation): Document buggy BIOS install.
8343
8344 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
8345
8346 * docs/grub.texi (Installation): Indent.
8347
8348 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
8349
8350 * util/grub-setup.c (setup): New parameter allow_floppy.
8351 (arguments): New member allow_floppy.
8352 (argp_parser): Handle --allow-floppy.
8353 (main): Pass allow_floppy.
8354 * util/grub-install.in: New option --allow-floppy passed though to
8355 grub-setup.
8356
8357 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
8358
8359 * util/grub-install.in: Handle partitionless disks.
8360
8361 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
8362
8363 * util/grub-setup.c (setup): Don't clean blocklists before readability
8364 verfification.
8365
8366 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
8367
8368 * docs/grub.texi (Installation): Document embedding zone. Remove
8369 obsolete grub-install example.
8370
8371 2010-10-16 Szymon Janc <szymon@janc.net.pl>
8372
8373 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
8374 Set-but-not-used variable ifdef'ed.
8375 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
8376 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
8377 variable removed.
8378 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
8379 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
8380 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
8381 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
8382 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
8383 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
8384 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
8385 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
8386 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
8387 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
8388 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
8389 Likewise.
8390
8391 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
8392
8393 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
8394 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
8395 enum value.
8396
8397 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
8398
8399 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
8400 synonym to _S5_. Needed for some DSDTs.
8401
8402 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
8403
8404 Userspace ACPI parser debugging.
8405
8406 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
8407 headers and add relevant defines. Don't include standard headers.
8408 (main) [GRUB_DSDT_TEST]: New function.
8409 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
8410 Don't declare functions.
8411
8412 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
8413
8414 Remove dead grub_efi_mm_fini.
8415
8416 * grub-core/kern/efi/mm.c (allocated_page): Removed.
8417 (ALLOCATED_PAGES_SIZE): Likewise.
8418 (MAX_ALLOCATED_PAGES): Likewise.
8419 (allocated_pages): Likewise.
8420 (grub_efi_allocate_pages): Don't record allocated pages.
8421 (grub_efi_free_pages): Likewise.
8422 (grub_efi_mm_init): Likewise.
8423 (grub_efi_mm_fini): Removed.
8424
8425 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
8426
8427 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
8428 (grub_efi_mm_init): Take into account the memory map size increase.
8429
8430 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
8431
8432 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
8433 (serial_hw_put): Wait based on real time rather than port reads. Don't
8434 roken ports.
8435 * include/grub/serial.h (grub_serial_port): New field broken.
8436
8437 2010-10-16 Robert Millan <rmh@gnu.org>
8438
8439 * grub-core/kern/emu/misc.c
8440 (grub_make_system_path_relative_to_its_root): Fix premature return
8441 when processing non-root ZFS filesystems.
8442 Reported by Sergio Talens-Oliag.
8443
8444 2010-10-15 Robert Millan <rmh@gnu.org>
8445
8446 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
8447 guarantee compressed ones are processed first.
8448
8449 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
8450
8451 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
8452 grub_efiemu_autocore.
8453
8454 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
8455
8456 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
8457 rather than 0x1b.
8458 (grub_console_getkey): Use correct jae opcode rather than ja.
8459
8460 2010-10-12 Robert Millan <rmh@gnu.org>
8461
8462 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
8463 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
8464 variable. All references updated.
8465
8466 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
8467
8468 2010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
8469
8470 Correctly distinguish mdraid flavours.
8471
8472 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
8473 (insert_array): New argument raid.
8474 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
8475 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
8476 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
8477
8478 2010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
8479
8480 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
8481 handling of special keys.
8482
8483 2010-10-02 Aleš Nesrsta <starous@volny.cz>
8484
8485 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
8486 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
8487
8488 2010-10-02 Aleš Nesrsta <starous@volny.cz>
8489
8490 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
8491 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
8492 users updated.
8493 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
8494 Use right endpoint when querying descriptor.
8495
8496 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
8497
8498 Clear out 0x80 color bit on EFI.
8499 Tested by: decoder
8500 Reported by: decoder and meta tech.
8501
8502 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
8503 (grub_console_setcolorstate): Clear out 0x80 bit.
8504 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
8505 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
8506 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
8507
8508 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
8509
8510 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
8511 Set to "auto".
8512
8513 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
8514
8515 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
8516 mo_file after freeing.
8517
8518 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
8519
8520 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
8521
8522 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
8523
8524 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
8525 flags.
8526
8527 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
8528
8529 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
8530 usage.
8531
8532 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
8533
8534 Put terminfo into core on ieee1275 and yeeloong (needed for console).
8535
8536 * gentpl.py: New groups terminfoinkernel and terminfomodule.
8537 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
8538 and terminfo.h when needed.
8539 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
8540 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
8541 (terminfo): Enable only on terminfokernel.
8542 (extcmd): Likewise.
8543 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
8544 * include/grub/lib/arg.h: Likewise.
8545 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
8546 incorrect usage of ->.
8547
8548 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
8549
8550 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
8551 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
8552
8553 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
8554
8555 Fix coreboot compilation.
8556
8557 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
8558 Take VBE info into account even if only text is supported.
8559 (fill_vbe_info): Take into account the case when only VGA text
8560 is supported.
8561 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
8562 on coreboot, multiboot and qemu.
8563
8564 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
8565
8566 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
8567 debug messages.
8568 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
8569
8570 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
8571
8572 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
8573 parameters.
8574
8575 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
8576
8577 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
8578 if they were BSD-style.
8579
8580 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
8581
8582 * grub-core/boot/i386/pc/lnxboot.S: Replace
8583 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
8584 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
8585
8586 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
8587
8588 Write embedding zone using Reed-Solomon.
8589
8590 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
8591 * grub-core/Makefile.am (rs_decoder.S): New target.
8592 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
8593 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
8594 (multiboot): Move to RS part.
8595 (post_reed_solomon): New label.
8596 (grub_boot_drive): Move to non-RS part since it's modified in memory
8597 on boot.
8598 Include rs_decoder.S.
8599 * grub-core/lib/reed_solomon.c: New file.
8600 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
8601 New definition.
8602 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
8603 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
8604 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
8605 * include/grub/partition.h (grub_partition_map): Change prototype of
8606 embed to allow returning additional sectors.
8607 * include/grub/reed_solomon.h: New file.
8608 * util/grub-setup.c (setup): Handle Reed-Solomon.
8609
8610 2010-09-28 Colin Watson <cjwatson@ubuntu.com>
8611
8612 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
8613 i386 and x86-64 definedness tests.
8614
8615 2010-09-27 Yves Blusseau <blusseau@zetam.org>
8616
8617 Fix generation of kernel_syms.lst
8618
8619 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
8620 ASM_PREFIX
8621
8622 2010-09-26 Robert Millan <rmh@gnu.org>
8623
8624 Support degraded ZFS arrays in "grub-probe -t device" resolution.
8625
8626 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
8627 the pool is an array of devices, iterate through it and return the
8628 first device that passes a stat() test (instead of blindly returning
8629 the first one).
8630
8631 2010-09-26 Robert Millan <rmh@gnu.org>
8632
8633 Build fixes for GNU/kFreeBSD.
8634
8635 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
8636 to programs that require ZFS conversion.
8637 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
8638 kernels that don't have FLOPPY_MAJOR.
8639
8640 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
8641
8642 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
8643
8644 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
8645
8646 Fix grub-emu build.
8647
8648 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
8649 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
8650 mdraid09 and mdraid1x.
8651
8652 2010-09-24 Colin Watson <cjwatson@ubuntu.com>
8653
8654 Re-enable grub-extras.
8655
8656 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
8657 avoid confusing Automake. Run autogen only twice, once for the top
8658 level and once for grub-core. Add Makefile.util.def and
8659 Makefile.core.def from extra modules to the appropriate autogen
8660 invocations. If Makefile.common exists in an extra module, include
8661 it in both Makefile.util.am and grub-core/Makefile.core.am;
8662 similarly, include any Makefile.util.common file in Makefile.util.am
8663 and any Makefile.core.common file in grub-core/Makefile.core.am.
8664 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
8665 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
8666 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
8667 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
8668
8669 * gentpl.py (gvar_add): Turn GVARS into a set.
8670 (global_variable_initializers): Sort global variables on output.
8671 (vars_init): New function.
8672 (first_time): Likewise.
8673 (library): Ensure that non-global variable initialisations are
8674 emitted before the first time we emit code for a library block.
8675 Append to variables rather than setting them. Only emit
8676 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
8677 each conditional path.
8678 (program): installdir() emits an Autogen macro, so must be passed to
8679 var_add rather than gvar_add.
8680 (data): Likewise.
8681 (script): Likewise.
8682 (rules): New function, centralising handling for different target
8683 types. Set up Guile association lists for first_time and vars_init,
8684 and send most output to a diversion so that variable initialisations
8685 can be emitted first.
8686 (module_rules): Use new rules function.
8687 (kernel_rules): Likewise.
8688 (image_rules): Likewise.
8689 (library_rules): Likewise.
8690 (program_rules): Likewise.
8691 (script_rules): Likewise.
8692 (data_rules): Likewise.
8693
8694 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
8695
8696 * .bzrignore: Add contrib and grub-core/contrib. Remove
8697 grub-core/Makefile.gcry.am.
8698
8699 2010-09-24 Yves Blusseau <blusseau@zetam.org>
8700
8701 * grub-core/lib/LzFind.c: Add missing include.
8702 * grub-core/lib/LzmaEnc.c: Likewise.
8703 * grub-core/script/lexer.c: Likewise.
8704 * grub-core/script/yylex.l: Likewise.
8705 * util/grub-macho2img.c: Likewise.
8706 * util/grub-menulst2cfg.c: Likewise.
8707 * util/grub-mklayout.c: Likewise.
8708 * util/grub-mkpasswd-pbkdf2.c
8709 * util/grub-mkrelpath.c: Likewise.
8710 * util/resolve.c: Likewise.
8711
8712 2010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
8713
8714 * Makefile.util.def (example_unit_test): Add
8715 grub-core/gnulib/libgnu.a.
8716
8717 2010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
8718
8719 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
8720
8721 2010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
8722
8723 Support xz compression on yeeloong.
8724
8725 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
8726 * configure.ac: Check for LZMA.
8727 * grub-core/Makefile.core.def (xz_decompress): New target.
8728 (none_decompress): Likewise.
8729 * grub-core/boot/decompressor/minilib.c: New file.
8730 * grub-core/boot/decompressor/none.c: Likewise.
8731 * grub-core/boot/decompressor/xz.c: Likewise.
8732 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
8733 * grub-core/kern/mips/cache_flush.S: Likewise.
8734 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
8735 * grub-core/kern/mips/startup.S: Move first stage to ...
8736 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
8737 nomacro.
8738 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
8739 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
8740 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
8741 Allocate statically.
8742 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
8743 Allocate statically or use scratch. Don't check CRC32.
8744 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
8745 Allocate statically. Don't check CRC32.
8746 * include/grub/decompressor.h: New file.
8747 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
8748 Removed.
8749 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
8750 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
8751 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
8752 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
8753 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
8754 * util/grub-mkimage.c (grub_compression_t): New type.
8755 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
8756 (image_target_desc): New field default_compression.
8757 (image_targets): Adjust yeeloong targets.
8758 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
8759 (compress_kernel): New parameter comp.
8760 (generate_image): Likewise. Handle new compression case.
8761 (options): New option --compression
8762 (help): Likewise.
8763 (main): Handle new option.
8764
8765 2010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
8766
8767 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
8768
8769 2010-09-22 Colin Watson <cjwatson@ubuntu.com>
8770
8771 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
8772 typo in __i386__ conditional.
8773
8774 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
8775
8776 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
8777 include.
8778
8779 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
8780
8781 Implement EFI and ACPI multiboot2 extensions.
8782
8783 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
8784 new tags as supported.
8785 (acpiv2_size): New function.
8786 (grub_multiboot_get_mbi_size): Take new tags into account.
8787 (grub_multiboot_make_mbi): Add new tags.
8788 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
8789
8790 2010-09-21 Aleš Nesrsta <starous@volny.cz>
8791
8792 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
8793 Added missing configuration of USB device.
8794
8795 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
8796
8797 * grub-core/normal/menu_entry.c (run): Make sure we always return
8798 a value.
8799
8800 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
8801
8802 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
8803 NumberOfPages is UINT64 according to the UEFI specification, not
8804 UINTN. Fix printf format.
8805
8806 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
8807
8808 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
8809 `err' to grub_usb_err_t.
8810 Reported and tested by: KESHAV P.R.
8811
8812 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
8813
8814 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
8815 tpart non-const, so that we can assign to it. (Since this is a
8816 typedef, the constness refers to the pointer rather than what it
8817 points to.)
8818
8819 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
8820
8821 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
8822 $(top_srcdir)/grub-core/gnulib as well as
8823 $(top_builddir)/grub-core/gnulib.
8824 Reported by: KESHAV P.R.
8825
8826 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
8827
8828 * util/grub-install.in: Fix the bootloader ID option to be
8829 consistently --bootloader-id, not --bootloader_id.
8830 Reported by: KESHAV P.R.
8831
8832 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
8833
8834 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
8835 check hash checksum." consistently translatable.
8836
8837 2010-09-21 Yves Blusseau <blusseau@zetam.org>
8838
8839 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
8840 $(top_builddir).
8841
8842 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
8843
8844 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
8845 (GRUB_MOD_INIT): Register sha1sum command.
8846 (GRUB_MOD_FINI): Unregister sha1sum command.
8847
8848 2010-09-21 Yves Blusseau <blusseau@zetam.org>
8849
8850 Keep boot and grub directory names in sync with utils scripts
8851
8852 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
8853 * config.h.in: Add previous macros.
8854 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
8855 * util/grub-install.in: Use $bootdir and $grubdir variables.
8856
8857 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
8858
8859 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
8860 convert partition names to disk names if the new `convert' parameter
8861 is set.
8862 (grub_util_biosdisk_get_grub_dev): If opening the disk device
8863 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
8864 disk in its own right. This can happen with Xen disk images.
8865
8866 2010-09-21 Yves Blusseau <blusseau@zetam.org>
8867
8868 * util/grub-editenv.c: Update strings to avoid warnings when generating
8869 grub.pot file.
8870 * util/grub-setup.c: Likewise.
8871
8872 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
8873
8874 * configure.ac: Change version to 1.99~beta0.
8875
8876 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
8877
8878 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
8879 Add BADRAM.
8880 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
8881 Likewise.
8882 * include/multiboot.h: Resynced with specification.
8883 * include/multiboot2.h: Likewise.
8884
8885 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
8886
8887 Fix po directory handling.
8888
8889 * configure.ac: Create po/Makefile.in rather than po/Makefile.
8890 * grub-core/gnulib/Makefile.am: Import gettext module.
8891 * m4/gnulib-cache.m4: Likewise.
8892 * m4/gnulib-comp.m4: Likewise.
8893 * m4/gettext.m4: New file, from gnulib.
8894 * m4/glibc2.m4: Likewise.
8895 * m4/iconv.m4: Likewise.
8896 * m4/intdiv0.m4: Likewise.
8897 * m4/intl.m4: Likewise.
8898 * m4/intldir.m4: Likewise.
8899 * m4/intlmacosx.m4: Likewise.
8900 * m4/intmax.m4: Likewise.
8901 * m4/inttypes-pri.m4: Likewise.
8902 * m4/lcmessage.m4: Likewise.
8903 * m4/lib-ld.m4: Likewise.
8904 * m4/lib-link.m4: Likewise.
8905 * m4/lib-prefix.m4: Likewise.
8906 * m4/lock.m4: Likewise.
8907 * m4/nls.m4: Likewise.
8908 * m4/po.m4: Likewise.
8909 * m4/printf-posix.m4: Likewise.
8910 * m4/progtest.m4: Likewise.
8911 * m4/threadlib.m4: Likewise.
8912 * m4/uintmax_t.m4: Likewise.
8913 * m4/visibility.m4: Likewise.
8914 * po/Makefile.am: Remove.
8915 * po/Makefile.in.in: New file, from gettext.
8916 ($(DOMAIN).pot-update): Support POTFILES-shell.
8917 * po/Makevars: New file.
8918 * po/POTFILES-shell: Rename to ...
8919 * po/POTFILES-shell.in: ... this. Update.
8920 * po/POTFILES: Rename to ...
8921 * po/POTFILES.in: ... this. Update.
8922 * po/Rules-quot: New file, from gettext.
8923 * po/boldquot.sed: Likewise.
8924 * po/en@boldquot.header: Likewise.
8925 * po/en@quot.header: Likewise.
8926 * po/insert-header.sin: Likewise.
8927 * po/quot.sed: Likewise.
8928 * po/remove-potcdate.sin: Likewise.
8929
8930 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8931
8932 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
8933
8934 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8935
8936 * util/grub.d/20_linux_xen.in: Use submenus.
8937
8938 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8939
8940 Support submenus.
8941
8942 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
8943 parameter submenu. All users updated.
8944 * grub-core/normal/main.c (free_menu): Rename to ...
8945 (grub_normal_free_menu): ... this. Made global.
8946 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
8947 if requested.
8948 * grub-core/normal/menu_entry.c (screen): New field submenu.
8949 (make_screen): Set submenu.
8950 (run): Open new context if requested.
8951 * include/grub/menu.h (grub_menu_entry): New field submenu.
8952 * include/grub/normal.h (grub_normal_free_menu): New proto.
8953
8954 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8955
8956 Menu entries extractor.
8957
8958 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
8959 variants.
8960 (GRUB_MOD_INIT): Register new variants.
8961 (GRUB_MOD_FINI): Unregister new variants.
8962 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
8963 into grub_cmd_legacy_source.
8964 (grub_cmd_legacy_source): Implement extractor variants.
8965 (GRUB_MOD_INIT): Register new variants.
8966 (GRUB_MOD_FINI): Unregister new variants.
8967 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
8968 as an extractor.
8969 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
8970 search as an extractor.
8971 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
8972 test as an extractor.
8973 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
8974 as an extractor.
8975 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
8976 (grub_env_new_context): New function.
8977 (grub_env_context_open): Likewise.
8978 (grub_env_extractor_open): Likewise.
8979 (grub_env_extractor_close): Likewise.
8980 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
8981 grub_extractor_level.
8982 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
8983 * include/grub/env.h (grub_env_extractor_open): New proto.
8984 (grub_env_extractor_close): Likewise.
8985 * include/grub/normal.h (grub_extractor_level): New external variable.
8986
8987 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8988
8989 Make cutmem accept a region specification.
8990 Suggested by: Samuel Thibault
8991
8992 * grub-core/mmap/mmap.c (parsemem): New function.
8993 (grub_cmd_cutmem): Handle new arguments.
8994
8995 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8996
8997 New command cutmem.
8998
8999 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
9000 (GRUB_MOD_INIT): Register new command.
9001 (GRUB_MOD_FINI): Unregister new command.
9002
9003 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
9004
9005 Support some annoying BSD and Minix subpartitions.
9006
9007 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
9008 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
9009 Properly handle concatenation.
9010 * grub-core/kern/device.c (grub_device_iterate): Likewise.
9011 * grub-core/normal/completion.c (iterate_partition): Likewise.
9012 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
9013 contain partition. All users updated.
9014 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
9015 struct.
9016 (grub_openbsdlabel_partition_map): Likewise.
9017 (bsdlabel_partition_map_iterate): Rename to ..
9018 (iterate_real): ... this. New arguments sector, freebsd and pmap.
9019 (bsdlabel_partition_map_iterate): New function.
9020 (netopenbsdlabel_partition_map_iterate): Likewise.
9021 (netbsdlabel_partition_map_iterate): Likewise.
9022 (openbsdlabel_partition_map_iterate): Likewise.
9023 (GRUB_MOD_INIT): Register new partmaps.
9024 (GRUB_MOD_FINI): Unregister new partmaps.
9025 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
9026 (grub_partition_msdos_iterate): ... this. All users updated.
9027 Don't support embedding other than in a minix partition.
9028 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
9029 proto.
9030 * include/grub/partition.h (grub_partition): New field msdostype.
9031 * util/grub-install.in: Handle openbsd and netbsd types being in
9032 part_bsd module.
9033
9034 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
9035
9036 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
9037
9038 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
9039 * grub-core/Makefile.core.def (mdraid): Renamed to ...
9040 (mdraid09): ... this.
9041 (mdraid1x): New module.
9042 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
9043 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
9044
9045 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
9046
9047 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
9048 vsprintf.
9049
9050 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
9051
9052 * grub-core/commands/efi/lsefimmap.c: Correct header.
9053 * NEWS: Update.
9054
9055 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
9056
9057 * util/grub-editenv.c (argp_parser): Don't pass translated strings
9058 as printf format strings; the translations might contain '%' which
9059 could cause a crash.
9060 (main): Likewise.
9061 * util/grub-fstest.c (argp_parser): Likewise.
9062 * util/grub-setup.c (argp_parser): Likewise.
9063 (main): Likewise.
9064
9065 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
9066
9067 Use argp in grub-fstest.
9068
9069 * util/grub-fstest.c: Don't include getopt.h.
9070 Include argp.h.
9071 (root): New variable.
9072 (args_count): Likewise.
9073 (nparm): Likewise.
9074 (num_disks): Likewise.
9075 (images): Likewise.
9076 (cmd): Likewise.
9077 (debug_str): Likewise.
9078 (args): Likewise.
9079 (options): Transformed to argp.
9080 (usage): Removed.
9081 (main): Split argument parsing into ...
9082 (argp_parser): ... this. Changed to argp format.
9083 (argp): New variable.
9084 (main): Use argp_parse.
9085
9086 2010-09-20 Tristan Gingold <gingold@free.fr>
9087 2010-09-20 Robert Millan <rmh.grub@aybabtu.com>
9088 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
9089
9090 * grub-core/commands/efi/lsefimmap.c: New file.
9091 * grub-core/Makefile.core.def (lsefimmap): New module.
9092 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
9093
9094 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
9095
9096 Pause the execution (10s max) if any errors are displayed so the user
9097 has a chance to see them.
9098
9099 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
9100 (grub_print_error): Increment grub_err_printed_errors.
9101 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
9102 execution if any errors were displayed.
9103 (show_menu): Remove old code for pause.
9104 * grub-core/normal/menu_entry.c (run): Likewise.
9105 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
9106 users updated.
9107 (grub_normal_get_char_counter): Likewise.
9108 * include/grub/err.h (grub_err_printed_errors): New external variable.
9109 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
9110
9111 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
9112
9113 Support multiboot VBE info.
9114
9115 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
9116 Take VBE info into account.
9117 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
9118 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
9119 Call fill_vbe_info when appropriate.
9120 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
9121 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
9122 as supported.
9123 (grub_multiboot_get_mbi_size): Take new tags into account.
9124 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
9125 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
9126 Call fill_vbe_tag when appropriate.
9127 (grub_multiboot_make_mbi): Properly align tags.
9128 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
9129 function.
9130 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
9131 proto.
9132 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
9133
9134 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
9135
9136 Suport manual terminal geometry specification.
9137
9138 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
9139 Save state in grub_ofconsole_terminfo_output.
9140 (grub_ofconsole_term): Use grub_terminfo_getwh.
9141 (grub_ofconsole_getwh): Removed.
9142 * grub-core/term/serial.c (grub_serial_getwh): Removed.
9143 (grub_serial_term): Use grub_terminfo_getwh.
9144 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
9145 (options): New struct.
9146 (OPTION_*): New enum.
9147 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
9148 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
9149 width and height.
9150 (grub_terminfo_getwh): New proto.
9151 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
9152
9153 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
9154
9155 Handle legacy "terminal" command.
9156
9157 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
9158 and FLAG_TERMINAL.
9159 (legacy_commands): Add terminal and title.
9160 (grub_legacy_parse): Handle terminal. Simplify title handling.
9161
9162 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
9163
9164 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
9165 parameters overflow.
9166
9167 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
9168
9169 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
9170 widthspec.h.
9171
9172 * docs/grub.texi (Shell-like scripting): Document `!'.
9173 (Network): Simplify using new i386-pc-pxe format. Mention
9174 grub-mknetdir.
9175
9176 * NEWS: Update.
9177
9178 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
9179
9180 * Makefile.am (SUBDIRS): Restore "."; it's important to force
9181 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
9182 when needed.
9183
9184 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
9185
9186 * grub-core/commands/efi/lsefisystab.c: Correct header.
9187 * grub-core/commands/efi/lssal.c: Likewise.
9188 * grub-core/commands/testload.c: Likewise.
9189
9190 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
9191
9192 * util/grub-mkrescue.in: Add explicit root argument to --set to
9193 prevent the UUID being interpreted as an argument to --set (matches
9194 previous change to prepare_grub_to_access_device).
9195
9196 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
9197
9198 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
9199 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
9200 the verbosity of later #ifs.
9201 (find_partition_start): Define this function on FreeBSD too.
9202 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
9203 function.
9204 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
9205 on FreeBSD.
9206
9207 2010-09-20 Yves Blusseau <blusseau@zetam.org>
9208
9209 * util/grub-editenv.c: Use argp instead of getopt.
9210
9211 2010-09-20 Yves Blusseau <blusseau@zetam.org>
9212
9213 * util/grub-setup.c: Use argp instead of getopt.
9214
9215 2010-09-20 Yves Blusseau <blusseau@zetam.org>
9216
9217 Use gnulib-tool to create gnulib source files.
9218
9219 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
9220 grub-core/gnulib directories
9221 * .bzignore: Add **/.deps and autogenerated gnulib files
9222 * configure.ac: Assign auxiliary directory to build-aux, add invocation
9223 of gnulib macros, add grub-core/gnulib/Makefile
9224 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
9225 include m4 directory to aclocal.
9226 * Makefile.util.def: Remove direct compilation of gnulib source files
9227 and use the new grub-core/gnulib/libgnu.a.
9228 * build-aux/config.rpath: move config.rpath from top directory to
9229 build-aux
9230 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
9231 in gnulib headers
9232 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
9233 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
9234 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
9235 header.
9236 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
9237 string.
9238
9239 2010-09-20 Yves Blusseau <blusseau@zetam.org>
9240
9241 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
9242 grub-core/genmod.sh and grub-core/gensyminfo.sh
9243
9244 2010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
9245
9246 Add a test for echo command options.
9247
9248 * tests/grub_cmd_echo.in: New test.
9249 * Makefile.util.def: Rules for new test.
9250
9251 2010-09-20 Szymon Janc <szymon@janc.net.pl>
9252
9253 Remove crc.mod and move crc command to hashsum.mod.
9254 Remove lib/crc.c - users updated to use gcrypt implementation.
9255
9256 * grub-core/commands/crc.c: Removed.
9257 * grub-core/Makefile.core.def (crc): Module removed.
9258 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
9259 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
9260 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
9261 * grub-core/lib/crc.c: Removed.
9262 * include/grub/lib/crc.h: Removed.
9263 * Makefile.util.def (crc): Remove lib/crc.c
9264 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
9265 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
9266 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
9267 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
9268 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
9269 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
9270
9271 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
9272
9273 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
9274
9275 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
9276
9277 Split config.h for util and core.
9278
9279 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
9280 (ADDR32): Likewise.
9281 (DATA32): Likewise.
9282 (BSS_START_SYMBOL): Likewise.
9283 (END_SYMBOL): Likewise.
9284 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
9285 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
9286 * config.h.in: New file.
9287 * configure.ac: Use config-util.h as config define file.
9288 Rename MACHINE into GRUB_MACHINE. All users updated.
9289 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
9290 updated.
9291 (NESTED_FUNC_ATTR): Likewise.
9292 Substitue new variables.
9293 (COND_HAVE_ASM_USCORE): New conditional.
9294 * grub-core/Makefile.am (ASM_PREFIX): New variable.
9295 (kernel_syms.lst): Use ASM_PREFIX.
9296 * grub-core/kern/emu/console.c: Include config-util.h.
9297 * grub-core/kern/emu/misc.c: Likewise.
9298 * grub-core/kern/emu/mm.c: Likewise.
9299 * include/grub/emu/misc.h: Likewise.
9300 * include/grub/libgcc.h: Likewise.
9301
9302 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
9303
9304 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
9305 constants usage.
9306 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
9307 Fix GRUB_TERM_KEY_* constants usage.
9308 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
9309
9310 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
9311
9312 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
9313 print pointer.
9314 * grub-core/bus/usb/uhci.c: Remove empty define.
9315 (grub_uhci_check_transfer): Add missing cast.
9316 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
9317 print pointer.
9318 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
9319 PRIuGRUB_SIZE.
9320 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
9321
9322 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
9323
9324 * grub-core/Makefile.core.def (legacycfg): Add
9325 lib/i386/pc/vesa_modes_table.c on emu.
9326
9327 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
9328
9329 Reduce number of temporary files generated by build system.
9330
9331 * grub-core/gencmdlist.sh: Removed.
9332 * grub-core/genfslist.sh: Removed.
9333 * grub-core/genhandlerlist.sh: Removed.
9334 * grub-core/genmodsrc.sh: Removed.
9335 * grub-core/genpartmaplist.sh: Removed.
9336 * grub-core/genparttoollist.sh: Removed.
9337 * grub-core/gentermiinallist.sh: Removed.
9338 * grub-core/genvideolist.sh: Removed.
9339
9340 * grub-core/genmod.sh.in: New file.
9341 * grub-core/gensyminfo.sh.in: New file.
9342
9343 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
9344 * conf/Makefile.extra-dist: Update with new files.
9345 * gentpl.py: Remove rules related to unnecessary temporary files.
9346 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
9347 and und-* files.
9348 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
9349 genmod.sh scripts.
9350 * grub-core/bus/usb/uhci.c: Remove empty #define.
9351 * grub-core/genmoddep.awk: Updated with new syminfo format.
9352 * util/bash-completion.d/Makefile.am: Add config.log to
9353 CLEANFILES.
9354
9355 2010-09-19 Yves Blusseau <blusseau@zetam.org>
9356
9357 * Makefile.util.def: Add forgotten $(LIBINTL) library.
9358
9359 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
9360
9361 * util/grub-mkconfig.in: Check the config script for syntax errors
9362 before saving.
9363
9364 2010-09-19 Colin Watson <cjwatson@ubuntu.com>
9365 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
9366
9367 * Makefile.util.def (grub-install): Use util/grub-install.in on all
9368 platforms.
9369 * util/grub-install.in: Add EFI and IEEE1275 support.
9370 * util/i386/efi/grub-install.in: Removed.
9371 * util/ieee1275/grub-install.in: Likewise.
9372
9373 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
9374
9375 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
9376 (grub_cmd_cmosclean): Likewise.
9377 (GRUB_MOD_INIT): Register command cmosclean.
9378 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
9379 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
9380
9381 2010-09-18 Carles Pina i Estany <carles@pina.cat>
9382 2010-09-18 Aleš Nesrsta <starous@volny.cz>
9383 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
9384
9385 Add keyboard layouts support.
9386
9387 * Makefile.util.def (grub-mklayout): New file.
9388 (grub-kbdcomp): New script.
9389 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
9390 Add keyboard_layouts.h.
9391 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
9392 commands/boot.c on yeeloong.
9393 (keylayouts): New module.
9394 * grub-core/bus/usb/ohci.c
9395 * grub-core/bus/usb/uhci.c
9396 * grub-core/bus/usb/usbhub.c (rescan): New variable.
9397 (grub_usb_add_hub): Poll interrupt pipe for device handling.
9398 (attach_root_port): Likewise.
9399 (poll_nonroot_hub): Likewise.
9400 (grub_usb_poll_devices): Likewise.
9401 (detach_device): Close transfer.
9402 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
9403 function.
9404 (grub_usb_bulk_setup_readwrite): Likewise.
9405 (grub_usb_bulk_finish_readwrite): Likewise.
9406 * grub-core/commands/keylayouts.c: New file.
9407 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
9408 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
9409 aliases.
9410 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
9411 support scancode 2.
9412 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
9413 * include/grub/keyboard_layouts.h: New file.
9414 * util/grub-mklayout.c: New file.
9415 * util/grub-kbdcomp.in: Likewise.
9416
9417 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
9418
9419 Unify memory types.
9420
9421 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
9422 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
9423 types.
9424 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
9425 (grub_upper_mem): Likewise.
9426 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
9427 * include/grub/memory.h (grub_memory_type_t): New enum.
9428 All users updated.
9429
9430 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
9431
9432 * grub-core/Makefile.core.def (lsapm): New module.
9433 * grub-core/commands/i386/pc/lsapm.c: New file.
9434 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
9435 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
9436 Likewise.
9437 * include/grub/i386/pc/apm.h: New file.
9438 * include/multiboot.h (multiboot_apm_info): New struct.
9439
9440 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
9441
9442 GRUB-legacy configuration file support.
9443
9444 * Makefile.util.def (grub-menulst2cfg): New util.
9445 * docs/man/grub-menulst2cfg.h2m: New file.
9446 * grub-core/Makefile.core.def (legacycfg): New module.
9447 * grub-core/commands/legacycfg.c: New file.
9448 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
9449 (grub_normal_add_menu_entry): ... this.
9450 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
9451 (grub_normal_set_password): ...this.
9452 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
9453 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
9454 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
9455 * grub-core/lib/legacy_parse.c: New file.
9456 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
9457 * include/grub/i386/pc/vesa_modes_table.h: New file.
9458 * include/grub/legacy_parse.h: Likewise.
9459 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
9460 * util/grub-menulst2cfg.c: New file.
9461
9462 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
9463
9464 * grub-core/kern/emu/hostdisk.c
9465 (convert_system_partition_to_system_disk): Initialise node.
9466
9467 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
9468
9469 * grub-core/kern/emu/hostdisk.c
9470 (convert_system_partition_to_system_disk): Fix devmapper memory pool
9471 leak.
9472 Reported and based on patch by: Modestas Vainius.
9473
9474 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
9475
9476 Fix DM-RAID probing with recent versions of device-mapper udev
9477 rules.
9478
9479 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
9480 canonicalise device paths under /dev/mapper/.
9481 (convert_system_partition_to_system_disk): Compare the
9482 uncanonicalised path to /dev/mapper/ rather than the canonicalised
9483 path, since device nodes under /dev/mapper/ are often symlinks.
9484
9485 2010-09-17 Yves Blusseau <blusseau@zetam.org>
9486
9487 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
9488
9489 2010-09-16 Yves Blusseau <blusseau@zetam.org>
9490
9491 * configure.ac: Avoid some annoying error messages if freetype-config
9492 program is not found.
9493
9494 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
9495
9496 Support RAID on virtio devices, and others.
9497
9498 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
9499 Rename to ...
9500 [__MINGW32__] (grub_find_device): ... this.
9501 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
9502 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
9503 reasonable default if dir is NULL.
9504 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
9505 ...
9506 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
9507 (grub_guess_root_device): Update callers.
9508 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
9509
9510 * util/raid.c (grub_util_getdiskname): Remove.
9511 (grub_util_raid_getmembers): Use grub_find_device rather than
9512 grub_util_getdiskname.
9513
9514 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
9515
9516 * docs/grub.texi (serial): Remove obsolete comment about GRUB
9517 needing to be compiled with serial support.
9518 (ls): Indicate that multiple files are accepted.
9519 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
9520 indicate that multiple files are accepted.
9521
9522 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
9523
9524 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
9525 libgrub_a_init.c, and util/bash-completion.d/grub.
9526
9527 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
9528
9529 * util/grub-setup.c (setup): Fix incorrect container semantics.
9530
9531 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
9532
9533 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
9534 misusage.
9535 Reported by: J. Nick Terry
9536
9537 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
9538
9539 Move embedding routines to partmap sources files.
9540
9541 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
9542 [GRUB_UTIL]: New variable.
9543 (gpt_partition_map_iterate): Set part.parent.
9544 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
9545 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
9546 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
9547 New function.
9548 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
9549 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
9550 (grub_partition_map) [GRUB_UTIL]: New field embed.
9551 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
9552 (setup): Use ->embed.
9553
9554 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
9555
9556 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
9557 function.
9558 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
9559 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
9560
9561 2010-09-15 Yves Blusseau <blusseau@zetam.org>
9562
9563 Add function to get completions from usage.
9564
9565 * util/bash-completion.d/grub-completion.bash.in: Add function to get
9566 completions from usage. Use LC_ALL=C to get options properly.
9567
9568 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
9569
9570 * grub-core/gnulib/basename-lgpl.c: Imported.
9571 * grub-core/gnulib/basename.c: Likewise.
9572 * grub-core/gnulib/dirname-lgpl.c: Likewise.
9573 * grub-core/gnulib/dirname.c: Likewise.
9574 * grub-core/gnulib/dirname.h: Likewise.
9575 * grub-core/gnulib/stripslash.c: Likewise.
9576
9577 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
9578
9579 * grub-core/gnulib/error.c: Resynced.
9580 * grub-core/gnulib/getopt.c: Likewise.
9581 * grub-core/gnulib/getopt_int.h: Likewise.
9582 * grub-core/gnulib/regex.h: Likewise.
9583 * grub-core/gnulib/regex_internal.c: Likewise.
9584 * grub-core/gnulib/regex_internal.h: Likewise.
9585
9586 2010-09-15 Szymon Janc <szymon@janc.net.pl>
9587
9588 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
9589 CRC calculations and validity checks.
9590 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
9591 calculations.
9592
9593 2010-09-15 Szymon Janc <szymon@janc.net.pl>
9594
9595 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
9596
9597 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
9598
9599 Fix incorrect echo options handling.
9600 Reported by: Yves Blusseau.
9601
9602 * include/grub/command.h (grub_command_flags_t): New flags
9603 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
9604 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
9605 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
9606
9607 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
9608
9609 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
9610 users updated.
9611 (GRUB_COMMAND_FLAG_MENU): Likewise.
9612 (GRUB_COMMAND_FLAG_BOTH): Likewise.
9613 (GRUB_COMMAND_FLAG_TITLE): Removed.
9614 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
9615 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
9616 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
9617 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
9618 (grub_command_flags_t): New enum. All users updated.
9619
9620 2010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
9621
9622 Fix solaris compilation.
9623
9624 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
9625 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
9626 (grub-emu-list): Likewise.
9627
9628 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
9629
9630 Remove deprecated root command.
9631
9632 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
9633 updated.
9634
9635 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
9636
9637 * util/i386/pc/grub-setup.c: Merge this ...
9638 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
9639 * util/grub-setup.c: ... into this.
9640 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
9641 New struct.
9642
9643 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
9644
9645 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
9646 possible.
9647
9648 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
9649
9650 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
9651 allocate p.
9652
9653 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
9654
9655 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
9656 explicit root argument to set to prevent UUID to be interpreted as
9657 argument to set.
9658
9659 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
9660
9661 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
9662
9663 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
9664
9665 Don't export grub_gate_a20.
9666
9667 * grub-core/kern/i386/pc/init.c: Remove leftovers.
9668 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
9669 to ...
9670 (grub_gate_a20): ... this. All users updated.
9671 * include/grub/i386/pc/init.h: Removed. All users updated.
9672
9673 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
9674
9675 Create euro.pf2 which supports most European languages.
9676
9677 * Makefile.am (grubdata_DATA): Add euro.pf2.
9678 (euro.pf2): New target.
9679 (CLEANFILES): Add euro.pf2.
9680
9681 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
9682
9683 * configure.ac: Disable emu-usb by default to prevent inadvertent
9684 device takeover.
9685
9686 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
9687
9688 Disable usbserial on grub-emu since our libusb code isn't good enough
9689 yet.
9690
9691 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
9692 (usbserial_pl2303): Likewise.
9693 (usbserial_ftdi): Likewise.
9694
9695 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
9696
9697 * include/grub/disk.h (grub_disk): Remove has_partitions.
9698 All users updated.
9699 * disk/loopback.c (grub_loopback): Remove has_partitions.
9700 All users updated.
9701 (options): Remove partitions. All users updated.
9702 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
9703 * util/i386/pc/grub-setup.c (setup): copy partition table only when
9704 actual partition table is found.
9705
9706 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
9707
9708 Remove readability checks (too many false negatives).
9709
9710 * util/grub-install.in: Remove readability checks.
9711 * util/grub-mkconfig.in: Likewise.
9712 * util/grub.d/10_hurd.in: Likewise.
9713 * util/grub.d/10_kfreebsd.in: Likewise.
9714 * util/grub.d/10_linux.in: Likewise.
9715 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
9716 way.
9717
9718 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
9719
9720 Enable acpi shutdown on all ACPI platforms.
9721
9722 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
9723 on coreboo, multiboot and EFI.
9724 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
9725 (grub_acpi_halt): Likewise.
9726 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
9727 (grub_cmd_halt): Don't call grub_acpi_halt directly.
9728 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
9729 * grub-core/lib/i386/halt.c (grub_halt)
9730 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
9731
9732 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
9733
9734 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
9735 context.
9736
9737 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
9738
9739 * grub-core/video/efi_gop.c: Fix over-80-chars line.
9740 * grub-core/video/efi_uga.c: Likewise.
9741
9742 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
9743
9744 Filter devaliases and never open same device twice.
9745
9746 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
9747 (last_ihandle): Likewise.
9748 (ofdisk_hash_ent): New member shortest.
9749 (ofdisk_hash_add): Add canonical path too.
9750 (scan): New function.
9751 (grub_ofdisk_iterate): Iterate over hashed entries.
9752 (compute_dev_path): Don't add :0.
9753 (grub_ofdisk_open): Don't really open the disk.
9754 (grub_ofdisk_close): Avoid closing unrelated disk.
9755 (grub_ofdisk_read): Implement reopen logic.
9756 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
9757 New function.
9758 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
9759 New proto.
9760
9761 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
9762
9763 Fix sparc64.
9764
9765 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
9766 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
9767 right address. Add sparc64_ieee1275_ldflags.
9768 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
9769 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
9770 to grub_host_to_target_addr
9771 (load_image): Likewise.
9772
9773 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
9774
9775 * grub-core/normal/completion.c (complete_file): Handle device
9776 containing slash.
9777 Fix based on patch by Doug Nazar.
9778
9779 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
9780
9781 grub-mknetdir script.
9782
9783 * Makefile.util.def (grub-mknetdir): New module.
9784 * tests/util/grub-shell.in: Support boot=net
9785 * util/grub-mknetdir.in: New file.
9786
9787 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
9788
9789 videoinfo on non-vbe.
9790
9791 * grub-core/Makefile.core.def (vbeinfo): Removed.
9792 (vbetest): Removed.
9793 (videoinfo): New module.
9794 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
9795 * grub-core/commands/i386/pc/vbetest.c: Removed.
9796 * grub-core/commands/videoinfo.c: New file.
9797 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
9798 specification.
9799 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
9800 as vbetest.
9801 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
9802 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
9803 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
9804 mode_number. New parameter mode. All users updated.
9805 (grub_video_gop_iterate): New function.
9806 (grub_video_efi_gop): New member iterate.
9807 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
9808 (grub_vbe_set_video_mode): Remove setting useless fields.
9809 (vbe2videoinfo): New function.
9810 (grub_video_vbe_iterate): Likewise.
9811 (grub_video_vbe_setup): Use vbe2videoinfo.
9812 (grub_video_vbe_print_adapter_specific_info): New function.
9813 (grub_video_vbe_adapter): New fields iterate and
9814 print_adapter_specific_info.
9815 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
9816 All users updated.
9817 (grub_video_mode_info): New field mode_number.
9818 (grub_video_adapter): New fields iterate and
9819 print_adapter_specific_info.
9820
9821 2010-09-13 Tristan Gingold <gingold@free.fr>
9822 2010-09-13 Robert Millan <rmh.grub@aybabtu.com>
9823 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
9824
9825 * grub-core/commands/efi/lsefisystab.c: New file.
9826 * grub-core/commands/efi/lssal.c: Likewise.
9827 * grub-core/Makefile.core.def (lsacpi): New module.
9828 (lsefisystab): Likewise.
9829 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
9830 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
9831 (grub_efi_sal_system_table): New struct.
9832 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
9833 (grub_efi_sal_system_table_memory_descriptor): Likewise.
9834 (grub_efi_sal_system_table_platform_features): Likewise.
9835 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
9836 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
9837 (grub_efi_sal_system_table_ap_wakeup): Likewise.
9838 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
9839
9840 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
9841
9842 Support explicit user claim that a device is BIOS-visible.
9843
9844 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
9845 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
9846 * grub-core/kern/emu/hostdisk.c
9847 (convert_system_partition_to_system_disk): Support mdX.
9848 (find_system_device): New parameter add. All users updated.
9849 (grub_util_biosdisk_is_present): New function.
9850 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
9851 proto.
9852
9853 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
9854
9855 Search hints support.
9856
9857 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
9858 All users updated.
9859
9860 2010-09-13 Yves Blusseau <blusseau@zetam.org>
9861
9862 Bash completion script for util commands
9863
9864 * Makefile.am: Add util/bash-completion.d directory
9865 * configure.ac: Likewise.
9866 * util/bash-completion.d/Makefile.am: New file.
9867 * util/bash-completion.d/grub-completion.bash.in: Likewise.
9868
9869 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
9870
9871 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
9872 (print_backlog): set backlog_ucs4 and backlog_glyphs.
9873 Reported by: Yves Blusseau.
9874
9875 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
9876
9877 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
9878 partition size and offset.
9879
9880 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
9881
9882 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
9883
9884 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
9885
9886 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
9887
9888 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
9889
9890 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
9891 (grub_xvasprintf): Likewise.
9892
9893 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
9894
9895 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
9896
9897 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
9898
9899 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
9900 args ending with NULL.
9901
9902 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
9903
9904 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
9905 pointer.
9906
9907 2010-09-11 Szymon Janc <szymon@janc.net.pl>
9908
9909 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
9910
9911 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
9912
9913 Shutdown using ACPI.
9914
9915 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
9916 * grub-core/commands/acpihalt.c: New file.
9917 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
9918 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
9919 (grub_acpi_halt): New proto.
9920 (GRUB_ACPI_SLP_EN): New const.
9921 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
9922 (GRUB_ACPI_OPCODE_*): New enum.
9923 (GRUB_ACPI_EXTOPCODE_*): Likewise.
9924
9925 2010-09-11 Tristan Gingold <gingold@free.fr>
9926 2010-09-11 Robert Millan <rmh.grub@aybabtu.com>
9927 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
9928
9929 * commands/lsacpi.c: New file.
9930 * grub-core/Makefile.core.def (lsacpi): New module.
9931 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
9932 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
9933 (grub_acpi_madt_entry_header): New struct.
9934 (grub_acpi_madt): Likewise.
9935 (grub_acpi_madt_entry_interrupt_override): Likewise.
9936 (grub_acpi_madt_entry_sapic): Likewise.
9937 (grub_acpi_madt_entry_lsapic): Likewise.
9938 (grub_acpi_madt_entry_platform_int_source): Likewise.
9939 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
9940 (PRIuGRUB_UINT32_T): Likewise.
9941 (PRIxGRUB_UINT64_T): Likewise.
9942
9943 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
9944
9945 Implement loading palette on ieee1275_fb.
9946
9947 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
9948 (have_setcolors): Likewise.
9949 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
9950 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
9951 (grub_video_ieee1275_set_palette): Implement.
9952
9953 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
9954 2010-09-11 Colin Watson <cjwatson@ubuntu.com>
9955
9956 * util/grub-install.in (grub_partition): New variable.
9957 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
9958 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
9959 Fixes a bug reported by Yves Blusseau.
9960
9961 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
9962
9963 Fix emu on mipsel.
9964
9965 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
9966 =grub_cpu_flush_cache on all mips and not only yeeloong.
9967 * configure.ac (COND_mips): New conditional.
9968 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
9969 platforms.
9970 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
9971 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
9972 [GRUB_LINKER_HAVE_INIT]: New function.
9973 (grub_emu_post_init): Likewise.
9974 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
9975 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
9976 * include/grub/cache.h (_mips): Include mips/cache.h.
9977 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
9978 LVM and RAID prototypes.
9979 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
9980 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
9981 function.
9982
9983 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
9984
9985 * util/grub-install.in: Don't try to verify core.img until after
9986 running grub-mkimage to create it.
9987
9988 2010-09-10 Robert Millan <rmh@gnu.org>
9989
9990 * util/grub.d/10_hurd.in: Add misc readability checks.
9991 * util/grub.d/10_kfreebsd.in: Likewise.
9992 * util/grub.d/10_linux.in: Likewise.
9993
9994 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
9995
9996 * util/grub-install.in: ${imgext} won't be defined here until the
9997 install branch is merged. For the meantime, only verify core.img on
9998 i386-pc and sparc64-ieee1275 platforms.
9999
10000 2010-09-10 Robert Millan <rmh@gnu.org>
10001
10002 Solaris support in grub_find_zpool_from_dir(). Thanks
10003 Seth Goldberg for referring to getextmntent() facility.
10004
10005 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
10006 `sys/mkdev.h'.
10007 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
10008 `<sys/mnttab.h>'.
10009 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
10010 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
10011 method for finding zpool name.
10012
10013 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
10014
10015 grub-fstest needs the host and hostfs modules while other utilities
10016 actively require those modules to be absent, so grub-fstest needs
10017 its own initialisation and finalisation code.
10018
10019 * Makefile.am (grub_fstest.pp): New target.
10020 (grub_fstest_init.lst): Likewise.
10021 (grub_fstest_init.c): Likewise.
10022 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
10023
10024 2010-09-10 Robert Millan <rmh@gnu.org>
10025
10026 * configure.ac: Check for `struct statfs.f_fstypename' and
10027 `struct statfs.f_mntfromname'.
10028
10029 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
10030 kFreeBSD-specific code.
10031
10032 2010-09-10 Robert Millan <rmh@gnu.org>
10033
10034 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
10035 on ZFS. Now non-main filesystems are supported as / too.
10036
10037 2010-09-09 Colin Watson <cjwatson@ubuntu.com>
10038
10039 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
10040 and grub-core/disk/host.c to ...
10041 (grub-fstest): ... here. Having the host disk implementation
10042 present confuses grub-probe and other utility programs.
10043
10044 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
10045 when writing to a file, not when writing to stdout.
10046
10047 2010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
10048
10049 * tests/partmap_test.in: New test for partitions.
10050 * Makefile.util.def: Rules for new test.
10051
10052 2010-09-09 Robert Millan <rmh@gnu.org>
10053
10054 * util/grub-probe.c (probe): Fix a pair of unhandled error
10055 conditions.
10056
10057 2010-09-09 Robert Millan <rmh@gnu.org>
10058
10059 Basic Btrfs support (detection and UUID).
10060
10061 * grub-core/fs/btrfs.c: New file.
10062 * Makefile.util.def (library): Register btrfs.c.
10063 * grub-core/Makefile.core.def: Likewise.
10064
10065 2010-09-08 Robert Millan <rmh@gnu.org>
10066
10067 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
10068 with (optional) parameters to specify device and relative path.
10069 * util/grub-install.in: Use is_path_readable_by_grub() to
10070 verify readability of a few critical files.
10071 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
10072 verify readability of grub.cfg.new.
10073
10074 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
10075
10076 Split minix.mod into minix.mod and minix2.mod.
10077
10078 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
10079 * grub-core/Makefile.core.def (minix2): New module.
10080 * grub-core/fs/minix.c: Use definitions instead of runtime version
10081 checking.
10082 * grub-core/fs/minix2.c: New file.
10083
10084 2010-09-08 Yves Blusseau <blusseau@zetam.org>
10085
10086 Add new --boot-directory option to replace --root-directory
10087
10088 * util/grub-install.in: Add new --boot-directory option
10089 * util/grub-reboot.in: Likewise.
10090 * util/grub-set-default.in: Likewise.
10091
10092 2010-09-08 Yves Blusseau <blusseau@zetam.org>
10093
10094 * util/grub-mkconfig.in: Use new variable.
10095
10096 2010-09-08 Yves Blusseau <blusseau@zetam.org>
10097
10098 * configure.ac: Define some useful variables.
10099
10100 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
10101
10102 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
10103 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
10104 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
10105 Use terminfo and don't use cursor-on/cursor-off unless it's known
10106 to work.
10107 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
10108 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
10109
10110 2010-09-08 Colin Watson <cjwatson@ubuntu.com>
10111
10112 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
10113 starts with "(,", fill the drive containing the loaded image in
10114 between those two characters, but expect that a full partition
10115 specification including partition map names will follow.
10116
10117 2010-09-08 Robert Millan <rmh@gnu.org>
10118
10119 * configure.ac: Remove `--enable-grub-fstest' option.
10120 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
10121
10122 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
10123 `grub-fstest' instead of `grub-probe' for readability verification.
10124 * util/grub-probe.c (probe): Remove readability verification kludge.
10125
10126 2010-09-08 Robert Millan <rmh@gnu.org>
10127
10128 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
10129 initializing `GRUB_FS'.
10130
10131 2010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
10132
10133 Not command (!) support to GRUB script.
10134
10135 * tests/grub_script_not.in: New test.
10136 * Makefile.util.def: Rules for new test.
10137
10138 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
10139 ! command as a special case.
10140 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
10141
10142 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
10143
10144 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
10145 grub_free.
10146
10147 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
10148
10149 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
10150
10151 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
10152
10153 * docs/grub.texi (Shell-like scripting): Documentation for break,
10154 continue, shift and return commands.
10155
10156 2010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
10157
10158 Rename CD-ROM to cd on BIOS.
10159
10160 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
10161 "cd".
10162 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
10163
10164 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
10165
10166 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
10167 * util/grub-probe.c (main): Likewise.
10168 * util/i386/pc/grub-setup.c (main): Likewise.
10169 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
10170 Reported and debugged by: alexxy
10171
10172 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
10173
10174 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
10175 diagnostic info.
10176
10177 2010-09-05 Jo Shields <directhex@apebox.org>
10178
10179 * util/grub.d/30_os-prober.in: Add missing classes.
10180
10181 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
10182
10183 * docs/grub.texi (Theme file format): Document new position format.
10184
10185 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
10186
10187 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
10188 a table. Use @code instead of @verbatim.
10189
10190 2010-09-05 Colin D Bennett <colin@gibibit.com>
10191
10192 Gfxmenu documentation.
10193
10194 * docs/grub.texi (Theme file format): New chapter.
10195
10196 2010-09-05 Szymon Janc <szymon@janc.net.pl>
10197
10198 * grub-core/Makefile.core.def (xzio): New module.
10199 * grub-core/io/xzio.c: New file.
10200 * grub-core/lib/xzembed/xz.h: New file (from xembed).
10201 * grub-core/lib/xzembed/xz_config.h: Likewise.
10202 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
10203 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
10204 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
10205 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
10206 * grub-core/lib/xzembed/xz_private.h: Likewise.
10207 * grub-core/lib/xzembed/xz_stream.h: Likewise.
10208 * include/grub/file.h (grub_file_filter_id): New compression filter
10209 GRUB_FILE_FILTER_XZIO.
10210
10211 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
10212
10213 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
10214 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
10215 size.
10216
10217 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
10218
10219 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
10220 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
10221
10222 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
10223
10224 Uncompressed checksum support.
10225
10226 * grub-core/commands/hashsum.c (options): Add option --uncompress.
10227 (check_list): New parameter uncompress.
10228 (grub_cmd_hashsum): Handle --uncompress.
10229
10230 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
10231
10232 Reintroduce testload.
10233
10234 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
10235 from here ...
10236 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
10237 (GRUB_MOD_INIT): New function.
10238 (GRUB_MOD_FINI): Likewise.
10239 * grub-core/Makefile.core.def (testload): New module.
10240
10241 2010-09-05 Szymon Janc <szymon@janc.net.pl>
10242
10243 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
10244 (uint8_t): New type.
10245 (uint16_t): Likewise.
10246 (uint32_t): Likewise.
10247 (uint64_t): Likewise.
10248
10249 2010-09-05 Szymon Janc <szymon@janc.net.pl>
10250
10251 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
10252
10253 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
10254
10255 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
10256 Made static.
10257 (grub_gzfile_open): Removed. All users updated.
10258 (GRUB_MOD_INIT): New function.
10259 (GRUB_MOD_FINI): Likewise.
10260 * grub-core/kern/file.c (grub_file_filters_all): New variable.
10261 (grub_file_filters_enabled): Likewise.
10262 (grub_file_open): Handle filters.
10263 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
10264 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
10265 * include/grub/file.h (grub_file_filter_id_t): New type.
10266 (grub_file_filter_t): Likewise.
10267 (grub_file_filters_all): New extern variable.
10268 (grub_file_filters_enabled): Likewise.
10269 (grub_file_filter_register): New inline function.
10270 (grub_file_filter_unregister): Likewise.
10271 (grub_file_filter_disable): Likewise.
10272 (grub_file_filter_disable_compression): Likewise.
10273 * include/grub/gzio.h: Removed.
10274
10275 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
10276
10277 Filename expansion support for wildcards in GRUB script.
10278
10279 * tests/grub_script_expansion.in: New test.
10280 * Makefile.util.def: Rule for new test.
10281
10282 * grub-core/commands/wildcard.c: New file, implements filename
10283 expansion support for GRUB script.
10284 * grub-core/Makefile.core.def: Rule update for regexp.mod.
10285 * grub-core/script/argv.c: Cosmetic changes.
10286 * grub-core/script/execute.c (grub_script_arglist_to_argv):
10287 Refactored to perform wildcard expansion on arguments.
10288 * include/grub/script_sh.h (grub_script_wildcard_translator): New
10289 struct.
10290
10291 * tests/util/grub-shell.in: Fix quoting for read input.
10292
10293 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
10294
10295 Support for updating environment variables with matched substrings
10296 of regexp.
10297
10298 * tests/grub_cmd_regexp.in: New test.
10299 * Makefile.util.def: Rule for new test.
10300
10301 * grub-core/commands/regexp.c: New option -s to update environment
10302 variables with regexp matches.
10303
10304 2010-09-04 Szymon Janc <szymon@janc.net.pl>
10305
10306 * include/grub/file.h (grub_file): New member not_easly_seekable.
10307 (grub_file_seekable): New inline function.
10308 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
10309 easily seekable.
10310 (grub_gzio_open): Set not_easly_seekable.
10311 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
10312 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
10313
10314 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
10315
10316 Support for options to appear multiple times on cmdline.
10317
10318 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
10319 * grub-core/commands/extcmd.c: Support for repeatable option.
10320 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
10321 repeatable option support.
10322
10323 Refactor menuentry into a regular command.
10324
10325 * grub-core/commands/menuentry.c: New file, menuentry command
10326 implementation.
10327 * grub-core/Makefile.core.def: Rule update for normal.mod.
10328 * grub-core/normal/main.c: Moved menuentry creation to
10329 grub-core/commands/menuentry.c.
10330 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
10331 (grub_menu_execute_entry_real): Removed.
10332 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
10333 function.
10334 (grub_script_execute_menuentry): Removed.
10335 * grub-core/script/parser.y (menuentry): Removed.
10336 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
10337 * grub-core/script/yylex.l (menuentry): Removed.
10338 * include/grub/menu.h (grub_menu_init): New prototype.
10339 (grub_menu_fini): New prototype.
10340 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
10341 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
10342 (grub_script_execute_sourcecode): New prototype.
10343
10344 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
10345
10346 "return" command for GRUB script functions.
10347
10348 * tests/grub_script_return.in: New test.
10349 * Makefile.util.def: Rules for new test.
10350
10351 * grub-core/script/execute.c (grub_script_return): New function.
10352 * grub-core/script/main.c: Register/unregister return commaond.
10353 * include/grub/script_sh.h (grub_script_return): New prototype.
10354
10355 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
10356
10357 "setparams" command to update positional parameters.
10358
10359 * tests/grub_script_setparams.in: New test.
10360 * Makefile.util.def: Rules for new test.
10361
10362 * grub-core/script/argv.c (grub_script_argv_make): New function.
10363 * grub-core/script/execute.c (replace_scope): New function.
10364 (grub_script_setparams): New function.
10365 * grub-core/script/lexer.c: Remove unused variables.
10366 * grub-core/script/main.c: Register/unregister setparams command.
10367 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
10368 (grub_script_setparams): New prototype.
10369
10370 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
10371
10372 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
10373 grub_free order.
10374
10375 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
10376
10377 Support for passing block of commands as an argument to extcmds.
10378
10379 * Makefile.util.def: Rules for new test.
10380 * tests/grub_script_blockarg.in: New test.
10381 * grub-core/tests/test_blockarg.c: New file, block argument
10382 command used in the test.
10383
10384 * include/grub/extcmd.h (grub_extcmd_context): New struct.
10385 (grub_register_extcmd_prio): New function prototype.
10386 (grub_extcmd_dispatcher): New function prototype.
10387 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
10388 type.
10389 * include/grub/script_sh.h (struct grub_script): New members
10390 `children', `next_siblings' and `refcnt' for block arguments and
10391 reference counting.
10392 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
10393 (grub_script_arg): New member `script' for block argument.
10394 (grub_script_argv): New member `script' for block argument.
10395 (grub_parser_param): New member `scripts' for block argument.
10396 (grub_script_mem_free): New extern function prototype.
10397 (grub_script_ref): New function prototype.
10398 (grub_script_unref): New function prototype.
10399
10400 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
10401 extcmd form to support block arguments.
10402 * grub-core/script/argv.c: Block arguments support.
10403 * grub-core/script/execute.c: Likewise.
10404 * grub-core/script/lexer.c: Likewise.
10405 * grub-core/script/main.c: Likewise.
10406 * grub-core/script/script.c: Likewise.
10407 * grub-core/script/parser.y: Likewise. New `block' and `block0'
10408 non-terminals.
10409
10410 * grub-core/commands/acpi.c: Update extcmd implementations with
10411 grub_extcmd_context_t.
10412 * grub-core/commands/cat.c: Likewise.
10413 * grub-core/commands/echo.c: Likewise.
10414 * grub-core/commands/extcmd.c: Likewise.
10415 * grub-core/commands/hashsum.c: Likewise.
10416 * grub-core/commands/hdparm.c: Likewise.
10417 * grub-core/commands/help.c: Likewise.
10418 * grub-core/commands/hexdump.c: Likewise.
10419 * grub-core/commands/i386/cpuid.c: Likewise.
10420 * grub-core/commands/i386/pc/drivemap.c: Likewise.
10421 * grub-core/commands/i386/pc/halt.c: Likewise.
10422 * grub-core/commands/i386/pc/sendkey.c: Likewise.
10423 * grub-core/commands/iorw.c: Likewise.
10424 * grub-core/commands/keystatus.c: Likewise.
10425 * grub-core/commands/loadenv.c: Likewise.
10426 * grub-core/commands/ls.c: Likewise.
10427 * grub-core/commands/lspci.c: Likewise.
10428 * grub-core/commands/memrw.c: Likewise.
10429 * grub-core/commands/probe.c: Likewise.
10430 * grub-core/commands/search_wrap.c: Likewise.
10431 * grub-core/commands/setpci.c: Likewise.
10432 * grub-core/commands/sleep.c: Likewise.
10433 * grub-core/disk/loopback.c: Likewise.
10434 * grub-core/hello/hello.c: Likewise.
10435 * grub-core/loader/i386/bsd.c: Likewise.
10436 * grub-core/loader/xnu.c: Likewise.
10437 * grub-core/term/gfxterm.c: Likewise.
10438 * grub-core/term/serial.c: Likewise.
10439 * grub-core/tests/lib/functional_test.c: Likewise.
10440
10441 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
10442
10443 Multi-line quoted strings support.
10444
10445 * grub-core/script/lexer.c (append_newline): Removed.
10446 (grub_script_lexer_yywrap): Refactored.
10447 (grub_script_lexer_init): Refactored.
10448 * grub-core/script/yylex.l (yywrap): New function.
10449 (grub_lexer_resplit): New function.
10450 (grub_lexer_unput): New function.
10451 * include/grub/script_sh.h (grub_lexer_param): New members, unput
10452 and resplit.
10453 * tests/grub_script_echo1.in: Added few more testcases.
10454
10455 2010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
10456
10457 * grub-core/kern/misc.c: Don't add abort alias in utils.
10458 Reported by: echoline.
10459
10460 2010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
10461
10462 Add missing files into "make dist" tarball for other platforms.
10463
10464 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
10465 * conf/Makefile.common (dist_noinst_DATA): New variable.
10466 * conf/Makefile.extra-dist: Added missing make dist files.
10467 * grub-core/Makefile.core.def: Likewise.
10468
10469 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
10470
10471 Compress grub_prefix.
10472
10473 * grub-core/boot/i386/pc/lnxboot.S: Use
10474 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
10475 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
10476 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
10477 GRUB_MACHINE_PREFIX_END. All users updated.
10478 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
10479 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
10480 + 0x40.
10481 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
10482 * util/grub-mkimage.c (image_target_desc): Change data_end to
10483 prefix_end. All users updated.
10484
10485 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
10486
10487 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
10488 value.
10489 (grub_openbsd_boot): Likewise.
10490 (grub_netbsd_boot): Likewise.
10491 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
10492 (grub_xnu_boot): Likewise.
10493
10494 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
10495
10496 * configure.ac: Clean LIBS variable after tests.
10497
10498 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
10499
10500 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
10501
10502 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
10503
10504 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
10505 echo if libdevmapper will be used.
10506
10507 2010-09-02 Ian Turner <Ian.Turner@deshaw.com>
10508
10509 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
10510 constant for the same file.
10511
10512 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
10513
10514 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
10515
10516 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
10517
10518 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
10519 grub-core/*.pp.
10520
10521 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
10522
10523 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
10524 required by the boot protocol.
10525
10526 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
10527 ebp and edi members.
10528 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
10529 state.ebp and state.edi.
10530 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
10531 %ebp and %edi according to grub_relocator32_ebp and
10532 grub_relocator32_edi respectively.
10533 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
10534 and state.edi.
10535
10536 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
10537
10538 Add i386-pc-pxe image target.
10539
10540 * util/grub-mkimage.c (image_target_desc): New enum value
10541 IMAGE_I386_PC_PXE.
10542 (image_targets): New target i386-pc-pxe.
10543 (generate_image): Handle i386-pc-pxe image.
10544
10545 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
10546
10547 Fix grub_pxe_scan.
10548
10549 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
10550 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
10551 All users updated.
10552 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
10553 (grub_pxe_pxenv): Correct type.
10554
10555 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
10556
10557 * NEWS: Document most of the important changes since 1.98.
10558
10559 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
10560
10561 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
10562 generated manual page) a little.
10563
10564 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
10565
10566 * docs/grub.texi: Add myself as an author.
10567
10568 2010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
10569
10570 * Makefile.util.def (libgrub.a): Add missing sunpc.
10571 Reported by: Seth Goldberg.
10572
10573 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
10574
10575 Interrupt wrapping and code simplifications.
10576
10577 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
10578 x86_noieee1275 which are functionaly equivalent in this case.
10579 (grub-install): Make source on each platform explicit. Enable on
10580 all noemu.
10581 * gentpl.py (x86_efi_pc): Removed group.
10582 (x86_noefi): Likewise.
10583 (i386_noefi): Likewise.
10584 (x86_noieee1275): Likewise.
10585 (i386_noieee1275): Likewise.
10586 (i386_noefi_noieee1275): Likewise.
10587 (i386_pc_qemu_coreboot): Likewise.
10588 (i386_coreboot_multiboot): Likewise.
10589 (i386_pc_coreboot_multiboot_qemu): Likewise.
10590 (x86_noefi_mips): Likewise.
10591 (noieee1275): Likewise.
10592 (ieee1275_mips): Likewise.
10593 (noemu_noieee1275): Likewise.
10594 (cmos): New group.
10595 (usb): Likewise.
10596 (videoinkernel): Likewise.
10597 (videomodules): Likewise.
10598 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
10599 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
10600 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
10601 include/grub/loader.h, include/grub/msdos_partition.h,
10602 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
10603 include/grub/machine/console.h, include/grub/machine/vga.h,
10604 include/grub/machine/vbe.h, include/grub/machine/init.h,
10605 include/grub/machine/kernel.h, include/grub/cpu/time.h,
10606 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
10607 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
10608 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
10609 * grub-core/Makefile.core.def (kernel): Explicit the source for
10610 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
10611 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
10612 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
10613 Use videoinkernel tag.
10614 (usb): Enable on all usb.
10615 (usbserial_common): Likewise.
10616 (usbserial_pl2303): Likewise.
10617 (usbserial_ftdi): Likewise.
10618 (uhci): Enable on all x86.
10619 (ohci): Enable on all pci.
10620 (cmostest): Enable on all CMOS.
10621 (acpi): Include commands/acpi.c on all platforms.
10622 (halt): Add relevant lib/*/halt.c.
10623 (hdparm): Enable on all pci.
10624 (lspci): Likewise.
10625 (usbtest): Enable on all usb.
10626 (ata): Enable on all pci.
10627 (ata_pthru): Likewise.
10628 (usbms): Enable on all usb.
10629 (usb_keyboard): Likewise.
10630 (font): Use tag videomodules.
10631 (bufio): Likewise.
10632 (datetime): Use tag cmos. Enable on all noemu.
10633 (mmap): Use tags common and x86.
10634 (gfxterm): Use tag videomodules.
10635 (bitmap): Likewise.
10636 (bitmap_scale): Likewise.
10637 (video_fb): Likewise.
10638 (video): Likewise.
10639 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
10640 adjust padding accordingly. All users updated.
10641 (grub_ohci_transaction): Fix bad format specification.
10642 (GRUB_MOD_INIT): Add asserts for struct size.
10643 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
10644 (grub_alloc_td): Likewise.
10645 (grub_free_queue): Likewise.
10646 (grub_uhci_transfer): Likewise.
10647 (grub_uhci_transaction): Fix bad format specification.
10648 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
10649 (grub_usb_bulk_readwrite): Likewise.
10650 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
10651 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
10652 Made static.
10653 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
10654 Made static.
10655 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
10656 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
10657 Transformed into C.
10658 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
10659 Moved from here ...
10660 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
10661 ... here. Transformed into C. Made static.
10662 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
10663 Moved from here ...
10664 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
10665 ... here. Transformed into C. Made static.
10666 * grub-core/kern/i386/pc/startup.S
10667 (grub_biosdisk_check_int13_extensions): Moved from here ...
10668 * grub-core/disk/i386/pc/biosdisk.c
10669 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
10670 Made static.
10671 * grub-core/kern/i386/pc/startup.S
10672 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
10673 * grub-core/disk/i386/pc/biosdisk.c
10674 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
10675 Transformed into C. Made static.
10676 * grub-core/kern/i386/pc/startup.S
10677 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
10678 * grub-core/disk/i386/pc/biosdisk.c
10679 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
10680 Transformed into C. Made static.
10681 * grub-core/kern/i386/pc/startup.S
10682 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
10683 * grub-core/disk/i386/pc/biosdisk.c
10684 (grub_biosdisk_get_diskinfo_standard): ... here.
10685 Transformed into C. Made static.
10686 * grub-core/kern/i386/pc/startup.S
10687 (grub_biosdisk_get_num_floppies): Moved from here ...
10688 * grub-core/disk/i386/pc/biosdisk.c
10689 (grub_biosdisk_get_num_floppies): ... here.
10690 Transformed into C. Made static.
10691 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
10692 New function.
10693 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
10694 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
10695 Transformed into C. Made static.
10696 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
10697 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
10698 Transformed into C. Made static.
10699 * grub-core/kern/i386/ieee1275/init.c: Removed.
10700 * grub-core/kern/i386/misc.S: Likewise.
10701 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
10702 Splitted from here ...
10703 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
10704 Transformed into C. Made static. All users updated.
10705 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
10706 Transformed into C. Made static. All users updated.
10707 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
10708 Moved from here...
10709 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
10710 Transformed into C. Made static. All users updated.
10711 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
10712 Moved from here...
10713 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
10714 Transformed into C. Made static. All users updated.
10715 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
10716 Removed (replaced by C version).
10717 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
10718 Moved from here...
10719 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
10720 Transformed into C. Made static.
10721 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
10722 Moved from here...
10723 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
10724 ... here. Transformed into C.
10725 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
10726 Moved from here...
10727 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
10728 ... here. Transformed into C.
10729 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
10730 Moved from here...
10731 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
10732 ... here. Transformed into C. Made static.
10733 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
10734 Moved from here...
10735 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
10736 ... here. Transformed into C.
10737 * grub-core/kern/i386/pc/startup.S
10738 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
10739 * grub-core/video/i386/pc/vbe.c
10740 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
10741 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
10742 Moved from here...
10743 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
10744 ... here. Transformed into C.
10745 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
10746 Moved from here...
10747 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
10748 ... here. Transformed into C.
10749 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
10750 Moved from here...
10751 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
10752 ... here. Transformed into C.
10753 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
10754 Moved from here...
10755 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
10756 ... here. Transformed into C.
10757 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
10758 Moved from here...
10759 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
10760 ... here. Transformed into C. Made static.
10761 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
10762 Moved from here...
10763 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
10764 ... here. Transformed into C. Made static.
10765 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
10766 Moved from here...
10767 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
10768 ... here. Transformed into C. Made static.
10769 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
10770 pxe_rm_entry as third argument.
10771 (grub_bios_interrupt): New function.
10772 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
10773 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
10774 of calling grub_stop.
10775 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
10776 * grub-core/lib/efi/halt.c (grub_halt): ...here.
10777 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
10778 * grub-core/lib/emu/halt.c (grub_halt): ... here.
10779 * grub-core/lib/i386/halt.c: Moved from here ...
10780 * grub-core/lib/i386/halt.c: ... here.
10781 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
10782 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
10783 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
10784 grub_stop_floppy.
10785 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
10786 * include/grub/i386/coreboot/init.h: Removed.
10787 * include/grub/i386/multiboot/init.h: Likewise.
10788 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
10789 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
10790 * include/grub/i386/pc/int.h: New file.
10791 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
10792 (grub_pxe_scan): Removed.
10793 (grub_pxe_call): Update prototype.
10794 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
10795 prototypes.
10796 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
10797 * include/grub/i386/qemu/init.h: Removed.
10798 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
10799 noreturn.
10800 (grub_halt): Likewise.
10801 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
10802 (grub_reboot): Likewise.
10803 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
10804 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
10805 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
10806
10807 2010-08-30 Robert Millan <rmh@gnu.org>
10808
10809 * NEWS: Document addition of ZFS support in `grub-install' and
10810 `grub-mkconfig'.
10811
10812 2010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
10813
10814 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
10815 dprintf output.
10816
10817 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
10818
10819 Remove leftover embedding of font objects.
10820
10821 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
10822 * util/grub-install.in (font): Removed.
10823 * util/grub-mkimage.c (generate_image): Remove font support. All users
10824 updated.
10825
10826 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
10827
10828 Remove leftover embedding of font objects.
10829
10830 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
10831 * util/grub-install.in (font): Removed.
10832 * util/grub-mkimage.c (generate_image): Remove font support. All users
10833 updated.
10834
10835 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
10836
10837 * docs/grub.texi (Network): Fix reference to pxe_blksize.
10838 Reported by: Ian Turner
10839
10840 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
10841
10842 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
10843 timeout to avoid indefinite boot stalling.
10844
10845 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
10846
10847 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
10848 (grub_env_write_color_highlight): Likewise.
10849
10850 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
10851
10852 * grub-core/normal/term.c (print_more): Return to normal and not
10853 to standard state after printing "---MORE---".
10854
10855 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
10856
10857 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
10858 Mask out the bit 0x80 since it has other meaning that specifiing color.
10859
10860 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
10861
10862 New relocator. Allows for more kernel support and more straightforward
10863 loader writing.
10864
10865 * Makefile.am (BOOTTARGET): New variable.
10866 (QEMU32): Likewise.
10867 (linux.init.x86_64): New target.
10868 (linux.init.i386): Likewise.
10869 (multiboot.elf): Likewise.
10870 (kfreebsd.elf): Likewise.
10871 (kfreebsd.aout): Likewise.
10872 (pc-chainloader.elf): Likewise.
10873 (pc-chainloader.bin): Likewise.
10874 (ntldr.elf): Likewise.
10875 (ntldr.bin): Likewise.
10876 (multiboot2.elf): Likewise.
10877 (kfreebsd.init.x86_64): Likewise.
10878 (kfreebsd.init.i386): Likewise.
10879 (knetbsd.init.i386): Likewise.
10880 (kopenbsd.init.i386): Likewise.
10881 (knetbsd.init.x86_64): Likewise.
10882 (kopenbsd.init.x86_64): Likewise.
10883 (linux-initramfs.i386): Likewise.
10884 (linux-initramfs.x86_64): Likewise.
10885 (kfreebsd-mfsroot.i386.img): Likewise.
10886 (knetbsd.image.i386): Likewise.
10887 (kopenbsd.image.i386): Likewise.
10888 (kopenbsd.image.x86_64): Likewise.
10889 (knetbsd.miniroot-image.i386.img): Likewise.
10890 (kfreebsd-mfsroot.x86_64.img): Likewise.
10891 (knetbsd.image.x86_64): Likewise.
10892 (knetbsd.miniroot-image.x86_64.img): Likewise.
10893 (kfreebsd-mfsroot.i386.gz): Likewise.
10894 (bootcheck-kfreebsd-i386): Likewise.
10895 (kfreebsd-mfsroot.x86_64.gz): Likewise.
10896 (bootcheck-kfreebsd-x86_64): Likewise.
10897 (knetbsd.miniroot-image.i386.gz): Likewise.
10898 (bootcheck-knetbsd-i386): Likewise.
10899 (bootcheck-kopenbsd-i386): Likewise.
10900 (bootcheck-kopenbsd-x86_64): Likewise.
10901 (knetbsd.miniroot-image.x86_64.gz): Likewise.
10902 (bootcheck-knetbsd-x86_64): Likewise.
10903 (bootcheck-linux-i386): Likewise.
10904 (bootcheck-linux-x86_64): Likewise.
10905 (bootcheck-linux16-i386): Likewise.
10906 (bootcheck-linux16-x86_64): Likewise.
10907 (bootcheck-multiboot): Likewise.
10908 (bootcheck-multiboot2): Likewise.
10909 (bootcheck-kfreebsd-aout): Likewise.
10910 (bootcheck-pc-chainloader): Likewise.
10911 (bootcheck-ntldr): Likewise.
10912 (CLEANFILES): Add new targets.
10913 (BOOTCHECKS): New variable.
10914 (.PHONY): Add bootchecks.
10915 (SUCCESSFUL_BOOT_STRING): New variable.
10916 (BOOTCHECK_TIMEOUT): Likewise.
10917 (bootcheck): New target
10918 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
10919 * configure.ac: Correct efiemu excuse.
10920 * docs/grub.texi (Supported kernels): New chapter.
10921 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
10922 include/grub/mm_private.h. Simplify inclusion of
10923 include/grub/boot.h, include/grub/loader.h
10924 and include/grub/msdos_partition.h
10925 (KERNEL_HEADER_FILES) [i386_coreboot]:
10926 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
10927 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
10928 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
10929 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
10930 include/grub/machine/loader.h.
10931 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
10932 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
10933 extra_dist.
10934 (pci.mod): Enable on i386-multiboot.
10935 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
10936 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
10937 i386-qemu.
10938 (relocator.mod): Rewritten.
10939 (aout.mod): Enable on all x86.
10940 (bsd.mod): Likewise.
10941 (ntldr.mod): New module.
10942 (linux.mod): Use loader/i386/linux.c on all x86.
10943 (xnu.mod): Enable on all x86.
10944 (vga_text.mod): disable on EFI and QEMU.
10945 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
10946 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
10947 * grub-core/efiemu/loadcore.c: Likewise.
10948 * grub-core/efiemu/main.c: Likewise.
10949 (grub_efiemu_exit_boot_services): Removed.
10950 (grub_efiemu_finish_boot_services): Likewise.
10951 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
10952 function.
10953 * grub-core/efiemu/i386/nocfgtables.c: New file.
10954 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
10955 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
10956 (grub_efi_finish_boot_services): Moved from here ...
10957 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
10958 Fille finish memory map and related data.
10959 (finish_mmap_buf): New variable.
10960 (grub_efi_uintn_t finish_mmap_size): Likewise.
10961 (grub_efi_uintn_t finish_key): Likewise.
10962 (grub_efi_uintn_t finish_desc_size): Likewise.
10963 (grub_efi_uint32_t finish_desc_version): Likewise.
10964 (grub_efi_is_finished): Likewise.
10965 (grub_efi_get_memory_map): Use saved memory map if EFI is already
10966 finished.
10967 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
10968 (grub_elf64_phdr_iterate): Likewise.
10969 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
10970 (grub_os_area_size): Likewise.
10971 (grub_machine_init): Don't reserve os area.
10972 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
10973 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
10974 * grub-core/kern/i386/loader.S: Removed.
10975 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
10976 (grub_os_area_size): Likewise.
10977 (grub_machine_init): Don't reserve os area.
10978 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
10979 Don't call grub_dl_unload_all.
10980 Don't include loader.S.
10981 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
10982 Declare the memory after _end as available.
10983 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
10984 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
10985 (GRUB_MM_ALLOC_MAGIC): Moved from here...
10986 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
10987 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
10988 * include/grub/mm_private.h (grub_mm_header): ... here.
10989 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
10990 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
10991 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
10992 (grub_mm_region): ..here. Removed addr. Added pre_size.
10993 All users updated.
10994 * grub-core/kern/mm.c (base): Renamed to ...
10995 (grub_mm_base): ... this. Made global.
10996 (grub_real_malloc): Alloc from end of region.
10997 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
10998 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
10999 * grub-core/kern/powerpc/cache_flush.S: ... here.
11000 * grub-core/lib/efi/relocator.c: New file.
11001 * grub-core/lib/i386/relocator.c: Rewritten.
11002 * grub-core/lib/i386/relocator16.S: New file.
11003 * grub-core/lib/i386/relocator32.S: Likewise.
11004 * grub-core/lib/i386/relocator64.S: Likewise.
11005 * grub-core/lib/i386/relocator_asm.S: Rewritten.
11006 * grub-core/lib/i386/relocator_common.S: New file.
11007 * grub-core/lib/ieee1275/relocator.c: Likewise.
11008 * grub-core/lib/mips/relocator.c: Rewritten.
11009 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
11010 stylistic adjustments.
11011 * grub-core/lib/powerpc/relocator.c: New file.
11012 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
11013 * grub-core/lib/relocator.c: Rewritten.
11014 * grub-core/lib/x86_64/relocator_asm.S: New file.
11015 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
11016 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
11017 (bsd_tag): New struct.
11018 (tags): New variable.
11019 (tags_last): Likewise.
11020 (netbsd_module): New struct.
11021 (netbsd_mods): New variable.
11022 (netbsd_mods_last): Likewise.
11023 (openbsd_opts): New parameter "serial".
11024 (OPENBSD_SERIAL_ARG): New definition.
11025 (netbsd_opts): New parameter "serial".
11026 (NETBSD_SERIAL_ARG): New definition.
11027 (grub_freebsd_add_meta): Reorganised into ...
11028 (grub_bsd_add_meta): ...this. All users updated.
11029 (grub_freebsd_add_mmap): Reorganised into ...
11030 (generate_e820_mmap): ...this...
11031 (grub_bsd_add_mmap): ...and this. All users updated.
11032 (grub_freebsd_list_modules): Use tags.
11033 (grub_netbsd_add_meta_module): New function.
11034 (grub_netbsd_list_modules): Likewise.
11035 (grub_freebsd_boot): Use relocator and finish EFI.
11036 (grub_openbsd_boot): Likewise.
11037 (grub_netbsd_setup_video): New function.
11038 (grub_netbsd_add_modules): Likewise.
11039 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
11040 and finish EFI.
11041 (grub_bsd_unload): Unload tags.
11042 (grub_bsd_load_aout): Use relocator.
11043 (grub_bsd_elf32_size_hook): New function.
11044 (grub_bsd_elf32_hook): Use relocator.
11045 (grub_bsd_elf64_size_hook): New function.
11046 (grub_bsd_elf64_hook): Use relocator.
11047 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
11048 (grub_bsd_load): Zero-out openbsd_ramdisk.
11049 (grub_bsd_load): Use relocator.
11050 (grub_cmd_openbsd): Support serial.
11051 (grub_cmd_netbsd): Support modules.
11052 (grub_cmd_freebsd_module): Use relocator.
11053 (grub_netbsd_module_load): New function.
11054 (grub_cmd_netbsd_module): Likewise.
11055 (grub_cmd_openbsd_ramdisk): Likewise.
11056 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
11057 kopenbsd_ramdisk.
11058 (GRUB_MOD_FINI): Unregister new commands.
11059 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
11060 (grub_freebsd_load_elfmodule_obj): Use relocator.
11061 (grub_freebsd_load_elfmodule): Likewise.
11062 (grub_freebsd_load_elf_meta): Likewise.
11063 (grub_netbsd_load_elf_meta): New function.
11064 (grub_openbsd_find_ramdisk): Likewise.
11065 * grub-core/loader/i386/bsd_helper.S: Removed.
11066 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
11067 * grub-core/loader/i386/bsd_trampoline.S: Removed.
11068 * grub-core/loader/i386/efi/linux.c: Likewise.
11069 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
11070 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
11071 (DEFAULT_VIDEO_MODE): Likewise.
11072 (real_mode_target): New variable.
11073 (prot_mode_target): Likewise.
11074 (initrd_mem_target): Likewise.
11075 (relocator): Likewise.
11076 (efi_mmap_buf): Likewise.
11077 (efi_mmap_size): Likewise.
11078 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
11079 (free_pages): Use relocator.
11080 (allocate_pages): Account for efi_mmap and use relocator. Return error.
11081 (grub_linux_setup_video): Return error.
11082 (grub_linux_trampoline_start): Removed.
11083 (grub_linux_trampoline_end): Likewise.
11084 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
11085 andd video parameters depending on firmware.
11086 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
11087 [GRUB_MACHINE_EFI]: Pass EFI parameters.
11088 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
11089 (grub_cmd_initrd): Use relocator.
11090 * grub-core/loader/i386/linux_trampoline.S: Removed.
11091 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
11092 (elf_sec_entsize): Likewise.
11093 (elf_sec_shstrndx): Likewise.
11094 (elf_sections): Likewise.
11095 (grub_multiboot_load): Use relocator.
11096 (grub_multiboot_get_mbi_size): Account for sections.
11097 (grub_multiboot_make_mbi): Use relocator and support sections.
11098 (grub_multiboot_add_elfsyms): New function.
11099 (grub_multiboot_free_mbi): Free sections.
11100 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
11101 (grub_linux_real_target): Likewise.
11102 (grub_linux_real_chunk): Likewise.
11103 (grub_linux16_prot_size): Likewise.
11104 (grub_linux16_boot): Use relocator.
11105 (grub_linux_unload): Unload relocator.
11106 (grub_cmd_linux): Use relocator.
11107 (grub_cmd_initrd): Likewise.
11108 * grub-core/loader/i386/pc/ntldr.c: New file.
11109 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
11110 Don't try to guess CPU frequency.
11111 (grub_xnu_set_video): Stretch bitmap.
11112 (grub_xnu_boot): Use relocator.
11113 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
11114 (grub_linux_unload): Free relocator.
11115 (grub_linux_load32): Use relocator.
11116 (grub_linux_load64): Likewise.
11117 (grub_cmd_initrd): Likewise.
11118 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
11119 (grub_multiboot_unload): Unload relocator.
11120 (grub_cmd_multiboot): Use relocator.
11121 (grub_cmd_module): Likewise.
11122 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
11123 Use relocator and support sections.
11124 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
11125 (elf_sec_entsize): Likewise.
11126 (elf_sec_shstrndx): Likewise.
11127 (elf_sections): Likewise.
11128 (grub_multiboot_load): Use relocator.
11129 (grub_multiboot_get_mbi_size): Account for sections.
11130 (grub_multiboot_make_mbi): Use relocator and support sections.
11131 (grub_multiboot_add_elfsyms): New function.
11132 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
11133 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
11134 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
11135 Prototype changed. All users updated.
11136 (grub_xnu_align_heap): Simplified.
11137 (grub_xnu_writetree_toheap): Likewise.
11138 (grub_xnu_unload): Unload relocator.
11139 (grub_cmd_xnu_kernel): Use relocator.
11140 (grub_cmd_xnu_kernel64): Likewise.
11141 (grub_xnu_register_memory): Simplified.
11142 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
11143 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
11144 EFI is finished.
11145 (grub_console_checkkey): Likewise.
11146 (grub_console_getkey): Likewise.
11147 (grub_console_getwh): Likewise.
11148 (grub_console_getxy): Likewise.
11149 (grub_console_gotoxy): Likewise.
11150 (grub_console_cls): Likewise.
11151 (grub_console_setcolorstate): Likewise.
11152 (grub_console_setcursor): Likewise.
11153 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
11154 * grub-core/tests/boot/kbsd.init-i386.S: New file.
11155 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
11156 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
11157 * grub-core/tests/boot/kernel-8086.S: Likewise.
11158 * grub-core/tests/boot/kernel-i386.S: Likewise.
11159 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
11160 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
11161 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
11162 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
11163 * grub-core/tests/boot/knetbsd.cfg: Likewise.
11164 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
11165 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
11166 * grub-core/tests/boot/linux.cfg: Likewise.
11167 * grub-core/tests/boot/linux.init-i386.S: Likewise.
11168 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
11169 * grub-core/tests/boot/linux16.cfg: Likewise.
11170 * grub-core/tests/boot/multiboot.cfg: Likewise.
11171 * grub-core/tests/boot/multiboot2.cfg: Likewise.
11172 * grub-core/tests/boot/ntldr.cfg: Likewise.
11173 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
11174 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
11175 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
11176 New definition.
11177 * include/grub/dl.h (grub_dl_unload_all): Removed.
11178 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
11179 (grub_efi_finish_boot_services): Change prototype.
11180 (grub_efi_is_finished): New variable.
11181 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
11182 Changed prototype.
11183 (grub_efiemu_finish_boot_services): Removed.
11184 (grub_machine_efiemu_init_tables): New prototype.
11185 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
11186 (grub_elf64_phdr_iterate): Likewise.
11187 * include/grub/i386/bsd.h: Include relocator.h.
11188 (freebsd_tag_header): New struct.
11189 (grub_openbsd_bios_mmap): Removed.
11190 (grub_unix_real_boot): Removed.
11191 (grub_freebsd_load_elfmodule32): Changed prototype.
11192 (grub_freebsd_load_elfmodule_obj64): Likewise.
11193 (grub_freebsd_load_elf_meta32): Likewise.
11194 (grub_freebsd_load_elf_meta64): Likewise.
11195 (grub_freebsd_add_meta): Removed.
11196 (grub_netbsd_load_elf_meta32): New prototype.
11197 (grub_netbsd_load_elf_meta64): Likewise.
11198 (grub_bsd_add_meta): Likewise.
11199 (grub_openbsd_ramdisk_descriptor): New struct.
11200 (grub_openbsd_find_ramdisk32): New prototype.
11201 (grub_openbsd_find_ramdisk64): Likewise.
11202 * include/grub/i386/coreboot/loader.h: Removed.
11203 * include/grub/i386/efi/loader.h: Likewise.
11204 * include/grub/i386/ieee1275/loader.h: Likewise.
11205 * include/grub/i386/linux.h (linux_kernel_header): Change void *
11206 to grub_uint32_t.
11207 * include/grub/i386/loader.h: Removed.
11208 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
11209 value.
11210 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
11211 (grub_phys_addr_t): New type.
11212 (grub_vtop): New inline function.
11213 (grub_map_memory): Likewise.
11214 (grub_unmap_memory): Likewise.
11215 * include/grub/i386/multiboot/loader.h: Removed.
11216 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
11217 (NETBSD_BTINFO_CONSOLE): New definition.
11218 (NETBSD_BTINFO_SYMTAB): Likewise.
11219 (NETBSD_BTINFO_MODULES): Likewise.
11220 (NETBSD_BTINFO_FRAMEBUF): Likewise.
11221 (grub_netbsd_bootinfo): New struct.
11222 (grub_netbsd_btinfo_common): Use explicit bitsize.
11223 (grub_netbsd_btinfo_mmap_entry): Removed.
11224 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
11225 (grub_netbsd_btinfo_bootdisk): New struct.
11226 (grub_netbsd_btinfo_symtab): Likewise.
11227 (grub_netbsd_btinfo_serial): Likewise.
11228 (grub_netbsd_btinfo_modules): Likewise.
11229 (grub_netbsd_btinfo_framebuf): Likewise.
11230 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
11231 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
11232 Likewise.
11233 (grub_openbsd_bootargs): Use explicit bitsize.
11234 (grub_openbsd_bootarg_console): New struct.
11235 (GRUB_OPENBSD_COM_MAJOR): New definition.
11236 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
11237 * include/grub/i386/pc/efiemu.h: Removed.
11238 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
11239 * include/grub/i386/qemu/loader.h: Removed.
11240 * include/grub/i386/relocator.h: Rewritten.
11241 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
11242 * include/grub/mips/memory.h: New file.
11243 * include/grub/mips/multiboot.h: Rewritten.
11244 * include/grub/mips/relocator.h: Rewritten.
11245 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
11246 (grub_vtop): New function.
11247 (grub_map_memory): Likewise.
11248 (grub_unmap_memory): Likewise.
11249 * include/grub/misc.h (ALIGN_DOWN): New definition.
11250 * include/grub/mm.h (grub_mm_check_real): New proto.
11251 (GRUB_MM_CHECK): New definition.
11252 * include/grub/mm_private.h: New file.
11253 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
11254 (grub_multiboot_get_mbi_size): Removed.
11255 (grub_multiboot_make_mbi): Change prottype.
11256 (grub_multiboot_set_accepts_video): New proto.
11257 (grub_multiboot_add_elfsyms): Likewise.
11258 (grub_multiboot_payload_eip): New variable.
11259 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
11260 New prototype.
11261 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
11262 New definition.
11263 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
11264 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
11265 * include/grub/powerpc/ieee1275/loader.h: Removed.
11266 * include/grub/powerpc/memory.h: New file.
11267 * include/grub/powerpc/relocator.h: Likewise.
11268 * include/grub/relocator.h: Likewise.
11269 * include/grub/relocator_private.h: Likewise.
11270 * include/grub/sparc64/ieee1275/loader.h: Removed.
11271 * include/grub/x86_64/memory.h: New file.
11272 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
11273 (grub_xnu_heap_malloc): Likewise.
11274 (grub_xnu_heap_real_start): Removed.
11275 (grub_xnu_heap_start): Likewise.
11276 (grub_xnu_relocator): New variable.
11277 (grub_xnu_heap_target_start): Likewise.
11278 * tests/util/grub-shell.in: Support non-pc.
11279 * util/grub-mkimage.c (image_targets): Fix multiboot target.
11280
11281 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
11282
11283 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
11284 on malloc error.
11285 (grub_bidi_logical_to_visual): Check that malloc succeded.
11286 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
11287 puts.
11288 (grub_xputs_normal): Likewise.
11289
11290 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
11291
11292 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
11293 extra_dist.
11294
11295 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
11296
11297 * grub-core/efiemu/runtime/efiemu.sh: Removed.
11298
11299 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
11300
11301 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
11302
11303 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
11304
11305 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
11306 dprintf.
11307
11308 2010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
11309
11310 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
11311
11312 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
11313
11314 * grub-core/normal/term.c (print_more): Fix a memory leak.
11315 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
11316 (grub_xputs_normal): Likewise.
11317
11318 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
11319
11320 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
11321 the begining of the string
11322
11323 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
11324
11325 * grub-core/script/script.c (grub_script_parse): Free parsed on
11326 failure.
11327
11328 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
11329
11330 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
11331 on failure.
11332
11333 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
11334
11335 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
11336 return.
11337
11338 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
11339
11340 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
11341 (scroll_up): Fix a memory leak.
11342
11343 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
11344
11345 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
11346 errors.
11347
11348 2010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
11349
11350 Handle USB pendrives exposed as floppies.
11351
11352 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
11353 floppy.
11354 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
11355 Check for partitions on all devices.
11356
11357 2010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
11358
11359 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
11360 (readkey): Likewise.
11361
11362 2010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
11363
11364 Multiple variable names support to "export" command.
11365
11366 * normal/context.c (grub_cmd_export): "export" command supports
11367 multiple variable names.
11368
11369 2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
11370
11371 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
11372 --target=drive output to Mach device name.
11373
11374 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
11375
11376 New Automake based build system for GRUB.
11377
11378 * ABOUT-NLS: New file.
11379 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
11380 in Makefile.util.def file.
11381 * Makefile.util.def: New file. Autogen build definitions file for
11382 GRUB host utils.
11383 * conf/Makefile.common: New file. Common variables for GRUB host
11384 utils and target modules.
11385 * conf/Makefile.extra-dist: New file. Extra files for make dist.
11386 * docs/Makefile.am: New file. Automake file for docs.
11387 * gentpl.py: New file. Python script to generate Autogen
11388 template.
11389 * grub-core/Makefile.am: New file. GRUB target modules' rules
11390 that doesn't fit in Makefile.core.def file.
11391 * grub-core/Makefile.core.def: New file. Autogen build
11392 definitions file for GRUB target modules.
11393 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
11394 specific setjmp.S file.
11395 * po/Makefile.am: New file.
11396
11397 * .bzrignore: New ignores.
11398 * INSTALL: New requirements, without Ruby.
11399 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
11400 * autogen.sh: Updated to invoke autogen as necessary.
11401 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
11402 and defines for Automake conditionals.
11403 * geninit.sh: Refactoring.
11404
11405 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
11406 necessary.
11407 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
11408 New prototype.
11409
11410 * include/grub/test.h: Fix functional test modules' naming.
11411 * grub-core/tests/example_functional_test.c: Fix test module name.
11412
11413 * util/misc.c: Hosted versions' of grub functions for libgrub.a
11414 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
11415 * util/grub-editenv.c: Likewise.
11416 * util/grub-fstest.c: Likewise.
11417 * util/grub-mkdevicemap.c: Likewise.
11418 * util/grub-mkfont.c: Likewise.
11419 * util/grub-mkimage.c: Likewise.
11420 * util/grub-mkpasswd-pbkdf2.c: Likewise.
11421 * util/grub-probe.c: Likewise.
11422 * util/grub-script-check.c: Likewise.
11423 * util/i386/pc/grub-setup.c: Likewise.
11424 * util/sparc64/ieee1275/grub-setup.c: Likewise.
11425
11426 * tests/util/grub-shell.in: Fix override directory path.
11427 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
11428 * util/import_gcry.py: Create Makefile.gcry.def file instead.
11429
11430 * util/lvm.c: Update #includes.
11431 * util/raid.c: Likewise.
11432 * util/resolve.c: Likewise.
11433 * grub-core/bus/emu/pci.c: Likewise.
11434 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
11435 * grub-core/lib/posix_wrap/string.h: Likewise.
11436 * grub-core/kern/emu/main.c: Likewise.
11437
11438 * grub-core/gensymlist.sh: New file. Script for generating kernel
11439 symbols file.
11440 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
11441
11442 * grub-core/gentrigtables.c: Fix unused variable warnings.
11443
11444 * Makefile.in: Removed.
11445 * conf/any-emu.rmk: Removed.
11446 * conf/common.rmk: Removed.
11447 * conf/i386-coreboot.rmk: Removed.
11448 * conf/i386-efi.rmk: Removed.
11449 * conf/i386-ieee1275.rmk: Removed.
11450 * conf/i386-multiboot.rmk: Removed.
11451 * conf/i386-pc.rmk: Removed.
11452 * conf/i386-qemu.rmk: Removed.
11453 * conf/i386.rmk: Removed.
11454 * conf/mips-yeeloong.rmk: Removed.
11455 * conf/mips.rmk: Removed.
11456 * conf/powerpc-ieee1275.rmk: Removed.
11457 * conf/sparc64-ieee1275.rmk: Removed.
11458 * conf/tests.rmk: Removed.
11459 * conf/x86-efi.rmk: Removed.
11460 * conf/x86_64-efi.rmk: Removed.
11461 * gendistlist.sh: Removed.
11462 * geninitheader.sh: Removed.
11463 * genkernsyms.sh.in: Removed.
11464 * genmk.rb: Removed.
11465 * gensymlist.sh.in: Removed.
11466 * mkinstalldirs: Removed.
11467 * boot: Moved ...
11468 * grub-core/boot: ... to here.
11469 * bus: Moved ...
11470 * grub-core/bus: ... to here.
11471 * commands: Moved ...
11472 * grub-core/commands: ... to here.
11473 * disk: Moved ...
11474 * grub-core/disk: ... to here.
11475 * efiemu: Moved ...
11476 * grub-core/efiemu: ... to here.
11477 * font: Moved ...
11478 * grub-core/font: ... to here.
11479 * fs: Moved ...
11480 * grub-core/fs: ... to here.
11481 * gencmdlist.sh: Moved ...
11482 * grub-core/gencmdlist.sh: ... to here.
11483 * genemuinit.sh: Moved ...
11484 * grub-core/genemuinit.sh: ... to here.
11485 * genemuinitheader.sh: Moved ...
11486 * grub-core/genemuinitheader.sh: ... to here.
11487 * genfslist.sh: Moved ...
11488 * grub-core/genfslist.sh: ... to here.
11489 * genhandlerlist.sh: Moved ...
11490 * grub-core/genhandlerlist.sh: ... to here.
11491 * genmoddep.awk: Moved ...
11492 * grub-core/genmoddep.awk: ... to here.
11493 * genmodsrc.sh: Moved ...
11494 * grub-core/genmodsrc.sh: ... to here.
11495 * genpartmaplist.sh: Moved ...
11496 * grub-core/genpartmaplist.sh: ... to here.
11497 * genparttoollist.sh: Moved ...
11498 * grub-core/genparttoollist.sh: ... to here.
11499 * genterminallist.sh: Moved ...
11500 * grub-core/genterminallist.sh: ... to here.
11501 * gentrigtables.c: Moved ...
11502 * grub-core/gentrigtables.c: ... to here.
11503 * genvideolist.sh: Moved ...
11504 * grub-core/genvideolist.sh: ... to here.
11505 * gettext: Moved ...
11506 * grub-core/gettext: ... to here.
11507 * gfxmenu: Moved ...
11508 * grub-core/gfxmenu: ... to here.
11509 * gnulib: Moved ...
11510 * grub-core/gnulib: ... to here.
11511 * hello: Moved ...
11512 * grub-core/hello: ... to here.
11513 * hook: Moved ...
11514 * grub-core/hook: ... to here.
11515 * io: Moved ...
11516 * grub-core/io: ... to here.
11517 * kern: Moved ...
11518 * grub-core/kern: ... to here.
11519 * lib: Moved ...
11520 * grub-core/lib: ... to here.
11521 * loader: Moved ...
11522 * grub-core/loader: ... to here.
11523 * mmap: Moved ...
11524 * grub-core/mmap: ... to here.
11525 * normal: Moved ...
11526 * grub-core/normal: ... to here.
11527 * partmap: Moved ...
11528 * grub-core/partmap: ... to here.
11529 * parttool: Moved ...
11530 * grub-core/parttool: ... to here.
11531 * script: Moved ...
11532 * grub-core/script: ... to here.
11533 * term: Moved ...
11534 * grub-core/term: ... to here
11535 * tests/example_functional_test.c: Moved ...
11536 * grub-core/tests/example_functional_test.c: ... to here.
11537 * tests/lib/functional_test.c: Moved ...
11538 * grub-core/tests/lib/functional_test.c: ... to here.
11539 * tests/lib/test.c: Moved ...
11540 * grub-core/tests/lib/test.c: ... to here.
11541 * video: Moved ...
11542 * grub-core/video: ... to here.
11543
11544 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
11545
11546 Replace --enable-grub-emu-modules with grub-emu-lite.
11547
11548 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
11549 cache.S.
11550
11551 * include/grub/emu/misc.h (grub_emu_init): New prototype.
11552 * kern/emu/full.c: New file. For grub-emu specific initialization.
11553 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
11554 * kern/emu/main.c: Call initialization function grub_emu_init.
11555
11556 * Makefile.in: Include grub-emu-lite in install.
11557 * commands/parttool.c: Use grub_no_autoload to differentiate
11558 between grub-emu and grub-emu-lite.
11559 * include/grub/misc.h: New variable grub_no_autoload.
11560
11561 * conf/any-emu.rmk: New rules for grub-emu-lite.
11562 * configure.ac: Remove --enable-grub-emu-modules.
11563 * genmk.rb: Cleanup unnecessary rules.
11564 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
11565
11566 * normal/main.c: Don't load list files on grub-emu-lite.
11567 * util/misc.c (grub_arch_sync_caches): Removed.
11568
11569 2010-08-23 Colin Watson <cjwatson@ubuntu.com>
11570
11571 * kern/mips/startup.S (grub_prefix): Update comment to refer to
11572 grub-mkimage rather than grub-mkelfimage.
11573 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
11574
11575 2010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
11576
11577 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
11578 a key after CapsLock or NumLock. It's just a qemu bug.
11579
11580 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
11581
11582 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
11583 needed by libusb wrapper.
11584
11585 2010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
11586
11587 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
11588
11589 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
11590
11591 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
11592 --nounzip is passed.
11593
11594 2010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
11595
11596 USB hotunplugging and USB serial support.
11597
11598 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
11599 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
11600 (grub_uhci_transfer): Respect timeout and set *actual.
11601 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
11602 non-standard length.
11603 (grub_usb_device_attach): Autoload modules.
11604 (GRUB_MOD_INIT): Set grub_term_poll_usb.
11605 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
11606 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
11607 users updated.
11608 (grub_usb_add_hub): Fill nports and children.
11609 (attach_root_port): Receive hub instead of controller.
11610 All users updated. Fill hub->devices.
11611 (grub_usb_root_hub): Allocate hub->devices.
11612 (detach_device): New function.
11613 (poll_nonroot_hub): Fill children and detach devices.
11614 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
11615 actual arguments. All users updated.
11616 (grub_usb_bulk_read_extended): New function.
11617 * bus/usb/serial/common.c: New file.
11618 * bus/usb/serial/ftdi.c: Likewise.
11619 * bus/usb/serial/pl2303.c: Likewise.
11620 * commands/terminal.c (handle_command): Support wildcard.
11621 * commands/usbtest.c: Output "Unknown" instead of empty string.
11622 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
11623 (usbserial_common_mod_SOURCES): New variable.
11624 (usbserial_common_mod_CFLAGS): Likewise.
11625 (usbserial_common_mod_LDFLAGS): Likewise.
11626 (pkglib_MODULES): Add usbserial_pl2303.mod.
11627 (usbserial_pl2303_mod_SOURCES): New variable.
11628 (usbserial_pl2303_mod_CFLAGS): Likewise.
11629 (usbserial_pl2303_mod_LDFLAGS): Likewise.
11630 (pkglib_MODULES): Add usbserial_ftdi.mod.
11631 (usbserial_ftdi_mod_SOURCES): New variable.
11632 (usbserial_ftdi_mod_CFLAGS): Likewise.
11633 (usbserial_ftdi_mod_LDFLAGS): Likewise.
11634 (pkglib_MODULES): Add serial.mod.
11635 (serial_mod_SOURCES): New variable.
11636 (serial_mod_CFLAGS): Likewise.
11637 (serial_mod_LDFLAGS): Likewise.
11638 * conf/i386-pc.rmk: Likewise.
11639 * conf/mips-yeeloong.rmk: Likewise.
11640 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
11641 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
11642 * disk/usbms.c (first_available_slot): New variable.
11643 (grub_usbms_attach): Don't reuse free slots due to potential cache
11644 problems.
11645 * include/grub/serial.h: Moved to ..
11646 * include/grub/ns8250.h: ...this.
11647 * include/grub/serial.h: New file.
11648 * include/grub/term.h (grub_term_poll_usb): New variable.
11649 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
11650 readkey. All users updated.
11651 (grub_terminfo_output_state): Pass term to put.
11652 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
11653 (grub_usb_controller_dev): Add timeout and actual arguments to
11654 transfer. All users updated.
11655 (grub_usb_interface): New field detach_data.
11656 (grub_usb_device): New fields children and nports.
11657 (grub_usb_ep_type_t): New type.
11658 (grub_usb_get_ep_type): New function.
11659 (grub_usb_bulk_read_extended): Likewise.
11660 * include/grub/usbdesc.h (grub_usb_desc): New type.
11661 * include/grub/usbserial.h: New file.
11662 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
11663 * kern/term.c (grub_term_poll_usb): New variable.
11664 (grub_getkey): Call grub_term_poll_usb if set.
11665 (grub_checkkey): Likewise.
11666 (grub_getkeystatus): Likewise.
11667 * term/serial.c: Moved controller-specific parts to ...
11668 * term/ns8250.c: ... here.
11669 * term/serial.c: Mostly rewritten.
11670 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
11671 according to spec.
11672
11673 2010-08-20 Robert Millan <rmh@gnu.org>
11674
11675 Make kFreeBSD code more generic to support ext2fs as root, ufs as
11676 a separate module and maybe other interesting combinations.
11677
11678 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
11679 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
11680 (kfreebsd_entry): Add generic filesystem module load routine.
11681 Map GRUB `ext2' to kFreeBSD `ext2fs'.
11682
11683 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
11684
11685 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
11686 "numcenter" (I misunderstood the purpose of this entry).
11687 * docs/grub.texi (sendkey): Likewise.
11688
11689 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
11690
11691 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
11692 status flag options; simply omitting the option is equivalent and
11693 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
11694 (keysym_table): Rename "num5numlock" to "numlock".
11695 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
11696 can uniformly say that only the last of multiple `sendkey'
11697 invocations has any effect.
11698 * docs/grub.texi (sendkey): New section.
11699
11700 2010-08-19 Colin Watson <cjwatson@ubuntu.com>
11701
11702 * commands/i386/pc/sendkey.c (options): Fix three typos.
11703
11704 2010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
11705
11706 Implement sendkey support.
11707
11708 * commands/i386/pc/sendkey.c: New file.
11709 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
11710 (sendkey_mod_SOURCES): New variable.
11711 (sendkey_mod_CFLAGS): Likewise.
11712 (sendkey_mod_LDFLAGS): Likewise.
11713
11714 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
11715
11716 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
11717 fix warnings from Autoconf.
11718
11719 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
11720
11721 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
11722 to avoid false positives with some assemblers that output things
11723 like "someprefix_func" as part of their output.
11724
11725 2010-08-15 Robert Millan <rmh@gnu.org>
11726
11727 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
11728 errors.
11729 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
11730 grub_get_libzfs_handle() errors.
11731
11732 2010-08-14 Robert Millan <rmh@gnu.org>
11733
11734 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
11735 filesystem is not ZFS.
11736
11737 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
11738
11739 Fix for misspelled color names defaulting to black/black (bug
11740 reported by Doug Nazar)
11741
11742 * include/grub/normal.h (grub_parse_color_name_pair): Add return
11743 status to prototype.
11744 * normal/color.c (grub_parse_color_name_pair): Return failure
11745 status.
11746 (grub_env_write_color_normal): Ignore bad color names.
11747 (grub_env_write_color_highlight): Likewise.
11748 * normal/main.c (GRUB_MOD_INIT): Set default color names.
11749
11750 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
11751
11752 "shift" command support to GRUB script.
11753
11754 * include/grub/script_sh.h (grub_script_shift): New prototype.
11755 * script/execute.c (grub_script_shift): New function.
11756 * script/main.c (grub_script_init): Register shift command.
11757 (grub_script_fini): Unregister shift command.
11758 * util/grub-script-check.c (grub_script_cmd_shift): New function.
11759
11760 * tests/grub_script_shift.in: New testcase.
11761 * conf/tests.rmk: Rules for new testcase.
11762
11763 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
11764
11765 "continue" command support to GRUB script.
11766
11767 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
11768 (grub_script_break): Continue support.
11769 * script/main.c (grub_script_init): Register continue command.
11770 (grub_script_fini): Unregister continue command.
11771
11772 * tests/grub_script_continue.in: New testcase.
11773 * conf/tests.rmk: Rules for new testcase.
11774
11775 2010-08-12 BVK Chaitanya <bvk@dbook>
11776
11777 "break" command support to GRUB script.
11778
11779 * conf/common.rmk: Rule updates to grub-script-check.
11780 * include/grub/misc.h (grub_min): New function.
11781 * include/grub/script_sh.h (grub_script_init): New prototype.
11782 (grub_script_fini): New prototype.
11783 (grub_script_break): New prototype.
11784 * script/main.c (grub_script_init): New function.
11785 (grub_script_fini): New function.
11786 * script/execute.c (grub_script_break): New function.
11787 * normal/main.c: Calls to grub_script_{init,fini}.
11788 * util/grub-script-check.c (grub_script_break): New function.
11789
11790 * tests/grub_script_break.in: New testcase.
11791 * conf/tests.rmk: Rules for new test case.
11792
11793 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
11794
11795 Function parameters support to GRUB script.
11796
11797 * script/yylex.l (VARIABLE): Regular expression update.
11798 * script/function.c (grub_script_function_call): Moved ...
11799 * script/execute.c (grub_script_function_call): ... to here.
11800 (grub_script_execute_arglist_to_argv): Removed.
11801 (grub_script_arglist_to_argv): New function.
11802 * script/argv.c: New file.
11803 (grub_script_argv_free): New function.
11804 (grub_script_argv_next): Likewise.
11805 (grub_script_argv_append): Likewise.
11806 (grub_script_argv_split_append): Likewise.
11807 * include/grub/script_sh.h (grub_script_argv): New struct.
11808 (grub_script_argv_free): New function.
11809 (grub_script_argv_next): Likewise.
11810 (grub_script_argv_append): Likewise.
11811 (grub_script_argv_split_append): Likewise.
11812
11813 * conf/common.rmk (normal.mod): New source script/argv.c.
11814
11815 * tests/grub_script_echo1.in: More tests.
11816 * tests/grub_script_vars1.in: Likewise.
11817 * tests/grub_script_functions.in: New test case.
11818 * conf/tests.rmk: Rules for new testcase.
11819
11820 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
11821
11822 Remove grub_script_cmdblock struct.
11823
11824 * include/grub/script_sh.h: Remove grub_script_cmdblock.
11825 * script/parser.y: Likewise.
11826 * script/execute.c: Rename cmdblock suffix to cmdlist.
11827 * script/script.c: Likewise.
11828 * util/grub-script-check.c: Likewise.
11829
11830 2010-08-11 Yves Blusseau <blusseau@zetam.org>
11831
11832 * .bzrignore: add grub-macho2img
11833
11834 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
11835
11836 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
11837
11838 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
11839
11840 Remove the dump of sm712 initialisation sequence.
11841
11842 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
11843 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
11844 (GRUB_VGA_IO_MISC_WRITE): Likewise.
11845 (GRUB_VGA_CR_*): Added many registers.
11846 (GRUB_VGA_SR_*): Likewise.
11847 (GRUB_VGA_GR_*): Likewise.
11848 (grub_vga_write_arx): New function.
11849 (grub_video_hw_config): New struct.
11850 (grub_vga_set_geometry): New function.
11851 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
11852 GRUB_PCI_CLASS_SUBCLASS_VGA.
11853 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
11854 * video/sm712.c (grub_sm712_write_reg): New function
11855 (grub_sm712_read_reg): Likewise.
11856 (grub_sm712_sr_write): Likewise.
11857 (grub_sm712_gr_write): Likewise.
11858 (grub_sm712_cr_write): Likewise.
11859 (grub_sm712_write_arx): Likewise.
11860 (grub_sm712_cr_shadow_write): Likewise.
11861 (grub_sm712_write_dda_lookup): Likewise.
11862 (grub_video_sm712_setup): Initialise the video rather then
11863 blindly replay the dump.
11864 (main) [TEST]: Add a routine to be able to compile as standalone for
11865 tests.
11866 * video/sm712_init.c (sm712_init): Removed.
11867 (sm712_sr_seq1): New array.
11868 (sm712_sr_seq2): Likewise.
11869
11870 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
11871
11872 * include/grub/vga.h: Add missing grub/pci.h include.
11873
11874 2010-08-10 Yves Blusseau <blusseau@zetam.org>
11875
11876 * util/grub-macho2img.c (main): fix typo
11877
11878 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
11879
11880 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
11881 (grub_vga_gr_read): Likewise.
11882 (grub_vga_cr_write): Likewise.
11883 (grub_vga_cr_read): Likewise.
11884 (grub_vga_sr_write): Likewise.
11885 (grub_vga_sr_read): Likewise.
11886 (grub_vga_palette_read): Likewise.
11887 (grub_vga_palette_write): Likewise.
11888 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
11889 (grub_sm712_sr_read): New function.
11890 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
11891 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
11892
11893 2010-08-09 Robert Millan <rmh@gnu.org>
11894
11895 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
11896 out unused variables on non-ZFS build.
11897
11898 2010-08-08 Robert Millan <rmh@gnu.org>
11899
11900 Fix path generation for sub-filesystems in ZFS.
11901
11902 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
11903 missing slash.
11904
11905 2010-08-08 Robert Millan <rmh@gnu.org>
11906
11907 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
11908
11909 2010-08-08 Robert Millan <rmh@gnu.org>
11910
11911 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
11912 exist, issue a proper error message (rely on `ls' for translated
11913 strings).
11914
11915 2010-08-08 Robert Millan <rmh@gnu.org>
11916
11917 Fix grub-probe invocation.
11918
11919 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
11920
11921 2010-08-04 Robert Millan <rmh@gnu.org>
11922
11923 * configure.ac: Remove checks for getfsstat() and getmntany().
11924 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
11925 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
11926 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
11927 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
11928 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
11929 function.
11930 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
11931 via find_mount_point_from_dir() and getfsstat() / getmntany().
11932
11933 2010-08-04 Robert Millan <rmh@gnu.org>
11934
11935 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
11936 (grub_find_zpool_from_mount_point): Merge into ...
11937 (grub_find_zpool_from_dir): ... this.
11938 * kern/emu/misc.c: Likewise.
11939
11940 * kern/emu/misc.c
11941 (grub_make_system_path_relative_to_its_root): Replace
11942 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
11943 with grub_find_zpool_from_dir().
11944 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
11945
11946 2010-08-04 Robert Millan <rmh@gnu.org>
11947
11948 Support OpenSolaris in ZFS device resolution.
11949
11950 * configure.ac: Check for getmntany().
11951 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
11952 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
11953 support.
11954
11955 2010-08-03 Robert Millan <rmh@gnu.org>
11956
11957 Fix grub-emu build.
11958
11959 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
11960 * include/grub/emu/misc.h: ... here.
11961
11962 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
11963 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
11964
11965 * util/misc.c: Remove `<grub/util/libzfs.h>'.
11966 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
11967 (grub_get_libzfs_handle): Move to ...
11968 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
11969 (grub_get_libzfs_handle): ... here.
11970
11971 2010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
11972
11973 * script/execute.c (grub_script_execute_cmdline): Check for NULL
11974 as command name case.
11975
11976 2010-08-02 Colin Watson <cjwatson@ubuntu.com>
11977
11978 * disk/raid.c (insert_array): Select unique numbers for named arrays
11979 as well, for use as keys in the disk cache.
11980
11981 2010-08-01 Robert Millan <rmh@gnu.org>
11982
11983 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
11984 kFreeBSD device name, except on ZFS where the filesystem label is
11985 used.
11986 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
11987 `/boot/zfs/zpool.cache'.
11988 Set mountfrom kernel variable using ${kfreebsd_device}.
11989
11990 2010-08-01 Robert Millan <rmh@gnu.org>
11991
11992 Make it even harder to use uninitialized `libzfs_handle' (and
11993 make the interface a bit simpler).
11994
11995 * include/grub/util/misc.h (grub_util_init_libzfs)
11996 (libzfs_handle): Remove.
11997 (grub_get_libzfs_handle): New prototype.
11998
11999 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
12000 attribute.
12001 (grub_util_init_libzfs): Remove.
12002 (grub_get_libzfs_handle): New function.
12003
12004 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
12005 grub_get_libzfs_handle() to obtain a libzfs handle instead of
12006 accessing `libzfs_handle' directly.
12007
12008 2010-08-01 Robert Millan <rmh@gnu.org>
12009
12010 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
12011 (grub_find_zpool_from_mount_point): New function prototypes.
12012
12013 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
12014 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
12015
12016 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
12017 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
12018 `static' attribute.
12019
12020 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
12021 finding zpool from mount point into ...
12022 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
12023
12024 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
12025 requested path is part of a ZFS pool, use
12026 grub_find_zpool_from_mount_point() to detect its filesystem name,
12027 and generate a path with `/fsname@path' syntax.
12028
12029 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
12030
12031 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
12032 (void) rather than () so that this is a proper prototype.
12033
12034 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
12035
12036 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
12037
12038 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
12039
12040 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
12041 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
12042
12043 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
12044
12045 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
12046
12047 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
12048
12049 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
12050
12051 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
12052
12053 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
12054 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
12055 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
12056 disable gfxpayload.
12057 (Shell-like scripting): Add real content.
12058 (Serial terminal): Suggest `terminal_input serial; terminal_output
12059 serial' rather than putting the two commands on separate lines,
12060 since console input will be inoperative after the first command.
12061 (menuentry): Document --class, --users, and --hotkey options.
12062 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
12063 Vladimir Serbinenko).
12064
12065 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
12066 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
12067
12068 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
12069
12070 2010-08-01 Robert Millan <rmh@gnu.org>
12071
12072 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
12073 (grub_find_zpool_from_mount_point): New function prototypes.
12074
12075 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
12076 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
12077
12078 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
12079 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
12080 `static' attribute.
12081
12082 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
12083 finding zpool from mount point into ...
12084 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
12085
12086 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
12087 requested path is part of a ZFS pool, use
12088 grub_find_zpool_from_mount_point() to detect its filesystem name,
12089 and generate a path with `/fsname@path' syntax.
12090
12091 2010-08-01 Robert Millan <rmh@gnu.org>
12092
12093 Prevent accidental use of uninitialized libzfs_handle.
12094
12095 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
12096 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
12097 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
12098
12099 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
12100
12101 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
12102 util/grub.d/10_linux.in). Fixes Debian bug #591093.
12103
12104 2010-08-01 Robert Millan <rmh@gnu.org>
12105
12106 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
12107
12108 2010-07-31 Robert Millan <rmh@gnu.org>
12109
12110 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
12111
12112 2010-07-31 Robert Millan <rmh@gnu.org>
12113
12114 * kern/emu/misc.c: Add missing license header.
12115
12116 2010-07-31 Robert Millan <rmh@gnu.org>
12117
12118 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
12119
12120 * include/grub/util/libnvpair.h: Include `<config.h>'.
12121 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
12122 declaring libnvpair prototypes ourselves.
12123 * include/grub/util/libzfs.h: Include `<config.h>'.
12124 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
12125 declaring libzfs prototypes ourselves.
12126
12127 (libzfs_handle): Moved to ...
12128 * include/grub/util/misc.h (libzfs_handle): ... here.
12129 Include `<grub/util/libzfs.h>'.
12130
12131 2010-07-30 Robert Millan <rmh@gnu.org>
12132
12133 * include/grub/emu/misc.h: Add missing license header.
12134
12135 2010-07-30 Robert Millan <rmh@gnu.org>
12136
12137 Enable `grub-probe -t device' resolution on ZFS.
12138
12139 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
12140 * include/grub/util/libnvpair.h: New file.
12141 * include/grub/util/libzfs.h: New file.
12142
12143 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
12144 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
12145 `<grub/util/libnvpair.h>'.
12146 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
12147
12148 (find_mount_point_from_dir): New static function.
12149 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
12150 function.
12151 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
12152 find_root_device_from_libzfs() before ressorting to find_root_device().
12153
12154 * include/grub/util/misc.h (grub_util_init_libzfs): New function
12155 prototype.
12156 * util/misc.c: Include `<grub/util/libzfs.h>'.
12157 (grub_util_init_libzfs): New function.
12158 [HAVE_LIBZFS] (libzfs_handle): New global variable.
12159 [HAVE_LIBZFS] (fini_libzfs): New static function.
12160 (grub_util_init_libzfs): New function.
12161 * util/grub-probe.c (main): Call grub_util_init_libzfs().
12162
12163 2010-07-30 Robert Millan <rmh@gnu.org>
12164
12165 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
12166 (xmalloc, xrealloc, xstrdup, xasprintf): Add
12167 `warn_unused_result' attribute.
12168 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
12169 (grub_xasprintf, grub_xvasprintf): Likewise.
12170 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
12171
12172 2010-07-29 Robert Millan <rmh@gnu.org>
12173
12174 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
12175 (probe): Handle `PRINT_FS_LABEL'.
12176 (main): Handle `-t fs_label'.
12177
12178 2010-07-29 Robert Millan <rmh@gnu.org>
12179
12180 * configure.ac: Remove grub-mkisofs checks.
12181
12182 2010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
12183
12184 * util/ieee1275/grub-install.in: Don't use empty grub_device.
12185 Reported by: Lennart Sorensen.
12186
12187 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
12188
12189 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
12190 prior to terminal_input/terminal_output separation. It's been over 1.5
12191 years and those versions weren't widely deployed.
12192
12193 2010-07-22 Colin Watson <cjwatson@ubuntu.com>
12194
12195 * disk/raid.c (insert_array): Don't count named arrays when looking
12196 for unused array numbers.
12197 Reported and tested by: Michael Guntsche.
12198
12199 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
12200
12201 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
12202 implementation of this so that grub-emu links again, with a note
12203 that this should support hotplugging in the future.
12204
12205 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
12206
12207 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
12208
12209 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
12210
12211 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
12212 handle on failure.
12213 (grub_loopback_close): Remove empty function.
12214 (grub_loopback_dev): Remove close method.
12215
12216 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
12217
12218 Disable EFI cursor when the EFI console becomes inactive.
12219
12220 * term/efi/console.c (grub_efi_console_init): New function.
12221 (grub_efi_console_fini): New function.
12222 (grub_console_term_output): Register init and fini methods.
12223
12224 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
12225
12226 * tests/util/grub-shell-tester.in: Remove bashism and declare as
12227 sh script.
12228
12229 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
12230
12231 * disk/loopback.c (grub_loopback): Replace filename with file.
12232 (delete_loopback): Handle new semantics.
12233 (grub_cmd_loopback): Likewise.
12234 (grub_loopback_iterate): Likewise.
12235 (grub_loopback_close): Likewise.
12236
12237 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
12238
12239 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
12240 with -p "".
12241 Reported by: Tito Keitel.
12242
12243 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
12244
12245 * docs/grub.texi (Naming convention): Document new naming convention.
12246
12247 2010-07-20 Vadim Solomin <vadic052@gmail.com>
12248 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
12249
12250 Generate device.map in something closer to the old ordering.
12251
12252 * util/deviceiter.c (struct device): New declaration.
12253 (compare_file_names): Rename to ...
12254 (compare_devices): ... this. Sort by kernel name in preference to
12255 the stable by-id name, but keep the latter as a fallback comparison.
12256 Update header comment.
12257 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
12258 of `struct device' rather than of plain file names.
12259
12260 2010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
12261
12262 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
12263 on i386.
12264
12265 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
12266
12267 * commands/acpi.c (setup_common_tables): Use sizeof instead of
12268 hardcoding size.
12269 (setv1table): Likewise.
12270
12271 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
12272
12273 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
12274 removing the homehost if present.
12275 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
12276 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
12277 removing the homehost if present.
12278 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
12279 if possible.
12280 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
12281
12282 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
12283 parameter. Set its pointer target to 0.
12284 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
12285 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
12286 `data_offset' value from the superblock for 1.x metadata.
12287 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
12288 data on the device.
12289 (insert_array): Record the start sector of data on the device.
12290 (grub_raid_register): Pass start_sector parameters to
12291 grub_raid_list->detect and insert_array.
12292 * include/grub/raid.h (struct grub_raid_array): Add start_sector
12293 member.
12294 (struct grub_raid): Add start_sector parameter to `detect'.
12295
12296 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
12297 __attribute__ ((packed)), leaving a comment.
12298 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
12299 (grub_mdraid_detect_09): ... here and ...
12300 (grub_mdraid_detect_1x): ... here.
12301
12302 2010-07-20 Peter Henn <peter.henn@web.de>
12303
12304 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
12305 chunk size and disk size, which are already given as sector counts
12306 as distinct from the 0.90 units. Fetch the correct device number
12307 from the role table instead of using the table index.
12308
12309 2010-07-20 Felix Zielcke <fzielcke@z-51.de>
12310
12311 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
12312 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
12313 (WriteMostly1): New macro.
12314 Set array->name to NULL for metadata format 0.90. Add support for
12315 metadata 1.x. Fix some comments.
12316 * disk/raid.c (): Add support for name based RAID arrays. Fix a
12317 few comments.
12318 * util/getroot.c (grub_util_get_grub_dev): Add support for
12319 /dev/md/name style devices.
12320
12321 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
12322
12323 * .bzrignore: Ignore 20_linux_xen.
12324
12325 2010-07-17 Colin Watson <cjwatson@ubuntu.com>
12326
12327 * util/import_unicode.py: Remove unnecessary imports.
12328
12329 2010-07-17 Aleš Nesrsta <starous@volny.cz>
12330
12331 Hotplugging and USB hub support.
12332
12333 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
12334 (grub_ohci): Likewise.
12335 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
12336 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
12337 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
12338 (GRUB_OHCI_CTRL_EDS): Likewise.
12339 (GRUB_OHCI_BULK_EDS): Likewise.
12340 (GRUB_OHCI_TDS): Likewise.
12341 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
12342 (grub_ohci_ed_phys2virt): New function.
12343 (grub_ohci_virt_to_phys): Likewise.
12344 (grub_ohci_td_phys2virt): Likewise.
12345 (grub_ohci_td_virt2phys): Likewise.
12346 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
12347 attachment.
12348 (grub_ohci_find_ed): New function.
12349 (grub_ohci_alloc_td): Likewise.
12350 (grub_ohci_free_td): Likewise.
12351 (grub_ohci_free_tds): Likewise.
12352 (grub_ohci_transfer): Use previously allocated memory.
12353 (grub_ohci_portstatus): Reset status changed bit.
12354 (grub_ohci_detect_dev): Supply status changed.
12355 (grub_ohci_fini_hw): Free memory.
12356 (grub_ohci_restore_hw): Reallocate memory.
12357 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
12358 Reset status change.
12359 (grub_uhci_detect_dev): Supply status_change.
12360 * bus/usb/usb.c (attach_hooks): New var.
12361 (grub_usb_device_attach): New function.
12362 (grub_usb_register_attach_hook_class): Likewise.
12363 (grub_usb_unregister_attach_hook_class): Likewise.
12364 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
12365 (grub_usb_add_hub): Reset connection changed bit.
12366 (attach_root_port): New function.
12367 (grub_usb_root_hub): Likewise.
12368 (poll_nonroot_hub): Likewise.
12369 (grub_usb_poll_devices): Likewise.
12370 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
12371 * disk/usbms.c (grub_usbms_open): Use device hooks.
12372 (grub_usbms_iterate) :Poll devices.
12373 (grub_usbms_finddevs): Split into ...
12374 (grub_usbms_attach): ... this ...
12375 (grub_usbms_attach): ... and this.
12376 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
12377 in detect_dev.
12378 (grub_usb_interface): New fields attached and detach_hook.
12379 (grub_usb_attach_hook_class): New type.
12380 (grub_usb_attach_desc): New struct.
12381 (grub_usb_register_attach_hook_class): New function.
12382 (grub_usb_unregister_attach_hook_class): Likewise.
12383 (grub_usb_poll_devices): Likewise.
12384 (grub_usb_device_attach): Likewise.
12385 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
12386 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
12387
12388 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
12389
12390 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
12391 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
12392 delta determination style. Works with most NetBSD partitions too.
12393
12394 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
12395
12396 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
12397 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
12398
12399 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
12400
12401 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
12402
12403 2010-07-14 Anton Blanchard <anton@samba.org>
12404
12405 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
12406 ET_DYN files.
12407
12408 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
12409
12410 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
12411
12412 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
12413
12414 * kern/partition.c (grub_partition_check_containment): New function to
12415 check that a partition is physically contained in a parent. Since
12416 offsets are relative (and non-negative), this reduces to checking that
12417 the partition ends before its parent.
12418 (grub_partition_map_probe): Discard out-of-range sub-partitions.
12419 (grub_partition_iterate): Likewise.
12420 * include/grub/partition.h (grub_partition_map): Slightly more detailed
12421 comments.
12422 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
12423 partitions that start before their parent, and add debug printfs.
12424
12425 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
12426
12427 * Makefile.in (.SUFFIX): Spell correctly, as ...
12428 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
12429 bare module name without `.mod', e.g. `test') tried to invoke a
12430 Modula-2 compiler.
12431
12432 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
12433
12434 * README: Point to the Info manual.
12435
12436 2010-07-13 Jiro SEKIBA <jir@unicus.jp>
12437
12438 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
12439 2nd superblock position from partition size.
12440
12441 2010-07-10 Colin Watson <cjwatson@ubuntu.com>
12442
12443 * Makefile.in (MAINTAINER_CLEANFILES): Remove
12444 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
12445 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
12446 outputs.
12447
12448 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
12449
12450 Restructure SCSI .id handling.
12451 Reported and tested by: Aleš Nesrsta.
12452
12453 * disk/ata.c (grub_atapi_close): Removed. All users updated.
12454 (grub_atapi_dev): Changed .name to "ata". New field .id.
12455 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
12456 (grub_usbms_dev): New field .id.
12457 * disk/scsi.c (grub_scsi_iterate): Generate name.
12458 (grub_scsi_open): Parse name.
12459 * include/grub/scsi.h (grub_make_scsi_id): New function.
12460 (grub_scsi_dev): Change iterate and open to number instead of naming
12461 busses. All users updated.
12462 (grub_scsi): Remove name. Add .bus.
12463
12464 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
12465
12466 * commands/help.c (grub_cmd_help): Fix a typo.
12467
12468 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
12469
12470 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
12471 Reported and tested by: Colin Watson.
12472
12473 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
12474
12475 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
12476 in this context.
12477
12478 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
12479
12480 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
12481
12482 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
12483
12484 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
12485 indentation.
12486
12487 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
12488
12489 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
12490 and disk/raid6_recover.c.
12491 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
12492 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
12493
12494 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
12495
12496 * term/gfxterm.c (repaint_schedulded): Rename to ...
12497 (repaint_scheduled): ... this. Update all callers.
12498 (repaint_was_schedulded): Rename to ...
12499 (repaint_was_scheduled): ... this. Update all callers.
12500
12501 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
12502
12503 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
12504 which we expect to be handled by upper layers.
12505
12506 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
12507
12508 * bus/usb/usbhub.c: #include time.h header.
12509
12510 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
12511
12512 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
12513 entry_name also for entries without stat blocks (e.g. ".."); fixes
12514 corruption of the first entry in a directory.
12515
12516 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
12517
12518 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
12519 after setting gfxterm as the active terminal. GRUB_BACKGROUND
12520 doesn't work otherwise.
12521
12522 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
12523
12524 * docs/grub.texi (Features): Update list of supported file systems.
12525 (GNU/Linux): Update for GRUB 2.
12526 (Serial terminal): Remove mention of --disable-serial, which was a
12527 GRUB Legacy configure option. Update instructions to use
12528 `terminal_input' and `terminal_output' rather than `terminal'.
12529 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
12530 configuration' and `Installing GRUB using grub-install'.
12531 (Menu entry editor): Update for GRUB 2.
12532 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
12533 Document new -a, -u, and -v options.
12534 (initrd): New section.
12535 (initrd16): New section.
12536 (linux): New section.
12537 (linux16): New section.
12538 (search): The `var' argument to `--set' is optional.
12539 (GRUB only offers a rescue shell): Go into a little more detail on
12540 drive ordering.
12541
12542 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
12543
12544 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
12545
12546 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
12547
12548 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
12549 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
12550
12551 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
12552
12553 * util/i386/pc/grub-setup.c (setup): Rename prefix to
12554 install_prefix, in line with install_dos_part and install_bsd_part.
12555 Add new prefix variable, which is copied to install_prefix after
12556 comparing core.img in memory with the one read from disk in the
12557 no-embedding case, and use that rather than overwriting
12558 install_prefix immediately when installing to a partition.
12559 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
12560 Bicakci.
12561
12562 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
12563
12564 * configure.ac: Avoid == in test command, it's not portable.
12565 * util/grub.d/30_os-prober.in: Likewise.
12566
12567 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
12568
12569 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
12570
12571 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
12572
12573 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
12574 multiple (top-level) partmaps.
12575
12576 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
12577
12578 * util/i386/efi/grub-install.in: Don't use empty grub_device.
12579 Reported by: Tino Keitel.
12580
12581 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
12582
12583 Bidi and diacritics support.
12584
12585 * Makefile.in (widthspec.bin): New target.
12586 (widthspec.h): Likewise.
12587 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
12588 * autogen.sh: Generate unidata.c.
12589 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
12590 * commands/ls.c (grub_ls_list_devices): Likewise.
12591 (grub_ls_list_files): Likewise.
12592 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
12593 (grub_mini_cmd_lsmod): Likewise.
12594 * commands/read.c: Likewise.
12595 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
12596 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
12597 * lib/arg.c (grub_arg_show_help): Likewise.
12598 * lib/crypto.c (grub_password_get): Likewise.
12599 * normal/auth.c (grub_username_get): Likewise.
12600 * normal/misc.c (grub_normal_print_device_info): Likewise.
12601 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
12602 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
12603 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
12604 (normal/charset.c_DEPENDENCIES): New variable.
12605 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
12606 (pkglib_MODULES): Remove charset.mod.
12607 (charset_mod_SOURCES): Removed.
12608 (charset_mod_CFLAGS): Likewise.
12609 (charset_mod_LDFLAGS): Likewise.
12610 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
12611 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
12612 and term/tparm.c.
12613 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
12614 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
12615 (kernel_img_HEADERS): Add terminfo.h.
12616 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
12617 Fill ->font. Reverse ascii bitmaps.
12618 (grub_font_get_xheight): New function.
12619 * font/font.c (grub_font_get_string_width): Moved from here ...
12620 * gfxmenu/font.c (grub_font_get_string_width): ... here.
12621 * font/font.c (grub_font_draw_string): Moved from here ...
12622 * gfxmenu/font.c (grub_font_draw_string): ... here.
12623 * font/font.c (grub_font_dup_glyph): New function.
12624 (grub_font_blit_glyph): Likewise.
12625 (grub_font_blit_glyph_mirror): Likewise.
12626 (blit_comb): Likewise.
12627 (grub_font_construct_dry_run): Likewise.
12628 (grub_font_get_constructed_device_width): Likewise.
12629 (grub_font_construct_glyph): Likewise.
12630 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
12631 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
12632 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
12633 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
12634 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
12635 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
12636 (grub_font_get_xheight): New proto.
12637 (grub_font_get_constructed_device_width): Likewise.
12638 (grub_font_construct_glyph): Likewise.
12639 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
12640 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
12641 * include/grub/font.h (grub_font_draw_string): Moved from here ...
12642 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
12643 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
12644 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
12645 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
12646 (grub_console_getcharwidth): Likewise.
12647 * include/grub/misc.h (grub_xputs): New proto.
12648 (grub_puts): Inlined.
12649 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
12650 (grub_normal_get_line_counter): Removed.
12651 (grub_install_newline_hook): Likewise.
12652 (grub_normal_get_char_counter): New proto.
12653 (grub_normal_reset_more): Likewise.
12654 (grub_xputs_normal): Likewise.
12655 * include/grub/powerpc/ieee1275/console.h: Removed.
12656 * include/grub/sparc64/ieee1275/console.h: Likewise.
12657 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
12658 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
12659 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
12660 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
12661 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
12662 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
12663 (grub_term_input): Pass reference to self. All users updated.
12664 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
12665 Pass reference to self. New fields normal_color, highlight_color and
12666 data. All users updated.
12667 (grub_putchar): Removed.
12668 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
12669 (grub_unicode_estimate_width): New function.
12670 (grub_term_getcharwidth): Add defaults.
12671 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
12672 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
12673 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
12674 (grub_cls): Remove EXPORT_FUNC.
12675 (grub_setcolorstate): Inline.
12676 (grub_newline_hook): Removed.
12677 * include/grub/terminfo.h: Rewritten. All users updated.
12678 * include/grub/unicode.h: New file.
12679 * include/grub/video.h (grub_video_signed_rect): New type.
12680 * kern/emu/console.c (grub_console_highlight_color): Removed.
12681 (grub_console_normal_color): Likewise.
12682 (grub_console_standard_color): Made static.
12683 (grub_ncurses_putchar): Remove mapping.
12684 (grub_ncurses_getcharwidth): Removed.
12685 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
12686 (grub_ncurses_setcolor): Removed.
12687 (grub_ncurses_getcolor): Likewise.
12688 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
12689 (grub_console_putchar): ... this.
12690 (grub_console_putchar): Handle argument difference.
12691 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
12692 console_init_early and console_init_lately.
12693 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
12694 * kern/misc.c (grub_puts): Removed.
12695 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
12696 (grub_vsnprintf_real): Remove str = NULL support.
12697 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
12698 * normal/charset.c (grub_utf8_to_ucs4): ... here.
12699 * kern/term.c (grub_putcode): Renamed to ...
12700 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
12701 (grub_putchar): Removed.
12702 (grub_xputs_dumb): New function.
12703 (grub_xputs): New variable.
12704 * lib/charset.c: Move from here ...
12705 * normal/charset.c: ... to here.
12706 (grub_ucs4_to_utf8): New function.
12707 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
12708 (join_types): New variable.
12709 (unpack_join): New function.
12710 (bidi_types): New variable.
12711 (unpack_bidi): New function.
12712 (get_bidi_type): Likewise.
12713 (get_join_type): Likewise.
12714 (is_mirrored): Likewise.
12715 (grub_unicode_get_comb_type): Likewise.
12716 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
12717 (is_type_after): Likewise.
12718 (grub_unicode_aglomerate_comb): Likewise.
12719 (bidi_line_wrap): Likewise.
12720 (grub_bidi_line_logical_to_visual): Likewise.
12721 (grub_bidi_logical_to_visual): Likewise.
12722 (grub_unicode_mirror_code): Likewise.
12723 (grub_unicode_shape_code): Likewise.
12724 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
12725 Don't use grub_putchar.
12726 * normal/main.c (grub_normal_init_page): Use grub_putcode.
12727 (grub_normal_reader_init): Likewise.
12728 (grub_xputs_saved): New variable.
12729 (GRUB_MOD_INIT): Set grub_xputs.
12730 (GRUB_MOD_FINI): Restore grub_xputs.
12731 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
12732 (menu_init): Avoid printing gfxmenu error.
12733 (show_menu): Use grub_normal_get_char_counter.
12734 * normal/menu_entry.c (update_screen): Fix out-of-array.
12735 (complete): Avoid NULL dereferencing.
12736 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
12737 * normal/menu_text.c (print_spaces): Removed.
12738 (grub_print_ucs4): Likewise.
12739 (grub_print_message_indented): Use grub_print_ucs4.
12740 (print_message): Use grub_putcode.
12741 (print_entry): Hanlde diacritics.
12742 * normal/term.c (term_state): New type.
12743 (grub_more_lines): Removed.
12744 (term_states): New variable.
12745 (grub_normal_line_counter): Renamed to ..
12746 (grub_normal_char_counter): ...this. All users updated.
12747 (grub_normal_get_line_counter): Renamed to ...
12748 (grub_normal_get_char_counter): ... this.
12749 (grub_normal_reset_more): New function.
12750 (process_newline): Removed.
12751 (print_more): New function.
12752 (grub_install_newline_hook): Removed.
12753 (map_code): New function.
12754 (grub_puts_terminal): Use grub_print_ucs4.
12755 (putglyph): New function.
12756 (putcode_real): Likewise.
12757 (grub_putcode): Use putcode_real.
12758 (get_maxwidth): New function.
12759 (get_startwidth): Likewise.
12760 (print_ucs4_terminal): Likewise.
12761 (find_term_state): Likewise.
12762 (put_glyphs_terminal): Likewise.
12763 (print_backlog): Likewise.
12764 (print_ucs4_real): Likewise.
12765 (grub_print_ucs4): Likewise.
12766 (grub_xputs_normal): Likewise.
12767 * term/efi/console.c (grub_console_putchar): Output diacritics.
12768 (grub_console_getcharwidth): Removed.
12769 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
12770 * term/gfxterm.c (clear_char): Free chars.
12771 (scroll_up): Avoid leaking memory.
12772 (grub_gfxterm_putchar): Support diacritics.
12773 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
12774 * term/i386/pc/console.c (grub_console_term_output): Declare as
12775 GRUB_TERM_CODE_TYPE_VGA.
12776 * term/i386/pc/vga.c (grub_vga_term): Declare as
12777 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
12778 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
12779 GRUB_TERM_CODE_TYPE_VGA.
12780 * term/i386/vga_common.c (map_char): Removed.
12781 (grub_console_putchar): Likewise.
12782 (grub_console_getcharwidth): Likewise.
12783 * term/ieee1275/ofconsole.c: Simplify using terminfo.
12784 (colors): Reordered to match terminfo.
12785 (grub_ofconsole_normal_color): Removed.
12786 (grub_ofconsole_writeesc): Likewise.
12787 (grub_ofconsole_highlight_color): Likewise.
12788 (grub_ofconsole_getcharwidth): Likewise.
12789 (grub_ofconsole_setcolorstate): Likewise.
12790 (grub_ofconsole_setcolor): Likewise.
12791 (grub_ofconsole_getcolor): Likewise.
12792 (grub_ofconsole_readkey): Renamed to ...
12793 (readkey): ... this. Remove escape sequence handling. Return -1 on no
12794 key.
12795 (grub_ofconsole_checkkey): Removed.
12796 (grub_ofconsole_getkey): Likewise.
12797 (grub_ofconsole_getxy): Likewise.
12798 (grub_ofconsole_gotoxy): Likewise.
12799 (grub_ofconsole_cls): Likewise.
12800 (grub_ofconsole_refresh): Likewise.
12801 (grub_ofconsole_terminfo_input): New struct.
12802 (grub_ofconsole_terminfo_output): Likewise.
12803 (grub_ofconsole_term_input): Use terminfo.
12804 (grub_ofconsole_term_output): Likewise.
12805 (grub_console_init): Split into ...
12806 (grub_console_init_early): ...this and ...
12807 (grub_console_init_lately): ...this. Use terminfo.
12808 (grub_ofconsole_putchar): Renamed to ...
12809 (put): ... this. Remove mapping.
12810 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
12811 * term/serial.c: Simplify using terminfo.
12812 (xpos): Removed.
12813 (ypos): Likewise.
12814 (keep_track): Likewise.
12815 (registered): Likewise.
12816 (input_buf): Likewise.
12817 (npending): Likewise.
12818 (serial_translate_key_sequence): Likewise.
12819 (fill_input_buf): Likewise.
12820 (grub_serial_checkkey): Likewise.
12821 (grub_serial_getkey): Likewise.
12822 (grub_serial_getxy): Likewise.
12823 (grub_serial_gotoxy): Likewise.
12824 (grub_serial_putchar): Likewise.
12825 (grub_serial_cls): Likewise.
12826 (grub_serial_setcolorstate): Likewise.
12827 (grub_serial_setcursor): Likewise.
12828 (serial_hw_init): Use serial_hw_fetch.
12829 (grub_serial_terminfo_input): New variable.
12830 (grub_serial_terminfo_output): Likewise.
12831 (grub_serial_term_input): Use terminfo.
12832 (grub_serial_term_output): Likewise.
12833 * term/terminfo.c (putstr): Use put.
12834 (grub_terminfo_all_free): New function
12835 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
12836 (grub_terminfo_output_register): New function.
12837 (grub_terminfo_output_unregister): Likewise.
12838 (grub_terminfo_getxy): Likewise.
12839 (grub_terminfo_readkey): Likewise.
12840 (grub_terminfo_checkkey): Likewise.
12841 (grub_terminfo_getkey): Likewise.
12842 (grub_terminfo_input_init): Likewise.
12843 (print_terminfo): Likewise.
12844 (grub_cmd_terminfo): Handle encoding.
12845 (grub_terminfo_gotoxy): Track position.
12846 (grub_terminfo_cls): Likewise.
12847 (grub_terminfo_putchar): Likewise.
12848 (grub_terminfo_setcolorstate): Handle colors
12849 (grub_terminfo_cursor_on): This ...
12850 (grub_terminfo_cursor_off): ... and this merged into ...
12851 (grub_terminfo_setcursor): ... this.
12852 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
12853 * unicode/ArabicShaping.txt: New file (imported from Unicode).
12854 * unicode/BidiMirroring.txt: Likewise.
12855 * unicode/UnicodeData.txt: Likewise.
12856 * unicode/COPYING: Likewise.
12857 * util/grub-editenv.c (grub_putchar): Removed.
12858 (grub_xputs_real): New function.
12859 (grub_xputs): New variable.
12860 * util/grub-fstest.c (grub_putchar): Removed.
12861 (grub_xputs_real): New function.
12862 (grub_xputs): New variable.
12863 * util/grub-mkdevicemap.c (grub_putchar): Removed.
12864 (grub_xputs_real): New function.
12865 (grub_xputs): New variable.
12866 * util/grub-probe.c (grub_putchar): Removed.
12867 (grub_xputs_real): New function.
12868 (grub_xputs): New variable.
12869 * util/grub-script-check.c (grub_putchar): Removed.
12870 (grub_xputs_real): New function.
12871 (grub_xputs): New variable.
12872 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
12873 (grub_xputs_real): New function.
12874 (grub_xputs): New variable.
12875 * util/import_unicode.py: New file.
12876 * util/grub-mkfont.c (ft_errmsgs): New array.
12877 (grub_glyph_info): Make bitmap a pointer.
12878 (file_formats): New type WIDTH_SPEC.
12879 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
12880 (options): Add width-spec.
12881 (help): Likewise.
12882 (add_char): Renamed to ...
12883 (add_glyph): ... this.
12884 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
12885 (glyph_replace): New type.
12886 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
12887 (add_char): New function.
12888 (add_subst): Likewise.
12889 (process_cursive): Likewise.
12890 (add_font): Handle GSUB.
12891 (write_font_width_spec): New function.
12892 (main): Sort glyphs.
12893 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
12894 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
12895 * kern/term.c (grub_cls): Moved from here...
12896 * normal/term.c (grub_cls): ... here.
12897
12898 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
12899
12900 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
12901 suitable for using within the format argument of printf when
12902 converting grub_size_t.
12903 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
12904 "x" to convert grub_size_t arguments.
12905
12906 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
12907
12908 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
12909 too long captions.
12910 (list_get_minimal_size): Take selection box into account.
12911
12912 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
12913
12914 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
12915 NULL font.
12916
12917 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
12918
12919 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
12920 devices when iterating over /dev/disk/by-id; they will be handled
12921 later if appropriate, which they aren't always (e.g. LVM).
12922
12923 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
12924
12925 * include/grub/misc.h (grub_reboot): Declare as noreturn.
12926 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
12927 fails.
12928 (grub_halt): Likewise.
12929 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
12930 reset-all fails.
12931 (grub_halt): Don't return, even if all of shut-down, power-off, and
12932 poweroff fail.
12933
12934 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
12935
12936 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
12937 arguments, not three.
12938
12939 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
12940
12941 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
12942 * util/grub.d/10_linux.in: Use it to check for LVM, so that
12943 LVM-on-RAID is handled correctly.
12944
12945 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
12946
12947 * docs/grub.texi (Changes from GRUB Legacy): New section.
12948 (Future): Fix typo.
12949
12950 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
12951
12952 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
12953 grub.d/README accidentally ends up executable for one reason or
12954 another. Ignore it.
12955
12956 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
12957
12958 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
12959 (gpt_partition_map_iterate): Support non-512B sectors.
12960
12961 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
12962
12963 * kern/efi/init.c (grub_efi_init): Disable watchdog.
12964 Tested by: Seth Goldberg.
12965
12966 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
12967
12968 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
12969 Properly align mbi.
12970 Reported by: Seth Goldberg.
12971
12972 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
12973
12974 * util/grub-mkrescue.in: Avoid module duplication.
12975
12976 2010-07-01 Sean Finney <seanius@seanius.net>
12977
12978 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
12979
12980 2010-07-01 Sean Finney <seanius@seanius.net>
12981
12982 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
12983
12984 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
12985
12986 * disk/lvm.c (grub_lvm_checkvalue): New function.
12987 (grub_lvm_check_flag): Likewise.
12988
12989 2010-07-01 Robert Millan <rmh@gnu.org>
12990
12991 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
12992 Support 'p' as partition separator on kernel of FreeBSD (used
12993 with GPT labels).
12994 (grub_util_biosdisk_get_grub_dev): Likewise.
12995
12996 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
12997
12998 Yeeloong firmware port.
12999
13000 * boot/mips/yeeloong/fwstart.S: New file.
13001 * bus/cs5536.c (gpiodump): New const.
13002 (set_io_space): New function.
13003 (set_iod): Likewise.
13004 (set_p2d): Likewise.
13005 (grub_cs5536_init_geode): Likewise.
13006 * commands/mips/yeeloong/lsspd.c: New file.
13007 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
13008 (serial_mod_SOURCES): New variable.
13009 (serial_mod_CFLAGS): Likewise.
13010 (serial_mod_LDFLAGS): Likewise.
13011 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
13012 term/terminfo.c and term/tparm.c.
13013 (pkglib_IMAGES): Add fwstart.img.
13014 (fwstart_img_SOURCES): New variable.
13015 (fwstart_img_CFLAGS): Likewise.
13016 (fwstart_img_ASFLAGS): Likewise.
13017 (fwstart_img_LDFLAGS): Likewise.
13018 (fwstart_img_FORMAT): Likewise.
13019 (pkglib_MODULES): Add lsspd.mod.
13020 (lsspd_mod_SOURCES): New variable.
13021 (lsspd_mod_CFLAGS): Likewise.
13022 (lsspd_mod_LDFLAGS): Likewise.
13023 (pkglib_MODULES): Add halt.mod.
13024 (halt_mod_SOURCES): New variable.
13025 (halt_mod_CFLAGS): Likewise.
13026 (halt_mod_LDFLAGS): Likewise.
13027 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
13028 (serial_mod_SOURCES): Removed.
13029 (serial_mod_CFLAGS): Likewise.
13030 (serial_mod_LDFLAGS): Likewise.
13031 * disk/ata.c (check_device): New function.
13032 (grub_ata_device_initialize): Use check_device.
13033 (grub_ata_iterate): Recheck devices.
13034 (grub_ata_open): Likewise.
13035 (grub_atapi_iterate): Likewise.
13036 (grub_atapi_open): Likewise.
13037 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
13038 (GRUB_ATA_CH1_PORT1): Likewise.
13039 (GRUB_ATA_CH0_PORT2): Likewise.
13040 (GRUB_ATA_CH1_PORT2): Likewise.
13041 * include/grub/mips/loongson.h: New file.
13042 * include/grub/mips/yeeloong/ec.h: Likewise.
13043 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
13044 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
13045 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
13046 * include/grub/misc.h (grub_halt): Declare as noreturn.
13047 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
13048 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
13049 (UART_ENABLE_FIFO_TRIGGER1): New definition.
13050 (UART_ENABLE_DTRRTS): Likewise.
13051 (UART_ENABLE_MODEM): Removed.
13052 (UART_ENABLE_OUT2): New const.
13053 * include/grub/term.h (grub_term_register_input_active): New function.
13054 (grub_term_register_output_active): Likewise.
13055 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
13056 argument.
13057 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
13058 (init_pci): New function.
13059 (grub_machine_init): Execute platform init when firmware. Init serial.
13060 (grub_halt): Implement.
13061 (grub_exit): Likewise.
13062 (grub_reboot): Likewise.
13063 * term/serial.c (serial_hw_init): Update macros.
13064 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
13065 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
13066 (image_targets): New target mipsel-yeeloong-flash.
13067 (generate_image): Support IMAGE_YEELOONG_FLASH.
13068 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
13069 (grub_video_sm712_setup): Init card.
13070 (grub_video_sm712_set_palette): Removed.
13071 * video/sm712_init.c: New file.
13072
13073 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
13074
13075 * Makefile.in (install-local): Temporarily prepend $(builddir) to
13076 PATH when running help2man and then run it on the unadorned
13077 executable names, rather than passing $(builddir)/* paths to
13078 help2man. This avoids the build directory ending up in generated
13079 manual pages.
13080
13081 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
13082
13083 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
13084 to avoid accidents when debugging with 'sh -x'.
13085 * util/grub-mkrescue.in: Likewise.
13086 * util/grub.d/00_header.in: Likewise.
13087 * util/grub.d/10_hurd.in: Likewise.
13088 * util/grub.d/10_kfreebsd.in: Likewise.
13089 * util/grub.d/10_linux.in: Likewise.
13090 * util/grub.d/10_netbsd.in: Likewise.
13091 * util/grub.d/10_windows.in: Likewise.
13092 * util/grub.d/20_linux_xen.in: Likewise.
13093 * util/grub.d/30_os-prober.in: Likewise.
13094 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
13095
13096 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
13097
13098 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
13099 last character in the buffer.
13100 Reported by: Vladimir Serbinenko.
13101
13102 2010-06-29 Robert Millan <rmh@gnu.org>
13103
13104 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
13105 (Command-line and menu entry commands): Document `badram' command.
13106
13107 2010-06-28 Robert Millan <rmh@gnu.org>
13108
13109 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
13110 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
13111 command using ${GRUB_BADRAM} as parameter.
13112
13113 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
13114
13115 * docs/grub.texi (Device map): New section.
13116 (Themes): New section (stub).
13117 * Makefile.in (docs/grub.info): The info documentation now builds
13118 without errors. Make sure it stays that way.
13119
13120 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
13121
13122 Use normal parser for menu entries.
13123 Reported by: Thomas Frauendorfer
13124
13125 * include/grub/parser.h (grub_parser_execute): Don't export.
13126 * normal/menu.c (grub_menu_execute_entry_real): New function.
13127 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
13128
13129 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
13130
13131 * docs/grub.texi (Embedded configuration): New section (replacing
13132 old "Preset Menu" stub).
13133 (Images): New section.
13134 (configfile): Note that any menu entries defined in `file' are shown
13135 immediately.
13136
13137 2010-06-28 Josh Triplett <josh@joshtriplett.org>
13138
13139 * mmap/i386/pc/mmap_helper.S: Set CF on return.
13140
13141 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
13142
13143 * util/grub-install.in: Add --debug-image= option.
13144
13145 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
13146
13147 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
13148 possible on Linux.
13149
13150 * util/deviceiter.c (check_device): Rename to ...
13151 (check_device_readable_unique): ... this. Update all callers.
13152 Maintain and check a list of which devices (by canonicalized name)
13153 have already been seen.
13154 (clear_seen_devices): New function.
13155 (compare_file_names) [__linux__]: New function.
13156 (grub_util_iterate_devices): Clear the list of seen devices on exit
13157 and (just in case) on entry.
13158 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
13159 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
13160 seen-devices list, superseded by general code in check_device.
13161
13162 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
13163
13164 * commands/cat.c (options): New variable.
13165 (grub_cmd_cat): Parse options. If the --dos option is given, print
13166 DOS-style "\r\n" line endings as simple newlines (Debian bug
13167 #586358).
13168 (GRUB_MOD_INIT): Use extcmd.
13169 (GRUB_MOD_FINI): Likewise.
13170 * docs/grub.texi (cat): Document --dos.
13171
13172 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
13173
13174 XEN with Linux grub-mkconfig support.
13175
13176 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
13177 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
13178 GRUB_CMDLINE_XEN_DEFAULT.
13179 * util/grub.d/20_linux_xen.in: New file.
13180
13181 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
13182
13183 Initialise VGA video on qemu ourselves.
13184
13185 * boot/i386/qemu/boot.S: Don't call 0xc000.
13186 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
13187 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
13188 (kernel_img_HEADERS): Add pci.h.
13189 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
13190 * configure.ac: Force unifont on qemu and yeeloong.
13191 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
13192 (grub_vga_palette_write): Use correct register.
13193 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
13194 Call grub_qemu_init_cirrus.
13195 * kern/i386/qemu/init.c: New file.
13196 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
13197
13198 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
13199
13200 2010-06-26 Pavel Roskin <proski@gnu.org>
13201
13202 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
13203 13.
13204
13205 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
13206
13207 * docs/grub.texi (Simple configuration): Explain that
13208 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
13209 set to `true' to disable their respective recovery entries, not
13210 merely set.
13211
13212 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
13213
13214 Make the `source' command slightly faster.
13215
13216 * normal/main.c (grub_normal_execute): Don't re-read list files when
13217 nested.
13218
13219 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
13220
13221 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
13222 field position and mask size to red fields from mode_info, not
13223 green.
13224 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
13225 Remove redundant tag->common.framebuffer_type assignment.
13226 Reported by: Seth Goldberg.
13227
13228 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
13229
13230 Sync up other versions of the Linux loader with Robert Millan's
13231 change of 2010-01-09, "Make loader output a bit more user-friendly".
13232
13233 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
13234 grub_dprintf().
13235 (grub_cmd_linux): Likewise.
13236 (grub_cmd_initrd): Likewise.
13237 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
13238 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
13239
13240 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
13241
13242 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
13243 larger than MEMORY_MAP_SIZE.
13244
13245 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
13246
13247 Fix parallel build.
13248
13249 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
13250 dependency.
13251 * script/parser.y: #include grub_script.tab.h header.
13252
13253 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
13254
13255 Support >3GiB and <16MiB RAM in i386-qemu.
13256
13257 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
13258 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
13259 (grub_lower_mem): Removed.
13260 (grub_upper_mem): Likewise.
13261 (mem_size): Made static.
13262 (above_4g): New variable.
13263 (grub_machine_mmap_init): Detect small mem_size and above_4g.
13264 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
13265 support.
13266
13267 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
13268
13269 Cirrus 5446 and Bochs video cards support.
13270
13271 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
13272 video_bochs.mod
13273 (video_cirrus_mod_SOURCES): New variable.
13274 (video_cirrus_mod_CFLAGS): Likewise.
13275 (video_cirrus_mod_LDFLAGS): Likewise.
13276 (video_bochs_mod_SOURCES): Likewise.
13277 (video_bochs_mod_CFLAGS): Likewise.
13278 (video_bochs_mod_LDFLAGS): Likewise.
13279 * include/grub/vga.h: New file.
13280 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
13281 (grub_video_fb_set_page_t): New type.
13282 (grub_video_fb_setup): New prototype.
13283 (grub_video_fb_swap_buffers): Likewise.
13284 (grub_video_fb_get_info_and_fini): Likewise.
13285 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
13286 (CRTC_DATA_PORT): Likewise.
13287 (CRTC_CURSOR): Likewise.
13288 (CRTC_CURSOR_ADDR_HIGH): Likewise.
13289 (CRTC_CURSOR_ADDR_LOW): Likewise.
13290 (CRTC_CURSOR_DISABLE): Likewise.
13291 (update_cursor): Use grub_vga_cr_write.
13292 (grub_vga_text_setcursor): Likewise.
13293 * video/bochs.c: New file.
13294 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
13295 (palette): Likewise.
13296 (palette_size): Likewise.
13297 (framebuffer): New variable.
13298 (grub_video_fb_init): Use 'framebuffer'.
13299 (grub_video_fb_fini): Likewise.
13300 (grub_video_fb_get_info): Likewise.
13301 (grub_video_fb_get_palette): Likewise.
13302 (grub_video_fb_set_palette): Likewise.
13303 (grub_video_fb_set_viewport): Likewise.
13304 (grub_video_fb_get_viewport): Likewise.
13305 (grub_video_fb_map_color): Likewise.
13306 (grub_video_fb_map_rgb): Likewise.
13307 (grub_video_fb_map_rgba): Likewise.
13308 (grub_video_fb_unmap_color): Likewise.
13309 (grub_video_fb_unmap_color_int): Likewise.
13310 (grub_video_fb_fill_rect): Likewise.
13311 (grub_video_fb_blit_bitmap): Likewise.
13312 (grub_video_fb_blit_render_target): Likewise.
13313 (grub_video_fb_scroll): Likewise.
13314 (grub_video_fb_create_render_target): Likewise.
13315 (grub_video_fb_doublebuf_blit_init): Likewise.
13316 (grub_video_fb_set_active_render_target): Handle doublebuffering.
13317 (doublebuf_pageflipping_update_screen): New function.
13318 (doublebuf_pageflipping_init): Likewise.
13319 (grub_video_fb_setup): Likewise.
13320 (grub_video_fb_swap_buffers): Likewise.
13321 (grub_video_fb_get_info_and_fini): Likewise.
13322 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
13323 All users updated.
13324 (doublebuf_pageflipping_commit): Restructured into ...
13325 (doublebuf_pageflipping_set_page): ... this.
13326 (doublebuf_pageflipping_update_screen): Removed.
13327 (doublebuf_pageflipping_init): Likewise.
13328 (double_buffering_init): Likewise.
13329 (grub_video_vbe_setup): Use grub_video_fb_setup.
13330 (grub_video_vbe_swap_buffers): Removed.
13331 (grub_video_vbe_set_active_render_target): Likewise.
13332 (grub_video_vbe_get_active_render_target): Likewise.
13333 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
13334 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
13335 grub_video_fb_set_active_render_target and
13336 grub_video_fb_get_active_render_target.
13337 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
13338 (SEQUENCER_DATA_PORT): Likewise.
13339 (MAP_MASK_REGISTER): Likewise.
13340 (CRTC_ADDR_PORT): Likewise.
13341 (CRTC_DATA_PORT): Likewise.
13342 (START_ADDR_HIGH_REGISTER): Likewise.
13343 (START_ADDR_LOW_REGISTER): Likewise.
13344 (GRAPHICS_ADDR_PORT): Likewise.
13345 (GRAPHICS_DATA_PORT): Likewise.
13346 (READ_MAP_REGISTER): Likewise.
13347 (INPUT_STATUS1_REGISTER): Likewise.
13348 (INPUT_STATUS1_VERTR_BIT): Likewise.
13349 (get_map_mask): Use grub_vga_sr_read.
13350 (set_map_mask): Use grub_vga_sr_write.
13351 (set_read_map): Use grub_vga_gr_write.
13352 (set_start_address): Use grub_vga_cr_write.
13353 * video/sm712.c (framebuffer): Remove leftover fields.
13354
13355 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
13356
13357 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
13358 setting GRUB_VIDEO_BACKEND. Make it available as a user override
13359 instead. Replace the gfxterm backend check with a check that
13360 ${GRUB_PREFIX}/video.lst is non-empty.
13361 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
13362 again.
13363 (load_video): New generated function. Call it before loading
13364 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
13365 * util/grub.d/10_linux.in (linux_entry): Call load_video.
13366 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
13367 * docs/grub.texi (Simple configuration): Document
13368 GRUB_VIDEO_BACKEND.
13369
13370 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
13371
13372 Use video functions in linux and xnu loaders.
13373
13374 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
13375 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
13376 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
13377 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
13378 loader/i386/pc/linux.c.
13379 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
13380 (find_line_len): Removed.
13381 (find_framebuf): Likewise.
13382 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
13383 * loader/i386/efi/xnu.c: Removed.
13384 * loader/i386/pc/xnu.c: Moved from here...
13385 * loader/i386/xnu.c: ...here.
13386
13387 Enable priorities in video drivers.
13388
13389 * include/grub/video.h (grub_video_adapter_prio_t): New type.
13390 (grub_video_adapter): New field prio.
13391 (grub_video_register): Respect prio when inserting.
13392 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
13393 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
13394 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
13395 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
13396 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
13397 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
13398 * video/sm712.c (grub_video_sm712_adapter): Likewise.
13399
13400 Fix SDL driver ID.
13401
13402 * include/grub/video.h (grub_video_driver_id_t): New value
13403 GRUB_VIDEO_DRIVER_SDL.
13404 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
13405
13406 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
13407
13408 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
13409 argument to printf.
13410 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
13411
13412 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
13413
13414 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
13415 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
13416
13417 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
13418
13419 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
13420 directly, and recommend grub-install instead.
13421 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
13422
13423 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
13424
13425 Fix i386-pc prefix handling with nested partitions (Debian bug
13426 #585068). Note that the case where the core image is booted using
13427 multiboot and relocated from its original location still requires
13428 more work.
13429
13430 * kern/i386/pc/init.c (make_install_device): If the prefix starts
13431 with "(,", fill the boot drive in between those two characters, but
13432 expect that a full partition specification including partition map
13433 names will follow.
13434 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
13435 specified, write a prefix without the drive name but including a
13436 full partition specification.
13437
13438 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
13439
13440 * util/grub-mkconfig.in: Ignore non-option arguments, for
13441 compatibility with older versions (before 2010-06-12) which did the
13442 same. In particular, this makes it easier to ship an update-grub
13443 wrapper which is compatible with that used with GRUB Legacy (Debian
13444 bug #586056).
13445
13446 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
13447
13448 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
13449 for manual page generation.
13450
13451 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
13452
13453 * po/POTFILES: Remove leftover commands/handler.c.
13454
13455 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
13456
13457 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
13458 left this script non-functional.
13459
13460 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
13461
13462 * docs/man/grub-emu.h2m: New file.
13463
13464 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
13465
13466 * docs/grub.texi (Commands): Document reduced command set in rescue
13467 mode.
13468 (cpuid): New section.
13469
13470 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
13471
13472 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
13473 new partition naming style.
13474 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
13475
13476 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
13477
13478 Add "-o grub.iso" like cmdline options support.
13479
13480 * util/grub-install.in: Improve cmdline option parsing.
13481 * util/grub-mkconfig.in: Likewise.
13482 * util/grub-mkrescue.in: Likewise.
13483 * util/grub-reboot.in: Likewise.
13484 * util/grub-set-default.in: Likewise.
13485 * util/i386/efi/grub-install.in: Likewise.
13486 * util/ieee1275/grub-install.in: Likewise.
13487 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
13488
13489 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
13490
13491 * .bzrignore: Ignore 41_custom.
13492
13493 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
13494
13495 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
13496
13497 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
13498
13499 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
13500 prototype declarations.
13501
13502 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
13503 generating fs, partmap, and video lists.
13504 * include/grub/fs.h (grub_fs_register): Omit prototype if
13505 GRUB_LST_GENERATOR is defined.
13506 * include/grub/partition.h (grub_partition_map_register): Likewise.
13507 * include/grub/video.h (grub_video_register): Likewise.
13508
13509 2010-06-12 Javier Martín <lordhabbit@gmail.com>
13510
13511 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
13512
13513 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
13514
13515 * util/grub-mkrescue.in: Support --xorriso argument.
13516
13517 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
13518
13519 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
13520 Suggested by: Thomas Schmitt.
13521
13522 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
13523
13524 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
13525 Suggested by: Thomas Schmitt.
13526
13527 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
13528
13529 custom.cfg support.
13530
13531 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
13532 * util/grub.d/41_custom.in: New file.
13533
13534 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
13535
13536 * util/grub-mkrescue.in (make_image): Remove sh module, which has
13537 been merged back into normal.
13538
13539 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
13540
13541 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
13542 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
13543
13544 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
13545
13546 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
13547 when generating manual pages.
13548 * docs/man/grub-bin2h.h2m: New file.
13549 * docs/man/grub-editenv.h2m: New file.
13550 * docs/man/grub-fstest.h2m: New file.
13551 * docs/man/grub-install.h2m: New file.
13552 * docs/man/grub-macho2img.h2m: New file.
13553 * docs/man/grub-mkconfig.h2m: New file.
13554 * docs/man/grub-mkdevicemap.h2m: New file.
13555 * docs/man/grub-mkfont.h2m: New file.
13556 * docs/man/grub-mkimage.h2m: New file.
13557 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
13558 * docs/man/grub-mkrelpath.h2m: New file.
13559 * docs/man/grub-mkrescue.h2m: New file.
13560 * docs/man/grub-ofpathname.h2m: New file.
13561 * docs/man/grub-pe2elf.h2m: New file.
13562 * docs/man/grub-probe.h2m: New file.
13563 * docs/man/grub-reboot.h2m: New file.
13564 * docs/man/grub-script-check.h2m: New file.
13565 * docs/man/grub-set-default.h2m: New file.
13566 * docs/man/grub-setup.h2m: New file.
13567
13568 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
13569
13570 Use FOR_* macros instead of *_iterate whenever possible.
13571
13572 * commands/handler.c: Removed.
13573 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
13574 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
13575 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
13576 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
13577 (grub_probe_SOURCES): Remove kern/parser.c.
13578 (util/grub-script-check.c_DEPENDENCIES): Removed.
13579 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
13580 and grub_script_check_init.c.
13581 (grub_script_check_init.lst): Removed.
13582 (grub_script_check_init.h): Likewise.
13583 (grub_script_check_init.c): Likewise.
13584 (pkglib_MODULES): Remove handler.mod and sh.mod.
13585 (handler_mod_SOURCES): Removed.
13586 (handler_mod_CFLAGS): Likewise.
13587 (handler_mod_LDFLAGS): Likewise.
13588 (normal_mod_SOURCES): Remove normal/handler.c.
13589 Add script/main.c, script/script.c, script/execute.c,
13590 script/function.c, script/lexer.c, grub_script.tab.c
13591 and grub_script.yy.c.
13592 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
13593 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
13594 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
13595 (grub_setup_SOURCES): Remove kern/parser.c.
13596 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
13597 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
13598 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
13599 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
13600 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
13601 (grub_setup_SOURCES): Remove kern/parser.c.
13602 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
13603 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
13604 * include/grub/command.h (grub_command_iterate): Removed.
13605 (FOR_COMMANDS): New macro.
13606 * include/grub/dl.h (grub_dl): New member next.
13607 (grub_dl_iterate): Removed.
13608 (grub_dl_head): New variable declaration.
13609 (FOR_DL_MODULES): New macro.
13610 * include/grub/fs.h: Include list.h.
13611 (grub_fs): Make next first element.
13612 (grub_fs_list): New variable declaration.
13613 (grub_fs_register): Make inline.
13614 (grub_fs_unregister): Likewise.
13615 (grub_fs_iterate): Removed.
13616 (FOR_FILESYSTEMS): New macro.
13617 * include/grub/handler.h: Removed.
13618 * include/grub/list.h (grub_list_hook_t): Removed.
13619 (grub_list_test_t): Likewise.
13620 (grub_list_pop): Likewise.
13621 (grub_list_iterate): Likewise.
13622 (grub_list_insert): Likewise.
13623 (FOR_LIST_ELEMENTS): New macro.
13624 * include/grub/parser.h (grub_parser_class): Removed.
13625 (grub_parser_register): Likewise.
13626 (grub_parser_unregister): Likewise.
13627 (grub_parser_get_current): Likewise.
13628 (grub_parser_set_current): Likewise.
13629 (grub_register_rescue_parser): Likewise.
13630 (grub_rescue_parse_line): New function.
13631 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
13632 * include/grub/script_sh.h (grub_script_function_list): New variable
13633 declaration.
13634 (FOR_SCRIPT_FUNCTIONS): New macro.
13635 (grub_script_function_iterate): Removed.
13636 (grub_normal_parse_line): New prototype.
13637 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
13638 (FOR_DISABLED_TERM_INPUTS): Likewise.
13639 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
13640 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
13641 * include/grub/video.h (grub_video_adapter): Move 'next' to first
13642 element.
13643 (grub_video_register): Inline.
13644 (grub_video_unregister): Likewise.
13645 (grub_video_adapter_list): New variable declaration.
13646 (grub_video_iterate): Removed.
13647 (FOR_VIDEO_ADAPTERS): New macro.
13648 * kern/dl.c (grub_dl_list): Removed. All users updated.
13649 (grub_dl_iterate): Removed.
13650 * kern/fs.c (grub_fs_list): Make global.
13651 (grub_fs_register): Removed.
13652 (grub_fs_unregister): Likewise.
13653 (grub_fs_iterate): Likewise.
13654 * kern/handler.c: Removed.
13655 * kern/list.c (grub_list_pop): Removed.
13656 (grub_list_iterate): Likewise.
13657 (grub_list_insert): Likewise.
13658 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
13659 (grub_prio_list_insert): Don't use grub_list_insert.
13660 * kern/main.c (grub_register_rescue_parser): Don't call
13661 grub_register_rescue_parser.
13662 * kern/parser.c (grub_parser_class): Removed.
13663 (grub_parser_execute): Use grub_rescue_parse_line.
13664 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
13665 (grub_rescue_parser): Removed.
13666 (grub_register_rescue_parser): Likewise.
13667 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
13668 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
13669 (grub_auth_check_authentication): Likewise.
13670 * normal/completion.c (iterate_command): Removed.
13671 (grub_normal_do_completion): Use FOR_COMMANDS.
13672 * normal/handler.c: Removed.
13673 * normal/main.c (read_config_file): Remove parser changing.
13674 (grub_normal_execute): Don't call read_handler_list.
13675 (grub_normal_read_line_real): Statically allocate prompt.
13676 (grub_cmdline_run): Use grub_normal_parse_line.
13677 (GRUB_MOD_FINI): Don't call free_handler_list.
13678 * normal/menu_entry.c (run): Likewise.
13679 * script/function.c (grub_script_function_list): Make global.
13680 (grub_script_function_iterate): Removed.
13681 * script/main.c (grub_normal_parse_line): Make global.
13682 (grub_sh_parser): Removed.
13683 (GRUB_MOD_INIT): Likewise.
13684 (GRUB_MOD_FINI): Likewise.
13685 * tests/lib/functional_test.c (grub_functional_test): Use
13686 FOR_LIST_ELEMENTS.
13687 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
13688 (grub_test_run): Use FOR_LIST_ELEMENTS.
13689 * tests/lib/unit_test.c (main): Likewise.
13690 * util/deviceiter.c (grub_util_iterate_devices): Don't use
13691 grub_list_pop.
13692 * util/grub-fstest.c (grub_term_input_class): Removed.
13693 (grub_term_output_class): Likewise.
13694 * util/grub-probe.c: Likewise.
13695 * util/i386/pc/grub-setup.c: Likewise.
13696 * util/sparc64/ieee1275/grub-setup.c: Likewise.
13697 * util/grub-script-check.c (main): Don't call grub_init_all and
13698 grub_fini_all.
13699 * video/video.c (grub_video_adapter_list): Make global.
13700 (grub_video_register): Removed.
13701 (grub_video_unregister): Likewise.
13702 (grub_video_iterate): Likewise.
13703
13704 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
13705
13706 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
13707 reported by Henrique Ferreiro.
13708
13709 2010-06-09 Robert Millan <rmh@gnu.org>
13710
13711 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
13712 ones, when both are available.
13713
13714 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
13715
13716 Make --version uniform and avoid hard-coded program name.
13717
13718 * util/grub-mkimage.c (main): Use `program_name' instead of
13719 hard-coded string.
13720 * util/i386/pc/grub-setup.c (main): Likewise.
13721 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
13722 * util/grub-install.in: Save the basename of $0 in $self, and use the
13723 latter in informational messages. Use the same format for --version
13724 as the binary programs.
13725 * util/grub-mkconfig.in: Likewise.
13726 * util/grub-mkrescue.in: Likewise.
13727 * util/grub-reboot.in: Likewise.
13728 * util/grub-set-default.in: Likewise.
13729 * util/i386/efi/grub-install.in: Likewise.
13730 * util/ieee1275/grub-install.in: Likewise.
13731 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
13732
13733 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
13734
13735 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
13736 embedding area. Use <= instead of == when checking for non-emptiness.
13737
13738 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
13739
13740 * configure.ac: Add `.' to the directories searched for unifont.
13741
13742 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
13743
13744 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
13745 grub_script.yy.h.
13746
13747 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
13748
13749 * docs/grub.texi (History): Expand to cover GRUB 2.
13750 (Serial terminal): Refer to `terminal_input' and `terminal_output'
13751 commands, not `terminal'.
13752 (serial): Likewise.
13753 (terminal_input): New section.
13754 (terminal_output): New section.
13755 (uppermem): New section (stub).
13756 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
13757
13758 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
13759
13760 * docs/grub.texi (Security): Menu entries are unrestricted by
13761 default, not restricted to superusers as I had previously thought.
13762 Reword to account for this.
13763
13764 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
13765
13766 * kern/emu/misc.c (device_mapper_null_log): New function.
13767 (grub_device_mapper_supported): New function.
13768 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
13769 prototype.
13770 * kern/emu/hostdisk.c (find_partition_start): Check whether
13771 device-mapper is supported before trying to use it.
13772 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
13773
13774 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
13775
13776 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
13777 (File name syntax): Likewise.
13778 (help): --all is no longer supported in GRUB 2. Be more precise
13779 about pattern matching.
13780
13781 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
13782
13783 * normal/completion.c (grub_normal_do_completion): When completing
13784 arguments to "set" and the current word contains an equals sign,
13785 skip to after the equals sign before starting completion.
13786
13787 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
13788
13789 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
13790
13791 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
13792
13793 * docs/grub.texi (Network): New section.
13794 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
13795 `(nd)' as in GRUB Legacy.
13796 (pxe_unload): New section.
13797
13798 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
13799
13800 * docs/grub.texi (Troubleshooting): `echo' is not usually available
13801 in the rescue shell, so recommend using `set' instead. Thanks,
13802 Jordan Uggla.
13803
13804 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
13805
13806 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
13807 (password): New section.
13808 (password_pbkdf2): New section.
13809 (search): New section.
13810 (Security): New section.
13811 (Troubleshooting): New section, currently very incomplete.
13812 (Invoking grub-mkpasswd-pbkdf2): New section.
13813 (Internals): New section, currently very incomplete.
13814
13815 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
13816
13817 * util/grub.d/00_header.in: Add some more quoting (of
13818 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
13819 work again.
13820 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
13821
13822 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
13823
13824 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
13825 to `count', fixing variable shadowing that broke the -c option.
13826
13827 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
13828
13829 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
13830 in case they contain spaces.
13831
13832 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
13833
13834 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
13835 "part_" to partmap module names, in line with grub-install.
13836 Reported by: Jindřich Makovička (Debian bug #584426).
13837
13838 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
13839
13840 * util/grub-mkimage.c: Make target-related error messages slightly
13841 more helpful; -O talks about "format". Explicitly point to the use
13842 of -O if no target is specified.
13843 Reported by: Didier Raboud (Debian bug #584415).
13844
13845 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
13846
13847 * INSTALL: Document several build requirements for optional features
13848 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
13849
13850 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
13851
13852 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
13853 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
13854 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
13855
13856 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
13857
13858 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
13859 Thanks to Jordan Uggla for spotting this.
13860
13861 2010-06-02 Aleš Nesrsta <starous@volny.cz>
13862
13863 Finally make USB usable.
13864
13865 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
13866 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
13867 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
13868 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
13869 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
13870 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
13871 (GRUB_OHCI_FSMPS): Likewise.
13872 (GRUB_OHCI_PERIODIC_START): Likewise.
13873 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
13874 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
13875 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
13876 (GRUB_OHCI_SET_PORT_RESET): Likewise.
13877 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
13878 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
13879 (grub_ohci_transaction): Likewise.
13880 (grub_ohci_transfer): Improve condition detection algorithms.
13881 Handle toggle property. Program the transactions correctly.
13882 Improve error handling. Various important fixups.
13883 (grub_ohci_portstatus): Put register writes in right order.
13884 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
13885 (grub_uhci_transfer): Don't show "failed" message on success.
13886 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
13887 array.
13888 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
13889 determine its size.
13890 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
13891 before initialization is completed. Use IN direction for empty
13892 transfers. Use last_trans and compute toggle.
13893 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
13894 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
13895 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
13896 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
13897 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
13898 (grub_usb_device): Increase toggle to 256.
13899 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
13900 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
13901 GRUB_USBMS_SUBCLASS_SFF8070.
13902 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
13903 (grub_scsi_inquiry): New member page and alloc_length.
13904 (grub_scsi_request_sense): New structure.
13905 (grub_scsi_request_sense_data): Likewise.
13906 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
13907 control.
13908 * disk/scsi.c (grub_scsi_request_sense): New function.
13909 (grub_scsi_test_unit_ready): Likewise.
13910 (grub_scsi_inquiry): Fill new fields.
13911 (grub_scsi_read_capacity): Likewise.
13912 (grub_scsi_read10): Add request sense at the end.
13913 (grub_scsi_read12): Likewise.
13914 (grub_scsi_write10): Likewise.
13915 (grub_scsi_write12): Likewise.
13916 (grub_scsi_open): Add Test Unit Ready.
13917 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
13918 Support additional subclasses. Con't clear halt yet. Activate the
13919 proper config. Calculate LUNs correctly.
13920 (grub_usbms_transfer): Various important fixups.
13921
13922 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
13923
13924 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
13925 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
13926 (grub_ohci_fini_hw): New function.
13927 (grub_ohci_restore_hw): Likewise.
13928 (GRUB_MOD_INIT(ohci)): Register preboot hook.
13929 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
13930 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
13931
13932 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
13933
13934 Dedicated DMA allocations.
13935
13936 * bus/pci.c (grub_memalign_dma32): New function
13937 (grub_dma_free): Likewise.
13938 (grub_dma_get_virt): Likewise.
13939 (grub_dma_get_phys): Likewise.
13940 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
13941 (grub_ohci_pci_iter): Use dma32_alloc.
13942 (grub_ohci_transfer): Likewise.
13943 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
13944 (grub_usb_bulk_readwrite): Likewise.
13945 * include/grub/pci.h: Add declarations.
13946
13947 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
13948
13949 CS5536 support.
13950
13951 * bus/cs5536.c: New file.
13952 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
13953 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
13954 (cs5536_mod_SOURCES): New variable.
13955 (cs5536_mod_CFLAGS): Likewise.
13956 (cs5536_mod_LDFLAGS): Likewise.
13957 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
13958 machine/pci.h.
13959 (kernel_img_SOURCES): Add bus/cs5536.c.
13960 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
13961 usb_keyboard.mod.
13962 (usb_mod_SOURCES): New variable.
13963 (usb_mod_CFLAGS): New variable.
13964 (usb_mod_LDFLAGS): New variable.
13965 (usbtest_mod_SOURCES): New variable.
13966 (usbtest_mod_CFLAGS): New variable.
13967 (usbtest_mod_LDFLAGS): New variable.
13968 (ohci_mod_SOURCES): New variable.
13969 (ohci_mod_CFLAGS): New variable.
13970 (ohci_mod_LDFLAGS): New variable.
13971 (usbms_mod_SOURCES): New variable.
13972 (usbms_mod_CFLAGS): New variable.
13973 (usbms_mod_LDFLAGS): New variable.
13974 (usb_keyboard_mod_SOURCES): New variable.
13975 (usb_keyboard_mod_CFLAGS): New variable.
13976 (usb_keyboard_mod_LDFLAGS): New variable.
13977 * include/grub/smbus.h: New file.
13978 * include/grub/cs5536.h: New file.
13979
13980 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
13981
13982 * util/grub.d/00_header.in: Add safety check to make sure that
13983 ${locale_dir} exists before trying to probe it.
13984
13985 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
13986
13987 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
13988 per the GNU Coding Standards; this is now too obscure to be worth
13989 documenting.
13990 (QNX): Likewise.
13991 (chainloader): Remove cross-reference to `SCO UnixWare'.
13992
13993 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
13994
13995 * docs/grub.texi (Chain-loading): New section.
13996 (DOS/Windows): New section, borrowed from GRUB Legacy with details
13997 adjusted for GRUB 2.
13998 (SCO UnixWare): Likewise.
13999 (QNX): Likewise.
14000 (chainloader): Add reference to `Block list syntax'.
14001 (drivemap): New section.
14002 (parttool): New section.
14003
14004 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
14005
14006 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
14007 the grub shell'.
14008 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
14009 (Installing GRUB using grub-install): Remove reference to the grub
14010 shell; mention `grub-mkimage' and `grub-setup' instead.
14011 (Invoking grub-install): Likewise.
14012 (Interface): Add reference to `Menu entry editor'.
14013 (serial): Remove `--device' option.
14014
14015 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
14016
14017 * docs/grub.texi (Configuration): New section, documenting
14018 configuration file generation using grub-mkconfig. I've left a slot
14019 for documenting the full shell scripting format but have not yet
14020 started on writing that up.
14021 (Invoking grub-mkconfig): New section.
14022
14023 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
14024
14025 * docs/grub.texi (direntry): Remove grub-terminfo reference.
14026 (GNU GRUB manual): Likewise.
14027 (General commands): Update description of `terminfo' for GRUB 2.
14028
14029 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
14030
14031 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
14032 (GRUB_MOD_INIT): Fix capitalisation.
14033 * docs/grub.texi (Command-line and menu entry commands): Document
14034 gettext and gptsync commands.
14035
14036 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
14037
14038 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
14039 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
14040
14041 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
14042
14043 Add btrfs probing support, currently only in the single-device case.
14044
14045 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
14046 function.
14047 (grub_guess_root_device): Call find_root_device_from_mountinfo
14048 before looking in /dev.
14049
14050 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
14051
14052 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
14053 GRUB_DISK_SIZE_UNKNOWN.
14054 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
14055
14056 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
14057
14058 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
14059 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
14060 corrupted or not synced properly.
14061
14062 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
14063
14064 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
14065 Reported by: Seth Goldberg.
14066
14067 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
14068
14069 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
14070 addition of dest.
14071 Reported by: Seth Goldberg.
14072
14073 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
14074
14075 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
14076 Reported by: Seth Goldberg.
14077
14078 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
14079
14080 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
14081 64-bit address as signed on MIPS.
14082
14083 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
14084
14085 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
14086 to the empty string.
14087
14088 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
14089
14090 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
14091
14092 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
14093 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
14094 * kern/misc.c (__enable_execute_stack): Disable on
14095 GRUB_MACHINE_EMU.
14096
14097 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
14098
14099 Make grub-probe work with symbolic links under /dev/mapper as well
14100 as with real block devices. The Linux world seems to be (at best)
14101 in transition here, and GRUB shouldn't get caught in the middle.
14102
14103 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
14104 /dev/mapper.
14105
14106 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
14107
14108 * util/grub-script-check.c (main): Ensure defined behaviour on empty
14109 input files (in which case exit zero).
14110
14111 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
14112
14113 * kern/emu/misc.c (canonicalize_file_name): realpath can still
14114 return NULL for various reasons even if it has a maximum-length
14115 buffer: for example, there might be a symlink loop, or the path
14116 might exceed PATH_MAX. If this happens, return NULL.
14117
14118 2010-05-27 Robert Millan <rmh@gnu.org>
14119
14120 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
14121 partmap module to handle cross-partmap setups.
14122 Reported by Orestes Mas. Gràcies!
14123
14124 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
14125
14126 * util/grub-mkrescue.in: Initialise override_dir rather than
14127 assuming that it's unset or empty in the environment.
14128
14129 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
14130
14131 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
14132 variable index into p_index to suppress a warning with -Wshadow.
14133
14134 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
14135
14136 * INSTALL: Added flex >= 2.5.35 requirement.
14137
14138 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
14139
14140 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
14141
14142 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
14143
14144 cmostest support.
14145
14146 * commands/i386/cmostest.c: New file.
14147 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
14148 (cmostest_mod_SOURCES): New variable.
14149 (cmostest_mod_CFLAGS): Likewise.
14150 (cmostest_mod_LDFLAGS): Likewise.
14151 * conf/i386-pc.rmk: Likewise.
14152 * docs/grub.texi (Vendor power-on keys): New section.
14153 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
14154 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
14155 and GRUB_BUTTON_CMOS_ADDRESS.
14156 * util/grub.d/00_header.in: Handle powering-on by separate button.
14157
14158 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
14159
14160 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
14161 Removed drawing_scrollbar argument. All users updated
14162 Fixes #29792.
14163 Reported by Jo Shields
14164
14165 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
14166
14167 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
14168 buffer since gfxterm handles double repaint.
14169
14170 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
14171
14172 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
14173 * term/gfxterm.c (real_scroll): Likewise.
14174
14175 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
14176
14177 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
14178 before calling BIOS.
14179
14180 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
14181
14182 * include/grub/i18n.h: Always enable grub_gettext.
14183
14184 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
14185
14186 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
14187 partition naming style.
14188
14189 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
14190
14191 * util/grub-mkconfig.in: Fix handling of -o so that it works when
14192 not the first option.
14193
14194 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
14195
14196 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
14197
14198 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
14199
14200 * util/misc.c: Move inclusion of <limits.h> to ...
14201 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
14202
14203 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
14204
14205 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
14206 Fix merge error in NetBSD code.
14207 (find_partition_start) [__NetBSD__]: Likewise.
14208
14209 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
14210
14211 Fix grub-mkrescue usage unit testing.
14212
14213 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
14214
14215 2010-05-18 Christian Franke <franke@computer.org>
14216
14217 * util/grub.d/10_windows.in: Use path names instead of
14218 drive letters to prevent warning from Cygwin 1.7.
14219 Add drivemap command to menuentry if needed.
14220
14221 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
14222
14223 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
14224 gnumach and gnumach.gz.
14225
14226 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
14227
14228 * include/grub/i18n.h (gettext): Inline instead of using #define.
14229 (grub_gettext): Likewise.
14230 (_): Likewise.
14231
14232 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
14233
14234 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
14235 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
14236 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
14237 (main): Add a slash after pkglibdirroot.
14238
14239 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
14240
14241 * util/grub-install.in: Add missing "in" keyword.
14242
14243 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
14244
14245 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
14246 Reported by: Seth Goldberg.
14247
14248 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
14249
14250 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
14251
14252 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
14253
14254 * configure.ac: Check for Linux device-mapper support.
14255
14256 * util/hostdisk.c (device_is_mapped): New function.
14257 (find_partition_start): New function, partly broken out from
14258 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
14259 device-mapper support added.
14260 (linux_find_partition): Use find_partition_start.
14261 (convert_system_partition_to_system_disk): Add `st' argument.
14262 Support Linux /dev/mapper/* devices if device-mapper support is
14263 available; only DM-RAID devices are understood at present.
14264 (find_system_device): Add `st' argument. Pass it to
14265 convert_system_partition_to_system_disk.
14266 (grub_util_biosdisk_get_grub_dev): Pass stat result to
14267 find_system_device and convert_system_partition_to_system_disk. Use
14268 find_partition_start.
14269
14270 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
14271 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
14272 * util/deviceiter.c [__linux__]: Define MINOR.
14273 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
14274 * util/mkdevicemap.c (grub_putchar): New function.
14275 (grub_getkey): New function.
14276 (grub_refresh): New function.
14277 (main): Set debug=all if -v -v is used.
14278
14279 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
14280
14281 Fix build with non-GNU libcs.
14282
14283 * util/misc.c (canonicalize_file_name): Move to ...
14284 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
14285 grub_make_system_path_relative_to_its_root.
14286
14287 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
14288
14289 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
14290 we handle finding grub-mkimage. Default to finding grub-mkimage in
14291 ${bindir} with program_transform_name applied, and provide a
14292 --grub-mkimage option to override this.
14293
14294 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
14295
14296 Remove grub-mkisofs.
14297
14298 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
14299 (grub_mkisofs_SOURCES): Removed.
14300 (grub_mkisofs_CFLAGS): Removed.
14301 * util/mkisofs/defaults.h: Removed.
14302 * util/mkisofs/eltorito.c: Likewise.
14303 * util/mkisofs/exclude.h: Likewise.
14304 * util/mkisofs/hash.c: Likewise.
14305 * util/mkisofs/include/: Likewise.
14306 * util/mkisofs/include/fctldefs.h: Likewise.
14307 * util/mkisofs/include/mconfig.h: Likewise.
14308 * util/mkisofs/include/prototyp.h: Likewise.
14309 * util/mkisofs/include/statdefs.h: Likewise.
14310 * util/mkisofs/iso9660.h: Likewise.
14311 * util/mkisofs/joliet.c: Likewise.
14312 * util/mkisofs/match.c: Likewise.
14313 * util/mkisofs/match.h: Likewise.
14314 * util/mkisofs/mkisofs.c: Likewise.
14315 * util/mkisofs/mkisofs.h: Likewise.
14316 * util/mkisofs/msdos_partition.h: Likewise.
14317 * util/mkisofs/multi.c: Likewise.
14318 * util/mkisofs/name.c: Likewise.
14319 * util/mkisofs/rock.c: Likewise.
14320 * util/mkisofs/tree.c: Likewise.
14321 * util/mkisofs/write.c: Likewise.
14322
14323 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
14324
14325 Unify grub-mkimage accross platforms.
14326
14327 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
14328 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
14329 (grub_mkelfimage_SOURCES): Removed.
14330 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
14331 (util/grub-mkimage.c_DEPENDENCIES): .. this.
14332 (bin_UTILITIES): Add grub-mkimage.
14333 (grub_mkimage_SOURCES): New variable.
14334 (kernel_img_HEADERS): Remove machine/kernel.h.
14335 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
14336 (pkglib_PROGRAMS): Add kernel.img.
14337 (kernel_img_HEADERS): Add machine/kernel.h.
14338 (kernel_img_FORMAT): Removed.
14339 (bin_UTILITIES): Remove grub-mkimage.
14340 (grub_mkimage_SOURCES): Removed.
14341 (grub_mkimage_CFLAGS): Likewise.
14342 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
14343 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
14344 (pkglib_PROGRAMS): Add kernel.img.
14345 (bin_UTILITIES): Remove grub-mkimage.
14346 (grub_mkimage_SOURCES): Removed.
14347 (grub_mkimage_CFLAGS): Likewise.
14348 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
14349 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
14350 (pkglib_PROGRAMS): Add kernel.img.
14351 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
14352 (pkglib_PROGRAMS): Add kernel.img.
14353 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
14354 (grub_mkimage_SOURCES): Removed.
14355 (grub_mkimage_CFLAGS): Likewise.
14356 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
14357 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
14358 (pkglib_PROGRAMS): Add kernel.img.
14359 (bin_UTILITIES): Remove grub-mkimage.
14360 (grub_mkimage_SOURCES): Removed.
14361 (grub_mkimage_CFLAGS): Likewise.
14362 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
14363 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
14364 (grub_mkimage_SOURCES): Removed.
14365 (grub_mkimage_CFLAGS): Likewise.
14366 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
14367 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
14368 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
14369 (grub_pe32_optional_header): ... this.
14370 (grub_pe64_optional_header): ... and this. All users updated.
14371 (GRUB_PE32_PE32_MAGIC): Split into ..
14372 (GRUB_PE32_PE32_MAGIC): .. this.
14373 (GRUB_PE32_PE64_MAGIC): .. and this.
14374 (GRUB_PE32_SIGNATURE_SIZE): New definition.
14375 * include/grub/elf.h (PT_GNU_STACK): New definition.
14376 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
14377 * include/grub/i386/efi/kernel.h: Likewise.
14378 * include/grub/i386/kernel.h: Likewise.
14379 * include/grub/i386/pc/kernel.h: Likewise.
14380 * include/grub/i386/qemu/boot.h: Likewise.
14381 * include/grub/mips/kernel.h: Likewise.
14382 * include/grub/mips/qemu-mips/kernel.h: Likewise.
14383 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
14384 * include/grub/powerpc/kernel.h: Likewise.
14385 * include/grub/sparc64/ieee1275/boot.h: Likewise.
14386 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
14387 * include/grub/sparc64/kernel.h: Likewise.
14388 * include/grub/x86_64/efi/kernel.h: Likewise.
14389 * include/grub/x86_64/kernel.h: Likewise.
14390 * include/grub/offsets.h: New file.
14391 * include/grub/kernel.h (grub_module_info): Split into ...
14392 (grub_module_info32): ... this.
14393 (grub_module_info64): ... and this.
14394 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
14395 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
14396 (grub_boot_blocklist): Moved from here ...
14397 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
14398 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
14399 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
14400 * include/grub/types.h (grub_target_to_host16): Removed.
14401 (grub_target_to_host32): Likewise.
14402 (grub_target_to_host64): Likewise.
14403 (grub_host_to_target16): Likewise.
14404 (grub_host_to_target32): Likewise.
14405 (grub_host_to_target64): Likewise.
14406 (grub_host_to_target_addr): Likewise.
14407
14408 Support grub-mkrescue for efi, coreboot and qemu.
14409
14410 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
14411 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
14412 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
14413 * util/grub-mkrawimage.c: Moved from here ...
14414 * util/grub-mkimage.c: ... here. All users updated.
14415 (ALIGN_ADDR): Use image_target.
14416 (TARGET_NO_FIELD): New const.
14417 (image_target_desc): New type.
14418 (image_targets): New array.
14419 (grub_target_to_host64): Use image_target.
14420 (grub_target_to_host32): Likewise.
14421 (grub_target_to_host16): Likewise.
14422 (grub_host_to_target64): Likewise.
14423 (grub_host_to_target32): Likewise.
14424 (grub_host_to_target16): Likewise.
14425 (grub_host_to_target_addr): Likewise.
14426 (generate_image): Handle multiimage.
14427 (main): Require -O parameter. All users updated.
14428 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
14429 util/efi/grub-mkimage.c
14430 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
14431 New option --rom-directory.
14432 Use xorriso.
14433 * util/i386/efi/grub-mkimage.c: Removed.
14434 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
14435 (grub_target_to_host32): Likewise.
14436 (grub_target_to_host64): Likewise.
14437 (grub_host_to_target16): Likewise.
14438 (grub_host_to_target32): Likewise.
14439 (grub_host_to_target64): Likewise.
14440 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
14441 (grub_target_to_host32): Likewise.
14442 (grub_target_to_host64): Likewise.
14443 (grub_host_to_target16): Likewise.
14444 (grub_host_to_target32): Likewise.
14445 (grub_host_to_target64): Likewise.
14446
14447 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
14448
14449 Source tree is reorganized for emu build.
14450
14451 * include/grub/util/console.h: Move from here...
14452 * include/grub/emu/console.h: ...to here.
14453 * include/grub/util/getroot.h: Move from here...
14454 * include/grub/emu/getroot.h: ...to here.
14455 * include/grub/util/hostdisk.h: Move from here...
14456 * include/grub/emu/hostdisk.h: ...to here.
14457 * util/console.c: Move from here...
14458 * kern/emu/console.c: ...to here.
14459 * util/getroot.c: Move from here...
14460 * kern/emu/getroot.c: ...to here.
14461 * util/grub-emu.c: Move from here...
14462 * kern/emu/main.c: ...to here.
14463 * util/hostdisk.c: Move from here...
14464 * kern/emu/hostdisk.c: ...to here.
14465 * util/hostfs.c: Move from here...
14466 * kern/emu/hostfs.c: ...to here.
14467 * util/mm.c: Move from here...
14468 * kern/emu/mm.c: ...to here.
14469 * util/pci.c: Move from here...
14470 * bus/emu/pci.c: ...to here.
14471 * util/sdl.c: Move from here...
14472 * video/emu/sdl.c: ...to here.
14473 * util/time.c: Move from here...
14474 * kern/emu/time.c: ...to here.
14475 * util/usb.c: Move from here...
14476 * bus/usb/emu/usb.c: ...to here.
14477
14478 * include/grub/emu/misc.h: New header for grub-emu functions.
14479 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
14480
14481 * conf/any-emu.rmk: Rule updates for above renames.
14482 * conf/common.rmk: Likewise.
14483 * conf/i386-pc.rmk: Likewise.
14484 * conf/i386-qemu.rmk: Likewise.
14485 * conf/mips.rmk: Likewise.
14486 * conf/sparc64-ieee1275.rmk: Likewise.
14487 * conf/x86-efi.rmk: Likewise.
14488
14489 * disk/lvm.h: #include updates for above renames.
14490 * util/grub-mkrelpath.c: Likewise.
14491 * util/grub-probe.c: Likewise.
14492 * util/i386/pc/grub-setup.c: Likewise.
14493 * util/sparc64/ieee1275/grub-setup.c: Likewise.
14494 * kern/emu/console.c: Likewise.
14495 * kern/emu/getroot.c: Likewise.
14496 * kern/emu/hostdisk.c: Likewise.
14497 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
14498
14499 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
14500 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
14501 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
14502 * util/misc.c: Remove grub-emu functions.
14503
14504 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
14505
14506 Fix gfxmenu crash.
14507 Reported by: Thorsten Grützmacher.
14508
14509 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
14510 timeout hook.
14511 (circprog_set_property): Register and unregister timeout hook.
14512 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
14513 (label_destroy): Free template. and unregister hook.
14514 (label_set_state): New function.
14515 (label_set_property): Handle templates and hooks.
14516 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
14517 timeout hook.
14518 (progress_bar_set_property): Register and unregister timeout hook.
14519 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
14520 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
14521 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
14522 (update_timeout_visit): Removed.
14523 (update_timeouts): New function.
14524 (redraw_timeouts): Likewise.
14525 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
14526 (grub_gfxmenu_clear_timeout): Likewise.
14527 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
14528 (grub_gfxmenu_timeout_notify): Likewise.
14529 (grub_gfxmenu_timeout_notifications): New external variable.
14530 (grub_gfxmenu_timeout_register): New function.
14531 (grub_gfxmenu_timeout_unregister): Likewise.
14532
14533 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
14534
14535 Transform (broken) vga terminal into (working) vga video driver.
14536
14537 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
14538 video/i386/pc/vga.c.
14539 * include/grub/video.h (grub_video_driver_id):
14540 Add GRUB_VIDEO_DRIVER_VGA.
14541 * term/i386/pc/vga.c: Renamed to ...
14542 * video/i386/pc/vga.c: ...this
14543 (DEBUG_VGA): Removed.
14544 (CHAR_WIDTH): Likewise.
14545 (CHAR_HEIGHT): Likewise.
14546 (TEXT_WIDTH): Likewise.
14547 (TEXT_HEIGHT): Likewise.
14548 (DEFAULT_FG_COLOR): Likewise.
14549 (DEFAULT_BG_COLOR): Likewise.
14550 (colored_char): Likewise.
14551 (xpos): Likewise.
14552 (ypos): Likewise.
14553 (cursor_state): Likewise.
14554 (fg_color): Likewise.
14555 (bg_color): Likewise.
14556 (text_buf): Likewise.
14557 (page): Likewise.
14558 (font): Likewise.
14559 (framebuffer): New variable.
14560 (set_read_map): Disabled.
14561 (setup): New variable.
14562 (is_target): Likewise.
14563 (grub_vga_mod_init): Likewise.
14564 (grub_vga_mod_fini): Likewise.
14565 (check_vga_mem): Likewise.
14566 (write_char): Likewise.
14567 (write_cursor): Likewise.
14568 (scroll_up): Likewise.
14569 (grub_vga_putchar): Likewise.
14570 (grub_vga_getcharwidth): Likewise.
14571 (grub_vga_getwh): Likewise.
14572 (grub_vga_getxy): Likewise.
14573 (grub_vga_gotoxy): Likewise.
14574 (grub_vga_cls): Likewise.
14575 (grub_vga_setcolorstate): Likewise.
14576 (grub_vga_setcursor): Likewise.
14577 (grub_video_vga_init): New function.
14578 (grub_video_vga_setup): Likewise.
14579 (grub_video_vga_fini): Likewise.
14580 (update_target): Likewise.
14581 (grub_video_vga_blit_bitmap): Likewise.
14582 (grub_video_vga_blit_render_target): Likewise.
14583 (grub_video_vga_set_active_render_target): Likewise.
14584 (grub_video_vga_get_active_render_target): Likewise.
14585 (grub_video_vga_swap_buffers): Likewise.
14586 (grub_video_vga_set_palette): Likewise.
14587 (grub_video_vga_get_info_and_fini): Likewise.
14588 (grub_vga_term): Removed.
14589 (grub_video_vga_adapter): New variable.
14590 (GRUB_MOD_INIT): Register a video driver instead of terminal.
14591 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
14592
14593 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
14594
14595 * video/readers/jpeg.c: Indented.
14596
14597 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
14598
14599 Various jpeg cleanups.
14600
14601 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
14602 (grub_jpeg_decode_quan_table): Use sizeof.
14603 (grub_jpeg_decode_du): Use ARRAY_SIZE.
14604
14605 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
14606
14607 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
14608 tables. Ignore non-last ac bit.
14609 (grub_jpeg_decode_quan_table): Likewise.
14610
14611 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
14612
14613 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
14614 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
14615 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
14616 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
14617 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
14618 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
14619
14620 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
14621
14622 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
14623 error.
14624
14625 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
14626
14627 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
14628
14629 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
14630
14631 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
14632 condition.
14633
14634 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
14635
14636 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
14637 part.
14638
14639 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
14640
14641 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
14642 pointers.
14643
14644 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
14645
14646 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
14647
14648 2010-05-01 Christian Franke <franke@computer.org>
14649
14650 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
14651 Remove broken Cygwin path conversion.
14652 * util/misc.c: [__CYGWIN__] Add include and define.
14653 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
14654 for Cygwin 1.7.
14655 (make_system_path_relative_to_its_root): Simplify loop, replace early
14656 return by break.
14657 [__CYGWIN__] Add conversion to win32 path.
14658 Include "/" case in trailing slash removal.
14659
14660 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
14661
14662 * kern/main.c (grub_load_config): Fix copy-pasted comment.
14663 Reported by: Seth Goldberg
14664
14665 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
14666
14667 * commands/help.c (grub_cmd_help): Fix a typo.
14668 Reported by: Seth Goldberg
14669
14670 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
14671
14672 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
14673 name and add N_.
14674 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
14675 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
14676 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
14677 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
14678 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
14679 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
14680 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
14681 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
14682 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
14683 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
14684 * normal/context.c (GRUB_MOD_INIT): Likewise.
14685 * normal/main.c (GRUB_MOD_INIT): Likewise.
14686 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
14687 * term/serial.c (GRUB_MOD_INIT): Likewise.
14688 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
14689
14690 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
14691
14692 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
14693 extra == 0.
14694
14695 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
14696
14697 * commands/iorw.c: New file.
14698 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
14699 (iorw_mod_SOURCES): New variable.
14700 (iorw_mod_CFLAGS): Likewise.
14701 (iorw_mod_LDFLAGS): Likewise.
14702
14703 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
14704
14705 Hotkey support
14706
14707 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
14708 * normal/main.c (hotkey_aliases): New variable.
14709 (grub_normal_add_menu_entry): Parse "--hotkey".
14710 * normal/menu_text.c (run_menu): Handle hotkeys.
14711
14712 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
14713
14714 * kern/i386/coreboot/init.c (grub_machine_init): Call
14715 grub_machine_mmap_init on qemu.
14716
14717 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
14718
14719 * boot/i386/qemu/boot.S: Add a missing .code16.
14720
14721 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
14722
14723 Use LBIO on coreboot.
14724
14725 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
14726 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
14727 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
14728 New declaration.
14729 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
14730 grub_machine_mmap_init on coreboot.
14731 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
14732 GRUB_LINUXBIOS_MEMBER_LINK.
14733 (grub_machine_mmap_iterate): Fix declaration.
14734 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
14735
14736 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
14737
14738 Split coreboot and multiboot ports.
14739
14740 * conf/i386-multiboot.rmk: New file.
14741 * configure.ac: Add multiboot port.
14742 * include/grub/i386/multiboot/boot.h: New file.
14743 * include/grub/i386/multiboot/console.h: Likewise.
14744 * include/grub/i386/multiboot/init.h: Likewise.
14745 * include/grub/i386/multiboot/kernel.h: Likewise.
14746 * include/grub/i386/multiboot/loader.h: Likewise.
14747 * include/grub/i386/multiboot/memory.h: Likewise.
14748 * include/grub/i386/multiboot/serial.h: Likewise.
14749 * include/grub/i386/multiboot/time.h: Likewise.
14750 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
14751 * loader/multiboot.c: Likewise.
14752 * loader/multiboot_mbi2.c: Likewise.
14753 * util/grub-mkrescue.in: Generate multiboot rescue.
14754
14755 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
14756
14757 * kern/parser.c (grub_parser_execute): Cope with read-only config.
14758
14759 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
14760
14761 Merge handling of input and output terminals. Fix a hang.
14762
14763 * commands/terminal.c (abstract_terminal): New struct.
14764 (handle_command): New function. Based on grub_cmd_terminal_input.
14765 (grub_cmd_terminal_input): Use handle_command.
14766 (grub_cmd_terminal_output): Use handle_command.
14767
14768 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
14769
14770 Fix comment handling.
14771
14772 * tests/grub_script_comments.in: New testcase.
14773 * conf/tests.rmk: Rules for new testcase.
14774 * script/yylex.l: Updated flex rules.
14775
14776 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
14777
14778 * docs/grub.texi (play): Document that zero pitches produce rests.
14779 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
14780 if argc is 1.
14781
14782 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
14783
14784 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
14785 autogen issues.
14786
14787 2010-04-26 Christian Franke <franke@computer.org>
14788
14789 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
14790 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
14791 (grub_get_prefix): Remove function.
14792 * util/grub-emu.c (main): Replace grub_get_prefix () call by
14793 make_system_path_relative_to_its_root ().
14794 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
14795
14796 2010-04-24 Christian Franke <franke@computer.org>
14797
14798 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
14799 (kernel_img_LDFLAGS): Remove -static-libgcc.
14800
14801 2010-04-24 Christian Franke <franke@computer.org>
14802
14803 * configure.ac: Do not CHECK_BSS_START_SYMBOL
14804 and CHECK_END_SYMBOL if grub-emu is built.
14805 Unset TARGET_OBJ2ELF if grub-emu is built
14806 without module support.
14807
14808 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
14809
14810 Nilfs2 support.
14811
14812 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
14813 (grub_fstest_SOURCES): Likewise.
14814 (pkglib_MODULES): Add nilfs2.mod.
14815 (nilfs2_mod_SOURCES): New variable.
14816 (nilfs2_mod_CFLAGS): Likewise.
14817 (nilfs2_mod_LDFLAGS): Likewise.
14818 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
14819 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
14820 * fs/nilfs2.c: New file.
14821
14822 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
14823
14824 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
14825 is not supported.
14826
14827 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
14828
14829 Add grub-mkconfig support for NetBSD.
14830
14831 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
14832 * util/grub-mkconfig.in: export new NetBSD specific variables.
14833 * po/POTFILES-shell: added 10_netbsd.in.
14834 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
14835
14836 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
14837
14838 Fix emu build with grub-emu-pci and grub-emu-modules.
14839
14840 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
14841 functions.
14842 * include/grub/libpciaccess.h: New file.
14843 * conf/any-emu.rmk: Update kernel headers for emu build.
14844
14845 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
14846
14847 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
14848
14849 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
14850
14851 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
14852
14853 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
14854
14855 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
14856 Retrieve chosen/bootpath if bootpath isn't hardcoded.
14857 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
14858 util/ieee1275/ofpath.c.
14859 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
14860 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
14861 * include/grub/sparc64/ieee1275/boot.h
14862 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
14863 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
14864 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
14865 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
14866 const char *.
14867 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
14868 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
14869 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
14870 install.
14871
14872 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
14873
14874 * util/grub-mkconfig.in: Corrected two == equality tests.
14875 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
14876 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
14877 expect a number appended to it.
14878 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
14879 expects a number appended to it.
14880
14881 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
14882
14883 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
14884
14885 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
14886
14887 * util/hostdisk.c (make_device_name): Change to new partition naming.
14888
14889 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
14890
14891 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
14892
14893 2010-04-17 Christian Franke <franke@computer.org>
14894
14895 * Makefile.in: Add missing localedir setting.
14896
14897 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
14898
14899 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
14900 mistake in r2156. Noticed by Anthony Fok.
14901
14902 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
14903 @localedir@.
14904 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
14905
14906 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
14907
14908 Fix a spurious, uninitialized variable warning.
14909
14910 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
14911 Initialize variable, shdr.
14912 (grub_freebsd_load_elfmodule): Likewise.
14913 (grub_freebsd_load_elf_meta): Likewise.
14914
14915 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
14916
14917 Fix for escaped dollar in double quoted strings.
14918
14919 * script/yylex.l: Updated flex rules.
14920 * conf/tests.rmk: Rule for new testcase.
14921 * tests/grub_script_dollar.in: New testcase.
14922
14923 2010-04-13 Carles Pina i Estany <carles@pina.cat>
14924 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
14925
14926 Enclose all translated strings in grub.cfg in single quotes, and
14927 escape them appropriately (Ubuntu bug #552921).
14928
14929 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
14930 * util/grub.d/10_hurd.in: Use it.
14931 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
14932 * util/grub.d/10_linux.in (linux_entry): Likewise.
14933
14934 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
14935
14936 Fix cygwin compilation.
14937
14938 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
14939 * include/grub/misc.h (__register_frame_info)
14940 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
14941 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
14942 * kern/misc.c (__register_frame_info)
14943 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
14944 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
14945
14946 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
14947
14948 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
14949
14950 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
14951
14952 Unify libgcc processing.
14953
14954 * Makefile.in (kernel_img_LDFLAGS): New variable.
14955 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
14956 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
14957 overwriting.
14958 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
14959 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
14960 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
14961 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
14962 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
14963 overwriting. Remove -lgcc and -static-libgcc
14964 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
14965 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
14966 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
14967 (kernel_img_LDFLAGS): Append instead of overwriting.
14968 Remove -lgcc and -static-libgcc
14969 * conf/sparc64-ieee1275.rmk: Likewise.
14970 * include/grub/powerpc/libgcc.h: Move to ...
14971 * include/grub/libgcc.h: .. this.
14972 * include/grub/libgcc.h: Don't export most of the function on x86.
14973 (__bswapsi2): New export.
14974 (__bswapdi2): Likewise.
14975 * include/grub/mips/libgcc.h: Removed.
14976 * include/grub/sparc64/libgcc.h: Likewise.
14977
14978 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
14979
14980 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
14981 disk_info_msg (conflicts with gettexting into languages with cases).
14982
14983 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
14984
14985 Add grub-probe support for NetBSD.
14986
14987 * util/getroot.c (find_root_device): Convert block device to
14988 character device on NetBSD.
14989 * util/probe.c (probe): Require character device on NetBSD.
14990 * util/hostdisk.c: NetBSD specific headers.
14991 (configure_device_driver): new function to tune device driver
14992 parameters (currently only for NetBSD floppy driver).
14993 (grub_util_biosdisk_open): NetBSD specific code (get disk size
14994 via disklabel ioctl).
14995 (open_device): call configure_device_driver on NetBSD.
14996 (convert_system_partition_to_system_disk): NetBSD specific code.
14997 (device_is_wholedisk): Likewise.
14998 (grub_util_biosdisk_get_grub_dev): Likewise.
14999 (make_device_name): Fixed a typo in bsd_part_str.
15000 * configure.ac: check for opendisk() and getrawpartition() on
15001 NetBSD and set LIBUTIL.
15002 * Makefile.in: add LIBUTIL to LIBS.
15003
15004 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
15005
15006 Documentation fix.
15007
15008 * util/grub-script-check.c: Better help message.
15009
15010 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
15011
15012 Fix FreeBSD build.
15013
15014 * configure.ac: Flex version check.
15015 * conf/common.rmk: Add -Wno-error to sh.mod.
15016 * script/yylex.l: Remove all #pragma.
15017
15018 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
15019
15020 * include/grub/util/misc.h (canonicalise_file_name): Add missing
15021 prototype.
15022 Reported by: Seth Goldberg.
15023
15024 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
15025
15026 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
15027 Rename "module" to "module2".
15028 Reported by: Seth Goldberg.
15029
15030 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
15031
15032 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
15033 EXPORT_FUNC.
15034 Reported by: Seth Goldberg.
15035
15036 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
15037
15038 * lib/posix_wrap/locale.h: Add missing file.
15039 Reported by: Seth Goldberg.
15040
15041 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
15042
15043 grub-emu module load support.
15044
15045 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
15046 NO_DYNAMIC_MODULES switched to this.
15047 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
15048 (CFLAGS): Likewise.
15049 * conf/any-emu.rmk: Generate symlist.
15050 (kernel_img_HEADERS): Add util/datetime.h.
15051 (kernel_img_HEADERS) [sdl]: Add sdl.h.
15052 (kernel_img_HEADERS) [libusb]: Add libusb.h.
15053 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
15054 kern/$(target_cpu)/cache.S.
15055 * configure.ac (grub-emu-modules): New option.
15056 * genmk.rb: Handle multiple source lists.
15057 * include/grub/sdl.h: New file.
15058 * include/grub/libusb.h: Likewise.
15059 * util/grub-emu.c (main): Hanle (host) root.
15060 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
15061 GRUB_ERR_UNKNOWN_DEVICE.
15062 * util/misc.c: Move mm functions to ...
15063 * util/mm.c: ... here. All users updated.
15064
15065 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
15066
15067 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
15068 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
15069 missing files.
15070 (maintainer-clean): Remove libgcrypt-grub.
15071
15072 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
15073
15074 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
15075
15076 2010-04-09 EFI Coder <eficoder@hotmail.com>
15077
15078 * normal/menu_text.c (print_message): Clean up the message and show
15079 the Fn information when on EFI
15080 * term/efi/console.c (grub_console_checkkey): Add F4 support.
15081
15082 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
15083
15084 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
15085 All users updated.
15086 * normal/crypto.c (read_crypto_list): Likewise.
15087 * normal/dyncmd.c (read_command_list): Likewise.
15088 * normal/term.c (read_terminal_list): Likewise.
15089 * normal/main.c (read_lists): Use explicit prefix.
15090 (read_lists_hook): Use read_lists.
15091 (grub_normal_execute): Likewise.
15092
15093 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
15094
15095 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
15096 Reported by: Thomas Schmitt.
15097 Add -no-emul-boot to grub-mkisofs parameters.
15098
15099 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
15100
15101 * font/font.c: Indented.
15102
15103 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
15104
15105 Elif support to GRUB script (by Deepak Vankadaru).
15106
15107 * tests/grub_script_if.in: New testcase.
15108 * conf/tests.rmk: Rule for new testcase.
15109 * script/parser.y: Grammar rules for elif.
15110
15111 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
15112
15113 While and until loops support to GRUB script.
15114
15115 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
15116 (grub_script_create_cmdwhile): New function prototype.
15117 (grub_script_execute_cmdwhile): New function prototype.
15118 * script/execute.c (grub_script_execute_cmdwhile): New function.
15119 * script/parser.y (command): New commands.
15120 (whilecmd): New grammar rule.
15121 (untilcmd): New grammar rule.
15122 * script/script.c (grub_script_create_cmdwhile): New function.
15123 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
15124 function.
15125
15126 * tests/grub_script_while1.in: New testcase.
15127 * conf/tests.rmk: Rule for new testcase.
15128
15129 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
15130
15131 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
15132 as *.jpg.
15133
15134 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
15135
15136 GRUB_BACKGROUND support.
15137
15138 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
15139 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
15140
15141 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
15142
15143 Load fonts and modules for gfxmenu in grub-mkconfig.
15144 Idea by: Mario Vazquez
15145
15146 * util/grub.d/00_header.in: Load pf2 and image modules.
15147
15148 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
15149
15150 grub-mkconfig multiple terminal support.
15151
15152 * util/grub-mkconfig.in: Handle multiple terminals correctly.
15153 * util/grub.d/00_header.in: Likewise.
15154
15155 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
15156
15157 * Makefile.in: Specify files explicitly instead of using $< and $@ since
15158 we use cd $(srcdir).
15159
15160 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
15161
15162 * util/grub.d/10_linux.in: Only use the first word of
15163 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
15164 spaces in GRUB_DISTRIBUTOR.
15165 * util/grub.d/10_kfreebsd.in: Likewise.
15166 * util/grub.d/10_hurd.in: Likewise.
15167
15168 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
15169
15170 Fix unit testing framework for Qemu 0.12.
15171
15172 * tests/util/grub-shell.in: Remove -serial stdio option.
15173
15174 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
15175
15176 POSIX header file wrappers.
15177
15178 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
15179 equivalents.
15180 * lib/posix_wrap/ctype.h: Likewise.
15181 * lib/posix_wrap/errno.h: Likewise.
15182 * lib/posix_wrap/langinfo.h: Likewise.
15183 * lib/posix_wrap/limits.h: Likewise.
15184 * lib/posix_wrap/localcharset.h: Likewise.
15185 * lib/posix_wrap/stdint.h: Likewise.
15186 * lib/posix_wrap/stdio.h: Likewise.
15187 * lib/posix_wrap/stdlib.h: Likewise.
15188 * lib/posix_wrap/string.h: Likewise.
15189 * lib/posix_wrap/sys/types.h: Likewise.
15190 * lib/posix_wrap/unistd.h: Likewise.
15191 * lib/posix_wrap/wchar.h: Likewise.
15192 * lib/posix_wrap/wctype.h: Likewise.
15193 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
15194 (grub_script.yy.h): Likewise.
15195 * script/yylex.l: Remove POSIX emulation #defines.
15196 * Makefile.in (POSIX_CFLAGS): New variable.
15197 (GNULIB_UTIL_CFLAGS): Likewise.
15198
15199 Regexp support.
15200
15201 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
15202 (regexp_mod_SOURCES): New variable.
15203 (regexp_mod_CFLAGS): Likewise.
15204 (regexp_mod_LDFLAGS): Likewise.
15205 * commands/regexp.c: New file.
15206 * gnulib/regcomp.c: New file. Imported from gnulib.
15207 * gnulib/regex.c: Likewise.
15208 * gnulib/regex_internal.c: Likewise.
15209 * gnulib/regex_internal.h: Likewise.
15210 * gnulib/regexec.c: Likewise.
15211 * gnulib/regex.h: Likewise.
15212
15213 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
15214
15215 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
15216 unsupported video mode types.
15217
15218 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
15219
15220 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
15221
15222 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
15223
15224 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
15225 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
15226
15227 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
15228
15229 Remove unused grub_vga_get_font.
15230
15231 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
15232 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
15233
15234 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
15235
15236 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
15237 * include/grub/misc.h: Likewise.
15238
15239 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
15240
15241 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
15242 for which failure is fatal.
15243
15244 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
15245
15246 * util/grub-install.in: Use mkdir -p to create grub directory.
15247 * util/i386/efi/grub-install.in: Likewise.
15248 * util/ieee1275/grub-install.in: Likewise.
15249
15250 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
15251
15252 * Makefile.in (LEX): new variable.
15253
15254 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
15255
15256 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
15257 `=' and added double quotes on operands of this equality test.
15258
15259 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
15260
15261 * Makefile.in (uninstall): Remove a leftover debug echo.
15262 Reported by: Grégoire Sutre
15263
15264 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
15265
15266 MIPS multiboot2 support.
15267
15268 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
15269 (multiboot2_mod_SOURCES): New variable.
15270 (multiboot2_mod_CFLAGS): Likewise.
15271 (multiboot2_mod_LDFLAGS): Likewise.
15272 (multiboot2_mod_ASFLAGS): Likewise.
15273 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
15274 definition.
15275 (MULTIBOOT_ENTRY_REGISTER): Likewise.
15276 (MULTIBOOT_MBI_REGISTER): Likewise.
15277 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
15278 (MULTIBOOT_ELF32_MACHINE): Likewise.
15279 (MULTIBOOT_ELF64_MACHINE): Likewise.
15280 * include/grub/mips/multiboot.h: New file.
15281 * include/grub/video.h (grub_video_driver_id): New type
15282 GRUB_VIDEO_DRIVER_SM712.
15283 (grub_video_get_info_and_fini): Export.
15284 (grub_video_get_palette): Likewise.
15285 (grub_video_get_driver_id): Likewise.
15286 * include/multiboot2.h: Resynced with spec.
15287 * loader/i386/multiboot.c: Moved from here ...
15288 * loader/multiboot.c: ... here. All users updated.
15289 (grub_multiboot_boot): Use platform-specific macros.
15290 * loader/i386/multiboot_elfxx.c: Moved from here ...
15291 * loader/multiboot_elfxx.c: ... here. All users updated.
15292 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
15293 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
15294 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
15295
15296 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
15297
15298 Import gnulib argp module.
15299
15300 * gnulib/argp-ba.c: New file.
15301 * gnulib/argp-eexst.c: Likewise.
15302 * gnulib/argp-fmtstream.c: Likewise.
15303 * gnulib/argp-fmtstream.h: Likewise.
15304 * gnulib/argp-fs-xinl.c: Likewise.
15305 * gnulib/argp-help.c: Likewise.
15306 * gnulib/argp-namefrob.h: Likewise.
15307 * gnulib/argp-parse.c: Likewise.
15308 * gnulib/argp-pin.c: Likewise.
15309 * gnulib/argp-pv.c: Likewise.
15310 * gnulib/argp-pvh.c: Likewise.
15311 * gnulib/argp-version-etc.c: Likewise.
15312 * gnulib/argp-version-etc.h: Likewise.
15313 * gnulib/argp-xinl.c: Likewise.
15314 * gnulib/argp.h: Likewise.
15315
15316 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
15317
15318 * kern/device.c (grub_device_iterate): Clear errors after failed
15319 opening device.
15320
15321 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
15322
15323 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
15324 returned by firmware.
15325
15326 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
15327
15328 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
15329 compilation on coreboot and qemu
15330
15331 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
15332
15333 * include/multiboot2.h: Resync with spec.
15334
15335 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
15336
15337 Multiboot2 tag support
15338
15339 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
15340 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
15341 Remove loader/multiboot_loader.c.
15342 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
15343 (grub_multiboot2_real_boot): Likewise.
15344 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
15345 (grub_get_multiboot_mmap_count): New proto.
15346 (grub_fill_multiboot_mmap): Likewise.
15347 (grub_multiboot_set_video_mode): Likewise.
15348 (grub_multiboot_set_console): Likewise.
15349 (grub_multiboot_load): Likewise.
15350 (grub_multiboot_load_elf): Likewise.
15351 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
15352 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
15353 * include/multiboot.h: Resynced with specification.
15354 * include/multiboot2.h: Resynced with specification.
15355 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
15356 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
15357 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
15358 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
15359 users updated.
15360 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
15361 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
15362 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
15363 Removed.
15364 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
15365 Moved from here...
15366 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
15367 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
15368 Moved from here...
15369 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
15370 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
15371 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
15372 All users updated.
15373 * loader/i386/multiboot_mbi2.c: New file.
15374
15375 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
15376
15377 Resync with gnulib.
15378
15379 * Makefile.in (GNULIB_CFLAGS): New variable.
15380 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
15381 (grub_script_check_CFLAGS): New variable.
15382 * gnulib/alloca.h: Resync with gnulib.
15383 * gnulib/error.c: Likewise.
15384 * gnulib/error.h: Likewise.
15385 * gnulib/fnmatch.c: Likewise.
15386 * gnulib/fnmatch_loop.c: Likewise.
15387 * gnulib/getdelim.c: Likewise.
15388 * gnulib/getline.c: Likewise.
15389 * gnulib/getopt.c: Likewise.
15390 * gnulib/getopt1.c: Likewise.
15391 * gnulib/getopt_int.h: Likewise.
15392 * gnulib/gettext.h: Likewise.
15393 * gnulib/progname.c: Likewise.
15394 * gnulib/progname.h: Likewise.
15395
15396 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
15397
15398 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
15399 which is the case with --disabled-nls.
15400
15401 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
15402 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
15403 * util/misc.c: Likewise.
15404 * util/mkisofs/mkisofs.c: Likewise.
15405 * util/mkisofs/mkisofs.h: Likewise.
15406
15407 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
15408
15409 Simplify Apple CC support.
15410
15411 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
15412 Add 0 byte at the end not to have a symbol with empty target.
15413 * mmap/i386/pc/mmap_helper.S: Likewise.
15414 * genmk.rb: Ignore errors 2030 and 2050.
15415 * kern/i386/pc/startup.S: Use LOCAL when possible.
15416
15417 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
15418
15419 Testcase and the fix for final semicolon on cmdline.
15420
15421 * tests/grub_script_final_semicolon.in: New testcase.
15422 * conf/tests.rmk: Rules for the new testcase.
15423 * script/parser.y: Grammar fix.
15424
15425 2010-03-26 BVK Chaitanya <bvk@localhost>
15426
15427 Blank lines testcase for GRUB script.
15428
15429 * tests/grub_script_blanklines.in: New testcase.
15430 * conf/tests.rmk: Rules for the new testcase.
15431
15432 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
15433
15434 Don't use __FILE__.
15435
15436 * genmk.rb: Add -DGRUB_FILE to all C targets.
15437 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
15438 * include/grub/list.h: Likewise.
15439 * include/grub/misc.h: Likewise.
15440 * include/grub/mm.h: Likewise.
15441 * include/grub/test.h: Likewise.
15442 * kern/mm.c: Likewise.
15443 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
15444
15445 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
15446
15447 Sunpc partitions support.
15448
15449 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
15450 (grub_fstest_SOURCES): Likewise.
15451 (pkglib_MODULES): Add part_sunpc.mod.
15452 (part_sunpc_mod_SOURCES): New variable.
15453 (part_sunpc_mod_CFLAGS): Likewise.
15454 (part_sunpc_mod_LDFLAGS): Likewise.
15455 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
15456 * partmap/sunpc.c: New file.
15457
15458 2010-03-26 BVK Chaitanya <bvk@localhost>
15459
15460 For loop support to GRUB script.
15461
15462 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
15463 (grub_script_create_cmdfor): New function prototype.
15464 (grub_script_execute_cmdfor): New function prototype.
15465 * script/execute.c (grub_script_execute_cmdfor): New function.
15466 * script/parser.y (command): New for command.
15467 (forcmd): New grammar rule.
15468 * script/script.c (grub_script_create_cmdfor): New function.
15469 * util/grub-script-check.c (grub_script_execute_cmdfor): New
15470 function.
15471 * tests/grub_script_for1.in: New testcase.
15472 * conf/tests.rmk: Rules for new testcase.
15473
15474 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
15475
15476 Nested partitions
15477
15478 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
15479 'partition' is NULL, grub_partition_get_start already does that.
15480 * commands/loadenv.c (check_blocklists): Likewise.
15481 (write_blocklists): Likewise.
15482 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
15483 (grub_fstest_SOURCES): Likewise.
15484 (pkglib_MODULES): Add part_bsd.mod.
15485 (part_bsd_mod_SOURCES): New variable.
15486 (part_bsd_mod_CFLAGS): Likewise.
15487 (part_bsd_mod_LDFLAGS): Likewise.
15488 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
15489 (grub_emu_SOURCES): Likewise.
15490 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15491 * include/grub/bsdlabel.h: New file.
15492 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
15493 'get_name'.
15494 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
15495 (grub_partition_map_list): New variable.
15496 (grub_partition_map_register): Inline.
15497 (grub_partition_map_unregister): Likewise.
15498 (FOR_PARTITION_MAPS): New macro.
15499 (grub_partition_map_iterate): Removed.
15500 (grub_partition_get_start): Handle nested partitions.
15501 * include/grub/msdos_partition.h: Remove bsd-related entries.
15502 (grub_pc_partition): Remove.
15503 * kern/disk.c (grub_disk_close): Free partition data.
15504 (grub_disk_adjust_range): Handle nested partitions.
15505 * kern/partition.c (grub_partition_map_probe): New function.
15506 (grub_partition_probe): Parse name to number, handle subpartitions.
15507 (get_partmap): New function.
15508 (grub_partition_iterate): Handle subpartitions.
15509 (grub_partition_get_name): Likewise.
15510 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
15511 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
15512 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
15513 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
15514 Set 'number'.
15515 (acorn_partition_map_probe): Remove.
15516 (acorn_partition_map_get_name): Likewise.
15517 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
15518 Set 'number'.
15519 Set 'index' to 0 since there can be only one partition entry per sector.
15520 (amiga_partition_map_probe): Remove.
15521 (amiga_partition_map_get_name): Likewise.
15522 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
15523 Set 'number'.
15524 Set 'offset' and 'index' to real positions of partitions.
15525 (apple_partition_map_probe): Remove.
15526 (apple_partition_map_get_name): Likewise.
15527 * partmap/bsdlabel.c: New file.
15528 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
15529 Set 'number'.
15530 Allocate 'data' so it can be correctly freed.
15531 Set 'index' to offset inside sector.
15532 (gpt_partition_map_probe): Remove.
15533 (gpt_partition_map_get_name): Likewise.
15534 * partmap/msdos.c (grub_partition_parse): Remove.
15535 (pc_partition_map_iterate): Don't force raw access.
15536 Set 'number'.
15537 Make 'ext_offset' a local variable.
15538 (pc_partition_map_probe): Remove.
15539 (pc_partition_map_get_name): Remove.
15540 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
15541 Set 'number'.
15542 (sun_partition_map_probe): Remove.
15543 (sun_partition_map_get_name): Likewise.
15544 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
15545 (grub_pcpart_type): Likewise.
15546 * util/hostdisk.c (open_device): Handle new numbering scheme.
15547 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
15548 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
15549 * util/grub-probe.c (probe_partmap): Handle nested paritions.
15550 * util/grub-install.in: Insert all subpartition modules.
15551 * util/ieee1275/grub-install.in: Likewise.
15552
15553 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
15554
15555 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
15556 grammar.
15557
15558 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
15559
15560 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
15561
15562 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
15563
15564 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
15565 match where 'make install' puts them.
15566 * util/i386/efi/grub-install.in: Likewise.
15567
15568 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
15569
15570 * .bzrignore: Add gentrigtables, grub-script-check,
15571 grub_script_check_init.c, grub_script_check_init.h, and
15572 trigtables.c.
15573
15574 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
15575
15576 * kern/parser.c: Indented.
15577
15578 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
15579
15580 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
15581
15582 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
15583
15584 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
15585 alpha_mask_size == 0 case.
15586
15587 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
15588
15589 GRUB shell lexer and parser improvements.
15590
15591 * conf/any-emu.rmk: Build rule updates.
15592 * conf/common.rmk: Likewise.
15593 * conf/i386-coreboot.rmk: Likewise.
15594 * conf/i386-efi.rmk: Likewise.
15595 * conf/i386-ieee1275.rmk: Likewise.
15596 * conf/i386-pc.rmk: Likewise.
15597 * conf/powerpc-ieee1275.rmk: Likewise.
15598 * conf/x86_64-efi.rmk: Likewise.
15599
15600 * configure.ac: Configure check for flex.
15601
15602 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
15603 types.
15604 (grub_lexer_param): Struct member updates.
15605 (grub_parser_param): Likewise.
15606 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
15607 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
15608 (grub_script_lexer_init): Prototype update.
15609 (grub_script_lexer_record_start): Likewise.
15610 (grub_script_lexer_record_stop): Likewise.
15611 (grub_script_lexer_yywrap): New function prototype.
15612 (grub_script_lexer_fini): Likewise.
15613 (grub_script_execute_argument_to_string): Removed by...
15614 (grub_script_execute_argument_to_argv): ...better version.
15615
15616 * script/execute.c (ROUND_UPTO): New macro.
15617 (grub_script_execute_cmdline): Out of memory fixes.
15618 (grub_script_execute_menuentry): Likewise.
15619 (grub_script_execute_argument_to_string): Removed. Update all
15620 users by...
15621 (grub_script_execute_argument_to_argv): ...better version.
15622 * script/function.c (grub_script_function_create): Use
15623 grub_script_execute_argument_to_argv instead of
15624 grub_script_execute_argument_to_string.
15625
15626 * script/lexer.c (check_varstate): Removed.
15627 (check_textstate): Removed.
15628 (grub_script_lexer_record_start): Likewise.
15629 (grub_script_lexer_record_stop): Likewise.
15630 (recordchar): Replaced with...
15631 (grub_script_lexer_record): ...new function.
15632 (nextchar): Removed.
15633 (grub_script_lexer_init): Rewritten.
15634 (grub_script_yylex): Rewritten.
15635 (append_newline): New function.
15636 (grub_script_lexer_yywrap): New function.
15637 (grub_script_lexer_fini): New function.
15638 (grub_script_yyerror): Sets error flag.
15639
15640 * script/yylex.l: New file.
15641 (grub_lexer_yyfree): Wrapper for flex yyffre.
15642 (grub_lexer_yyalloc): Likewise.
15643 (grub_lexer_yyrealloc): Likewise.
15644 * script/parser.y: Refactored.
15645
15646 * script/script.c (grub_script_arg_add): Out of memory fixes.
15647 (grub_script_add_arglist): Likewise.
15648 (grub_script_create_cmdline): Likewise.
15649 (grub_script_create_cmdmenu): Likewise.
15650 (grub_script_add_cmd): Likewise.
15651 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
15652 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
15653 unnecessary code.
15654
15655 * tests/grub_script_echo1.in: New testcase.
15656 * tests/grub_script_vars1.in: New testcase.
15657 * tests/grub_script_echo_keywords.in: New testcase.
15658
15659 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
15660
15661 Remove some redundancy in build system.
15662
15663 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
15664 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
15665 (TARGET_LDFLAGS): Add -nostdlib.
15666 (TARGET_IMG_LDFLAGS): Likewise.
15667 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
15668 anything since mmap isn't available.
15669 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
15670 Add util/time.c.
15671 (pkglib_MODULES): Remove reboot.mod.
15672 (reboot_mod_SOURCES): Removed.
15673 (reboot_mod_CFLAGS): Likewise.
15674 (reboot_mod_LDFLAGS): Likewise.
15675 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
15676 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
15677 (DEFSYMFILES): Add kernel_syms.lst.
15678 (kernel_img_HEADERS): Add common headers.
15679 (symlist.c): New target.
15680 (kernel_syms.lst): Likewise.
15681 (pkglib_MODULES): Add memdisk.mod.
15682 (memdisk_mod_SOURCES): New variable.
15683 (memdisk_mod_CFLAGS): Likewise.
15684 (memdisk_mod_LDFLAGS): Likewise.
15685 (pkglib_MODULES): Add reboot.mod.
15686 (reboot_mod_SOURCES): New variable.
15687 (reboot_mod_CFLAGS): Likewise.
15688 (reboot_mod_LDFLAGS): Likewise.
15689 (pkglib_MODULES): Add date.mod.
15690 (date_mod_SOURCES): New variable.
15691 (date_mod_CFLAGS): Likewise.
15692 (date_mod_LDFLAGS): Likewise.
15693 (pkglib_MODULES): Add datehook.mod.
15694 (datehook_mod_SOURCES): New variable.
15695 (datehook_mod_CFLAGS): Likewise.
15696 (datehook_mod_LDFLAGS): Likewise.
15697 (pkglib_MODULES): Add lsmmap.mod.
15698 (lsmmap_mod_SOURCES): New variable.
15699 (lsmmap_mod_CFLAGS): Likewise.
15700 (lsmmap_mod_LDFLAGS): Likewise.
15701 (pkglib_MODULES): Add boot.mod.
15702 (boot_mod_SOURCES): New variable.
15703 (boot_mod_CFLAGS): Likewise.
15704 (boot_mod_LDFLAGS): Likewise.
15705 * conf/i386-coreboot.rmk: Removed redundant parts.
15706 * conf/i386-ieee1275.rmk: Likewise.
15707 * conf/i386-pc.rmk: Likewise.
15708 * conf/mips-yeeloong.rmk: Likewise.
15709 * conf/mips.rmk: Likewise.
15710 * conf/powerpc-ieee1275.rmk: Likewise.
15711 * conf/sparc64-ieee1275.rmk: Likewise.
15712 * conf/x86_64-efi.rmk: Likewise.
15713 * conf/i386-coreboot.rmk: Moved qemu parts ..
15714 * conf/i386-qemu.rmk: ... here
15715 * conf/i386-efi.rmk: Moved common parts to...
15716 * conf/x86-efi.rmk: ... here.
15717 * conf/i386.rmk: Added modules common to all x86 variants.
15718 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
15719 * disk/memdisk.c: Remove grub/machine/kernel.h.
15720 * gensymlist.sh.in: Include symbol.h.
15721 * hook/datehook.c: Correct module name.
15722 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
15723 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
15724 * include/grub/i386/efi/serial.h: New file.
15725 * include/grub/x86_64/efi/serial.h: Likewise.
15726 * util/time.c: Likewise.
15727 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
15728
15729 2010-03-14 Colin King <colin.king@ubuntu.com>
15730 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
15731
15732 Shrink the pre-partition-table part of boot.img by eight bytes.
15733
15734 * boot/i386/pc/boot.S (ERR): New macro.
15735 (chs_mode): Use ERR.
15736 (geometry_error): Likewise.
15737 (hd_probe_error): Remove. This is only used once, so we wrwite
15738 it inline instead.
15739 (read_error): Instead of printing read_error_string, just set up
15740 %si and fall through to ...
15741 (error_message): ... this new function, also used by ERR.
15742
15743 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
15744
15745 Speed up consecutive hostdisk operations on the same device.
15746
15747 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
15748 (grub_util_biosdisk_open): Initialise disk->data.
15749 (struct linux_partition_cache): New structure.
15750 (linux_find_partition): Cache partition start positions; these are
15751 expensive to compute on every read and write.
15752 (open_device): Cache open file descriptor in disk->data, so that we
15753 don't have to reopen it and flush the buffer cache for consecutive
15754 operations on the same device.
15755 (grub_util_biosdisk_close): New function.
15756 (grub_util_biosdisk_dev): Set `close' member.
15757
15758 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
15759 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
15760 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
15761 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
15762 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
15763
15764 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
15765
15766 Compile parts of grub-emu as modules.
15767
15768 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
15769 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
15770 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
15771 (all-local): Add $(GRUB_EMU).
15772 (install-local): Install $(GRUB_EMU).
15773 (uninstall): Uninstall $(GRUB_EMU).
15774 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
15775 * kern/dl.c: Likewise.
15776 * commands/sleep.c: Not include machine/time.h.
15777 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
15778 (COMMON_CFLAGS): Likewise.
15779 (sbin_UTILITIES): Remove grub-emu.
15780 (grub_emu_SOURCES): Removed.
15781 (kernel_img_RELOCATABLE): New variable.
15782 (pkglib_PROGRAMS): Add kernel.img.
15783 (kernel_img_SOURCES): New variable
15784 (kernel_img_CFLAGS): Likewise.
15785 (kernel_img_LDFLAGS): Likewise.
15786 (TARGET_NO_STRIP): Likewise.
15787 (TARGET_NO_DYNAMIC_MODULES): Likewise.
15788 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
15789 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
15790 (grub-emu): New target.
15791 (GRUB_EMU): New variable.
15792 * configure.ac: Whitelist -emu as possible x86_64 architecture.
15793 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
15794 * loader/xnu.c: Likewise.
15795 * include/grub/pci.h: Likewise.
15796 * genemuinit.sh: New file.
15797 * genemuinitheader.sh: Likewise.
15798 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
15799 Support TARGET_NO_DYNAMIC_MODULES.
15800 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
15801 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
15802 * disk/loopback.c: Likewise.
15803 * font/font_cmd.c: Likewise.
15804 * partmap/acorn.c: Likewise.
15805 * partmap/amiga.c: Likewise.
15806 * partmap/apple.c: Likewise.
15807 * partmap/gpt.c: Likewise.
15808 * partmap/msdos.c: Likewise.
15809 * partmap/sun.c: Likewise.
15810 * parttool/msdospart.c: Likewise.
15811 * term/gfxterm.c: Likewise.
15812 * video/bitmap.c: Likewise.
15813 * video/readers/jpeg.c: Likewise.
15814 * video/readers/png.c: Likewise.
15815 * video/readers/tga.c: Likewise.
15816 * video/video.c: Likewise.
15817 * util/grub-emu.c (read_command_list): Removed.
15818 (main): Don't call util_init_nls.
15819 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
15820 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
15821
15822 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
15823
15824 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
15825 date.mod, datehook.mod.
15826 (datetime_mod_SOURCES): New variable.
15827 (datetime_mod_CFLAGS): Likewise.
15828 (datetime_mod_LDFLAGS): Likewise.
15829 (date_mod_SOURCES): Likewise.
15830 (date_mod_CFLAGS): Likewise.
15831 (date_mod_LDFLAGS): Likewise.
15832 (datehook_mod_SOURCES): Likewise.
15833 (datehook_mod_CFLAGS): Likewise.
15834 (datehook_mod_LDFLAGS): Likewise.
15835 * conf/sparc64-ieee1275.rmk: Likewise.
15836 * lib/ieee1275/datetime.c: New file.
15837
15838 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
15839
15840 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
15841 (ieee1275_fb_mod_SOURCES): New variable.
15842 (ieee1275_fb_mod_CFLAGS): Likewise.
15843 (ieee1275_fb_mod_LDFLAGS): Likewise.
15844 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
15845 New proto.
15846 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
15847 (HEAP_MAX_ADDR): Likewise.
15848 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
15849 type.
15850 Correct stop condition.
15851 (grub_ieee1275_devices_iterate): New function.
15852 * video/ieee1275.c: New file.
15853
15854 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
15855
15856 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
15857
15858 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
15859 as scratch.
15860 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
15861 SCRATCH_PAD_DISKBOOT as scratch.
15862 (bootit): Pass Openfirmware pointer in %o4.
15863 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
15864 of 0x200000.
15865 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
15866 with util/grub-mkrawimage.c.
15867 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
15868 * include/grub/aout.h (AOUT_MID_SUN): New definition.
15869 (grub_aout_get_type) [GRUB_UTIL]: Removed.
15870 (grub_aout_load) [GRUB_UTIL]: Likewise.
15871 * include/grub/kernel.h (grub_modules_get_end): New proto.
15872 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
15873 (SCRATCH_PAD_BOOT): New definition.
15874 (SCRATCH_PAD_DISKBOOT): Likewise.
15875 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
15876 * include/grub/sparc64/ieee1275/ieee1275.h
15877 (grub_ieee1275_original_stack): New variable
15878 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
15879 New definition
15880 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
15881 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
15882 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
15883 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
15884 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
15885 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
15886 (grub_platform_image_format_t): New type.
15887 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
15888 * kern/main.c (grub_modules_get_end)
15889 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
15890 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
15891 (codestart): Switch stacks.
15892 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
15893 variable.
15894 (grub_heap_init): Use grub_modules_get_end.
15895 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
15896 stack.
15897 * util/grub-mkrawimage.c (generate_image): Support sparc64.
15898 (main): Likewise.
15899 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
15900
15901 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
15902
15903 * util/grub-mkrescue.in: Base ISO UUID on UTC.
15904
15905 2010-03-08 Matt Kraai <kraai@ftbfs.org>
15906
15907 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
15908 bug #559005).
15909
15910 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
15911
15912 * genmoddep.awk: Output all missing symbols and not only first.
15913
15914 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
15915
15916 * NEWS: Put the date of 1.98 release.
15917
15918 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
15919
15920 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
15921 ft2build.h.
15922
15923 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
15924
15925 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
15926 completition in the middle of string.
15927
15928 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
15929
15930 * util/grub-mkrescue.in: Use mktemp with explicit template.
15931
15932 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
15933
15934 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
15935
15936 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
15937
15938 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
15939 right pointer.
15940
15941 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
15942
15943 Fix FreeBSD compilation.
15944
15945 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
15946 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
15947
15948 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
15949
15950 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
15951
15952 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
15953
15954 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
15955
15956 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
15957
15958 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
15959
15960 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
15961
15962 Support relative image path in theme file.
15963
15964 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
15965 (image_set_property): Handle theme_dir and relative path.
15966
15967 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
15968
15969 * configure.ac: Alias amd64 to x86_64.
15970
15971 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
15972
15973 * NEWS: mention multiboot on EFI.
15974
15975 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
15976
15977 * kern/main.c (grub_load_modules): Handle errors from init functions of
15978 embeded modules.
15979
15980 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
15981
15982 * normal/autofs.c (autoload_fs_module): Handle errors.
15983
15984 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
15985
15986 Disable linux.mod on qemu-mips since it's not functional and leads
15987 to compilation failure.
15988
15989 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
15990 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
15991 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
15992 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
15993 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
15994 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
15995 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
15996 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
15997 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
15998 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
15999 Reported by: BVK Chaitanya
16000
16001 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
16002
16003 * INSTALL: Add gettext as a dependency and add qemu to a new section
16004 "Prerequisites for make-check".
16005
16006 2010-03-04 Christian Franke <franke@computer.org>
16007
16008 * util/grub-pe2elf.c: Add missing include "progname.h".
16009
16010 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
16011
16012 * normal/crypto.c (read_crypto_list): Fix a typo.
16013 Reported by: Seth Goldberg.
16014
16015 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
16016
16017 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
16018 Reported by: Seth Goldberg.
16019
16020 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
16021
16022 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
16023 ascii.bitmaps.
16024
16025 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
16026
16027 * genmk.rb: Remove terminal*.lst in make clean.
16028 Reported by: Seth Goldberg.
16029
16030 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
16031
16032 * util/i386/efi/grub-install.in: Copy gettext files.
16033
16034 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
16035
16036 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
16037
16038 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
16039
16040 Wait for user entry basing on presence of output rather than on errors.
16041
16042 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
16043 (grub_install_newline_hook): Likewise.
16044 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
16045 * normal/menu.c (show_menu): Check line_counter to determine presence
16046 of output.
16047 * normal/term.c (grub_normal_line_counter): New variable.
16048 (grub_normal_get_line_counter): New function.
16049 (grub_install_newline_hook): Likewise.
16050
16051 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
16052
16053 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
16054
16055 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
16056
16057 * configure.ac: Update version to 1.98.
16058
16059 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
16060
16061 * util/grub.d/10_linux.in (linux_entry): Don't default to
16062 gfxpayload=keep if Linux doesn't support video handover.
16063
16064 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
16065
16066 Don't compile video modules on yeeloong since video subsystem is part
16067 of kernel.
16068
16069 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
16070 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
16071 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
16072 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
16073 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
16074 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
16075 * include/grub/bitmap_scale.h: Likewise.
16076 * include/grub/bufio.h: Likewise.
16077 * include/grub/font.h: Likewise.
16078 * include/grub/gfxterm.h: Likewise.
16079 * include/grub/video.h: Likewise.
16080 * include/grub/vbe.h: Don't include video_fb.h.
16081 * video/i386/pc/vbe.c: Include video_fb.h.
16082 * commands/i386/pc/vbetest.c: Include video.h.
16083
16084 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
16085
16086 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
16087 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
16088 default entry if GRUB_SAVEDEFAULT=true. This allows using
16089 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
16090 saving a new default on every boot.
16091
16092 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
16093
16094 * normal/crypto.c (read_crypto_list): Fix a memory leak.
16095 * normal/term.c (read_terminal_list): Likewise.
16096 * normal/main.c (grub_normal_init_page): Likewise.
16097 (grub_normal_read_line_real): Likewise.
16098
16099 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
16100
16101 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
16102 memory leak.
16103 Reported by: Seth Goldberg.
16104
16105 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
16106
16107 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
16108 duplicate declaration of `start'.
16109
16110 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
16111
16112 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
16113 filename.
16114 Reported by: Georgy Buranov
16115
16116 2010-02-20 Carles Pina i Estany <carles@pina.cat>
16117
16118 * util/grub-mkrawimage.c (usage): Change string formatting to
16119 improve gettext.
16120
16121 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
16122
16123 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
16124 backspace keys.
16125
16126 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
16127
16128 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
16129 Reported by: Michael Suchanek.
16130
16131 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
16132
16133 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
16134 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
16135
16136 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
16137
16138 Remove any reference to non-free fonts.
16139
16140 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
16141 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
16142 uses non-free components.
16143 * font/font.c (grub_font_get_name): Remove example name.
16144 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
16145 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
16146 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
16147 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
16148
16149 2010-02-16 Georgy Buranov <gburanov@gmail.com>
16150
16151 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
16152
16153 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
16154
16155 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
16156 Double divisor.
16157 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
16158 features.
16159 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
16160
16161 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
16162
16163 * gensymlist.sh.in: Use TARGET_CC instead of CC.
16164
16165 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
16166
16167 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
16168 * docs/grub.texi (Command-line and menu entry commands): Document play
16169 command.
16170
16171 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
16172
16173 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
16174 parse arguments as inline tempo and notes. Move code for playing notes
16175 to...
16176 (play): ... new function.
16177
16178 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
16179
16180 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
16181 grub_uint16_t instead of short.
16182 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
16183 disk from little endian to cpu endianness.
16184
16185 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
16186
16187 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
16188 GRUB_TICKS_PER_SECOND instead of 120.
16189
16190 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
16191
16192 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
16193 escape sequence after \e.
16194
16195 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
16196
16197 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
16198 non-ASCII characters.
16199
16200 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
16201
16202 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
16203 set root in single quotes to prevent \, from being unescaped.
16204
16205 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
16206
16207 Prevent unknown commands from stopping menuentry execution.
16208
16209 * script/execute.c (grub_script_execute_cmdline): Print error after
16210 unknown command.
16211
16212 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
16213
16214 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
16215 Reported by: Pavel Pisa.
16216
16217 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
16218
16219 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
16220
16221 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
16222
16223 Merge grub_ieee1275_map_physical into grub_map and rename to
16224 grub_ieee1275_map
16225
16226 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
16227 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
16228 Remove.
16229 * kern/ieee1275/openfw.c (grub_map): Rename to ...
16230 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
16231 necessary.
16232 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
16233
16234 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
16235
16236 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
16237 opening and not after.
16238
16239 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
16240
16241 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
16242 constants.
16243
16244 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
16245
16246 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
16247 (alloc_phys): Use ALIGN_UP instead of align_addr.
16248
16249 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
16250
16251 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
16252
16253 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
16254
16255 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
16256
16257 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
16258
16259 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
16260 verbose dprintf.
16261
16262 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
16263
16264 Fix over-4GiB seek on sparc64.
16265
16266 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
16267 Replace pos_i and pos_lo with pos. All users updated.
16268 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
16269 New constant.
16270 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
16271 Likewise.
16272 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
16273 and pos_lo.
16274
16275 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
16276
16277 * util/grub-mkrawimage.c (main): Call set_program_name.
16278
16279 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
16280
16281 Properly align 64-bit targets.
16282
16283 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
16284 (generate_image): Use ALIGN_ADDR.
16285
16286 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
16287
16288 Properly create cross-endian images.
16289
16290 * include/grub/types.h (grub_host_to_target_addr): New macro
16291 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
16292
16293 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
16294
16295 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
16296
16297 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
16298
16299 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
16300
16301 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
16302 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
16303 (grub_linux_boot): Divide by 64K when on VESA.
16304
16305 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
16306
16307 Support GRUB_GFXPAYLOAD_LINUX.
16308
16309 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
16310 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
16311
16312 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
16313
16314 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
16315 to show messages instead of discarding them.
16316 Process errors after executing command and not before. Keep old method
16317 too as precaution.
16318
16319 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
16320
16321 * configure.ac: Check for ft2build.h.
16322
16323 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
16324
16325 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
16326
16327 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
16328
16329 * genkernsyms.sh.in: Use TARGET_CC.
16330
16331 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
16332
16333 * NEWS: Update.
16334
16335 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
16336
16337 * include/grub/multiboot2.h: Remove leftover file.
16338 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
16339 * include/grub/partition.h [GRUB_UTIL]: Likewise.
16340
16341 2010-02-07 Yves Blusseau <blusseau@zetam.org>
16342
16343 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
16344
16345 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
16346
16347 Fix warnings in grub-emu when compiling with maximum warning options.
16348
16349 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
16350 (grub_arch_modules_addr): Return 0 and not NULL.
16351 * util/misc.c (ENABLE_RELOCATABLE): New definition.
16352 (xstrdup): Use newstr instead of dup.
16353 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
16354 of disk to dsk to avoid shadowing.
16355 (find_free_slot): Fix prototype.
16356 * util/getroot.c (grub_util_is_dmraid): Make static.
16357 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
16358 Add missing prototype.
16359 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
16360
16361 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
16362
16363 * loader/i386/linux.c (grub_linux_setup_video): Handle error
16364 appropriately.
16365
16366 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
16367
16368 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
16369 code out.
16370
16371 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
16372
16373 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
16374 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
16375 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
16376 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
16377 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
16378 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
16379
16380 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
16381
16382 * include/grub/err.h (grub_err_printf): Don't export.
16383
16384 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
16385
16386 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
16387
16388 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
16389
16390 * include/grub/i18n.h (grub_gettext_dummy): Removed.
16391 * kern/misc.c (grub_gettext_dummy): Make static.
16392
16393 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
16394
16395 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
16396 by non-valid ones.
16397 * kern/term.c (grub_putchar): Likewise.
16398
16399 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
16400
16401 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
16402 buggy hook call and memory leak.
16403
16404 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
16405
16406 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
16407
16408 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
16409
16410 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
16411
16412 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
16413
16414 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
16415 modevar.
16416 Return grub_errno on allocation error.
16417
16418 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
16419
16420 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
16421
16422 2010-02-06 Yves Blusseau <blusseau@zetam.org>
16423
16424 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
16425 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
16426
16427 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
16428
16429 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
16430 non-pxe disk.
16431 (grub_pxefs_open): Likewise.
16432
16433 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
16434
16435 * util/grub.d/10_hurd.in: Add --class information to menuentries.
16436 * util/grub.d/10_kfreebsd.in: Likewise.
16437 * util/grub.d/10_linux.in: Likewise.
16438
16439 2010-02-06 Colin D Bennett <colin@gibibit.com>
16440
16441 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
16442 (gfxmenu_mod_SOURCES): New variable.
16443 (gfxmenu_mod_CFLAGS): Likewise.
16444 (gfxmenu_mod_LDFLAGS): Likewise.
16445 * include/grub/term.h (grub_term_set_current_output): Declare
16446 argument as const.
16447 * docs/gfxmenu-theme-example.txt: New file.
16448 * gfxmenu/gfxmenu.c: Likewise.
16449 * gfxmenu/gui_box.c: Likewise.
16450 * gfxmenu/gui_canvas.c: Likewise.
16451 * gfxmenu/gui_circular_progress.c: Likewise.
16452 * gfxmenu/gui_image.c: Likewise.
16453 * gfxmenu/gui_label.c: Likewise.
16454 * gfxmenu/gui_list.c: Likewise.
16455 * gfxmenu/gui_progress_bar.c: Likewise.
16456 * gfxmenu/gui_string_util.c: Likewise.
16457 * gfxmenu/gui_util.c: Likewise.
16458 * gfxmenu/icon_manager.c: Likewise.
16459 * gfxmenu/model.c: Likewise.
16460 * gfxmenu/named_colors.c: Likewise.
16461 * gfxmenu/theme_loader.c: Likewise.
16462 * gfxmenu/view.c: Likewise.
16463 * gfxmenu/widget-box.c: Likewise.
16464 * include/grub/gfxmenu_model.h: Likewise.
16465 * include/grub/gfxmenu_view.h: Likewise.
16466 * include/grub/gfxwidgets.h: Likewise.
16467 * include/grub/gui.h: Likewise.
16468 * include/grub/gui_string_util.h: Likewise.
16469 * include/grub/icon_manager.h: Likewise.
16470
16471 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
16472
16473 Agglomerate scrolling in gfxterm.
16474
16475 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
16476 (grub_virtual_screen_setup): Initialise 'total_screen'.
16477 (write_char): Split to ...
16478 (paint_char): ... this ...
16479 (write_char): ... and this.
16480 (paint_char): Handle delayed scrolling.
16481 (draw_cursor): Likewise.
16482 (scroll_up): Split to ...
16483 (real_scroll): ... this ...
16484 (scroll_up): ... and this.
16485 (real_scroll): Handle multi-line scroll and draw below-the-bottom
16486 characters.
16487 (grub_gfxterm_refresh): Call real_scroll.
16488
16489 2010-02-06 Colin D Bennett <colin@gibibit.com>
16490
16491 * include/grub/misc.h (grub_iscntrl): New inline function.
16492 (grub_isalnum): Likewise.
16493 (grub_strtol): Likewise.
16494
16495 2010-02-06 Colin D Bennett <colin@gibibit.com>
16496
16497 * normal/menu_text.c (get_entry_number): Move from here ...
16498 * normal/menu.c (get_entry_number): ... moved here.
16499 * include/grub/menu.h (grub_menu_get_default_entry_index):
16500 New prototype.
16501 * normal/menu.c (grub_menu_get_default_entry_index): New function.
16502 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
16503 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
16504 (grub_menu_viewer_should_return): Likewise.
16505 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
16506 * normal/menu_text.c (run_menu): Enable menu switching.
16507 * normal/menu_viewer.c (should_return): New variable.
16508 (menu_viewer_changed): Likewise.
16509 (grub_menu_viewer_show_menu): Handle menu viewer changes.
16510 (grub_menu_viewer_should_return): New function.
16511 (menuviewer_write_hook): Likewise.
16512 (grub_menu_viewer_init): Likewise.
16513
16514 2010-02-06 Colin D Bennet <colin@gibibit.com>
16515 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
16516
16517 Support for gfxterm in a window.
16518
16519 * include/grub/gfxterm.h: New file.
16520 * include/grub/video.h (struct grub_video_rect): New declaration.
16521 (grub_video_rect_t): Likewise.
16522 * term/gfxterm.c (struct grub_gfxterm_window): New type.
16523 (refcount): New variable.
16524 (render_target): Likewise.
16525 (window): Likewise.
16526 (repaint_callback): Likewise.
16527 (grub_virtual_screen_setup): Use 'render_target'.
16528 (init_window): New function.
16529 (grub_gfxterm_init_window): Likewise.
16530 (grub_gfxterm_init): Check reference counter.
16531 Use init_window.
16532 (destroy_window): New function.
16533 (grub_gfxterm_destroy_window): Likewise.
16534 (grub_gfxterm_fini): Check reference counter.
16535 Use destroy_window.
16536 (redraw_screen_rect): Restore viewport.
16537 Use 'render_target' and 'window'.
16538 Call 'repaint_callback'.
16539 (write_char): Use 'render_target'.
16540 (draw_cursor): Likewise.
16541 (scroll_up): Restore viewport.
16542 Use 'render_target' and 'window'.
16543 Call 'repaint_callback'.
16544 (grub_gfxterm_cls): Likewise.
16545 (grub_gfxterm_refresh): Use 'window'.
16546 (grub_gfxterm_set_repaint_callback): New function.
16547 (grub_gfxterm_background_image_cmd): Use 'window'.
16548 (grub_gfxterm_get_term): New function.
16549 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
16550
16551 2010-02-06 Colin D Bennett <colin@gibibit.com>
16552
16553 Bitmap scaling support.
16554
16555 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
16556 (bitmap_scale_mod_SOURCES): New variable.
16557 (bitmap_scale_mod_CFLAGS): Likewise.
16558 (bitmap_scale_mod_LDFLAGS): Likewise.
16559 * include/grub/bitmap_scale.h: New file.
16560 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
16561 (background_image_cmd_options): New variable.
16562 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
16563 (cmd): Rename and change type to ...
16564 (background_image_cmd_handle): ... this. All users updated.
16565 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
16566 * video/bitmap_scale.c: New file.
16567
16568 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
16569
16570 SDL support.
16571
16572 * Makefile.in (LIBSDL): New variable.
16573 (enable_grub_emu_sdl): Likewise.
16574 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
16575 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
16576 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
16577 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
16578 * util/sdl.c: New file.
16579
16580 2010-02-06 Colin D Bennett <colin@gibibit.com>
16581 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
16582
16583 Double buffering support.
16584
16585 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
16586 * include/grub/video.h: Update comment.
16587 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
16588 New type.
16589 (grub_video_fb_doublebuf_blit_init): New prototype.
16590 * term/gfxterm.c (scroll_up): Support double buffering.
16591 (grub_gfxterm_refresh): Likewise.
16592 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
16593 (grub_video_fb_doublebuf_blit_init): Likewise.
16594 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
16595 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
16596 'displayed_page', 'render_page' and 'update_screen'.
16597 (grub_video_vbe_fini): Free offscreen buffer.
16598 (doublebuf_pageflipping_commit): New function.
16599 (doublebuf_pageflipping_update_screen): Likewise.
16600 (doublebuf_pageflipping_init): Likewise.
16601 (double_buffering_init): Likewise.
16602 (grub_video_vbe_setup): Enable doublebuffering.
16603 (grub_video_vbe_swap_buffers): Implement.
16604 (grub_video_vbe_set_active_render_target): Handle double buffering.
16605 (grub_video_vbe_get_active_render_target): Likewise.
16606 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
16607 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
16608 (grub_video_vbe_enable_double_buffering): Likewise.
16609 (grub_video_vbe_swap_buffers): Use update_screen.
16610 (grub_video_set_mode): Use double buffering.
16611
16612 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
16613
16614 * maintainance/gentrigtables.py: Remove.
16615 * lib/trig.c: Likewise.
16616
16617 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
16618
16619 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
16620 `trigtables.c'.
16621 (trigtables.c): New rule.
16622 (gentrigtables): Likewise.
16623 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
16624
16625 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
16626
16627 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
16628 integer constants.
16629
16630 2010-02-06 Colin D Bennet <colin@gibibit.com>
16631
16632 Trigonometry support.
16633
16634 * include/grub/trig.h: New file.
16635 * lib/trig.c: Likewise.
16636 * maintainance/gentrigtables.py: Likewise.
16637 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
16638 (trig_mod_SOURCES): New variable.
16639 (trig_mod_CFLAGS): Likewise.
16640 (trig_mod_LDFLAGS): Likewise.
16641
16642 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
16643
16644 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
16645 disk devices.
16646
16647 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
16648
16649 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
16650 error.
16651
16652 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
16653
16654 * util/hostdisk.c (open_device): Don't use partition device when reading
16655 before the partition.
16656 (grub_util_biosdisk_read): Don't read from partition and before the
16657 partition in single operation.
16658 (grub_util_biosdisk_write): Don't write to partition and before the
16659 partition in single operation.
16660
16661 2010-02-03 Torsten Landschoff <torsten@debian.org>
16662
16663 * kern/disk.c (grub_disk_read): Fix offset computation when reading
16664 last sectors.
16665
16666 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
16667
16668 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
16669 CDROM reads.
16670 (grub_biosdisk_write): Refuse to write to CDROM.
16671
16672 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
16673
16674 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
16675
16676 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
16677
16678 * font/font.c (find_glyph): Check that bmp_idx is available before
16679 using it.
16680 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
16681 with (font == NULL).
16682
16683 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
16684
16685 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
16686
16687 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
16688
16689 * include/grub/script_sh.h (sourcecode): Add const qualifier.
16690 * util/grub-script-check.c (getline): Fix empty lines case.
16691
16692 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
16693
16694 * Makefile.in (check): Exit with fail status when one of the tests
16695 fails.
16696 * tests/example_functional_test.c (example_test): Fix reversed assert.
16697 * tests/example_unit_test.c (example_test): Likewise.
16698
16699 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
16700
16701 * util/grub.d/10_linux.in: This script does not use any of the
16702 contents of gettext.sh, only the external command `gettext', so stop
16703 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
16704 the same prefix as GRUB.)
16705 * util/grub.d/10_kfreebsd.in: Likewise.
16706
16707 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
16708
16709 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
16710 of the line.
16711
16712 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
16713
16714 * kern/disk.c (grub_disk_read): Fix offset computation when reading
16715 last sectors.
16716
16717 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
16718
16719 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
16720 having a 4KiB and not 32KiB buffer size.
16721
16722 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
16723
16724 * util/hostfs.c: Include `<errno.h>'.
16725 (grub_hostfs_read): Handle errors from fseeko() and fread().
16726
16727 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
16728
16729 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
16730 loop when using read hooks on files whose size isn't sector-aligned.
16731
16732 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
16733
16734 Remove unused parameter.
16735
16736 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
16737 (grub_iso9660_open): Remove initialization of `data->length'.
16738
16739 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
16740
16741 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
16742 memleak conditions.
16743
16744 2010-01-27 Carles Pina i Estany <carles@pina.cat>
16745
16746 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
16747 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
16748
16749 2010-01-26 Carles Pina i Estany <carles@pina.cat>
16750
16751 * util/bin2h.c (usage): Fix warning (space after backslash).
16752
16753 2010-01-26 Carles Pina i Estany <carles@pina.cat>
16754
16755 * font/font.c: Include `grub/fontformat.h.
16756 Remove font file format constants.
16757 (grub_font_load): Use the new macros.
16758 * include/grub/fontformat.h: New file.
16759 * util/grub-mkfont.c: Include `grub/fontformat.c'.
16760 (write_font_pf2): Use the new macros.
16761
16762 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
16763
16764 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
16765 does.
16766
16767 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
16768
16769 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
16770
16771 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
16772 (_start): Macroify `0x7F'.
16773
16774 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
16775 (make_install_device): Use "(pxe)" as fallback prefix when booting
16776 via PXE.
16777
16778 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
16779
16780 * configure.ac: Reset LIBS after check for libgcc symbols.
16781
16782 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
16783
16784 * util/hostdisk.c (open_device): Add trailing newline to debug
16785 message.
16786
16787 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
16788
16789 * configure.ac: Check for `limits.h'.
16790 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
16791
16792 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
16793
16794 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
16795 capitalize error strings.
16796
16797 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
16798
16799 * util/grub.d/10_hurd.in: Add a recovery mode.
16800
16801 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
16802
16803 * configure.ac: Check for libgcc symbols with -nostdlib.
16804
16805 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
16806
16807 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
16808
16809 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
16810
16811 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
16812 stack since heap may be unavailable at that point.
16813 (grub_ofconsole_gotoxy): Likewise.
16814
16815 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
16816
16817 * configure.ac: Check for _restgpr_14_x.
16818 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
16819 and _savegpr_* prototypes.
16820
16821 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
16822
16823 Use generic grub_reboot() for i386-efi.
16824
16825 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
16826 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
16827 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
16828
16829 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
16830
16831 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
16832 presence of "prefix" variable as it breaks when normal.mod is
16833 embedded.
16834
16835 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
16836
16837 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
16838 stack since heap is unavailable at that point.
16839
16840 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
16841
16842 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
16843 (grub_freebsd_bootinfo): Rewritten.
16844 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
16845
16846 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
16847
16848 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
16849
16850 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
16851
16852 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
16853 domain now.
16854
16855 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
16856
16857 * util/misc.c (make_system_path_relative_to_its_root): Change the work
16858 around for handling "/" to the correct fix. Fix a memory leak. Use
16859 xstrdup instead of strdup.
16860
16861 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16862
16863 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
16864
16865 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16866
16867 Optimise glyph lookup by Basic Multilingual Plane lookup array.
16868
16869 * font/font.c (struct grub_font): New member 'bmp_idx'.
16870 (font_init): Initialise 'bmp_idx'.
16871 (load_font_index): Fill 'bmp_idx'.
16872 (find_glyph): Make inline. Use bmp_idx for BMP characters.
16873
16874 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16875
16876 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
16877 unnecessary calls.
16878
16879 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16880
16881 Move context handling out of the kernel.
16882
16883 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
16884 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
16885 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
16886 * conf/i386-efi.rmk: Likewise.
16887 * conf/i386-ieee1275.rmk: Likewise.
16888 * conf/i386-pc.rmk: Likewise.
16889 * conf/powerpc-ieee1275.rmk: Likewise.
16890 * conf/sparc64-ieee1275.rmk: Likewise.
16891 * conf/x86_64-efi.rmk: Likewise.
16892 * include/grub/env.h: Include grub/menu.h.
16893 (grub_env_var_type): Removed.
16894 (grub_env_var): Replaced field 'type' with 'global'.
16895 (grub_env_find): New prototype.
16896 (grub_env_context_open): Remove EXPORT_FUNC.
16897 (grub_env_context_close): Likewise.
16898 (grub_env_export): Likewise.
16899 (grub_env_set_data_slot): Removed.
16900 (grub_env_get_data_slot): Likewise.
16901 (grub_env_unset_data_slot): Likewise.
16902 (grub_env_unset_menu): New prototype.
16903 (grub_env_set_menu): Likewise.
16904 (grub_env_get_menu): Likewise.
16905 * include/grub/env_private.h: New file.
16906 * include/grub/normal.h (grub_context_init): New prototype.
16907 (grub_context_fini): Likewise.
16908 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
16909 * normal/context.c (grub_cmd_export): ... to here.
16910 * kern/env.c: Include env_private.h.
16911 (HASHSZ): Moved to include/grub/env_private.h.
16912 (grub_env_context): Likewise.
16913 (grub_env_sorted_var): Likewise.
16914 (current_context): Renamed from this ...
16915 (grub_current_context): ...to this. 'static' removed. All users updated.
16916 (grub_env_find): Removed 'static'.
16917 (grub_env_context_open): Moved to normal/context.c.
16918 (grub_env_context_close): Likewise.
16919 (grub_env_export): Likewise.
16920 (mangle_data_slot_name): Removed.
16921 (grub_env_set_data_slot): Likewise.
16922 (grub_env_get_data_slot): Likewise.
16923 (grub_env_unset_data_slot): Likewise.
16924 * kern/main.c (grub_set_root_dev): Don't export root.
16925 It will be done later.
16926 (grub_main): Don't export prefix.
16927 It will be done later.
16928 * normal/context.c: New file.
16929 * normal/main.c (free_menu): Use grub_env_unset_menu.
16930 (grub_normal_add_menu_entry): Use grub_env_get_menu.
16931 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
16932 (GRUB_MOD_INIT(normal)): Call grub_context_init.
16933 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
16934
16935 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16936
16937 setpci support.
16938
16939 * commands/setpci.c: New file.
16940 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
16941 (setpci_mod_SOURCES): New variable.
16942 (setpci_mod_CFLAGS): Likewise.
16943 (setpci_mod_LDFLAGS): Likewise.
16944
16945 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16946
16947 Byte-addressable PCI configuration space.
16948
16949 * bus/pci.c (grub_pci_make_address): Use byte address instead of
16950 dword address.
16951 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
16952 GRUB_PCI_REG_CACHELINE.
16953 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
16954 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
16955 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
16956 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
16957 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
16958 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
16959 grub_pci_make_address.
16960 (lock_rom_area): Likewise.
16961 * commands/lspci.c (grub_lspci_iter): Use macroses
16962 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
16963 of grub_pci_make_address.
16964 * disk/ata.c (grub_ata_pciinit): Likewise.
16965 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
16966 (GRUB_PCI_REG_VENDOR): Likewise.
16967 (GRUB_PCI_REG_DEVICE): Likewise.
16968 (GRUB_PCI_REG_COMMAND): Likewise.
16969 (GRUB_PCI_REG_STATUS): Likewise.
16970 (GRUB_PCI_REG_REVISION): Likewise.
16971 (GRUB_PCI_REG_CLASS): Likewise.
16972 (GRUB_PCI_REG_CACHELINE): Likewise.
16973 (GRUB_PCI_REG_LAT_TIMER): Likewise.
16974 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
16975 (GRUB_PCI_REG_BIST): Likewise.
16976 (GRUB_PCI_REG_ADDRESSES): Likewise.
16977 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
16978 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
16979 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
16980 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
16981 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
16982 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
16983 (GRUB_PCI_REG_CIS_POINTER): Likewise.
16984 (GRUB_PCI_REG_SUBVENDOR): Likewise.
16985 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
16986 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
16987 (GRUB_PCI_REG_CAP_POINTER): Likewise.
16988 (GRUB_PCI_REG_IRQ_LINE): Likewise.
16989 (GRUB_PCI_REG_IRQ_PIN): Likewise.
16990 (GRUB_PCI_REG_MIN_GNT): Likewise.
16991 (GRUB_PCI_REG_MAX_LAT): Likewise.
16992 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
16993 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
16994 * video/efi_uga.c (find_framebuf): Likewise.
16995 * video/sm712.c (grub_video_sm712_setup): Likewise.
16996 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
16997 space.
16998
16999 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
17000
17001 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
17002 can be reliably determined to be supported.
17003
17004 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
17005
17006 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
17007 that VESA is supported.
17008 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
17009 supported.
17010
17011 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
17012
17013 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
17014
17015 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
17016
17017 * util/misc.c (make_system_path_relative_to_its_root): Work around
17018 special-casing of "/", as previous incarnation of this routine did.
17019
17020 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
17021
17022 Fix any-emu compilation.
17023
17024 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
17025 * grub_bin2h_SOURCES: New variable.
17026
17027 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
17028
17029 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
17030
17031 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
17032
17033 * util/grub.d/00_header.in: Fix handling of locale_dir.
17034
17035 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
17036
17037 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
17038 as possible unifont location (Gentoo).
17039 Reported by: Alexander Brüning
17040
17041 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
17042
17043 Don't try to generate lists for kernel.img.
17044
17045 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
17046 (pkglib_MODULES): Remove kernel.img.
17047 (kernel_img_EXPORTS): Removed.
17048 (kernel_img_RELOCATABLE): New variable.
17049 * conf/x86_64-efi.rmk: Likewise.
17050 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
17051
17052 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
17053
17054 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
17055 grub_xasprintf or grub_snprintf.
17056 (grub_vsprintf): Likewise.
17057 (grub_snprintf): New proto.
17058 (grub_vsnprintf): Likewise.
17059 (grub_xasprintf): Likewise.
17060 (grub_xvasprintf): Likewise.
17061 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
17062 (grub_sprintf): Removed.
17063 (grub_vsnprintf): New function.
17064 (grub_snprintf): Likewise.
17065 (grub_xvasprintf): Likewise.
17066 (grub_xasprintf): Likewise.
17067 (grub_vsprintf): Renamed to ...
17068 (grub_vsnprintf_real): ...this. New argument max_len.
17069
17070 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
17071
17072 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
17073 fix grub-script-check warning.
17074
17075 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
17076
17077 * include/grub/font.h (grub_font_load): Fix prototype.
17078
17079 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
17080
17081 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
17082
17083 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
17084
17085 * include/grub/x86_64/at_keyboard.h: New file.
17086
17087 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
17088
17089 * loader/mips/linux.c: Include missing grub/i18n.h.
17090
17091 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
17092
17093 * normal/menu.c (notify_execution_failure): Clarify error message.
17094
17095 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
17096
17097 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
17098 return value (and revert all return statements). Update users.
17099
17100 2010-01-20 Dan Merillat <debian@dan.merillat.org>
17101
17102 * kern/device.c (grub_device_iterate): Allocate new part_ent
17103 structure based on sizeof (*p) rather than sizeof (p->next), to
17104 account for structure padding.
17105
17106 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
17107 disk is NULL, which might happen for LVM physical volumes with no
17108 LVM signature.
17109
17110 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
17111
17112 * loader/mips/linux.c (grub_cmd_initrd)
17113 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
17114
17115 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
17116
17117 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
17118 (grub_video_video_init, grub_video_bitmap_init)
17119 (grub_font_manager_init, grub_term_gfxterm_init)
17120 (grub_at_keyboard_init): New extern declarations.
17121 (grub_machine_init): Initialize gfxterm and at_keyboard.
17122
17123 * kern/main.c (grub_main): Revert grub_printf delay kludge.
17124
17125 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
17126 `gfxterm.mod' into core image.
17127
17128 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
17129 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
17130 (kernel_img_FORMAT): Copy to ...
17131
17132 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
17133 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
17134 (kernel_img_FORMAT): ... here, and ...
17135
17136 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
17137 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
17138 (kernel_img_FORMAT): ... here.
17139
17140 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
17141 and input (at_keyboard) terminals in kernel.
17142 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
17143
17144 (pkglib_MODULES): Remove `pci.mod'.
17145 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
17146 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
17147 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
17148 (at_keyboard_mod_LDFLAGS): Remove variables.
17149
17150 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
17151
17152 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
17153
17154 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
17155
17156 * include/grub/mips/libgcc.h: Only export symbols for functions
17157 that libgcc provides.
17158
17159 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
17160
17161 MIPS support.
17162
17163 * bus/bonito.c: New file.
17164 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
17165 GRUB_PCI_NUM_DEVICES.
17166 * term/i386/pc/serial.c: Move to ...
17167 * term/serial.c: ... here. All users updated.
17168 * util/i386/pc/grub-mkimage.c: Move to ...
17169 * util/grub-mkrawimage.c: ... here. All users updated.
17170 * term/i386/pc/at_keyboard.c: Move to ...
17171 * term/at_keyboard.c: ... here. All users updated.
17172 * conf/mips-qemu-mips.rmk: New file.
17173 * conf/mips-yeeloong.rmk: Likewise.
17174 * conf/mips.rmk: Likewise.
17175 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
17176 mipsel-qemu-mips.
17177 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
17178 to port addresses.
17179 (grub_ata_pciinit): Support CS5536.
17180 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
17181 * font/font_cmd.c (loadfont_command): Open file before passing it to
17182 grub_font_load.
17183 (pseudo_file_read): New function.
17184 (pseudo_file_close): Likewise.
17185 (pseudo_fs): New structure.
17186 (load_font_module): New function.
17187 (GRUB_MOD_INIT(font_manager)): Load embedded font.
17188 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
17189 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
17190 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
17191 * include/grub/i386/at_keyboard.h: Split into ...
17192 * include/grub/at_keyboard.h: ... this ...
17193 * include/grub/i386/at_keyboard.h: ... and this.
17194 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
17195 New prototype.
17196 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
17197 updated.
17198 (grub_elf64_size): Likewise.
17199 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
17200 filename.
17201 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
17202 * include/grub/i386/coreboot/serial.h: Rewritten.
17203 * include/grub/i386/ieee1275/serial.h: Include
17204 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
17205 * include/grub/i386/pc/serial.h: Moved from here ...
17206 * include/grub/serial.h: ... to here. All users updated.
17207 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
17208 (GRUB_PCI_NUM_BUS): Likewise.
17209 (GRUB_PCI_NUM_DEVICES): Likewise.
17210 (grub_pci_device_map_range): Add missing volatile keyword.
17211 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
17212 * include/grub/mips/at_keyboard.h: New file.
17213 * include/grub/mips/cache.h: Likewise.
17214 * include/grub/mips/io.h: Likewise.
17215 * include/grub/mips/kernel.h: Likewise.
17216 * include/grub/mips/libgcc.h: Likewise.
17217 * include/grub/mips/pci.h: Likewise.
17218 * include/grub/mips/qemu-mips/boot.h: Likewise.
17219 * include/grub/mips/qemu-mips/kernel.h: Likewise.
17220 * include/grub/mips/qemu-mips/loader.h: Likewise.
17221 * include/grub/mips/qemu-mips/memory.h: Likewise.
17222 * include/grub/mips/qemu-mips/serial.h: Likewise.
17223 * include/grub/mips/qemu-mips/time.h: Likewise.
17224 * include/grub/mips/relocator.h: Likewise.
17225 * include/grub/mips/time.h: Likewise.
17226 * include/grub/mips/types.h: Likewise.
17227 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
17228 * include/grub/mips/yeeloong/boot.h: Likewise.
17229 * include/grub/mips/yeeloong/kernel.h: Likewise.
17230 * include/grub/mips/yeeloong/loader.h: Likewise.
17231 * include/grub/mips/yeeloong/memory.h: Likewise.
17232 * include/grub/mips/yeeloong/pci.h: Likewise.
17233 * include/grub/mips/yeeloong/serial.h: Likewise.
17234 * include/grub/mips/yeeloong/time.h: Likewise.
17235 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
17236 * kern/elf.c (grub_elf32_size): New parameter. All users
17237 updated.
17238 (grub_elf64_size): Likewise.
17239 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
17240 Load modules before saying "Welcome to GRUB!".
17241 Call grub_refresh after saying "Welcome to GRUB!".
17242 * kern/mips/cache.S: New file.
17243 * kern/mips/cache_flush.S: Likewise.
17244 * kern/mips/dl.c: Likewise.
17245 * kern/mips/init.c: Likewise.
17246 * kern/mips/qemu-mips/init.c: Likewise.
17247 * kern/mips/startup.S: Likewise.
17248 * kern/mips/yeeloong/init.c: Likewise.
17249 * kern/term.c (grub_putcode): Handle NULL terminal.
17250 (grub_getcharwidth): Likewise.
17251 (grub_getkey): Likewise.
17252 (grub_checkkey): Likewise.
17253 (grub_getkeystatus): Likewise.
17254 (grub_getxy): Likewise.
17255 (grub_getwh): Likewise.
17256 (grub_gotoxy): Likewise.
17257 (grub_cls): Likewise.
17258 (grub_setcolorstate): Likewise.
17259 (grub_setcolor): Likewise.
17260 (grub_getcolor): Likewise.
17261 (grub_refresh): Likewise.
17262 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
17263 (write_jump): Add hatch nop.
17264 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
17265 * lib/mips/setjmp.S: New file.
17266 * loader/mips/linux.c: Likewise.
17267 * term/i386/pc/at_keyboard.c: Move from here ...
17268 * term/at_keyboard.c: ... to here.
17269 * term/i386/pc/serial.c: Moved from here ...
17270 * term/serial.c: ... to here. All users updated.
17271 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
17272 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
17273 (serial_translate_key_sequence): Avoid deadlock.
17274 (grub_serial_getkey): Handle backspace.
17275 (grub_serial_putchar): Fix newline handling.
17276 * util/i386/pc/grub-mkimage.c: Move from here ...
17277 * util/grub-mkrawimage.c: ... to here. All users updated.
17278 (generate_image): New parameters 'font_path' and 'format'.
17279 Support embedding font.
17280 Use grub_host_to_target* instead of grub_cpu_to_le*.
17281 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
17282 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
17283 (options): New option "--font".
17284 (usage): Likewise.
17285 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
17286 (main): Handle "--font".
17287 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
17288 (grub_virtual_screen_setup): Set bg_color_display.
17289 (redraw_screen_rect): Use bg_color_display instead of incorrect
17290 bg_color.
17291 (grub_gfxterm_cls): Likewise.
17292 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
17293 Support embedding config file.
17294 (add_segments): Likewise.
17295 (options): New option "--config".
17296 (main): Handle "--config".
17297 * video/sm712.c: New file.
17298
17299 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
17300
17301 Fix parallel builds.
17302
17303 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
17304 font.c depend on ascii.h).
17305
17306 2010-01-12 Carles Pina i Estany <carles@pina.cat>
17307
17308 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
17309
17310 2010-01-11 Carles Pina i Estany <carles@pina.cat>
17311
17312 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
17313 By default: disabled.
17314 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
17315 parameter.
17316
17317 2010-01-10 Carles Pina i Estany <carles@pina.cat>
17318
17319 * font/font.c: Update copyright years.
17320 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
17321
17322 2010-01-10 Carles Pina i Estany <carles@pina.cat>
17323
17324 * font/font.c: Include `ascii.h'.
17325 (ASCII_BITMAP_SIZE): New macro.
17326 (ascii_font_glyph): Define.
17327 (ascii_glyph_lookup): New function.
17328 (grub_font_get_string_width): Change comment. If glyph not found, use
17329 ascii_glyph_lookup.
17330 (grub_font_get_glyph_with_fallback): If glyph not available returns
17331 ascii_glyph_lookup.
17332 * util/grub-mkfont.c (file_formats): New enum.
17333 (options): Add `ascii-bitmaps' new option.
17334 (usage): Add `asii-bitmaps' new option.
17335 (write_font_ascii_bitmap): New function.
17336 (write_font): Rename to ...
17337 (write_font_p2): ... this. Remove print_glyphs call.
17338 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
17339 used. Call print_glyphs.
17340 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
17341
17342 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
17343
17344 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
17345 (grub_bin2h_SOURCES): New variable.
17346 * util/bin2h.c: New file.
17347
17348 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
17349
17350 * include/multiboot.h: Resynced with spec.
17351 * include/multiboot2.h: Likewise.
17352 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
17353 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
17354
17355 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
17356
17357 * include/grub/term.h (grub_term_register_input,
17358 grub_term_register_output): Check return of terminal init()
17359 routines, and abort if errors are raised.
17360
17361 * commands/terminal.c: Update copyright year.
17362
17363 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
17364
17365 * commands/terminal.c (grub_cmd_terminal_input)
17366 (grub_cmd_terminal_output): Check return of terminal init()
17367 routines, and abort if errors are raised.
17368
17369 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
17370
17371 * include/grub/i386/bsd.h: Fix include pathes.
17372
17373 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
17374
17375 Add missing *BSD copyright headers.
17376
17377 * include/grub/aout.h: Add BSD licence.
17378 * include/grub/i386/bsd.h: Parts under different licences moved to ...
17379 * include/grub/i386/freebsd_linker.h: ... here,
17380 * include/grub/i386/freebsd_reboot.h: ... here,
17381 * include/grub/i386/netbsd_bootinfo.h: ... here,
17382 * include/grub/i386/netbsd_reboot.h: ... here,
17383 * include/grub/i386/openbsd_bootarg.h: ... here,
17384 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
17385 licence to each file.
17386
17387 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
17388
17389 * acinclude.m4: Remove `nop' assembly instruction; it's not
17390 implemented by all architectures.
17391
17392 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
17393
17394 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
17395 ELILO. This is no longer necessary.
17396
17397 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
17398
17399 Added new tool, grub-scrit-check to verify grub.cfg syntax.
17400
17401 * util/grub-script-check.c: grub-script-check tool.
17402 * conf/common.rmk: Make rules for grub-script-check.
17403
17404 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
17405
17406 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
17407 spotting it back in 2008. Shame on me for forgetting he did.
17408
17409 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
17410
17411 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
17412
17413 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
17414 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
17415 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
17416 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
17417 (GRUB_VIDEO_TYPE_EFI): Rename to ...
17418 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
17419
17420 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
17421
17422 * include/grub/test.h: Add license header.
17423 * tests/example_functional_test.c: Likewise.
17424 * tests/example_unit_test.c: Likewise.
17425 * tests/lib/functional_test.c: Likewise.
17426 * tests/lib/test.c: Likewise.
17427 * tests/lib/unit_test.c: Likewise.
17428
17429 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
17430
17431 Use flag-based instead of hook-based video mode selection and "auto"
17432 keyword.
17433
17434 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
17435 (grub_video_set_mode): Changed prototype. All users updated.
17436 (grub_video_check_mode_flag): New inline function.
17437 * video/video.c (parse_modespec): New function.
17438 (grub_video_set_mode): Parse flags and keywords.
17439
17440 2010-01-17 Carles Pina i Estany <carles@pina.cat>
17441
17442 * util/misc.c (grub_util_info): Fix the order of the parameters in a
17443 fprintf call.
17444
17445 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
17446
17447 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
17448
17449 2010-01-16 Carles Pina i Estany <carles@pina.cat>
17450
17451 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
17452 string.
17453 * util/grub-emu.c (usage): Likewise.
17454 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
17455 * util/i386/efi/grub-mkimage.c (usage): Likewise.
17456 * util/i386/pc/grub-mkimage.c (usage): Likewise.
17457 * util/i386/pc/grub-setup.c (usage): Likewise.
17458
17459 2010-01-16 Carles Pina i Estany <carles@pina.cat>
17460
17461 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
17462 the message.
17463 (grub_util_info): Likewise.
17464 (grub_util_error): Likewise.
17465 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
17466 and/or new lines in `grub_util_warna', `grub_util_info',
17467 `grub_util_error' calls.
17468 * util/getroot.c: Likewise.
17469 * util/grub-editenv.c: Likewise.
17470 * util/grub-emu.c: Likewise.
17471 * util/grub-fstest.c: Likewise.
17472 * util/grub-mkdevicemap.c: Likewise.
17473 * util/grub-mkfont.c: Likewise.
17474 * util/grub-mkpasswd-pbkdf2.c: Likewise.
17475 * util/grub-mkrelpath.c: Likewise.
17476 * util/grub-pe2elf.c: Likewise.
17477 * util/grub-probe.c: Likewise.
17478 * util/hostdisk.c: Likewise.
17479 * util/i386/efi/grub-mkimage.c: Likewise.
17480 * util/i386/pc/grub-mkimage.c: Likewise.
17481 * util/i386/pc/grub-setup.c: Likewise.
17482 * util/ieee1275/ofpath.c: Likewise.
17483 * util/mkisofs/eltorito.c: Likewise.
17484 * util/mkisofs/rock.c: Likewise.
17485 * util/mkisofs/write.c: Likewise.
17486 * util/raid.c: Likewise.
17487 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
17488 * util/sparc64/ieee1275/grub-setup.c: Likewise.
17489
17490 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
17491
17492 Enable multiboot on non-pc.
17493
17494 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
17495 multiboot.mod and multiboot2.mod to ...
17496 * conf/i386.rmk (pkglib_MODULES): ... here.
17497 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
17498 Moved to ...
17499 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
17500 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
17501 Moved to ...
17502 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
17503 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
17504 Moved to ...
17505 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
17506 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
17507 Moved to ...
17508 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
17509 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
17510 relocator.mod.
17511 (ata_mod_SOURCES): Removed.
17512 (ata_mod_CFLAGS): Likewise.
17513 (ata_mod_LDFLAGS): Likewise.
17514 (relocator_mod_SOURCES): Removed.
17515 (relocator_mod_CFLAGS): Likewise.
17516 (relocator_mod_ASFLAGS): Likewise.
17517 (relocator_mod_LDFLAGS): Likewise.
17518 Include i386.mk.
17519 * include/grub/x86_64/multiboot.h: New file.
17520 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
17521 Terminate EFI.
17522
17523 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
17524
17525 Video multiboot support.
17526
17527 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
17528 New prototype.
17529 * include/multiboot.h: Resynced with multiboot specification.
17530 * include/multiboot2.h: Likewise.
17531 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
17532 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
17533 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
17534 (HAS_VGA_TEXT): Likewise.
17535 (accepts_video): New variable.
17536 (grub_multiboot_set_accepts_video): New function.
17537 (grub_multiboot_get_mbi_size): Account for video structures.
17538 (set_video_mode): New function.
17539 (retrieve_video_parameters): Likewise.
17540 (grub_multiboot_make_mbi): Fill video fields.
17541
17542 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
17543
17544 Video driver ids.
17545
17546 * include/grub/video.h (grub_video_driver_id): New type.
17547 (grub_video_adapter): New member 'id'. All users updated.
17548 (grub_video_get_driver_id): New proto.
17549 * video/video.c (grub_video_get_driver_id): New function.
17550
17551 2010-01-14 Carles Pina i Estany <carles@pina.cat>
17552
17553 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
17554 `var=val'.
17555
17556 2010-01-14 Carles Pina i Estany <carles@pina.cat>
17557
17558 * normal/cmdline.c (print_completion): Gettextizze.
17559
17560 2001-01-14 Carles Pina i Estany <carles@pina.cat>
17561
17562 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
17563
17564 2010-01-14 Carles Pina i Estany <carles@pina.cat>
17565
17566 * gettext/gettext.c (grub_gettext_translate): Push and pop
17567 grub_errno.
17568 (grub_gettext_delete_list): Change comment style.
17569 * kern/err.c (grub_error): Gettextizze.
17570 (grub_fatal): Gettextizze.
17571
17572 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
17573
17574 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
17575 (grub_linux16_real_boot): ... this.
17576 * kern/i386/loader.S: Likewise.
17577 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
17578 (grub_linux16_boot): New function. Switches to text mode and calls
17579 grub_linux16_real_boot().
17580
17581 * loader/i386/bsd.c: Include `<grub/video.h>'.
17582 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
17583 text mode before calling grub_unix_real_boot().
17584
17585 * loader/i386/multiboot.c: Include `<grub/video.h>'.
17586 (grub_multiboot_boot): Switch to text mode before calling
17587 grub_relocator32_boot().
17588
17589 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
17590 (grub_chainloader_boot): Switch to text mode before calling
17591 grub_chainloader_real_boot().
17592
17593 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
17594 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
17595
17596 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
17597 non-empty value.
17598
17599 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
17600 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
17601
17602 * util/grub.d/00_header.in: Define a "savedefault" function for use
17603 in menu entries.
17604 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
17605
17606 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
17607 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
17608
17609 * util/grub-mkconfig_lib.in (save_default_entry): Only set
17610 saved_entry if boot_once is unset.
17611 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
17612 previous saved entry (i.e. grub-reboot).
17613
17614 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
17615
17616 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
17617
17618 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
17619
17620 * util/grub.d/00_header.in: Use `set var=val' rather than plain
17621 `var=val'.
17622 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
17623
17624 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
17625
17626 * util/grub-reboot.in: Fix --version output.
17627 * util/grub-set-default.in: Likewise.
17628
17629 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
17630
17631 * util/grub.d/00_header.in: Silently ignore zero-sized environment
17632 blocks.
17633
17634 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
17635
17636 * util/grub.d/00_header.in: Quote the value assigned to `default',
17637 in case it contains spaces.
17638
17639 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
17640
17641 * util/grub.d/30_os-prober.in: Fix merge error that moved a
17642 `save_default_entry' call from the macosx case to the linux case.
17643
17644 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17645 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
17646
17647 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
17648 in `chosen' environment variable.
17649 * normal/menu_text.c (get_entry_number): Check if the variable
17650 matches the title of a menu entry.
17651 (run_menu): Pass menu to get_entry_number.
17652
17653 * util/grub-reboot.in: New file.
17654 * util/grub-set-default.in: New file.
17655 * conf/common.rmk (grub-reboot): New utility.
17656 (grub-set-default): New utility.
17657
17658 * util/grub-mkconfig_lib.in (save_default_entry): New function.
17659 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
17660 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
17661 move it to `saved_entry' for the next boot. Load environment on
17662 initialisation.
17663 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
17664 * util/grub.d/10_hurd.in: Likewise.
17665 * util/grub.d/10_linux.in (linux_entry): Likewise.
17666 * util/grub.d/10_windows.in: Likewise.
17667 * util/grub.d/30_os-prober.in: Likewise.
17668
17669 * util/grub-install.in: Create environment block.
17670 * util/i386/efi/grub-install.in: Likewise.
17671 * util/ieee1275/grub-install.in: Likewise.
17672 * util/sparc64/ieee1275/grub-install.in: Likewise.
17673
17674 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
17675
17676 Unit testing framework for GRUB.
17677
17678 * Makefile.in: Test framework build rules for 'make check'.
17679 * conf/tests.rmk: Build rules for individual tests and framework.
17680
17681 * include/grub/test.h: Header file for whitebox tests.
17682 * tests/lib/functional_test.c: Framework support for whitebox
17683 functional tests.
17684 * tests/lib/test.c: Common whitebox testing code for unit and
17685 functional tests.
17686 * tests/lib/unit_test.c: Framework support for whitebox unit
17687 tests.
17688
17689 * tests/util/grub-shell-tester.in: Support utility for grub-script
17690 tests.
17691 * tests/util/grub-shell.in: Utility to execute grub-script
17692 commands in a Qemu instance.
17693
17694 * tests/example_functional_test.c: Example whitebox functional
17695 test.
17696 * tests/example_grub_script_test.in: Example grub-script test.
17697 * tests/example_scripted_test.in: Example scripted test.
17698 * tests/example_unit_test.c: Example whitebox unit test.
17699
17700 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
17701
17702 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
17703 Add loader/i386/multiboot_mbi.c.
17704 (multiboot2_mod_SOURCES): Likewise.
17705 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
17706 (multiboot2_mod_SOURCES): Likewise.
17707 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
17708 (grub_multiboot_make_mbi): Likewise.
17709 (grub_multiboot_free_mbi): Likewise.
17710 (grub_multiboot_init_mbi): Likewise.
17711 (grub_multiboot_add_module): Likewise.
17712 (grub_multiboot_set_bootdev): Likewise.
17713 * loader/i386/multiboot.c (mbi): Removed.
17714 (mbi_dest): Likewise.
17715 (alloc_mbi): New variable.
17716 (grub_multiboot_payload_size): Removed. All users updated.
17717 (grub_multiboot_pure_size): New variable.
17718 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
17719 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
17720 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
17721 (grub_fill_multiboot_mmap): Likewise.
17722 (grub_multiboot_get_bootdev): Likewise.
17723 (grub_multiboot): Use multiboot_mbi functions.
17724 * loader/i386/multiboot_mbi.c: New file.
17725
17726 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
17727
17728 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
17729 it would result in module crash.
17730
17731 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
17732
17733 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
17734 (grub_ofconsole_getwh): Split to ...
17735 (grub_ofconsole_getwh): ... this.
17736 (grub_ofconsole_dimensions): ...and this.
17737 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
17738
17739 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
17740
17741 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
17742
17743 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
17744
17745 * loader/i386/pc/multiboot2.c: Removed stalled file.
17746
17747 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
17748
17749 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
17750 Reported by: Grégoire Sutre
17751
17752 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
17753
17754 * util/misc.c (canonicalize_file_name): New function.
17755 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
17756 instead of realpath().
17757
17758 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
17759
17760 * util/grub-install.in (usage): Clarify meaning of --root-directory,
17761 and make it clearer that it's optional. Based on confusion
17762 witnessed on IRC.
17763
17764 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
17765
17766 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
17767 in premature implicit newline.
17768
17769 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
17770
17771 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
17772 which resulted in garbled command line at the end of screen.
17773
17774 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
17775
17776 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
17777 initialization with similar approach as with other Linux loaders.
17778
17779 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
17780
17781 Fix i386-ieee1275 build.
17782
17783 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
17784 and grub_term_height() for video_{width,height} initialization.
17785
17786 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
17787
17788 Fix grub-emu build.
17789
17790 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
17791
17792 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
17793 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
17794
17795 Support for multiple terminals.
17796
17797 * Makefile.in (pkglib_DATA): terminal.lst.
17798 (terminal.lst): New target.
17799 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
17800 (GRUB_MOD_INIT(handler)): Likewise.
17801 (GRUB_MOD_FINI(handler)): Likewise.
17802 * commands/help.c (grub_cmd_help): Handle multiple terminals.
17803 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
17804 * commands/sleep.c (do_print): Use grub_term_restore_pos.
17805 (grub_cmd_sleep): Use grub_term_save_pos.
17806 * commands/terminal.c: New file.
17807 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
17808 commands/terminal.c and lib/charset.c.
17809 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
17810 (pkglib_MODULES): Add terminal.mod.
17811 (terminal_mod_SOURCES): New variable.
17812 (terminal_mod_CFLAGS): Likewise.
17813 (terminal_mod_LDFLAGS): Likewise.
17814 * genhandlerlist.sh: Don't handle terminals.
17815 * genmk.rb: Generate terminal-*.lst.
17816 * genterminallist.sh: New file.
17817 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
17818 (grub_is_valid_utf8): Likewise.
17819 (grub_utf8_to_ucs4_alloc): Likewise.
17820 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
17821 (grub_menu_register_viewer): Changed argument.
17822 (grub_menu_try_text): New proto.
17823 (grub_gfxmenu_try_hook): New declaration.
17824 * include/grub/normal.h (grub_normal_exit_level): New declaration.
17825 (grub_menu_init_page): Additional argument term.
17826 (grub_normal_init_page): Likewise.
17827 (grub_cmdline_get): Arguments simplified.
17828 (grub_utf8_to_ucs4_alloc): Removed.
17829 (grub_print_ucs4): Additional argument term.
17830 (grub_getstringwidth): Likewise.
17831 (grub_print_message_indented): Likewise.
17832 (grub_menu_text_register_instances): New proto.
17833 (grub_show_menu): Likewise.
17834 (read_terminal_list): Likewise.
17835 (grub_set_more): Likewise.
17836 * include/grub/parser.h: Include handler.h.
17837 * include/grub/reader.h: Rewritten.
17838 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
17839 (GRUB_TERM_WIDTH): Changed to function.
17840 (GRUB_TERM_HEIGHT): Likewise.
17841 (GRUB_TERM_BORDER_WIDTH): Likewise.
17842 (GRUB_TERM_BORDER_HEIGHT): Likewise.
17843 (GRUB_TERM_NUM_ENTRIES): Likewise.
17844 (GRUB_TERM_ENTRY_WIDTH): Likewise.
17845 (GRUB_TERM_CURSOR_X): Likewise.
17846 (grub_term_input_class): Likewise.
17847 (grub_term_output_class): Likewise.
17848 (grub_term_outputs_disabled): New declaration.
17849 (grub_term_inputs_disabled): Likewise.
17850 (grub_term_outputs): Likewise.
17851 (grub_term_inputs): Likewise.
17852 (grub_term_register_input): Rewritten.
17853 (grub_term_register_output): Likewise.
17854 (grub_term_unregister_input): Likewise.
17855 (grub_term_unregister_output): Likewise.
17856 (FOR_ACTIVE_TERM_INPUTS): New macro.
17857 (FOR_DISABLED_TERM_INPUTS): Likewise.
17858 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
17859 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
17860 * include/grub/terminfo.h: Add oterm argument to all protypes.
17861 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
17862 Use grub_rescue_run.
17863 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
17864 All users updated.
17865 * kern/reader.c: Removed. All users updated.
17866 * kern/rescue_reader.c (grub_rescue_init): Removed.
17867 (grub_rescue_reader): Likewise.
17868 (grub_register_rescue_reader): Likewise.
17869 (grub_rescue_run): New function based on kern/reader.c.
17870 * kern/term.c: Adapted for multiterm.
17871 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
17872 (grub_is_valid_utf8): Likewise.
17873 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
17874 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
17875 right terminal.
17876 * loader/i386/linux.c (grub_linux_boot): Likewise.
17877 * normal/auth.c (grub_username_get): New function.
17878 (grub_auth_check_authentication): Use grub_username_get.
17879 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
17880 * normal/color.c: Adapt for multiterm.
17881 * normal/main.c (read_config_file): Don't use grub_reader_loop.
17882 (grub_normal_init_page): Additional argument term.
17883 (read_lists): Call read_terminal_lists.
17884 (grub_enter_normal_mode): Call grub_cmdline_run.
17885 Handle grub_normal_exit_level.
17886 (grub_cmd_normal): Make reentrant.
17887 (grub_cmd_normal_exit): New function.
17888 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
17889 * normal/menu.c: Adapt for multiterm.
17890 * normal/menu_entry.c: Likewise.
17891 * normal/menu_text.c: Likewise.
17892 * normal/menu_viewer.c: Removed. All users updated.
17893 * normal/term.c: New file.
17894 * util/console.c: Change order of includes to workaround a bug in
17895 ncurses headers.
17896 * term/terminfo.c: New argument oterm on all exported functions.
17897 All users updated.
17898 * util/grub-editenv.c (grub_term_input_class): Removed.
17899 (grub_term_output_class): Likewise.
17900
17901 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
17902
17903 Make loader output a bit more user-friendly.
17904
17905 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
17906 is being loaded. Likewise for the Hurd.
17907
17908 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
17909 that kernel of FreeBSD ${version} is being loaded.
17910
17911 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
17912 grub_dprintf().
17913 (grub_cmd_initrd): Likewise.
17914 * util/grub.d/10_linux.in (linux_entry): Print message indicating
17915 that Linux ${version} is being loaded. Likewise for initrd.
17916
17917 2010-01-09 Carles Pina i Estany <carles@pina.cat>
17918
17919 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
17920
17921 2010-01-08 Carles Pina i Estany <carles@pina.cat>
17922
17923 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
17924 (GRUB_MOD_INIT): Gettextizze.
17925 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
17926 (GRUB_MOD_INIT): Gettextizze.
17927 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
17928 (grub_cmd_linux): Capitalise Linux.
17929 (GRUB_MOD_INIT): Gettextizze.
17930 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
17931 (grub_cmd_linux): Capitalise Linux.
17932 (GRUB_MOD_INIT): Gettextizze.
17933 * loader/i386/linux.c: Include `<grub/i18n.h>'.
17934 (grub_cmd_linux): Capitalise Linux.
17935 (GRUB_MOD_INIT): Gettextizze.
17936 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
17937 (GRUB_MOD_INIT): Gettextizze.
17938 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
17939 (grub_cmd_linux): Capitalise Linux.
17940 (GRUB_MOD_INIT): Gettextizze.
17941 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
17942 (grub_cpu_xnu_init): Gettextizze.
17943 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
17944 (GRUB_MOD_INIT): Gettextizze.
17945 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
17946 (GRUB_MOD_INIT): Gettextizze.
17947 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
17948 (grub_linux_load64): Capitalise Linux.
17949 (GRUB_MOD_INIT): Gettextizze.
17950 * loader/xnu.c: Include `<grub/i18n.h>'.
17951 (GRUB_MOD_INIT): Gettextizze.
17952 * po/POTFILES: Add `loader/efi/appleloader.c',
17953 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
17954 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
17955 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
17956 `loader/i386/xnu.c', `loader/multiboot_loader.c',
17957 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
17958 and `loader/xnu.c'.
17959
17960 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
17961
17962 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
17963
17964 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
17965
17966 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
17967 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
17968 * util/mkisofs/mkisofs.c (main): Readjust --version output.
17969
17970 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
17971
17972 Reset Multiboot 2 support. New loader implements the draft in
17973 /branches/multiboot2 and shares as much code as possible with the
17974 production Multiboot 1 implementation.
17975
17976 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
17977 * loader/multiboot2.c: Likewise.
17978 * loader/i386/multiboot_helper.S: Likewise.
17979 * include/multiboot2.h: Replace with latest version from the draft
17980 in /branches/multiboot2.
17981
17982 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
17983 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
17984 and `loader/multiboot2.c'.
17985 (pkglib_MODULES): Add `multiboot2.mod'.
17986 (multiboot2_mod_SOURCES): New variable.
17987 (multiboot2_mod_LDFLAGS): Likewise.
17988 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
17989
17990 * conf/i386-pc.rmk: Likewise.
17991
17992 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
17993 (multiboot_mod_SOURCES): Remove variable.
17994 (multiboot_mod_LDFLAGS): Likewise.
17995 (multiboot_mod_CFLAGS): Likewise.
17996
17997 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
17998 `<multiboot2.h>' instead of `<multiboot.h>'.
17999 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
18000 (MULTIBOOT_HEADER_MAGIC): New macros.
18001
18002 * loader/multiboot_loader.c (module_version_status): Remove variable.
18003 (find_multi_boot2_header): Remove function.
18004 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
18005 logic. Always check for the Multiboot version we're compiling for.
18006 (grub_cmd_module_loader): Likewise.
18007 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
18008 command instead of `multiboot'.
18009
18010 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
18011
18012 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
18013 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
18014 all users.
18015
18016 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
18017 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
18018
18019 Fix breakage introduced with previous commit.
18020
18021 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
18022 commands.
18023 * normal/handler.c (read_handler_list): Revert part of previous commit
18024 affecting this file.
18025 * normal/main.c (read_lists): Move read_handler_list() call back to ...
18026 (grub_normal_execute): ... here.
18027
18028 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
18029
18030 Merge prefix-redefinition-fix branch.
18031
18032 * normal/autofs.c (read_fs_list): Make function capable of being
18033 run multiple times, gracefuly replacing the previous data
18034 structures.
18035 * normal/dyncmd.c (read_command_list): Likewise.
18036 * normal/handler.c (read_handler_list): Likewise.
18037 * normal/main.c (read_lists): New function. Calls all the
18038 list reading functions.
18039 (grub_normal_execute): Use read_lists() instead of calling all
18040 list reading functions explicitly. Register read_lists() as a
18041 variable hook attached to ${prefix}.
18042
18043 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
18044
18045 Merge crypto branch.
18046
18047 * Makefile.in (pkglib_DATA): Add crypto.lst.
18048 (crypto.lst): New target.
18049 * commands/hashsum.c: New file.
18050 * commands/password.c (check_password): Use grub_crypto_memcmp.
18051 * commands/password_pbkdf2.c: New file.
18052 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
18053 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
18054 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
18055 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
18056 -I$(srcdir)/lib/libgcrypt_wrap.
18057 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
18058 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
18059 password_pbkdf2.mod.
18060 (crypto_mod_SOURCES): New variable.
18061 (crypto_mod_CFLAGS): Likewise.
18062 (crypto_mod_LDFLAGS): Likewise.
18063 (hashsum_mod_SOURCES): New variable.
18064 (hashsum_mod_CFLAGS): Likewise.
18065 (hashsum_mod_LDFLAGS): Likewise.
18066 (pbkdf2_mod_SOURCES): New variable.
18067 (pbkdf2_mod_CFLAGS): Likewise.
18068 (pbkdf2_mod_LDFLAGS): Likewise.
18069 (password_pbkdf2_mod_SOURCES): New variable.
18070 (password_pbkdf2_mod_CFLAGS): Likewise.
18071 (password_pbkdf2_mod_LDFLAGS): Likewise.
18072 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
18073 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
18074 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
18075 Include conf/gcry.rmk.
18076 * include/grub/auth.h: Rewritten.
18077 * include/grub/crypto.h: New file.
18078 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
18079 * include/grub/normal.h (read_crypto_list): New prototype.
18080 * lib/crypto.c: New file.
18081 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
18082 * lib/pbkdf2.c: Likewise.
18083 * normal/auth.c (grub_auth_strcmp): Removed.
18084 (grub_iswordseparator): Likewise.
18085 (grub_auth_strword): Likewise.
18086 (is_authenticated): Use grub_strword.
18087 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
18088 and grub_strword. Pass entered password to authentication callback.
18089 * normal/crypto.c: New file.
18090 * normal/main.c: Call read_crypto_list.
18091 * util/grub-mkpasswd-pbkdf2.c: New file.
18092 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
18093
18094 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
18095
18096 Fix descent and ascent calculation.
18097
18098 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
18099 (options): New option "asce".
18100 (usage): Likewise.
18101 (add_char): Ignore invalid glyphs for descent calculation.
18102 Calculate ascent from actual content.
18103 (print_glyphs): Use 'asce'.
18104 (write_font): Likewise. Allow ascent override.
18105 (main): Handle "asce" option.
18106
18107 2010-01-06 Carles Pina i Estany <carles@pina.cat>
18108
18109 * kern/err.c: Include `<grub/i18n.h>'.
18110 (grub_print_error): Add full stop. Gettextizze.
18111 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
18112 (grub_bsd_load_elf): Capitalise ELF.
18113 (grub_cmd_freebsd_loadenv): Add `s' in error string.
18114 (grub_cmd_freebsd_module): Likewise.
18115 (grub_cmd_freebsd_module_elf): Likewise.
18116 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
18117
18118 2010-01-06 Carles Pina i Estany <carles@pina.cat>
18119
18120 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
18121 * commands/search_file.c (HELP_MESSAGE): New macro.
18122 * commands/search_label.c (HELP_MESSAGE): Likewise.
18123 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
18124 * po/POTFILES: Add `commands/search_file.c',
18125 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
18126 `commands/search.c'.
18127
18128 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
18129
18130 * config.rpath: Update from Gnulib.
18131
18132 2010-01-05 Yves Blusseau <blusseau@zetam.org>
18133
18134 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
18135
18136 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
18137
18138 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
18139
18140 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
18141
18142 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
18143 arguments to fread so that we get a return value in bytes, rather
18144 than something that will normally be rounded down to 0.
18145 Adjust error handling to avoid producing garbage when size_t is not
18146 the same size as long long.
18147
18148 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
18149
18150 * util/mkisofs/write.c (padblock_write): Check return value of
18151 fread.
18152
18153 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
18154
18155 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
18156 floppy images now.
18157
18158 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
18159
18160 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
18161
18162 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
18163 instead of manual alignment.
18164 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
18165 verbose). Avoid attempts to read past end of the device
18166 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
18167 but GRUB_DISK_CACHE_SIZE may exceed that).
18168
18169 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
18170
18171 * commands/crc.c (grub_cmd_crc): Abort on read errors.
18172 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
18173 it to upper layer.
18174
18175 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
18176
18177 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
18178 New constant.
18179 (grub_efi_piwg_device_path): New structure
18180 (grub_efi_piwg_device_path_t): New type.
18181 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
18182 (devpath_1): Transform to a structure. All users updated.
18183 (devpath_2): Likewise.
18184 (devpath_3): Likewise.
18185 (devpath_4): Likewise.
18186 (devpath_5): Likewise.
18187
18188 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
18189
18190 * loader/efi/appleloader.c: Restored. Update all users.
18191
18192 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
18193
18194 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
18195
18196 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
18197 (struct boot_blocklist): Move from here ...
18198 * include/grub/i386/pc/boot.h [ASM_FILE]
18199 (struct grub_boot_blocklist): ... to here. Update all users.
18200 (setup): Only initialize `start' member of `first_block'
18201 structure. Add assert() calls to verify the other members.
18202
18203 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
18204 (generate_image): Fix broken blocklist length initialization.
18205 Add assert() call to verify blocklist `segment' field.
18206
18207 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
18208
18209 * loader/efi/appleloader.c: Remove. Update all users.
18210
18211 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
18212
18213 * boot/i386/pc/boot.S: Update copyright year.
18214 * boot/i386/pc/cdboot.S: Likewise.
18215 * boot/i386/pc/diskboot.S: Likewise.
18216 * boot/i386/pc/lnxboot.S: Likewise.
18217 * boot/i386/pc/pxeboot.S: Likewise.
18218 * bus/pci.c: Likewise.
18219 * commands/cmp.c: Likewise.
18220 * commands/help.c: Likewise.
18221 * commands/hexdump.c: Likewise.
18222 * commands/i386/pc/halt.c: Likewise.
18223 * commands/i386/pc/play.c: Likewise.
18224 * commands/i386/pc/vbeinfo.c: Likewise.
18225 * commands/ls.c: Likewise.
18226 * commands/test.c: Likewise.
18227 * disk/dmraid_nvidia.c: Likewise.
18228 * disk/i386/pc/biosdisk.c: Likewise.
18229 * disk/ieee1275/nand.c: Likewise.
18230 * disk/ieee1275/ofdisk.c: Likewise.
18231 * disk/lvm.c: Likewise.
18232 * disk/raid.c: Likewise.
18233 * disk/raid6_recover.c: Likewise.
18234 * disk/scsi.c: Likewise.
18235 * fs/affs.c: Likewise.
18236 * fs/cpio.c: Likewise.
18237 * fs/ext2.c: Likewise.
18238 * fs/hfs.c: Likewise.
18239 * fs/iso9660.c: Likewise.
18240 * fs/ntfs.c: Likewise.
18241 * fs/sfs.c: Likewise.
18242 * fs/udf.c: Likewise.
18243 * fs/ufs.c: Likewise.
18244 * fs/xfs.c: Likewise.
18245 * gencmdlist.sh: Likewise.
18246 * genmk.rb: Likewise.
18247 * include/grub/disk.h: Likewise.
18248 * include/grub/efi/api.h: Likewise.
18249 * include/grub/efi/efi.h: Likewise.
18250 * include/grub/efi/pe32.h: Likewise.
18251 * include/grub/elf.h: Likewise.
18252 * include/grub/fs.h: Likewise.
18253 * include/grub/i386/at_keyboard.h: Likewise.
18254 * include/grub/i386/pc/memory.h: Likewise.
18255 * include/grub/i386/pc/vbe.h: Likewise.
18256 * include/grub/i386/pci.h: Likewise.
18257 * include/grub/i386/tsc.h: Likewise.
18258 * include/grub/ieee1275/ieee1275.h: Likewise.
18259 * include/grub/ntfs.h: Likewise.
18260 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
18261 * include/grub/sparc64/libgcc.h: Likewise.
18262 * include/grub/symbol.h: Likewise.
18263 * include/grub/types.h: Likewise.
18264 * include/multiboot2.h: Likewise.
18265 * io/gzio.c: Likewise.
18266 * kern/device.c: Likewise.
18267 * kern/disk.c: Likewise.
18268 * kern/efi/efi.c: Likewise.
18269 * kern/efi/mm.c: Likewise.
18270 * kern/elf.c: Likewise.
18271 * kern/file.c: Likewise.
18272 * kern/i386/dl.c: Likewise.
18273 * kern/i386/pc/init.c: Likewise.
18274 * kern/i386/pc/startup.S: Likewise.
18275 * kern/ieee1275/ieee1275.c: Likewise.
18276 * kern/ieee1275/init.c: Likewise.
18277 * kern/main.c: Likewise.
18278 * kern/mm.c: Likewise.
18279 * kern/powerpc/dl.c: Likewise.
18280 * kern/sparc64/dl.c: Likewise.
18281 * kern/x86_64/dl.c: Likewise.
18282 * lib/hexdump.c: Likewise.
18283 * loader/efi/appleloader.c: Likewise.
18284 * loader/i386/ieee1275/linux.c: Likewise.
18285 * loader/i386/pc/chainloader.c: Likewise.
18286 * loader/i386/pc/linux.c: Likewise.
18287 * loader/i386/pc/multiboot2.c: Likewise.
18288 * loader/ieee1275/multiboot2.c: Likewise.
18289 * loader/multiboot2.c: Likewise.
18290 * loader/multiboot_loader.c: Likewise.
18291 * loader/powerpc/ieee1275/linux.c: Likewise.
18292 * normal/completion.c: Likewise.
18293 * normal/menu_entry.c: Likewise.
18294 * partmap/apple.c: Likewise.
18295 * util/grub.d/10_hurd.in: Likewise.
18296 * util/hostfs.c: Likewise.
18297 * video/readers/png.c: Likewise.
18298
18299 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
18300
18301 * include/grub/misc.h (GNUC_PREREQ): New macro.
18302 (ATTRIBUTE_ERROR): New macro.
18303 * include/grub/list.h (grub_bad_type_cast_real): Use
18304 ATTRIBUTE_ERROR.
18305
18306 2010-01-03 Carles Pina i Estany <carles@pina.cat>
18307
18308 * normal/menu_text.c (print_message): Change messages.
18309
18310 2010-01-03 Carles Pina i Estany <carles@pina.cat>
18311
18312 * normal/menu_entry.c (store_completion): Gettextizze.
18313
18314 2010-01-03 Carles Pina i Estany <carles@pina.cat>
18315
18316 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
18317
18318 2010-01-03 Carles Pina i Estany <carles@pina.cat>
18319
18320 * po/POTFILES: Sort correctly.
18321
18322 2010-01-03 Carles Pina i Estany <carles@pina.cat>
18323
18324 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
18325 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
18326 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
18327 full stop.
18328 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
18329 summary. Gettextizze the strings.
18330 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
18331 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
18332 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
18333 full stop.
18334 (GRUB_MOD_INIT): Remove command name from summary.
18335 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
18336 summary.
18337 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
18338 * term/i386/pc/serial.c (options): Add full stops.
18339 (GRUB_MOD_INIT): Remove command name from the summary.
18340
18341 2010-01-03 Carles Pina i Estany <carles@pina.cat>
18342
18343 * commands/acpi.c: Gettextizze help strings and/or options. Include
18344 `grub/i18n.h' if needed.
18345 * commands/blocklist.c: Likewise.
18346 * commands/boot.c: Likewise.
18347 * commands/cat.c: Likewise.
18348 * commands/cmp.c: Likewise.
18349 * commands/configfile.c: Likewise.
18350 * commands/crc.c: Likewise.
18351 * commands/date.c: Likewise.
18352 * commands/echo.c: Likewise.
18353 * commands/efi/fixvideo.c: Likewise.
18354 * commands/efi/loadbios.c: Likewise.
18355 * commands/gptsync.c: Likewise.
18356 * commands/halt.c: Likewise.
18357 * commands/handler.c: Likewise.
18358 * commands/hdparm.c: Likewise.
18359 * commands/hexdump.c: Likewise.
18360 * commands/i386/cpuid.c: Likewise.
18361 * commands/i386/pc/drivemap.c: Likewise.
18362 * commands/i386/pc/halt.c: Likewise.
18363 * commands/i386/pc/pxecmd.c: Likewise.
18364 * commands/i386/pc/vbeinfo.c: Likewise.
18365 * commands/i386/pc/vbetest.c: Likewise.
18366 * commands/ieee1275/suspend.c: Likewise.
18367 * commands/keystatus.c: Likewise.
18368 * commands/loadenv.c: Likewise.
18369 * commands/ls.c: Likewise.
18370 * commands/lsmmap.c: Likewise.
18371 * commands/lspci.c: Likewise.
18372 * commands/memrw.c: Likewise.
18373 * commands/minicmd.c: Likewise.
18374 * commands/parttool.c: Likewise.
18375 * commands/password.c: Likewise.
18376 * commands/probe.c: Likewise.
18377 * commands/read.c: Likewise.
18378 * commands/reboot.c: Likewise.
18379 * commands/search.c: Likewise.
18380 * commands/sleep.c: Likewise.
18381 * commands/test.c: Likewise.
18382 * commands/true.c: Likewise.
18383 * commands/usbtest.c: Likewise.
18384 * commands/videotest.c: Likewise.
18385 * commands/xnu_uuid.c: Likewise.
18386 * disk/loopback.c: Likewise.
18387 * hello/hello.c: Likewise.
18388 * loader/i386/bsd.c: Likewise.
18389 * term/i386/pc/serial.c: Likewise.
18390 * po/POTFILES: Add new files.
18391
18392 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
18393
18394 * term/i386/pc/at_keyboard.c
18395 (keyboard_controller_wait_untill_ready): Rename to ...
18396 (keyboard_controller_wait_until_ready): ... this. Update all users.
18397
18398 2010-01-01 Carles Pina i Estany <carles@pina.cat>
18399
18400 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
18401 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
18402 string using string width.
18403 * normal/menu_text.c (grub_print_message_indented): Use
18404 grub_print_spaces and not print_spaces.
18405 (print_timeout): Likewise.
18406 (print_spaces): Move to...
18407 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
18408
18409 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
18410
18411 Import from Gnulib.
18412
18413 * gnulib/getdelim.c: New file.
18414 * gnulib/getline.c: Likewise.
18415
18416 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
18417
18418 * include/grub/list.h (grub_assert_fail): Removed.
18419 (grub_bad_type_cast_real): New function.
18420 (grub_bad_type_cast): New macro.
18421 (GRUB_AS_LIST): Use grub_bad_type_cast.
18422 (GRUB_AS_LIST_P): Likewise.
18423 (GRUB_AS_NAMED_LIST): Likewise.
18424 (GRUB_AS_NAMED_LIST_P): Likewise.
18425 (GRUB_AS_PRIO_LIST): Likewise.
18426 (GRUB_AS_PRIO_LIST_P): Likewise.
18427 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
18428
18429 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
18430
18431 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
18432 Fix syntax error.
18433
18434 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
18435
18436 * configure.ac: Check for TARGET_CFLAGS initialization before we
18437 initialize it ourselves (sigh).
18438 Move a few modifications to TARGET_CFLAGS to be unconditional
18439 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
18440 eh_frame)
18441
18442 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
18443 * term/i386/pc/at_keyboard.c
18444 (keyboard_controller_wait_untill_ready): Likewise.
18445 (keyboard_controller_led): Rename `led_status' paramter to avoid
18446 name conflict.
18447
18448 2009-12-28 Carles Pina i Estany <carles@pina.cat>
18449
18450 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
18451 quotes.
18452
18453 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
18454
18455 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
18456
18457 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
18458
18459 * normal/menu_text.c (grub_print_message_indented): Prevent
18460 past-the-end-of-array dereference.
18461
18462 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
18463
18464 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
18465 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
18466
18467 2009-12-27 Carles Pina i Estany <carles@pina.cat>
18468
18469 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
18470 * normal/main.c (grub_normal_read_line): Remove a space from the
18471 default prompt.
18472
18473 2009-12-27 Carles Pina i Estany <carles@pina.cat>
18474
18475 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
18476 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
18477 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
18478 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
18479 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
18480 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
18481 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
18482
18483 2009-12-26 Carles Pina i Estany <carles@pina.cat>
18484
18485 * video/readers/jpeg.c (cmd): Declare.
18486 (grub_cmd_jpegtest): Use `grub_command_t' type.
18487 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
18488 Assign to `cmd'.
18489 (GRUB_MOD_FINI): Use `cmd' to unregister.
18490 * video/readers/png.c (cmd): Declare.
18491 (grub_cmd_pngtest): Use `grub_command_t' type.
18492 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
18493 Assign to `cmd'.
18494 (GRUB_MOD_FINI): Use `cmd' to unregister.
18495 * video/readers/tga.c (cmd): Declare.
18496 (grub_cmd_tgatest): Use `grub_command_t' type.
18497 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
18498 Assign to `cmd'.
18499 (GRUB_MOD_FINI): Use `cmd' to unregister.
18500
18501 2009-12-26 Carles Pina i Estany <carles@pina.cat>
18502
18503 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
18504 stops.
18505 * kern/corecmd.c (grub_register_core_commands): Likewise.
18506 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
18507 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
18508 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
18509 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
18510 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
18511 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
18512 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
18513 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
18514 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
18515 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
18516 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
18517 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
18518 * normal/handler.c (insert_handler): Likewise.
18519 * normal/main.c (GRUB_MOD_INIT): Likewise.
18520 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
18521
18522 2009-12-26 Carles Pina i Estany <carles@pina.cat>
18523
18524 * commands/help.c (grub_cmd_help): Print the command name before the
18525 summary.
18526 (GRUB_MOD_INIT): Remove command name from the summary.
18527 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
18528 string as summary.
18529 * lib/arg.c (find_long): Print the command name before the summary.
18530 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
18531 summary.
18532 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
18533 * commands/cat.c (GRUB_MOD_INIT): Likewise.
18534 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
18535 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
18536 * commands/crc.c (GRUB_MOD_INIT): Likewise.
18537 * commands/date.c (GRUB_MOD_INIT): Likewise.
18538 * commands/echo.c (GRUB_MOD_INIT): Likewise.
18539 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
18540 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
18541 * commands/handler.c (GRUB_MOD_INIT): Likewise.
18542 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
18543 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
18544 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
18545 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
18546 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
18547 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
18548 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
18549 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
18550 * commands/ls.c (GRUB_MOD_INIT): Likewise.
18551 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
18552 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
18553 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
18554 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
18555 * commands/password.c (GRUB_MOD_INIT): Likewise.
18556 * commands/probe.c (GRUB_MOD_INIT): Likewise.
18557 * commands/read.c (GRUB_MOD_INIT): Likewise.
18558 * commands/search.c (GRUB_MOD_INIT): Likewise.
18559 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
18560 * commands/test.c (GRUB_MOD_INIT): Likewise.
18561 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
18562 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
18563 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
18564 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
18565 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
18566 * lib/arg.c (GRUB_MOD_INIT): Likewise.
18567 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
18568 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
18569 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
18570 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
18571 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
18572 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
18573 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
18574 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
18575
18576 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
18577
18578 Use search command for preliminar UUID search.
18579
18580 * commands/search.c: Split into ...
18581 * commands/search_wrap.c: ...this
18582 * commands/search.c: ...and this.
18583 * commands/search_file.c: New file.
18584 * commands/search_label.c: New file.
18585 * commands/search_uuid.c: New file.
18586 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
18587 Add commands/search_wrap.c, commands/search_file.c,
18588 commands/search_label.c and commands/search_uuid.c.
18589 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
18590 (search_mod_SOURCES): Set to commands/search_wrap.c.
18591 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
18592 search_label.mod.
18593 (search_fs_file_mod_SOURCES): New variable.
18594 (search_fs_file_mod_CFLAGS): Likewise.
18595 (search_fs_file_mod_LDFLAGS): Likewise.
18596 (search_label_mod_SOURCES): Likewise.
18597 (search_label_mod_CFLAGS): Likewise.
18598 (search_label_mod_LDFLAGS): Likewise.
18599 (search_fs_uuid_mod_SOURCES): New variable.
18600 (search_fs_uuid_mod_CFLAGS): Likewise.
18601 (search_fs_uuid_mod_LDFLAGS): Likewise.
18602 (fs_file_mod_SOURCES): Removed.
18603 (fs_file_mod_CFLAGS): Likewise.
18604 (fs_file_mod_LDFLAGS): Likewise.
18605 (fs_uuid_mod_SOURCES): Removed.
18606 (fs_uuid_mod_CFLAGS): Likewise.
18607 (fs_uuid_mod_LDFLAGS): Likewise.
18608 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
18609 Set to util/grub-install.in.
18610 * disk/fs_file.c: Removed.
18611 * disk/fs_uuid.c: Likewise.
18612 * include/grub/search.h: New file.
18613 * util/grub-install.in: Handle sparc64.
18614 Create and use load.cfg.
18615 * util/sparc64/ieee1275/grub-install.in: Removed.
18616
18617 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
18618
18619 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
18620 Ignore return status if CF is cleared.
18621 (grub_biosdisk_get_diskinfo_standard): Likewise.
18622
18623 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
18624
18625 * term/i386/pc/at_keyboard.c
18626 (keyboard_controller_wait_untill_ready): New function.
18627 (grub_keyboard_controller_write, grub_keyboard_controller_read)
18628 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
18629 for keyboard polling, rather than duplicate the same loop. This
18630 saves a few bytes in code size.
18631
18632 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
18633
18634 Support for (pxe[:server[:gateway]]) syntax and
18635 use environment variable for PXE.
18636
18637 * commands/i386/pc/pxecmd.c (options): Removed.
18638 (print_ip): Removed.
18639 (grub_cmd_pxe): Removed
18640 (grub_cmd_pxe_unload): New function.
18641 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
18642 (grub_pxe_your_ip): Made static.
18643 (grub_pxe_default_server_ip): Likewise.
18644 (grub_pxe_default_gateway_ip): Likewise.
18645 (grub_pxe_blksize): Likewise.
18646 (parse_ip): New function.
18647 (grub_pxe_open): Support server and gateway specification.
18648 (grub_pxe_close): Free disk->data.
18649 (grub_pxefs_open): Use disk->data.
18650 (grub_pxefs_read): Likewise.
18651 (grub_env_write_readonly): New function.
18652 (set_mac_env): Likewise.
18653 (set_env_limn_ro): Likewise.
18654 (parse_dhcp_vendor): Likewise.
18655 (grub_pxe_detect): Set the environment variables.
18656 (set_ip_env): New function.
18657 (write_ip_env): Likewise.
18658 (grub_env_write_pxe_default_server): Likewise.
18659 (grub_env_write_pxe_default_gateway): Likewise.
18660 (grub_env_write_pxe_blocksize): Likewise.
18661 (GRUB_MOD_INIT(pxe)): Set environment variables.
18662 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
18663 (grub_pxe_mac_addr_t): ... this. All users updated.
18664 (grub_pxe_your_ip): Removed.
18665 (grub_pxe_server_ip): Likewise.
18666 (grub_pxe_gateway_ip): Likewise.
18667 (grub_pxe_blksize): Likewise.
18668
18669 2009-12-25 Carles Pina i Estany <carles@pina.cat>
18670
18671 * commands/help.c: Include `<grub/i18n.h>'.
18672 (grub_cmd_help): Gettextizze.
18673 (GRUB_MOD_INIT): Likewise.
18674 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
18675 (GRUB_MOD_INIT): Gettextizze.
18676 * commands/search.c: Include `<grub/i18n.h>'.
18677 (options): Gettextizze.
18678 (GRUB_MOD_INIT): Gettextizze.
18679 * lib/arg.c: Include `<grub/i18n.h>'.
18680 (help_options): Gettextizze.
18681 (find_long): Likewise.
18682 (grub_arg_show_help): Likewise.
18683 * normal/dyncmd.c: Include `<grub/i18n.h>'.
18684 (read_command_list): Gettextizze.
18685 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
18686 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
18687
18688 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
18689
18690 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
18691 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
18692 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
18693 (led_status): New variable.
18694 (keyboard_controller_led): New function.
18695 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
18696 update led status for caps lock, num lock and scroll lock.
18697
18698 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
18699
18700 * util/hostdisk.c (open_device): Fix a comment.
18701
18702 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
18703
18704 * util/grub-install.in (host_os): New variable.
18705 * util/i386/efi/grub-install.in (host_os): Likewise.
18706
18707 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
18708
18709 * util/mkisofs/write.c (padblock_write): Abort when given an
18710 excedingly large embed image, instead of silently truncating it.
18711
18712 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
18713
18714 * include/multiboot.h: Indentation fixes.
18715
18716 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
18717
18718 * include/multiboot.h (struct multiboot_aout_symbol_table)
18719 (struct multiboot_elf_section_header_table): New structure
18720 declarations (stolen from GRUB Legacy).
18721 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
18722 table information.
18723
18724 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
18725 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
18726 type aliases.
18727
18728 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
18729
18730 * include/multiboot.h: Make comments src2texi-friendly.
18731
18732 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
18733
18734 For consistency with [multiboot]/docs/boot.S.
18735
18736 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
18737 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
18738 (MULTIBOOT_MAGIC2): Rename from this ...
18739 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
18740
18741 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
18742
18743 * include/multiboot.h: Remove `<grub/types.h>'.
18744 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
18745 types. Update all users.
18746
18747 2009-12-25 Carles Pina i Estany <carles@pina.cat>
18748
18749 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
18750 `couldn't' and `can not' by `cannot'.
18751 * commands/i386/pc/drivemap.c: Likewise.
18752 * disk/ata.c: Likewise.
18753 * disk/ieee1275/nand.c: Likewise.
18754 * fs/affs.c: Likewise.
18755 * fs/fat.c: Likewise.
18756 * fs/hfs.c: Likewise.
18757 * fs/hfsplus.c: Likewise.
18758 * fs/iso9660.c: Likewise.
18759 * fs/jfs.c: Likewise.
18760 * fs/minix.c: Likewise.
18761 * fs/reiserfs.c: Likewise.
18762 * fs/sfs.c: Likewise.
18763 * fs/udf.c: Likewise.
18764 * fs/ufs.c: Likewise.
18765 * fs/xfs.c: Likewise.
18766 * loader/powerpc/ieee1275/linux.c: Likewise.
18767 * loader/sparc64/ieee1275/linux.c: Likewise.
18768 * util/grub-probe.c: Likewise.
18769 * util/misc.c: Likewise.
18770
18771 2009-12-24 Carles Pina i Estany <carles@pina.cat>
18772
18773 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
18774 grub_errno calls.
18775 * commands/acpi.c: Likewise.
18776 * commands/blocklist.c: Likewise.
18777 * commands/efi/loadbios.c: Likewise.
18778 * commands/i386/pc/drivemap.c: Likewise.
18779 * commands/loadenv.c: Likewise.
18780 * commands/memrw.c: Likewise.
18781 * commands/password.c: Likewise.
18782 * commands/videotest.c: Likewise.
18783 * disk/ata.c: Likewise.
18784 * disk/ata_pthru.c: Likewise.
18785 * disk/dmraid_nvidia.c: Likewise.
18786 * disk/ieee1275/nand.c: Likewise.
18787 * disk/ieee1275/ofdisk.c: Likewise.
18788 * disk/loopback.c: Likewise.
18789 * disk/lvm.c: Likewise.
18790 * disk/mdraid_linux.c: Likewise.
18791 * disk/raid.c: Likewise.
18792 * disk/raid6_recover.c: Likewise.
18793 * disk/scsi.c: Likewise.
18794 * efiemu/main.c: Likewise.
18795 * efiemu/mm.c: Likewise.
18796 * efiemu/pnvram.c: Likewise.
18797 * efiemu/symbols.c: Likewise.
18798 * font/font.c: Likewise.
18799 * fs/cpio.c: Likewise.
18800 * fs/hfsplus.c: Likewise.
18801 * fs/iso9660.c: Likewise.
18802 * fs/jfs.c: Likewise.
18803 * fs/minix.c: Likewise.
18804 * fs/ntfs.c: Likewise.
18805 * fs/ntfscomp.c: Likewise.
18806 * fs/reiserfs.c: Likewise.
18807 * fs/ufs.c: Likewise.
18808 * fs/xfs.c: Likewise.
18809 * gettext/gettext.c: Likewise.
18810 * include/grub/auth.h: Likewise.
18811 * kern/elf.c: Likewise.
18812 * kern/file.c: Likewise.
18813 * kern/ieee1275/init.c: Likewise.
18814 * kern/ieee1275/mmap.c: Likewise.
18815 * kern/ieee1275/openfw.c: Likewise.
18816 * kern/powerpc/dl.c: Likewise.
18817 * kern/sparc64/dl.c: Likewise.
18818 * lib/arg.c: Likewise.
18819 * loader/i386/bsd.c: Likewise.
18820 * loader/i386/bsdXX.c: Likewise.
18821 * loader/i386/efi/linux.c: Likewise.
18822 * loader/i386/efi/xnu.c: Likewise.
18823 * loader/i386/ieee1275/linux.c: Likewise.
18824 * loader/i386/linux.c: Likewise.
18825 * loader/i386/multiboot.c: Likewise.
18826 * loader/i386/pc/linux.c: Likewise.
18827 * loader/i386/pc/multiboot2.c: Likewise.
18828 * loader/i386/xnu.c: Likewise.
18829 * loader/ieee1275/multiboot2.c: Likewise.
18830 * loader/macho.c: Likewise.
18831 * loader/machoXX.c: Likewise.
18832 * loader/multiboot2.c: Likewise.
18833 * loader/multiboot_loader.c: Likewise.
18834 * loader/powerpc/ieee1275/linux.c: Likewise.
18835 * loader/sparc64/ieee1275/linux.c: Likewise.
18836 * loader/xnu.c: Likewise.
18837 * loader/xnu_resume.c: Likewise.
18838 * mmap/i386/pc/mmap.c: Likewise.
18839 * normal/menu_viewer.c: Likewise.
18840 * partmap/acorn.c: Likewise.
18841 * partmap/amiga.c: Likewise.
18842 * partmap/apple.c: Likewise.
18843 * script/lexer.c: Likewise.
18844 * term/gfxterm.c: Likewise.
18845 * term/i386/pc/serial.c: Likewise.
18846 * term/i386/pc/vga.c: Likewise.
18847 * term/ieee1275/ofconsole.c: Likewise.
18848 * term/terminfo.c: Likewise.
18849 * video/bitmap.c: Likewise.
18850 * video/efi_gop.c: Likewise.
18851 * video/efi_uga.c: Likewise.
18852 * video/fb/video_fb.c: Likewise.
18853 * video/i386/pc/vbe.c: Likewise.
18854 * video/readers/tga.c: Likewise.
18855 * video/video.c: Likewise.
18856
18857 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
18858
18859 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
18860 * commands/lspci.c: Likewise.
18861 * commands/probe.c: Likewise.
18862 * commands/xnu_uuid.c: Likewise.
18863 * conf/i386-coreboot.rmk: Likewise.
18864 * conf/i386-efi.rmk: Likewise.
18865 * conf/i386-ieee1275.rmk: Likewise.
18866 * conf/i386-pc.rmk: Likewise.
18867 * conf/powerpc-ieee1275.rmk: Likewise.
18868 * conf/sparc64-ieee1275.rmk: Likewise.
18869 * conf/x86_64-efi.rmk: Likewise.
18870 * fs/i386/pc/pxe.c: Likewise.
18871 * gettext/gettext.c: Likewise.
18872 * include/grub/efi/graphics_output.h: Likewise.
18873 * include/grub/i386/pc/memory.h: Likewise.
18874 * kern/env.c: Likewise.
18875 * kern/i386/qemu/startup.S: Likewise.
18876 * lib/i386/pc/biosnum.c: Likewise.
18877 * lib/i386/relocator.c: Likewise.
18878 * lib/i386/relocator_asm.S: Likewise.
18879 * lib/relocator.c: Likewise.
18880 * loader/i386/bsd.c: Likewise.
18881 * loader/i386/multiboot.c: Likewise.
18882 * loader/i386/pc/chainloader.c: Likewise.
18883 * loader/i386/xnu.c: Likewise.
18884 * loader/xnu.c: Likewise.
18885 * normal/main.c: Likewise.
18886 * normal/menu_text.c: Likewise.
18887 * util/getroot.c: Likewise.
18888 * util/grub-mkconfig_lib.in: Likewise.
18889 * util/grub.d/00_header.in: Likewise.
18890 * util/i386/pc/grub-mkimage.c: Likewise.
18891 * util/mkisofs/eltorito.c: Likewise.
18892 * util/mkisofs/exclude.h: Likewise.
18893 * util/mkisofs/hash.c: Likewise.
18894 * util/mkisofs/iso9660.h: Likewise.
18895 * util/mkisofs/joliet.c: Likewise.
18896 * util/mkisofs/mkisofs.c: Likewise.
18897 * util/mkisofs/mkisofs.h: Likewise.
18898 * util/mkisofs/multi.c: Likewise.
18899 * util/mkisofs/name.c: Likewise.
18900 * util/mkisofs/rock.c: Likewise.
18901 * util/mkisofs/tree.c: Likewise.
18902 * util/mkisofs/write.c: Likewise.
18903 * video/efi_gop.c: Likewise.
18904
18905 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
18906
18907 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
18908 size counting.
18909
18910 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
18911
18912 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
18913 * genmk.rb (class SCRIPT): Modify the target file instead of source.
18914
18915 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
18916
18917 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
18918 (GRUB_MOD_INIT(memrw)): Update help line.
18919
18920 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
18921
18922 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
18923 Use grub_extcmd_t. All users updated.
18924 (options): New variable.
18925 (grub_cmd_read): Restructure for readability. Support "-v" option.
18926 (grub_cmd_write): Restructure for readability.
18927
18928 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
18929
18930 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
18931
18932 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
18933
18934 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
18935 with the actual contents of the correspondending make variable.
18936 * util/grub-mkrescue.in (pkglib_DATA): New variable.
18937 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
18938 specifying `*.lst' and `efiemu??.o'
18939
18940 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
18941
18942 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
18943 after function name.
18944 Noticed by Rene Engelhard <rene@debian.org>.
18945
18946 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
18947
18948 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
18949 (options): New variable.
18950 (iospace): Likewise.
18951 (grub_lspci_iter): List IO spaces if "-i" was given.
18952 (grub_cmd_lspci): Parse options.
18953 (GRUB_MOD_INIT(lspci)): Use extcmd.
18954 (GRUB_MOD_FINI(lspci)): Likewise.
18955
18956 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
18957
18958 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
18959 `function' keyword.
18960 Patch by Tony Mancill <tmancill@debian.org>.
18961
18962 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
18963
18964 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
18965 (grub_uhci_portstatus): Likewise.
18966 (grub_uhci_portstatus): Add necessary delay.
18967 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
18968
18969 2009-12-21 Carles Pina i Estany <carles@pina.cat>
18970
18971 * commands/acpi.c (options): Fix capitalizations and/or full stops.
18972 (GRUB_MOD_INIT): Likewise.
18973 * commands/boot.c (GRUB_MOD_INIT): Likewise.
18974 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
18975 * commands/echo.c (options): Fix capitalizations and/or full stops.
18976 * commands/efi/loadbios.c (enable_rom_area): Likewise.
18977 (enable_rom_area): Likewise.
18978 (GRUB_MOD_INIT): Likewise.
18979 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
18980 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
18981 * commands/handler.c (GRUB_MOD_INIT): Likewise.
18982 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
18983 * commands/hexdump.c (options): Likewise.
18984 * commands/i386/cpuid.c (options): Likewise.
18985 (GRUB_MOD_INIT): Likewise.
18986 * commands/i386/pc/drivemap.c (options): Likewise.
18987 (GRUB_MOD_INIT): Likewise.
18988 * commands/i386/pc/halt (options): Likewise.
18989 (GRUB_MOD_INIT): Likewise.
18990 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
18991 * commands/i386/pc/pxecmd.c (options): Likewise.
18992 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
18993 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
18994 * commands/keystatus.c (options): Likewise.
18995 (GRUB_MOD_INIT): Likewise.
18996 * commands/loadenv.c (options): Likewise.
18997 * commands/ls.c (options): Likewise.
18998 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
18999 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
19000 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
19001 * commands/parttool.c (helpmsg): Likewise.
19002 * commands/probe.c (options): Likewise.
19003 * commands/read.c (GRUB_MOD_INIT): Likewise.
19004 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
19005 * commands/search.c (options): Likewise.
19006 * commands/sleep.c (options): Likewise.
19007 * commands/test.c (GRUB_MOD_INIT): Likewise.
19008 * commands/true.c (GRUB_MOD_INIT): Likewise.
19009 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
19010 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
19011 * lib/arg.c (help_options): Likewise.
19012 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
19013 `$(XGETTEXT)'.
19014 * po/POTFILES: Add `commands/loadenv.c'.
19015
19016 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
19017
19018 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
19019 instead of specifying them explicit.
19020
19021 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
19022
19023 * NEWS: Add grub-probe support for GNU/Hurd.
19024
19025 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
19026
19027 * NEWS: gettext was added after 1.97.
19028
19029 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
19030
19031 * util/mkisofs/msdos_partition.h: New file (based on
19032 include/grub/msdos_partition.h).
19033 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
19034 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
19035 (ld_options, main): Recognize --protective-msdos-label.
19036 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
19037 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
19038 (padblock_write): If `use_protective_msdos_label' is set, patch a
19039 protective DOS-style label in the output image.
19040
19041 * util/grub-mkrescue.in: Use --protective-msdos-label.
19042
19043 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
19044
19045 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
19046 boot.
19047
19048 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
19049
19050 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
19051 variables.
19052 (ld_options, main): Recognize `--embedded-boot'.
19053 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
19054 declarations.
19055 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
19056 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
19057 (padblock_write): Likewise. Rewrite to support embedded boot image.
19058
19059 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
19060 for BIOS-based disk boot instead of only ElTorito.
19061
19062 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
19063
19064 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
19065 build (not needed for bootstrap).
19066
19067 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
19068
19069 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
19070 from i386-pc build (not needed for bootstrap).
19071 Rewrite a pair of strings.
19072
19073 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
19074
19075 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
19076
19077 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
19078
19079 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
19080
19081 2009-12-21 Andreas Born <futur.andy@googlemail.com>
19082
19083 * kern/env.c (grub_env_context_open): Mark exported variable for
19084 reexport.
19085
19086 2009-12-21 Andreas Born <futur.andy@googlemail.com>
19087
19088 * kern/env.c (grub_env_export): Create nonexistent variables before
19089 exporting.
19090
19091 2009-12-20 Carles Pina i Estany <carles@pina.cat>
19092
19093 * include/grub/auth.h: Include `<grub/i18n.h>'.
19094 (GRUB_GET_PASSWORD): Gettextizze string.
19095 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
19096 menu_text.c.
19097 (grub_utf8_to_ucs4_alloc): Fix indentation.
19098 (grub_print_ucs4): Likewise.
19099 (grub_getstringwidth): Likewise.
19100 (print_message_indented): New declaration.
19101 * normal/auth.c: Include `<grub/i18n.h>'.
19102 (grub_auth_check_authentication): Gettexttize string.
19103 * normal/cmdline.c: Include `<grub/i18n.h>'.
19104 (grub_cmdline_get): Gettextizze.
19105 * normal/color.c: Include `<grub/i18n.h>'.
19106 (grub_parse_color_name_pair): Gettexttize strings.
19107 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
19108 string (use `print_message_indented').
19109 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
19110 `include/grub/normal.h'.
19111 (print_message_indented): Renamed to ...
19112 (grub_print_message_indented): ... this. Remove `static' qualifer (now
19113 used in normal/main.c).
19114 (print_message): Use `grub_print_message_indented' instead of
19115 `print_message_indented'.
19116 (print_timeout): Likewise.
19117 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
19118 (grub_normal_print_device_info): Gettexttize strings.
19119 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
19120
19121 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
19122
19123 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
19124 of arguments. Return number of tokens and not arguments. All users
19125 updated.
19126
19127 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
19128
19129 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
19130 non-MSDOS paritions.
19131
19132 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
19133
19134 * include/grub/types.h (UNUSED): Removed since it conflicts with
19135 NetBSD headers. All users changed to direct __attribute__ ((unused)).
19136 Reported by Grégoire Sutre.
19137
19138 2009-12-19 Carles Pina i Estany <carles@pina.cat>
19139
19140 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
19141 (grub_print_ucs4_alloc): Likewise.
19142 (grub_getstringwidth): Likewise.
19143 * normal/main.c (grub_normal_init_page): Gettextize version string.
19144 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
19145 (getstringwidth): Renamed to ...
19146 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
19147 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
19148 (grub_print_ucs4): Remove `static' qualifer (now used in
19149 normal/main.c).
19150 * po/POTFILES: Add normal/main.c.
19151
19152 2009-12-19 Carles Pina i Estany <carles@pina.cat>
19153
19154 * normal/menu_text.c (STANDARD_MARGIN): New macro.
19155 (print_message_indented): Add `margin_left' and `margin_right'
19156 parameters.
19157 (print_message): Update `print_message_indented' calls. Adds '\n' to the
19158 strings.
19159 (print_timeout): Use `print_message_indented' to print the message.
19160 Deletes `second_stage' parameter.
19161 (run_menu): Update `print_timeout' calls.
19162
19163 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
19164
19165 Fix console palette on OpenFirmware.
19166
19167 * term/ieee1275/ofconsole.c (MAX): Removed.
19168 (colors): Redone based on VGA palette.
19169 (grub_ofconsole_setcolor): Discard brightness bit since only 8
19170 colors are supported.
19171 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
19172
19173 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
19174
19175 Fix potential EfiEmu double prepare.
19176
19177 * efiemu/main.c (prepared): New variable
19178 (grub_efiemu_unload): Set prepare to '0'.
19179 (grub_efiemu_prepare): Return if already prepared. Set prepared.
19180
19181 set_virtual_address_map support.
19182
19183 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
19184 prototype.
19185 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
19186 prototype.
19187 (grub_efiemu_crc32): Likewise.
19188 (grub_efiemu_crc64): Likewise.
19189 (grub_efiemu_set_virtual_address_map): Likewise.
19190 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
19191 New definition.
19192 (grub_autoefi_set_virtual_address_map): Likewise.
19193 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
19194 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
19195 Restructure flow to accomodate it.
19196 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
19197 (grub_efiemu_crc): Recompute CRC32.
19198 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
19199 (efiemu_ptv_relocated): ... this. Made global. All users updated.
19200 * efiemu/symbols.c (relocated_handle): New variable.
19201 (grub_efiemu_free_syms): Free relocated_handle.
19202 (grub_efiemu_alloc_syms): Allocate relocated_handle.
19203 (grub_efiemu_write_sym_markers): New function.
19204 (grub_efiemu_set_virtual_address_map): Likewise.
19205
19206 Newer XNU parameters.
19207
19208 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
19209 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
19210 (grub_xnu_fill_devicetree): New prototype.
19211 (grub_xnu_heap_real_start): New variable.
19212 * loader/xnu.c (get_name_ptr): New function.
19213 (grub_xnu_load_driver): Fill namelen and name.
19214
19215 64-bit xnu support.
19216
19217 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
19218 and 'loader/macho64.c'.
19219 * conf/i386-pc.rmk: Likewise.
19220 * conf/x86_64-efi.rmk: Likewise.
19221 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
19222 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
19223 * include/grub/macho.h (grub_macho_segment64): New structure.
19224 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
19225 (grub_macho_size32): ... to this.
19226 (grub_macho32_get_entry_point): Renamed from ...
19227 (grub_macho_get_entry_point32): ... to this.
19228 (grub_macho_contains_macho64): New prototype.
19229 (grub_macho_size64): Likewise.
19230 (grub_macho_get_entry_point64): Likewise.
19231 (grub_macho32_load): Renamed from ...
19232 (grub_macho_load32): ... to this.
19233 (grub_macho32_filesize): Renamed from ...
19234 (grub_macho_filesize32): ... to this.
19235 (grub_macho32_readfile): Renamed from ...
19236 (grub_macho_readfile32): ... to this.
19237 (grub_macho_filesize64): New prototype.
19238 (grub_macho_readfile64): Likewise.
19239 (grub_macho_parse32): Likewise.
19240 (grub_macho_parse64): Likewise.
19241 * loader/macho.c: Split into ...
19242 * loader/machoXX.c: ... and this. Replace 32 with XX.
19243 * loader/macho32.c: New file.
19244 * loader/macho64.c: Likewise.
19245 * loader/xnu.c (grub_xnu_is_64bit): New variable.
19246 (grub_cmd_xnu_kernel): Make 32-bit only.
19247 (grub_cmd_xnu_kernel64): New function.
19248 (grub_xnu_load_driver): Support Mach-O 64.
19249 (grub_cmd_xnu_mkext): Likewise.
19250 * util/grub.d/30_os-prober.in (osx_entry): New function.
19251 Generate entries for 64-bit boot too.
19252
19253 Eliminate ad-hoc tree format in XNU and EfiEmu.
19254
19255 * efiemu/main.c (grub_efiemu_prepare): Update comment.
19256 * efiemu/pnvram.c: Rewritten to use environment variables.
19257 All users updated.
19258
19259 Inline utf16_to_utf8.
19260
19261 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
19262 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
19263 All users updated.
19264 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
19265
19266 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
19267 * commands/usbtest.c (grub_usb_get_string): ... move here.
19268 (usb_print_str): Fix error handling.
19269 * include/grub/usb.h (grub_usb_get_string): Remove.
19270
19271 UTF-8 to UTF-16 transformation.
19272
19273 * conf/common.rmk (pkglib_MODULES): Add charset.mod
19274 (charset_mod_SOURCES): New variable.
19275 (charset_mod_CFLAGS): Likewise.
19276 (charset_mod_LDFLAGS): Likewise.
19277 * include/grub/utf.h: New file.
19278 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
19279
19280 Support for device properties.
19281
19282 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
19283 (grub_xnu_devprop_device_header): Likewise.
19284 (grub_xnu_devprop_device_descriptor): Likewise.
19285 (grub_xnu_devprop_add_device): New prototype.
19286 (grub_xnu_devprop_remove_device): Likewise.
19287 (grub_xnu_devprop_remove_property): Likewise.
19288 (grub_xnu_devprop_add_property_utf8): Likewise.
19289 (grub_xnu_devprop_add_property_utf16): Likewise.
19290 (grub_cpu_xnu_init): Likewise.
19291 (grub_cpu_xnu_fini): Likewise.
19292 (grub_cpu_xnu_unload): Likewise.
19293 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
19294 (property_descriptor): Likewise.
19295 (devices): New variable.
19296 (grub_xnu_devprop_remove_property): New function.
19297 (grub_xnu_devprop_add_device): Likewise.
19298 (grub_xnu_devprop_remove_device): Likewise.
19299 (grub_xnu_devprop_add_property): Likewise.
19300 (grub_xnu_devprop_add_property_utf8): Likewise.
19301 (grub_xnu_devprop_add_property_utf16): Likewise.
19302 (hextoval): Likewise.
19303 (grub_cpu_xnu_fill_devprop): Likewise.
19304 (grub_cmd_devprop_load): Likewise.
19305 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
19306 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
19307 (cmd_devprop_load): New variable.
19308 (grub_cpu_xnu_init): New function.
19309 (grub_cpu_xnu_fini): Likewise.
19310 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
19311 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
19312 (grub_cmd_xnu_devtree): Likewise.
19313 (hextoval): New function.
19314 (unescape): Likewise.
19315 (grub_xnu_fill_devicetree): Likewise.
19316
19317 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
19318 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
19319
19320 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
19321
19322 Workaround for broken ATI VBE.
19323
19324 * video/i386/pc/vbe.c (last_set_mode): New variable.
19325 (grub_vbe_set_video_mode): Set 'last_set_mode'.
19326 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
19327 (grub_video_vbe_setup): Don't check for reserved flag.
19328
19329 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
19330
19331 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
19332 the `find' command.
19333
19334 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
19335
19336 UUID support for HFS.
19337
19338 * fs/hfs.c (grub_hfs_uuid): New function.
19339 (grub_hfs_fs): New value .uuid.
19340 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
19341
19342 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
19343
19344 Fix a segfault with parsing unknown long options.
19345
19346 * util/grub-mkrelpath.c (options): Zero terminate it.
19347
19348 2009-12-13 Carles Pina i Estany <carles@pina.cat>
19349
19350 * include/grub/misc.h (grub_puts): New declaration.
19351 (grub_puts_): Likewise.
19352 * kern/misc.c (grub_puts): New definition.
19353 (grub_puts_): Likewise.
19354
19355 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
19356
19357 * util/grub-probe.c (probe): Improve error message.
19358
19359 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
19360
19361 * loader/i386/multiboot_elfxx.c
19362 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
19363 initialization.
19364
19365 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
19366
19367 Relocator framework
19368
19369 * loader/i386/xnu_helper.S: Removed. All users updated.
19370 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
19371 (relocator_mod_SOURCES): New variable.
19372 (relocator_mod_CFLAGS): Likewise.
19373 (relocator_mod_LDFLAGS): Likewise.
19374 (relocator_mod_ASFLAGS): Likewise.
19375 * conf/x86_64.rmk: Likewise.
19376 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
19377 (grub_multiboot_payload_entry_offset): Likewise.
19378 (grub_multiboot_forward_relocator): Likewise.
19379 (grub_multiboot_forward_relocator_end): Likewise.
19380 (grub_multiboot_backward_relocator): Likewise.
19381 (grub_multiboot_backward_relocator_end): Likewise.
19382 (grub_multiboot_payload_eip): New variable.
19383 (grub_multiboot_payload_orig): Likewise.
19384 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
19385 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
19386 * include/grub/i386/memory.h
19387 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
19388 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
19389 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
19390 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
19391 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
19392 * include/grub/i386/relocator.h: New file.
19393 * include/grub/x86_64/relocator.h: Likewise.
19394 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
19395 (XNU_RELOCATOR): New macro.
19396 (grub_xnu_launcher_start): Remove.
19397 (grub_xnu_launcher_end): Likewise.
19398 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
19399 (grub_xnu_heap_real_start): Remove.
19400 (grub_xnu_heap_start): Change to void *. All users updated.
19401 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
19402 * lib/i386/relocator.c: New file.
19403 * lib/i386/relocator_asm.S: Likewise.
19404 * lib/i386/relocator_backward.S: Likewise.
19405 * lib/mips/relocator.c: Likewise.
19406 * lib/mips/relocator_asm.S: Likewise.
19407 * lib/relocator.c: Likewise.
19408 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
19409 (entry): Removed.
19410 (playground): Likewise.
19411 (grub_multiboot_payload_orig): New variable.
19412 (grub_multiboot_payload_dest): Likewise.
19413 (grub_multiboot_payload_size): Likewise.
19414 (grub_multiboot_payload_eip): Likewise.
19415 (grub_multiboot_payload_esp): Likewise.
19416 (grub_multiboot_boot): Use grub_relocator32_boot.
19417 (grub_multiboot_unload): Free relocators.
19418 (grub_multiboot): Setup stack. Use relocators.
19419 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
19420 (grub_multiboot_load_elfXX): Use relocators.
19421 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
19422 (grub_multiboot_payload_size): Likewise.
19423 (grub_multiboot_payload_dest): Likewise.
19424 (grub_multiboot_payload_entry_offset): Likewise.
19425 (grub_multiboot_forward_relocator): Likewise.
19426 (grub_multiboot_backward_relocator): Likewise.
19427 (grub_multiboot_real_boot): Likewise.
19428 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
19429 (grub_xnu_entry_point): Likewise.
19430 (grub_xnu_arg1): Likewise.
19431 (grub_xnu_stack): Likewise.
19432 (grub_xnu_launch): Removed.
19433 (grub_xnu_boot_resume): New function.
19434 (grub_xnu_boot): Use relocators.
19435 * loader/i386/xnu_helper.S: Removed.
19436 * loader/xnu.c (grub_xnu_heap_start): New variable.
19437 (grub_xnu_heap_size): Likewise.
19438 (grub_xnu_heap_malloc): Use relocators.
19439 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
19440
19441 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
19442
19443 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
19444 anything.
19445
19446 2009-12-13 Carles Pina i Estany <carles@pina.cat>
19447
19448 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
19449 GRUB_ERR_NONE before calling grub_env_set.
19450
19451 2009-12-12 Robert Millan <rmh@aybabtu.com>
19452
19453 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
19454 * genmk.rb (video): New variable.
19455 (CLEANFILES, VIDEOFILES): Add #{video}.
19456 (#{video}): New target rule.
19457 * genvideolist.sh: New file.
19458 * Makefile.in (pkglib_DATA): Add video.lst.
19459 (video.lst): New target rule.
19460 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
19461 `video.lst'.
19462 * util/grub.d/30_os-prober.in: Replace `vbe' with
19463 ${GRUB_VIDEO_BACKEND}.
19464
19465 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
19466
19467 * THANKS: Add David Miller.
19468
19469 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
19470
19471 libpciaccess support.
19472
19473 * Makefile.in (LIBPCIACCESS): New variable.
19474 (enable_grub_emu_pci): Likewise.
19475 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
19476 util/pci.c and commands/lspci.c.
19477 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
19478 * configure.ac (grub-emu-pci): New option.
19479 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
19480 (grub_pci_device_unmap_range): Likewise.
19481 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
19482 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
19483 (grub_pci_address_t) [!GRUB_UTIL]: New type.
19484 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
19485 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
19486 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
19487 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
19488 * include/grub/pciutils.h: New file.
19489 * util/pci.c: Likewise.
19490
19491 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
19492
19493 * util/misc.c: Don't include <errno.h> twice.
19494
19495 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
19496
19497 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
19498 name in an error message.
19499 (grub_biosdisk_rw): Likewise.
19500
19501 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
19502
19503 Eliminate NTFS 4Gib barrier.
19504
19505 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
19506 (read_run_data): Likewise.
19507 (grub_ntfs_read_run_list): Likewise.
19508 (grub_ntfs_read_block): Likewise.
19509 (grub_ntfs_iterate_dir): Likewise.
19510 (read_mft): Likewise.
19511 (read_data): Likewise.
19512 Use COM_LOG_LEN.
19513 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
19514 to avoid 64-bit division
19515 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
19516 (grub_ntfs_rlst): Use grub_disk_addr_t.
19517
19518 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
19519
19520 Eliminate grub-fstest 4Gib barrier.
19521
19522 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
19523 (read_file): Fix error reporting.
19524
19525 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
19526
19527 Eliminate hexdump 4Gib barrier.
19528
19529 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
19530 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
19531
19532 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
19533
19534 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
19535 Fixes amarsh bug.
19536
19537 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
19538
19539 Remove miscellaneous files in distclean target.
19540
19541 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
19542
19543 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
19544
19545 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
19546 if they're already set. This resolves the conflict between my
19547 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
19548 fixing the --grub-probe option again.
19549 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
19550 change on 2009-10-06, so that we now once again source
19551 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
19552
19553 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
19554
19555 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
19556 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
19557 `util/devicemap.c'.
19558
19559 2009-12-08 Carles Pina i Estany <carles@pina.cat>
19560
19561 * include/grub/misc.h (grub_printf_): New declaration.
19562 * kern/misc.c (grub_printf_): New definition.
19563 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
19564 instead of `grub_printf' and `_'.
19565 * normal/menu_entry.c (store_completion): Likewise.
19566 (run): Likewise.
19567 (grub_menu_entry_run): Likewise.
19568 * normal/menu_text.c (grub_wait_after_message): Likewise.
19569 (notify_booting): Likewise.
19570 (notify_fallback): Likewise.
19571 (notify_execution_failure): Likewise.
19572
19573 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
19574
19575 * configure.ac: Check for vasprintf.
19576 * util/misc.c (asprintf): Move allocation from here ...
19577 (vasprintf): ... to here. New function.
19578 (xasprintf): New function.
19579 * include/grub/util/misc.h (vasprintf, xasprintf): Add
19580 prototypes.
19581 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
19582 * util/grub-mkfont.c (write_font): Likewise.
19583 * util/grub-probe.c (probe): Likewise.
19584 * util/hostdisk.c (make_device_name): Likewise.
19585
19586 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
19587
19588 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
19589 anything even prefixed with 'cdrom' as a cdrom.
19590
19591 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
19592
19593 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
19594 mount points.
19595
19596 2009-12-05 Carles Pina i Estany <carles@pina.cat>
19597
19598 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
19599 grub_gettext_msg_list.
19600 (grub_gettext_gettranslation_from_position): Return const char *
19601 and not char *.
19602 (grub_gettext_translate): Add the translated strings into a list,
19603 returns from the list if existing there.
19604 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
19605 (grub_gettext_delete_list): Delete the list.
19606 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
19607 lang environment variable is changed.
19608 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
19609
19610 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
19611
19612 Rename kernel.mod to kernel.img.
19613
19614 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
19615 (kernel_mod_EXPORTS): Rename to ...
19616 (kernel_img_EXPORTS): ... this.
19617 (kernel_mod_SOURCES): Rename to ...
19618 (kernel_img_SOURCES): ... this.
19619 (kernel_mod_HEADERS): Rename to ...
19620 (kernel_img_HEADERS): ... this. All users updated.
19621 (kernel_mod_CFLAGS): Rename to ...
19622 (kernel_img_CFLAGS): ... this.
19623 (kernel_mod_ASFLAGS): Rename to ...
19624 (kernel_img_ASFLAGS): ... this.
19625 (kernel_mod_LDFLAGS): Rename to ...
19626 (kernel_img_LDFLAGS): ... this.
19627 * conf/x86_64-efi.rmk: Likewise.
19628 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
19629 (read_kernel_image): ... this. All users updated.
19630 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
19631
19632 2009-12-05 Carles Pina i Estany <carles@pina.cat>
19633
19634 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
19635 (print_spaces): New function.
19636 (grub_print_ucs4): New function.
19637 (getstringwidth): New function.
19638 (print_message_indented): New function.
19639 (print_message): Gettexttize strings using print_message_indented.
19640 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
19641 width.
19642 (get_entry_number): Gettextize and uses dynamic terminal width.
19643 (notify_booting, notify_fallback, notify_execution_failure):
19644 Gettextize.
19645 * normal/menu_entry.c (store_completion): Cleanup the gettextized
19646 string.
19647 (run): Likewise.
19648 (grub_menu_entry_run): Likewise.
19649 * PO/POTFILES: Add normal/menu_entry.c.
19650
19651 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
19652
19653 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
19654
19655 2009-12-05 Carles Pina i Estany <carles@pina.cat>
19656
19657 * util/grub-install.in: Install gettext .mo files.
19658 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
19659
19660 2009-12-05 Carles Pina i Estany <carles@pina.cat>
19661
19662 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
19663 grub_dprintf.
19664
19665 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
19666
19667 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
19668 non-firmware-dependant one in realmode.S takes precedence.
19669
19670 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
19671
19672 * commands/halt.c: Replace misc arch-specific headers with
19673 `<grub/misc.h>'.
19674 * commands/reboot.c: Likewise.
19675 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
19676 `<grub/misc.h>'.
19677 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
19678 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
19679 (kernel_img_SOURCES): ... to here.
19680
19681 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
19682 * include/grub/i386/pc/init.h: Likewise.
19683 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
19684 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
19685
19686 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
19687
19688 * include/grub/i386/halt.h: Remove.
19689 * include/grub/i386/reboot.h: Likewise.
19690
19691 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
19692
19693 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
19694
19695 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
19696 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
19697 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
19698 "progname.h"
19699 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
19700 * util/sparc64/ieee1275/grub-setup.c: Likewise.
19701 (usage): Add missing comma in printf.
19702
19703 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
19704
19705 Use the same reboot approach on i386 coreboot and qemu as we do on
19706 BIOS.
19707
19708 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
19709 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
19710 * kern/i386/reboot.c: Remove.
19711 * include/grub/i386/reboot.h (grub_reboot): Export function.
19712 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
19713 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
19714 0xf000:0xfff0 instead of 0xffff:0x0000.
19715 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
19716 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
19717
19718 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
19719
19720 Fix $srcdir != $objdir build.
19721
19722 * Makefile.in (po/%.po): Rewrite as ...
19723 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
19724
19725 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
19726
19727 Fix GNU/Hurd grub-install crash.
19728 * util/grub-probe.c (probe): Try to access `path' only when it is not
19729 NULL.
19730
19731 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
19732
19733 Correct module naming.
19734
19735 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
19736 (GRUB_MOD_INIT(efi_uga)): ... to this
19737 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
19738 (GRUB_MOD_FINI(efi_uga)): ... to this
19739 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
19740 (GRUB_MOD_INIT(efi_gop)): ... to this
19741 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
19742 (GRUB_MOD_FINI(efi_gop)): ... to this
19743
19744 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
19745
19746 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
19747 translatable.
19748 (usage): Translate `arg' strings using gettext().
19749 Thanks to Jordi Mallach for the suggestion.
19750
19751 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
19752
19753 GOP support. Based on patch from Bean
19754 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
19755
19756 * video/efi_gop.c: New file.
19757 * include/grub/efi/graphics_output.h: Likewise.
19758 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
19759 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
19760 variables.
19761 * conf/x86_64-efi.rmk: Likewise.
19762
19763 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
19764
19765 Rename efi_fb to efi_uga.
19766
19767 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
19768 'efi_uga.mod'.
19769 (efi_fb_mod_SOURCES): Rename this ...
19770 (efi_uga_mod_SOURCES): ... to this.
19771 (efi_fb_mod_CFLAGS): Rename this ...
19772 (efi_uga_mod_CFLAGS): ... to this.
19773 (efi_fb_mod_LDFLAGS): Rename this ...
19774 (efi_uga_mod_LDFLAGS): ... to this.
19775 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
19776 'efi_uga.mod'.
19777 (efi_fb_mod_SOURCES): Rename this ...
19778 (efi_uga_mod_SOURCES): ... to this.
19779 (efi_fb_mod_CFLAGS): Rename this ...
19780 (efi_uga_mod_CFLAGS): ... to this.
19781 (efi_fb_mod_LDFLAGS): Rename this ...
19782 (efi_uga_mod_LDFLAGS): ... to this.
19783 * video/efi_fb.c: Move this ...
19784 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
19785
19786 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
19787
19788 * po/README: New file. Explain our PO file workflow.
19789
19790 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
19791
19792 * po/ChangeLog: Remove. Move relevant entries back to ...
19793 * ChangeLog: ... here.
19794 * po/ca.po: Remove (now handled by TLP).
19795 * po/id.po: Likewise.
19796 * po/zh_CN.po: Likewise.
19797 * Makefile.in (LINGUAS): Initialize in a way that supports
19798 empty set.
19799
19800 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
19801
19802 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
19803 reliing on po/LINGUAS.
19804 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
19805 (po/%.po): ... this.
19806
19807 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
19808
19809 * util/i386/efi/grub-mkimage.c: Include "progname.h".
19810 (main): Use `program_name' instead of nonexistent `progname'.
19811
19812 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
19813
19814 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
19815 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
19816
19817 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
19818
19819 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
19820 commit.
19821 * conf/i386-efi.rmk: Likewise.
19822 * conf/i386-ieee1275.rmk: Likewise.
19823 * conf/powerpc-ieee1275.rmk: Likewise.
19824 * conf/sparc64-ieee1275.rmk: Likewise.
19825 * conf/x86_64-efi.rmk: Likewise.
19826
19827 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
19828
19829 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
19830
19831 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
19832
19833 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
19834
19835 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
19836
19837 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
19838 (grub_mkdevicemap_SOURCES): New variable.
19839 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
19840 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
19841 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
19842 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
19843 (grub_mkdevicemap_SOURCES): Remove.
19844 * conf/i386-efi.rmk: Likewise.
19845 * conf/i386-ieee1275.rmk: Likewise.
19846 * conf/i386-pc.rmk: Likewise.
19847 * conf/powerpc-ieee1275.rmk: Likewise.
19848 * conf/sparc64-ieee1275.rmk: Likewise.
19849 * conf/x86_64-efi.rmk: Likewise.
19850 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
19851 (usage): Fix strings to use `program_name'.
19852 (main): Initialize gettext.
19853 * util/grub-editenv.c: Likewise.
19854 * util/grub-emu.c: Likewise.
19855 * util/grub-fstest.c: Likewise.
19856 * util/grub-mkdevicemap.c: Likewise.
19857 * util/grub-mkfont.c: Likewise.
19858 * util/grub-mkrelpath.c: Likewise.
19859 * util/grub-pe2elf.c: Likewise.
19860 * util/grub-probe.c: Likewise.
19861 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
19862 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
19863 * util/sparc64/ieee1275/grub-setup.c: Likewise.
19864
19865 * util/misc.c: Include `"progname.h"'.
19866 (progname): Remove variable.
19867 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
19868
19869 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
19870
19871 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
19872 printf and print a newline after the menuentry header line.
19873 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
19874
19875 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
19876
19877 autoconf >= 2.60 support $(localedir).
19878
19879 * INSTALL: Note that autoconf 2.60 is required.
19880 * configure.ac (AC_PREREQ): Bump to 2.60.
19881 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
19882 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
19883
19884 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
19885
19886 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
19887 aclocal is run.
19888
19889 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
19890
19891 * normal/main.c (grub_normal_read_line): Fix off-by-one
19892 buffer overflow.
19893
19894 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
19895
19896 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
19897 "parser.grub" in grub_command_execute() call.
19898
19899 2009-11-24 Carles Pina i Estany <carles@pina.cat>
19900
19901 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
19902 * conf/i386-efi.rmk: Likewise.
19903 * conf/i386-ieee1275.rmk: Likewise.
19904 * conf/i386-pc.rmk: Likewise.
19905 * conf/powerpc-ieee1275.rmk: Likewise.
19906 * conf/sparc64-ieee1275.rmk: Likewise.
19907 * conf/x86_64-efi.rmk: Likewise.
19908 * gettext/gettex.c: Include <grub/i18n.h>.
19909 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
19910 here ...
19911 * include/grub/i18n.h: ... to here
19912 * include/grub/i18n.h: ... to here.
19913 * kern/misc.c: Include <grub/i18n.h>
19914 (grub_gettext_dummy): Move above user.
19915
19916 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
19917
19918 * util/Makefile.in (install-local): Convert a `for' into a normal
19919 shell expansion.
19920
19921 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
19922
19923 * autogen.sh: Add automake call.
19924 * config.guess: Remove.
19925 * config.sub: Likewise.
19926 * install-sh: Likewise.
19927
19928 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
19929
19930 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
19931
19932 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
19933
19934 * util/Makefile.in (install-local): Convert a make `$(foreach)'
19935 function to a normal shell `for'.
19936
19937 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
19938
19939 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
19940
19941 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
19942
19943 * util/grub-mkrelpath.c: New file.
19944 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
19945 (grub_mkrelpath_SOURCES): New variable.
19946 * include/grub/util/misc.h: New function prototype.
19947 * util/misc.c (make_system_path_relative_to_its_root): New function.
19948
19949 * util/grub-mkconfig_lib.in (bindir): New variable.
19950 (grub_mkrelpath): Likewise.
19951 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
19952
19953 * util/probe.c (probe): Make the file path relative to its root.
19954 Change a info message to use the GRUB path. Enable again the
19955 check if we can read the file with GRUB facilities.
19956
19957 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
19958 to its root.
19959
19960 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
19961
19962 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
19963 platform.
19964
19965 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
19966
19967 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
19968 strncmp().
19969
19970 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
19971
19972 * util/getroot.c (grub_util_is_dmraid): New function.
19973 (grub_util_get_dev_abstraction): Treat dmraid and multipath
19974 devices as normal ones, not as LVM.
19975
19976 2009-11-23 Carles Pina i Estany <carles@pina.cat>
19977
19978 * conf/common.rmk: Add grub-gettext_lib target and updates
19979 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
19980 LDFLAGS.
19981 * gettext/gettext.c: New file. (Reads mo files).
19982 * include/grub/file.h (grub_file_pread): New prototype.
19983 * include/grub/i18n.h (_): New prototype.
19984 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
19985 prototypes.
19986 * kern/misc.c (grub_gettext_dummy): New function.
19987 * normal/menu_text.c: Include <grub/i18n.h>.
19988 * normal/menu_text.c (print_timeout): Gettexttize string.
19989 * normal/menu_text.c (print_message): Gettexttize string.
19990 * po/POTFILES: Add `normal/menu_text.c'.
19991 * po/ca.po: Add new translations.
19992 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
19993 gettext module and defines locale_dir and lang in grub.cfg.
19994 * NEWS: Add gettext support.
19995
19996 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
19997
19998 * util/hostdisk.c: Include `<grub/i18n.h>'.
19999 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
20000 (make_device_name): Rewrite using asprintf.
20001 (convert_system_partition_to_system_disk): Replace 0 with NULL.
20002 (find_system_device): If a device is not found, generate one just
20003 by reusing the OS path name.
20004 (read_device_map): Make it permissible for device.map not to exist.
20005
20006 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
20007
20008 * script/sh/execute.c: Move from here ...
20009 * script/execute.c: ... to here. Update all users.
20010 * script/sh/function.c: Move from here ...
20011 * script/function.c: ... to here. Update all users.
20012 * script/sh/lexer.c: Move from here ...
20013 * script/lexer.c: ... to here. Update all users.
20014 * script/sh/main.c: Move from here ...
20015 * script/main.c: ... to here. Update all users.
20016 * script/sh/parser.y: Move from here ...
20017 * script/parser.y: ... to here. Update all users.
20018 * script/sh/script.c: Move from here ...
20019 * script/script.c: ... to here. Update all users.
20020
20021 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
20022
20023 * configure.ac: Detect all `emu' platforms. Define
20024 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
20025 --enable-grub-emu logic. Disable include/grub/machine
20026 symlink on `emu' platforms.
20027
20028 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
20029 * gensymlist.sh.in: Likewise.
20030
20031 * include/grub/i386/coreboot/machine.h: Remove file.
20032 * include/grub/i386/efi/machine.h: Likewise.
20033 * include/grub/i386/ieee1275/machine.h: Likewise.
20034 * include/grub/i386/pc/machine.h: Likewise.
20035 * include/grub/i386/qemu/machine.h: Likewise.
20036 * include/grub/powerpc/ieee1275/machine.h: Likewise.
20037 * include/grub/sparc64/ieee1275/machine.h: Likewise.
20038 * include/grub/x86_64/efi/machine.h: Likewise.
20039
20040 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
20041 * commands/halt.c: Likewise.
20042 * commands/reboot.c: Likewise.
20043 * include/grub/autoefi.h: Likewise.
20044 * include/grub/i386/at_keyboard.h: Likewise.
20045 * include/grub/i386/kernel.h: Likewise.
20046 * include/grub/i386/loader.h: Likewise.
20047 * include/grub/i386/pc/memory.h: Likewise.
20048 * kern/dl.c: Likewise.
20049 * kern/i386/coreboot/init.c: Likewise.
20050 * loader/i386/bsd.c: Likewise.
20051 * loader/i386/linux.c: Likewise.
20052 * loader/multiboot_loader.c: Likewise.
20053 * term/i386/pc/serial.c: Likewise.
20054 * term/usb_keyboard.c: Likewise.
20055
20056 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
20057 `<grub/machine/machine.h>'
20058 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
20059 * util/misc.c: Remove `<grub/machine/machine.h>' and
20060 `<grub/machine/time.h>'.
20061
20062 * Makefile.in (enable_grub_emu): Remove variable.
20063 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
20064
20065 * conf/any-emu.rmk: New file.
20066 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
20067 (grub_emu_init.c): Move from here ...
20068 * conf/any-emu.rmk: ... to here.
20069
20070 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
20071 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
20072 * conf/any-emu.rmk: ... to here.
20073
20074 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
20075
20076 * include/grub/parser.h (grub_parser_register): Document need
20077 of `name' parameter.
20078 * normal/main.c (grub_normal_read_line): Simplify prompt string.
20079 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
20080 "sh" to "grub".
20081
20082 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
20083
20084 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
20085 `$(XGETTEXT)'.
20086 * include/grub/i18n.h (N_): New macro.
20087 * util/mkisofs/mkisofs.h: Likewise.
20088 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
20089 around N_().
20090 (usage): Use gettext() to translate help strings when printing them.
20091
20092 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
20093
20094 Based on patch from Bean
20095 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
20096
20097 * video/efi_fb.c: New file.
20098 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
20099 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
20100 variables.
20101 * conf/x86_64-efi.rmk: Likewise.
20102
20103 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
20104
20105 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
20106 * util/i386/pc/grub-setup.c: Likewise.
20107
20108 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
20109
20110 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
20111 <hurd/fs.h>
20112 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
20113 file_get_storage_info to implement grub_guess_root_device.
20114
20115 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
20116
20117 * Makefile.in (target): Use make's builtin $(shell) function
20118 instead of calling directly $(SHELL) to create the locale directories,
20119 inside the $(foreach) function.
20120
20121 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
20122
20123 * util/grub-mkrescue.in: Print an error and usage if output option
20124 has not been given.
20125
20126 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
20127
20128 Patch from Loïc Minier <loic.minier@ubuntu.com>.
20129 * util/grub.d/30_os-prober.in: Cope with Linux entries where
20130 root and /boot are on different devices.
20131
20132 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
20133
20134 Fix build for srcdir != objdir.
20135
20136 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
20137 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
20138 $(srcdir).
20139 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
20140 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
20141 reference for input.
20142
20143 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
20144
20145 * util/grub-mkrescue.in: Use source directory direcly (without copiing
20146 or hardlinking it). Remove -J option, Joliet is not compatible with
20147 multiple source directories.
20148
20149 2009-11-21 Carles Pina i Estany <carles@pina.cat>
20150 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
20151
20152 * util/grub-mkrescue.in: Recognize `--override-directory' option.
20153 (process_input_dir): New function. Process an arbitrary input
20154 directory.
20155 Misc adjustments to support both "override mode" and system-wide mode.
20156
20157 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
20158
20159 * configure.ac (UNIFONT_BDF): Rename to ...
20160 (FONT_SOURCE): ... this. Update all users.
20161
20162 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
20163
20164 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
20165 to the list of unifont files to look for.
20166
20167 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
20168
20169 Patch from Joe Auricchio <jauricchio@gmail.com>
20170 * commands/minicmd.c (grub_mini_cmd_clear): New function.
20171 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
20172 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
20173
20174 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
20175
20176 * Makefile.in (install-local): Add a missing backslash.
20177
20178 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
20179
20180 * include/grub/x86_64/io.h: New file.
20181
20182 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
20183
20184 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
20185 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
20186 Include `"progname.h"'.
20187 (main): Initialize gettext.
20188 * util/i386/pc/grub-setup.c: Gettexttize.
20189 * util/i386/pc/grub-mkimage.c: Likewise.
20190
20191 * Makefile.in (po/*.po): Redefine as ...
20192 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
20193
20194 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
20195
20196 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
20197
20198 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
20199 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
20200 (program_name): Remove.
20201 (main): Initialize gettext support.
20202 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
20203 Include `<libintl.h>'.
20204 (_): New macro.
20205
20206 * util/mkisofs/eltorito.c: Gettexttize.
20207 * util/mkisofs/joliet.c: Likewise.
20208 * util/mkisofs/mkisofs.c: Likewise.
20209 * util/mkisofs/multi.c: Likewise.
20210 * util/mkisofs/rock.c: Likewise.
20211 * util/mkisofs/tree.c: Likewise.
20212 * util/mkisofs/write.c: Likewise.
20213
20214 * po/POTFILES: Update with new files.
20215
20216 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
20217
20218 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
20219 * util/mkisofs/iso9660.h: Likewise.
20220 * util/mkisofs/joliet.c: Likewise.
20221 * util/mkisofs/mkisofs.c: Likewise.
20222 * util/mkisofs/mkisofs.h: Likewise.
20223 * util/mkisofs/rock.c: Likewise.
20224 * util/mkisofs/tree.c: Likewise.
20225 * util/mkisofs/write.c: Likewise.
20226
20227 * util/mkisofs/eltorito.c (rcsid): Remove.
20228 * util/mkisofs/hash.c: Likewise.
20229 * util/mkisofs/joliet.c: Likewise.
20230 * util/mkisofs/name.c: Likewise.
20231 * util/mkisofs/rock.c: Likewise.
20232 * util/mkisofs/tree.c: Likewise.
20233 * util/mkisofs/write.c: Likewise.
20234
20235 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
20236
20237 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
20238 instead of static allocation.
20239 * util/mkisofs/match.h: Likewise.
20240
20241 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
20242
20243 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
20244 and `util/grub.d/10_linux.in'.
20245 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
20246 translatable Shell files.
20247
20248 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
20249
20250 * Makefile.in ($(srcdir)/aclocal.m4): New target.
20251
20252 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
20253
20254 * INSTALL: Document Automake is needed for bootstrap.
20255 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
20256 * util/grub.d/10_kfreebsd.in (bindir): New variable.
20257 Add gettext initialization.
20258 (kfreebsd_entry): Make menuentry output translatable.
20259
20260 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
20261
20262 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
20263 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
20264 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
20265 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
20266 (LINGUAS): Auto-generate using `po/LINGUAS'.
20267 * po/LINGUAS: New file.
20268
20269 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
20270
20271 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
20272 other things).
20273 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
20274 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
20275 bindtextdomain() calls for gettext initialization.
20276
20277 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
20278
20279 * gnulib/progname.c: New file (imported from Gnulib).
20280 * gnulib/progname.h: Likewise.
20281 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
20282 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
20283 (usage): Replace `progname' with `program_name'.
20284 (main): Use set_program_name() for program name initialization.
20285
20286 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
20287
20288 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
20289 from here ...
20290 * Makefile.in (CPPFLAGS): ... to here.
20291
20292 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
20293
20294 * aclocal.m4: Move from here ...
20295 * acinclude.m4: ... to here.
20296 * autogen.sh: Add call to `aclocal'.
20297 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
20298
20299 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
20300
20301 * Makefile.in (CLEANFILES): Add `po/*.mo'.
20302 (LINGUAS): New variable.
20303 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
20304 (install-local): Install MO files.
20305 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
20306 * include/grub/i18n.h: New file.
20307 * po/POTFILES: New file.
20308 * po/ca.po: New file.
20309 * util/grub.d/10_linux.in (bindir): New variable.
20310 Add gettext initialization.
20311 (linux_entry): Make menuentry output translatable.
20312 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
20313 (usage): Make --help output translatable.
20314 (main): Initialize gettext.
20315
20316 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
20317
20318 * import_gcry.py: New file (written by Vladimir with minor
20319 adjustments).
20320 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
20321 ciphers.
20322 * INSTALL: Document that Python is required for bootstrap.
20323
20324 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
20325
20326 Import ciphers from libgcrypt 1.4.4.
20327
20328 * lib/libgcrypt/cipher/ChangeLog
20329 * lib/libgcrypt/cipher/ac.c
20330 * lib/libgcrypt/cipher/arcfour.c
20331 * lib/libgcrypt/cipher/bithelp.h
20332 * lib/libgcrypt/cipher/blowfish.c
20333 * lib/libgcrypt/cipher/camellia-glue.c
20334 * lib/libgcrypt/cipher/camellia.c
20335 * lib/libgcrypt/cipher/camellia.h
20336 * lib/libgcrypt/cipher/cast5.c
20337 * lib/libgcrypt/cipher/cipher.c
20338 * lib/libgcrypt/cipher/crc.c
20339 * lib/libgcrypt/cipher/des.c
20340 * lib/libgcrypt/cipher/dsa.c
20341 * lib/libgcrypt/cipher/ecc.c
20342 * lib/libgcrypt/cipher/elgamal.c
20343 * lib/libgcrypt/cipher/hash-common.c
20344 * lib/libgcrypt/cipher/hash-common.h
20345 * lib/libgcrypt/cipher/hmac-tests.c
20346 * lib/libgcrypt/cipher/md.c
20347 * lib/libgcrypt/cipher/md4.c
20348 * lib/libgcrypt/cipher/md5.c
20349 * lib/libgcrypt/cipher/primegen.c
20350 * lib/libgcrypt/cipher/pubkey.c
20351 * lib/libgcrypt/cipher/rfc2268.c
20352 * lib/libgcrypt/cipher/rijndael-tables.h
20353 * lib/libgcrypt/cipher/rijndael.c
20354 * lib/libgcrypt/cipher/rmd.h
20355 * lib/libgcrypt/cipher/rmd160.c
20356 * lib/libgcrypt/cipher/rsa.c
20357 * lib/libgcrypt/cipher/seed.c
20358 * lib/libgcrypt/cipher/serpent.c
20359 * lib/libgcrypt/cipher/sha1.c
20360 * lib/libgcrypt/cipher/sha256.c
20361 * lib/libgcrypt/cipher/sha512.c
20362 * lib/libgcrypt/cipher/tiger.c
20363 * lib/libgcrypt/cipher/twofish.c
20364 * lib/libgcrypt/cipher/whirlpool.c
20365
20366 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
20367
20368 Fix build for systems without error().
20369
20370 * gnulib/error.c: New file (imported from Gnulib).
20371 * gnulib/error.h: Likewise.
20372 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
20373 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
20374 (this variable is now used by error()).
20375
20376 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
20377
20378 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
20379 instead of relying that char is signed.
20380
20381 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
20382
20383 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
20384 blocksize different from specified.
20385 (grub_pxefs_read): Likewise.
20386
20387 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
20388
20389 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
20390
20391 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
20392 (grub_ata_readwrite): Likewise. Update 2 format strings.
20393 (grub_atapi_read): Likewise.
20394
20395 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
20396 * conf/i386.rmk (pkglib_MODULES): ... to here ...
20397 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
20398 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
20399 (ata_mod_LDFLAGS): Move from here ...
20400 * conf/i386.rmk: ... to here ...
20401 * conf/x86_64-efi.rmk: ... and here.
20402 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
20403 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
20404
20405 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
20406
20407 Relicense multiboot.h, with RMS' blessing.
20408
20409 * include/multiboot.h: Change to X11 license.
20410
20411 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
20412
20413 Support --version in grub-mkisofs.
20414
20415 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
20416 (OPTION_VERSION): New macro.
20417 (ld_options): Recognize --version.
20418 (usage): Move `program_name' from here ...
20419 (program_name): ... to here. Add `static' qualifier.
20420 (main): Recognize `OPTION_VERSION'.
20421
20422 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
20423
20424 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
20425 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
20426
20427 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
20428
20429 Fix help2man generation for mkisofs.
20430
20431 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
20432 (usage): Send output to stdout (rather than stderr).
20433
20434 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
20435
20436 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
20437 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
20438 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
20439 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
20440 (bin_SCRIPTS): Add `grub-mkfloppy'.
20441 (grub_mkfloppy_SOURCES): New variable.
20442
20443 * util/grub-mkrescue.in: New file.
20444 * util/i386/pc/grub-mkfloppy.in: New file.
20445
20446 * util/i386/coreboot/grub-mkrescue.in: Remove.
20447 * util/i386/pc/grub-mkrescue.in: Remove.
20448
20449 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
20450
20451 * include/grub/multiboot.h (struct grub_multiboot_header): Move
20452 from here ...
20453 * include/multiboot.h (struct multiboot_header): ... to here. Update
20454 all users.
20455 * include/grub/multiboot.h (struct grub_multiboot_info): Move
20456 from here ...
20457 * include/multiboot.h (struct multiboot_info): ... to here. Update
20458 all users.
20459 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
20460 from here ...
20461 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
20462 Update all users.
20463 * include/grub/multiboot.h (struct grub_mod_list): Move
20464 from here ...
20465 * include/multiboot.h (struct multiboot_mod_list): ... to here.
20466 Update all users.
20467
20468 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
20469
20470 * include/multiboot2.h (multiboot_word): Rename from this ...
20471 (multiboot2_word): ... to this. Update all users.
20472 (multiboot_header): Rename from this ...
20473 (multiboot2_header): ... to this. Update all users.
20474 (multiboot_tag_header): Rename from this ...
20475 (multiboot2_tag_header): ... to this. Update all users.
20476 (multiboot_tag_start): Rename from this ...
20477 (multiboot2_tag_start): ... to this. Update all users.
20478 (multiboot_tag_name): Rename from this ...
20479 (multiboot2_tag_name): ... to this. Update all users.
20480 (multiboot_tag_module): Rename from this ...
20481 (multiboot2_tag_module): ... to this. Update all users.
20482 (multiboot_tag_memory): Rename from this ...
20483 (multiboot2_tag_memory): ... to this. Update all users.
20484 (multiboot_tag_unused): Rename from this ...
20485 (multiboot2_tag_unused): ... to this. Update all users.
20486 (multiboot_tag_end): Rename from this ...
20487 (multiboot2_tag_end): ... to this. Update all users.
20488
20489 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
20490
20491 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
20492 this platform we should support Multiboot1 first.
20493
20494 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
20495 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
20496 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
20497
20498 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
20499
20500 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
20501 of write calls (converting them to fwrite() if they aren't already).
20502 (get_torito_desc): Likewise.
20503 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
20504
20505 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
20506
20507 * util/i386/pc/grub-install.in: Move from here ...
20508 * util/grub-install.in: ... to here. Update all users.
20509
20510 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
20511
20512 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
20513
20514 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
20515
20516 Support for El Torito without floppy emulation.
20517
20518 * util/mkisofs/eltorito.c: Include `<errno.h>'.
20519 (init_boot_catalog): Improve error handling.
20520 (get_torito_desc): Don't use floppy emulation unless requested by
20521 user. Patch boot information table when requested via
20522 `-boot-info-table'.
20523 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
20524 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
20525 (use_boot_info_table): New variables.
20526 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
20527 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
20528 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
20529 `--eltorito-emul-floppy'.
20530 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
20531 and `OPTION_ELTORITO_EMUL_FLOPPY'.
20532 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
20533 (use_boot_info_table, get_731): New prototypes.
20534 * util/mkisofs/write.c (get_731): New function.
20535
20536 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
20537
20538 Fix the generation of the man page.
20539
20540 * util/pc/i386/grub-install.in: Source
20541 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
20542
20543 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
20544
20545 Large file support for grub-mkisofs.
20546
20547 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
20548 * util/mkisofs/mkisofs.c (next_extent, last_extent)
20549 (session_start): Upgrade type to `uint64_t'. Update all users.
20550 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
20551 (struct directory_entry): Upgrade type of `starting_block' and
20552 `size' to `uint64_t'. Update all users.
20553 (struct deferred): Remove unused structure.
20554 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
20555 Update all users.
20556 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
20557 file is larger than `UINT32_MAX'.
20558 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
20559 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
20560 return value.
20561 (struct deferred_write): Upgrade type of `extent' and `size' to
20562 `uint64_t'. Update all users.
20563 (last_extent_written): Upgrade type to `uint64_t'. Update all
20564 users.
20565 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
20566 Update all users. Upgrade type of `remain' to `int64_t' and
20567 `use' to `size_t'. Use error() to handle fread() errors.
20568 (write_files): Rely on write_one_file() rather than calling
20569 xfwrite() directly.
20570
20571 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
20572
20573 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
20574
20575 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
20576
20577 * util/mkisofs/fnmatch.c: Remove.
20578 * util/mkisofs/getopt1.c: Likewise.
20579 * util/mkisofs/getopt.c: Likewise.
20580 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
20581 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
20582 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
20583 `gnulib/getopt1.c' and `gnulib/getopt.c'.
20584 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
20585
20586 * configure.ac: Detect `mingw32msvc' host_os.
20587 Check for lstat(), getuid() and getgid().
20588
20589 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
20590 instances of `u_char' with `uint8_t'.
20591
20592 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
20593 [!HAVE_GETUID] (getuid): New function (stub).
20594 [!HAVE_GETGID] (getgid): Likewise.
20595 [!HAVE_LSTAT] (lstat): Likewise.
20596 [!S_IROTH] (S_IROTH): New macro (dummy).
20597 [!S_IRGRP] (S_IRGRP): Likewise.
20598
20599 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
20600
20601 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
20602 conditional expression).
20603
20604 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
20605
20606 Import from Gnulib.
20607
20608 * gnulib/fnmatch.c: New file.
20609 * gnulib/fnmatch.h: Likewise.
20610 * gnulib/fnmatch_loop.c: Likewise.
20611 * gnulib/getopt.c: Likewise.
20612 * gnulib/getopt.h: Likewise.
20613 * gnulib/getopt1.c: Likewise.
20614 * gnulib/getopt_int.h: Likewise.
20615 * gnulib/gettext.h: Likewise.
20616
20617 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
20618
20619 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
20620 * normal/handler.c (read_handler_list): Likewise.
20621
20622 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
20623
20624 Misc cleanup.
20625
20626 * kern/command.c (grub_register_command_prio): Use
20627 grub_zalloc() instead of explicitly zeroing data.
20628 * kern/list.c: Include `<grub/mm.h>'.
20629 (grub_named_list_find): Replace `0' with `NULL'.
20630 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
20631 (fs_module_list): Change type to `grub_named_list_t'. Update all
20632 users.
20633 * normal/dyncmd.c (read_command_list): Add space between function
20634 call and parenthesis.
20635 * normal/handler.c (read_handler_list): Likewise.
20636
20637 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
20638
20639 * normal/auth.c (punishment_delay): Moved from here ...
20640 (grub_auth_strcmp): ... to here (inside function).
20641
20642 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
20643
20644 * include/grub/list.h (struct grub_named_list): Remove `const'
20645 qualifier from `name'.
20646 (struct grub_prio_list): Likewise.
20647
20648 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
20649
20650 * normal/auth.c: Include `<grub/time.h>'.
20651 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
20652
20653 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
20654
20655 * normal/auth.c (punishment_delay): New variable.
20656 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
20657 (grub_auth_check_authentication): Punish failed login attempts with
20658 an incremental (2^N) delay.
20659
20660 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
20661
20662 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
20663 path with $(srcdir).
20664
20665 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
20666
20667 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
20668
20669 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
20670
20671 * util/i386/coreboot/grub-mkrescue.in: New file.
20672 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
20673 variables.
20674
20675 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
20676 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
20677 * configure.ac: Add header and function checks to satisfy grub-mkisofs
20678 requirements.
20679 * util/mkisofs/defaults.h: New file.
20680 * util/mkisofs/eltorito.c: Likewise.
20681 * util/mkisofs/exclude.h: Likewise.
20682 * util/mkisofs/fnmatch.c: Likewise.
20683 * util/mkisofs/getopt.c: Likewise.
20684 * util/mkisofs/getopt1.c: Likewise.
20685 * util/mkisofs/hash.c: Likewise.
20686 * util/mkisofs/include/fctldefs.h: Likewise.
20687 * util/mkisofs/include/mconfig.h: Likewise.
20688 * util/mkisofs/include/prototyp.h: Likewise.
20689 * util/mkisofs/include/statdefs.h: Likewise.
20690 * util/mkisofs/iso9660.h: Likewise.
20691 * util/mkisofs/joliet.c: Likewise.
20692 * util/mkisofs/match.c: Likewise.
20693 * util/mkisofs/match.h: Likewise.
20694 * util/mkisofs/mkisofs.c: Likewise.
20695 * util/mkisofs/mkisofs.h: Likewise.
20696 * util/mkisofs/multi.c: Likewise.
20697 * util/mkisofs/name.c: Likewise.
20698 * util/mkisofs/rock.c: Likewise.
20699 * util/mkisofs/tree.c: Likewise.
20700 * util/mkisofs/write.c: Likewise.
20701
20702 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
20703
20704 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
20705 being insecure.
20706
20707 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
20708
20709 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
20710 `grub-mkimage' (and use $0 when possible).
20711
20712 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
20713
20714 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
20715 error message for excessively large memory map.
20716
20717 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
20718
20719 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
20720 executable bit.
20721
20722 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
20723
20724 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
20725 message for coreboot users.
20726
20727 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
20728
20729 Fix build with GNU gold.
20730
20731 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
20732 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
20733 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
20734 link addresses.
20735 * aclocal.m4: Likewise.
20736
20737 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
20738
20739 * configure.ac (AC_PREREQ): Bump to 2.59d.
20740 * INSTALL: Make it more clear when Autoconf and Ruby are
20741 needed and when to run `./autogen.sh'.
20742
20743 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
20744
20745 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
20746 OSes.
20747
20748 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
20749
20750 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
20751
20752 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
20753
20754 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
20755 giving it to GNU Mach.
20756
20757 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
20758
20759 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
20760 GNU partition number to get internal GRUB partition number.
20761
20762 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
20763
20764 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
20765 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
20766
20767 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
20768
20769 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
20770 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
20771 case.
20772
20773 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
20774
20775 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
20776
20777 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
20778
20779 Fix build problem.
20780
20781 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
20782 `-isystem=$(srcdir)/include'.
20783
20784 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
20785
20786 * util/i386/pc/grub-install.in: Remove hint that device.map should be
20787 checked (grub-install doesn't currently rely on it).
20788
20789 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
20790
20791 Revert SVN r2660.
20792
20793 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
20794 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
20795 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
20796 * conf/i386-ieee1275.rmk: Likewise.
20797 * conf/i386-pc.rmk: Likewise.
20798 * conf/powerpc-ieee1275.rmk: Likewise.
20799 * conf/sparc64-ieee1275.rmk: Likewise.
20800 * conf/x86_64-efi.rmk: Likewise.
20801
20802 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
20803
20804 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
20805
20806 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
20807
20808 * include/grub/misc.h: Stop checking for APPLE_CC.
20809
20810 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
20811
20812 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
20813 doesn't cause an infinite call loop.
20814
20815 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
20816
20817 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
20818 strings.
20819
20820 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
20821
20822 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
20823 variable.
20824 * Makefile.in: Likewise.
20825
20826 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
20827
20828 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
20829
20830 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
20831
20832 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
20833
20834 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
20835
20836 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
20837
20838 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
20839
20840 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
20841 from here ...
20842 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
20843
20844 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
20845
20846 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
20847 in $(MAKEINFO) invocation. This makes it clear in output that
20848 errors are being ignored.
20849
20850 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
20851
20852 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
20853 from here ...
20854 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
20855 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
20856 * conf/i386-ieee1275.rmk: Likewise.
20857 * conf/i386-pc.rmk: Likewise.
20858 * conf/powerpc-ieee1275.rmk: Likewise.
20859 * conf/sparc64-ieee1275.rmk: Likewise.
20860 * conf/x86_64-efi.rmk: Likewise.
20861
20862 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
20863
20864 * util/grub-editenv.c (main): If only a command is given, use
20865 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
20866 (usage): FILENAME is now optional and has a default.
20867
20868 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
20869
20870 Improve grub-mkconfig performance when there are several menu
20871 entries on a single filesystem.
20872
20873 * util/grub.d/10_linux.in (linux_entry): Cache the output of
20874 prepare_grub_to_access_device.
20875 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
20876 * util/grub.d/30_os-prober.in: Likewise.
20877
20878 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
20879
20880 * util/grub.d/10_freebsd.in: Remove.
20881 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
20882 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
20883
20884 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
20885
20886 * docs/grub.cfg: Fix example usage of *BSD loaders.
20887
20888 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
20889
20890 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
20891 grub_util_error() call.
20892
20893 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
20894
20895 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
20896 `reserved_first_sector' member.
20897 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
20898 `reserved_first_sector' to 1.
20899 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
20900 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
20901 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
20902 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
20903 filesystems which begin at first sector.
20904 (options): New option --skip-fs-probe.
20905 (main): Handle --skip-fs-probe and pass it to setup().
20906
20907 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
20908
20909 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
20910 (memset): Fix function prototype.
20911
20912 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
20913 2009-10-25 Vasily Averin <vvs@parallels.com>
20914
20915 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
20916 `dirent.direntlen == 0'.
20917
20918 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
20919
20920 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
20921 `cpio'.
20922 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
20923
20924 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
20925
20926 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
20927 `__trampoline_setup' and `__ucmpdi2'.
20928 * include/grub/powerpc/libgcc.h: Only export symbols for functions
20929 that libgcc provides.
20930
20931 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
20932
20933 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
20934 * include/grub/sparc64/libgcc.h (memset): Likewise.
20935 * include/grub/misc.h (memset, memcmp): New function prototypes.
20936
20937 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
20938
20939 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
20940 `cpio'.
20941 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
20942
20943 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
20944
20945 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
20946 * docs/grub.cfg: Compensate for recent change in multiboot
20947 loader (since 2009-08-14 it won't pass filename to payload).
20948 * util/grub.d/10_hurd.in: Likewise.
20949
20950 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
20951
20952 * config.guess: Update to latest version from config git
20953 repository.
20954 * config.sub: Likewise.
20955
20956 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
20957
20958 Fix build on sparc64.
20959
20960 * configure.ac: Perform checks for libgcc symbols before
20961 adding `-nostdlib' to LDFLAGS.
20962
20963 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
20964
20965 Let user specify OpenBSD root device.
20966
20967 * loader/i386/bsd.c (openbsd_root): New variable.
20968 (openbsd_opts): New option 'root'.
20969 (OPENBSD_ROOT_ARG): New macro.
20970 (grub_openbsd_boot): Use 'openbsd_root'.
20971 (grub_cmd_openbsd): Fill 'openbsd_root'.
20972
20973 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
20974
20975 * NEWS: Misc adjustments.
20976
20977 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
20978
20979 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
20980
20981 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
20982
20983 * configure.ac: Bump version to 1.97.
20984
20985 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
20986
20987 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
20988 -mno-3dnow on x86 architectures. Some toolchains enable these
20989 features by default, but they rely on registers that aren't enabled
20990 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
20991
20992 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
20993
20994 Make entry text a bit more readable.
20995
20996 * util/grub.d/10_linux.in: Add `with' before `Linux'.
20997
20998 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
20999
21000 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
21001
21002 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
21003
21004 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
21005 operations.
21006
21007 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
21008
21009 * configure.ac: Add missing dollar.
21010
21011 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
21012
21013 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
21014
21015 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
21016 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
21017 exports.
21018 * include/grub/sparc64/libgcc.h: Likewise. Use
21019 preprocessor conditionals.
21020
21021 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
21022
21023 * conf/common.rmk (grub-dumpbios): Remove rule.
21024 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
21025 * util/grub-dumpbios.in: Remove file.
21026
21027 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
21028
21029 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
21030 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
21031
21032 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
21033 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
21034 users.
21035
21036 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
21037 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
21038 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
21039 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
21040 users.
21041
21042 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
21043
21044 * term/tparm.c: Switch to GPLv3.
21045
21046 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
21047
21048 * include/grub/i386/cpuid.h: Add header protection.
21049
21050 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
21051
21052 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
21053
21054 * include/grub/i386/cpuid.h: New file.
21055 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
21056 (has_longmode): Rename to ...
21057 (grub_cpuid_has_longmode): ... this. Update all users. Remove
21058 `static' attribute.
21059 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
21060 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
21061 on a CPU that doesn't implement AMD64 instruction set.
21062
21063 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
21064
21065 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
21066 that version.texi is rebuilt on version number changes.
21067
21068 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
21069
21070 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
21071 Fixes bug #27602.
21072
21073 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
21074
21075 * util/i386/pc/grub-install.in: Source
21076 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
21077 that the --grub-probe option will work.
21078 * util/sparc64/ieee1275/grub-install.in: Likewise.
21079
21080 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
21081
21082 * configure.ac: Bump version to 1.97~beta4.
21083
21084 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
21085
21086 Resync grub-mkdevicemap in x86_64-efi.
21087
21088 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
21089 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
21090 `util/devicemap.c'.
21091
21092 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
21093
21094 * util/grub-editenv.c (create_envblk_file): Write new block with a
21095 .new suffix and then rename it into place, to ensure atomic
21096 creation.
21097
21098 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
21099
21100 Do not automatically install headers.
21101
21102 * Makefile.in (include_DATA): Remove. Update all users.
21103
21104 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
21105
21106 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
21107 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
21108
21109 * util/osdetect.lua: Remove.
21110 * script/lua/lauxlib.c: Likewise.
21111 * script/lua/ldebug.c: Likewise.
21112 * script/lua/grub_main.c: Likewise.
21113 * script/lua/lauxlib.h: Likewise.
21114 * script/lua/ldebug.h: Likewise.
21115 * script/lua/ltablib.c: Likewise.
21116 * script/lua/liolib.c: Likewise.
21117 * script/lua/lstrlib.c: Likewise.
21118 * script/lua/lualib.h: Likewise.
21119 * script/lua/ldo.c: Likewise.
21120 * script/lua/ldump.c: Likewise.
21121 * script/lua/ldo.h: Likewise.
21122 * script/lua/loslib.c: Likewise.
21123 * script/lua/lundump.c: Likewise.
21124 * script/lua/grub_lib.c: Likewise.
21125 * script/lua/ldblib.c: Likewise.
21126 * script/lua/lundump.h: Likewise.
21127 * script/lua/lmem.c: Likewise.
21128 * script/lua/grub_lib.h: Likewise.
21129 * script/lua/lmathlib.c: Likewise.
21130 * script/lua/lstate.c: Likewise.
21131 * script/lua/ltm.c: Likewise.
21132 * script/lua/lvm.c: Likewise.
21133 * script/lua/lmem.h: Likewise.
21134 * script/lua/lstate.h: Likewise.
21135 * script/lua/ltm.h: Likewise.
21136 * script/lua/ltable.c: Likewise.
21137 * script/lua/lvm.h: Likewise.
21138 * script/lua/llex.c: Likewise.
21139 * script/lua/lgc.c: Likewise.
21140 * script/lua/grub_lua.h: Likewise.
21141 * script/lua/loadlib.c: Likewise.
21142 * script/lua/lfunc.c: Likewise.
21143 * script/lua/lopcodes.c: Likewise.
21144 * script/lua/lparser.c: Likewise.
21145 * script/lua/ltable.h: Likewise.
21146 * script/lua/llex.h: Likewise.
21147 * script/lua/lgc.h: Likewise.
21148 * script/lua/lfunc.h: Likewise.
21149 * script/lua/lbaselib.c: Likewise.
21150 * script/lua/lopcodes.h: Likewise.
21151 * script/lua/lparser.h: Likewise.
21152 * script/lua/lzio.c: Likewise.
21153 * script/lua/linit.c: Likewise.
21154 * script/lua/lobject.c: Likewise.
21155 * script/lua/llimits.h: Likewise.
21156 * script/lua/lstring.c: Likewise.
21157 * script/lua/lzio.h: Likewise.
21158 * script/lua/lapi.c: Likewise.
21159 * script/lua/lcode.c: Likewise.
21160 * script/lua/lua.h: Likewise.
21161 * script/lua/lobject.h: Likewise.
21162 * script/lua/lstring.h: Likewise.
21163 * script/lua/lapi.h: Likewise.
21164 * script/lua/lcode.h: Likewise.
21165 * script/lua/luaconf.h: Likewise.
21166
21167 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
21168
21169 * docs/grub.texi (Command-line and menu entry commands): Document
21170 date and echo commands.
21171
21172 2009-09-24 Pavel Roskin <proski@gnu.org>
21173
21174 * include/grub/kernel.h (struct grub_module_header): Remove
21175 `grub_module_header_types'. Make `type' unsigned. Make `size'
21176 32-bit on all platforms.
21177 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
21178 8-bit field. Use grub_host_to_target32() for `size'.
21179 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
21180 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
21181 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
21182
21183 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
21184
21185 Fix "lost keypress" bug in at_keyboard.
21186
21187 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
21188 Checks for readyness of input buffer (without flushing it).
21189 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
21190 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
21191
21192 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
21193
21194 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
21195 size check within GRUB_MACHINE_PCBIOS section.
21196
21197 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
21198
21199 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
21200 return value.
21201 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
21202 KEYBOARD_ISREADY check.
21203 (grub_at_keyboard_checkkey): Rename to ...
21204 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
21205 Remove gratuitous cast.
21206
21207 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
21208
21209 * configure.ac: Call AC_PROG_MKDIR_P.
21210 * Makefile.in (docs/stamp-vti): Create docs directory. Create
21211 version.texi in $(builddir) rather than $(srcdir).
21212 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
21213 to makeinfo's @include search path.
21214
21215 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
21216
21217 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
21218
21219 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
21220
21221 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
21222 for `*.dpkg-new'.
21223
21224 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
21225
21226 Build info documentation. Some code borrowed from Automake.
21227
21228 * configure.ac: Check for makeinfo.
21229 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
21230 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
21231 docs/version.texi.
21232 (MOSTLYCLEANFILES): Add vti.tmp.
21233 (docs/version.texi, docs/stamp-vti): Update automatically.
21234 (docs/grub.info): Build info documentation. Use --force and ignore
21235 errors for now.
21236 (all-local): Add $(INFOS).
21237 (install-local): Install info files.
21238 (uninstall): Uninstall info files.
21239 * docs/version.texi: Remove from revision control. This file is
21240 automatically generated on build now.
21241 * gendistlist.sh: Add `*.info'.
21242
21243 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
21244
21245 * kern/term.c: Fix indentation.
21246
21247 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
21248
21249 * util/hostdisk.c: Fix a comment.
21250
21251 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
21252
21253 Fix regression introduced in r2539.
21254
21255 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
21256 to 0xA1.
21257
21258 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
21259
21260 * util/grub.d/30_os-prober.in: Don't throw away stderr from
21261 os-prober. Under normal operation, it does not print anything to
21262 stderr; if it does, we need to debug it, and throwing away stderr
21263 makes that excessively difficult.
21264
21265 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
21266
21267 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
21268
21269 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
21270
21271 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
21272 AC_LANG_PROGRAM from autoconf.
21273 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
21274 prototypes (fixes warning).
21275
21276 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
21277 `--disable-werror' was used.
21278
21279 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
21280
21281 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
21282 uninitialized `lastaddr'.
21283
21284 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
21285
21286 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
21287
21288 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
21289
21290 * commands/test.c (get_fileinfo): Return immediately if
21291 grub_fs_probe fails.
21292
21293 2009-09-14 José Martínez <xosemp@gmail.com>
21294
21295 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
21296
21297 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
21298
21299 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
21300 output.
21301
21302 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
21303
21304 * configure.ac: Remove --enable-grub-pe2elf. Only build
21305 grub-pe2elf when needed by the build system itself.
21306 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
21307
21308 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
21309
21310 * configure.ac: Bump version to 1.97~beta3.
21311 * docs/version.texi: Likewise.
21312
21313 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
21314
21315 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
21316 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
21317 from here ...
21318 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
21319 (grub_linux_setup_video): ... to here (with some adjustments).
21320
21321 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
21322
21323 Fix memory corruption issue (spotted by Colin Watson).
21324
21325 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
21326 causing returned size to be stored in an incorrect memory location.
21327 Fix use of uninitialized value when storing the returned size.
21328
21329 2009-09-12 Yves Blusseau <blusseau@zetam.org>
21330
21331 Change clean rules to properly remove files
21332
21333 * genmk.rb: add new clean rules
21334 * Makefile.in (clean): add the new targets
21335 (mostlyclean): likewise
21336
21337 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
21338
21339 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
21340 to grub_uint64_t.
21341 * fs/ntfs.c (init_file): Understand 64-bit sizes for
21342 non-resident files.
21343
21344 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
21345
21346 * configure.ac: Don't look for help2man when cross-compiling. Fixes
21347 part of bug #27349.
21348
21349 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
21350
21351 * util/grub-mkconfig.in: Make the created config mode 400 and
21352 print a warning if it fails.
21353
21354 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
21355
21356 * util/grub.d/40_custom.in: Ask user to type custom entries below
21357 comment, rather than below 'exec tail' line.
21358
21359 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
21360
21361 * util/grub.d/40_custom.in: Make sure that the explanatory text is
21362 visible in grub.cfg.
21363
21364 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
21365
21366 * util/grub.d/40_custom.in: Make it a little clearer how to use this
21367 file.
21368
21369 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
21370
21371 * docs/grub.cfg: Add an example menu entry for memtest86+.
21372
21373 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
21374
21375 * config.guess: Update to latest version from config git.
21376 * config.sub: Likewise.
21377
21378 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
21379
21380 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
21381 unknown-command case. Fixes bug #27320.
21382
21383 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
21384
21385 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
21386 `help' if the command exists.
21387
21388 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
21389
21390 * INSTALL: Require GCC 4.1.3 or later.
21391
21392 2009-09-06 Yves Blusseau <blusseau@zetam.org>
21393
21394 * Makefile.in (RMKFILES): add i386-qemu.rmk
21395 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
21396 $(srcdir)/stamp-h.in
21397
21398 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
21399
21400 * util/grub-probe.c (probe): Comment out buggy codepath, which
21401 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
21402 should be re-enabled after 1.97.
21403
21404 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
21405
21406 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
21407 find searches for.
21408
21409 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
21410
21411 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
21412 unnecessary calls to grub_error.
21413
21414 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
21415
21416 * NEWS: Mention `keystatus' and Unicode fonts.
21417
21418 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
21419
21420 * configure.ac: Bump version to 1.97~beta2.
21421 * docs/version.texi: Likewise.
21422
21423 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
21424
21425 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
21426 containing unwind information in some cases where it previously did
21427 not. Use -fno-dwarf2-cfi-asm if available to restore the old
21428 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
21429 discussion.
21430
21431 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
21432
21433 Embedding loadenv module into grub-emu
21434
21435 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
21436 commands/loadenv.c
21437 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
21438 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
21439 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
21440 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
21441 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
21442 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
21443
21444 2009-09-03 Magnus Granberg <zorry@ume.nu>
21445
21446 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
21447 include -fPIE in the default specs.
21448 * configure.ac: Check if pie_possible is yes and add -fno-PIE
21449 to TARGET_CFLAGS.
21450
21451 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
21452
21453 * INSTALL: Note that GNU Bison 2.3 or later is required.
21454
21455 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
21456
21457 * kern/i386/pc/startup.S: Fix typo.
21458
21459 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
21460
21461 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
21462 according to GCS.
21463
21464 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
21465
21466 * docs/grub.texi (Naming convention): Describe one-based partition
21467 numbering.
21468 (Device syntax): Likewise.
21469 (File name syntax): Likewise.
21470 (Block list syntax): Likewise.
21471 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
21472 menu.lst.
21473 (File name syntax): Likewise.
21474 (Command-line and menu entry commands): Document acpi, blocklist,
21475 crc, export, insmod, keystatus, ls, set, and unset commands.
21476
21477 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
21478
21479 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
21480 to avoid implying that only one of --shift, --ctrl, or --alt may be
21481 used.
21482
21483 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
21484
21485 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
21486 rather than comparing against S_IFREG, which will almost never work.
21487
21488 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
21489
21490 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
21491 (write_blocklists): Likewise.
21492
21493 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
21494
21495 * script/lua/grub_lua.h (fputs): Supply a format string as the first
21496 argument to grub_printf.
21497
21498 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
21499
21500 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
21501 non GNU test.
21502
21503 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
21504
21505 * kern/file.c (grub_file_read): Spelling fix
21506
21507 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
21508
21509 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
21510 loading of headers in some cases.
21511
21512 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
21513
21514 * configure.ac: Bump version to 1.97~beta1.
21515 * docs/version.texi: Likewise.
21516
21517 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
21518
21519 * include/grub/i386/xnu.h: Add license header.
21520 include grub/err.h explicitly.
21521
21522 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
21523
21524 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
21525 to `ufs' in the vfs.root.mountfrom kernel parameter.
21526
21527 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
21528
21529 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
21530
21531 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
21532 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
21533
21534 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
21535 `ARRAY_SIZE' macro.
21536
21537 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
21538
21539 * kern/file.c (grub_file_read): Check offset.
21540 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
21541 * fs/jfs.c (grub_jfs_read_file): Likewise.
21542 * fs/ntfs.c (grub_ntfs_read): Likewise.
21543 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
21544 * fs/minix.c (grub_minix_read_file): Correct offset check.
21545 * fs/ufs.c (grub_ufs_read_file): Likewise.
21546
21547 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
21548
21549 * term/i386/pc/console.c (bios_data_area): Cast
21550 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
21551
21552 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
21553
21554 1-bit optimised blitters.
21555
21556 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
21557 prototype.
21558 (grub_video_fbblit_replace_24bit_1bit): Likewise.
21559 (grub_video_fbblit_replace_16bit_1bit): Likewise.
21560 (grub_video_fbblit_replace_8bit_1bit): Likewise.
21561 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
21562 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
21563 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
21564 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
21565 function.
21566 (grub_video_fbblit_replace_24bit_1bit): Likewise.
21567 (grub_video_fbblit_replace_16bit_1bit): Likewise.
21568 (grub_video_fbblit_replace_8bit_1bit): Likewise.
21569 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
21570 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
21571 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
21572 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
21573 when possible.
21574 * video/video.c (grub_video_get_blit_format): Return
21575 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
21576
21577 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
21578
21579 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
21580 the first argument to grub_printf.
21581
21582 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
21583 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
21584
21585 Add `getkeystatus' terminal method. Add a new `keystatus' command
21586 to query it.
21587
21588 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
21589 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
21590 modifier key bitmasks.
21591 (struct grub_term_input): Add `getkeystatus' member.
21592 (grub_getkeystatus): Add prototype.
21593 * kern/term.c (grub_getkeystatus): New function.
21594
21595 * include/grub/i386/pc/memory.h
21596 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
21597 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
21598 Data Area layout.
21599 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
21600 (grub_console_term_input): Set `getkeystatus' member.
21601 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
21602 constants.
21603 (grub_usb_keyboard_getreport): Likewise.
21604 (grub_usb_keyboard_checkkey): Likewise.
21605 (grub_usb_keyboard_getkeystatus): New function.
21606 (grub_usb_keyboard_term): Set `getkeystatus' member.
21607
21608 * commands/keystatus.c: New file.
21609 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
21610 (keystatus_mod_SOURCES): New variable.
21611 (keystatus_mod_CFLAGS): Likewise.
21612 (keystatus_mod_LDFLAGS): Likewise.
21613 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
21614 commands/keystatus.c.
21615 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
21616 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21617 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
21618 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21619 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21620 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
21621
21622 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
21623
21624 Split befs.mod and afs.mod into *_be.mod and *.mod
21625
21626 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
21627 (grub_fstest_SOURCES): Likewise.
21628 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
21629 (afs_be_mod_SOURCES): New variable.
21630 (afs_be_mod_CFLAGS): Likewise.
21631 (afs_be_mod_LDFLAGS): Likewise.
21632 (befs_be_mod_SOURCES): Likewise.
21633 (befs_be_mod_CFLAGS): Likewise.
21634 (befs_be_mod_LDFLAGS): Likewise.
21635 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
21636 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
21637 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21638 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
21639 (grub_emu_SOURCES): Likewise.
21640 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21641 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21642 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
21643 * fs/afs_be.c: New file.
21644 * fs/befs_be.c: New file.
21645 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
21646 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
21647 (U16): Replaced with ...
21648 (grub_afs_to_cpu16): ...this. All users updated.
21649 (U32): Replaced with ...
21650 (grub_afs_to_cpu32): ...this. All users updated.
21651 (U64): Replaced with ...
21652 (grub_afs_to_cpu64): ...this. All users updated.
21653 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
21654 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
21655 (grub_afs_validate_sblock): Check only one endianness.
21656 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
21657 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
21658 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
21659 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
21660 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
21661 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
21662 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
21663 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
21664
21665 2009-08-26 Bean <bean123ch@gmail.com>
21666
21667 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
21668 64-bit number.
21669 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
21670 (grub_xfs_inode_block): Change return type to grub_uint64_t.
21671 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
21672
21673 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
21674
21675 NetBSD memory map support.
21676
21677 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
21678 (grub_netbsd_btinfo_mmap_header): New structure.
21679 (grub_netbsd_btinfo_mmap_entry): Likewise.
21680 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
21681
21682 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
21683
21684 Enable bsd.mod on coreboot.
21685
21686 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
21687 (bsd_mod_SOURCES): New variable.
21688 (bsd_mod_CFLAGS): Likewise.
21689 (bsd_mod_LDFLAGS): Likewise.
21690 (bsd_mod_ASFLAGS): Likewise.
21691 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
21692 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
21693
21694 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
21695
21696 Cleanup NetBSD root support.
21697
21698 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
21699 grub_bsd_get_device.
21700 Fix typo.
21701
21702 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
21703
21704 * util/grub.d/00_header.in: Move check for the video backend of
21705 gfxterm from here ...
21706 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
21707 a suitable video backend.
21708
21709 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
21710
21711 Fix breakage in grub-setup.
21712
21713 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
21714 "msdos_partition_map".
21715
21716 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
21717
21718 Fix breakage in normal/auth.c.
21719
21720 * normal/auth.c (grub_iswordseparator): New function.
21721
21722 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
21723
21724 Authentication support.
21725
21726 * commands/password.c: New file.
21727 * conf/common.rmk (pkglib_MODULES): Add password.mod.
21728 (password_mod_SOURCES): New variable.
21729 (password_mod_CFLAGS): Likewise.
21730 (password_mod_LDFLAGS): Likewise.
21731 (normal_mod_SOURCES): Add normal/auth.c.
21732 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
21733 normal/auth.c.
21734 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
21735 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21736 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
21737 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21738 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21739 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
21740 * include/grub/auth.h: New file.
21741 * include/grub/err.h (grub_err_t): New enum value
21742 GRUB_ERR_ACCESS_DENIED.
21743 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
21744 'users'.
21745 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
21746 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
21747 users updated.
21748 * normal/auth.c: New file.
21749 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
21750 (grub_cmdline_run): Don't allow to go to command line without
21751 authentication.
21752 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
21753 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
21754 menuentry without superuser rights.
21755 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
21756 user isn't a superuser.
21757
21758 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
21759
21760 Save space by inlining misc.c functions.
21761
21762 * kern/misc.c (grub_iswordseparator): Made static.
21763 * kern/misc.c (grub_strcat): Moved from here ...
21764 * include/grub/misc.h (grub_strcat): ... here. Inlined.
21765 * kern/misc.c (grub_strncat): Moved from here ...
21766 * include/grub/misc.h (grub_strncat): ... here. Inlined.
21767 * kern/misc.c (grub_strcasecmp): Moved from here ...
21768 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
21769 * kern/misc.c (grub_strncasecmp): Moved from here ...
21770 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
21771 * kern/misc.c (grub_isalpha): Moved from here ...
21772 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
21773 * kern/misc.c (grub_isdigit): Moved from here ...
21774 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
21775 * kern/misc.c (grub_isgraph): Moved from here ...
21776 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
21777 * kern/misc.c (grub_tolower): Moved from here ...
21778 * include/grub/misc.h (grub_tolower): ... here. Inlined.
21779
21780 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
21781
21782 * script/sh/function.c (grub_script_function_find): Cut error message
21783 not to flood terminal.
21784 * script/sh/lexer.c (grub_script_yylex): Remove command line length
21785 limit.
21786 * script/sh/script.c (grub_script_arg_add): Duplicate string.
21787
21788 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
21789
21790 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
21791 `report' grub_uint8_t *.
21792 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
21793 Use a 50-millisecond timeout rather than just repeating
21794 grub_usb_keyboard_getreport 50 times.
21795 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
21796
21797 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
21798
21799 Rename *_partition_map to part_*
21800
21801 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
21802 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
21803 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
21804 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
21805 All users updated.
21806 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
21807 All users updated.
21808 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
21809 * util/grub-probe.c (probe_partmap): Don't transform partition name
21810 to get module name.
21811
21812 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
21813
21814 Fix OpenBSD and NetBSD support.
21815
21816 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
21817 memory address conflict.
21818 (OPENBSD_MMAP_ACPI): New definition.
21819 (OPENBSD_MMAP_NVS): Likewise.
21820 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
21821 and OPENBSD_MMAP_NVS.
21822 Add memory map terminator
21823 Explicit cast when calling grub_unix_real_boot.
21824 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
21825
21826 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
21827
21828 Let user specify NetBSD root device.
21829
21830 * loader/i386/bsd.c (netbsd_root): New variable.
21831 (netbsd_opts): New option 'root'.
21832 (NETBSD_ROOT_ARG): New macro.
21833 (grub_netbsd_boot): Use 'netbsd_root'.
21834 (grub_bsd_unload): Free 'netbsd_root'.
21835 (grub_cmd_netbsd): Fill 'netbsd_root'.
21836
21837 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
21838
21839 Support for 64-bit NetBSD.
21840
21841 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
21842 point when booting non-FreeBSD.
21843
21844 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
21845
21846 Support --no-smp and --no-acpi for NetBSD.
21847
21848 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
21849 (NETBSD_AB_NOACPI): Likewise.
21850 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
21851 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
21852
21853 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
21854
21855 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
21856 errors.
21857 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
21858 errors. Call grub_error when needed.
21859
21860 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
21861
21862 * commands/search.c (search_fs): Try searching without autoload first.
21863 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
21864 filesystem module explicitly for faster booting.
21865
21866 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
21867
21868 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
21869
21870 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
21871
21872 * util/grub.d/30_os-prober.in: Disable os-prober if
21873 `GRUB_DISABLE_OS_PROBER' was set to true.
21874
21875 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
21876
21877 * partmap/pc.c: Rename to ...
21878 * partmap/msdos.c: ... this. Update all users.
21879 (grub_pc_partition_map): Rename to ...
21880 (grub_msdos_partition_map): ... this. Update all users.
21881
21882 * parttool/pcpart.c: Rename to ...
21883 * parttool/msdospart.c: ... this. Update all users.
21884
21885 * include/grub/pc_partition.h: Rename to ...
21886 * include/grub/msdos_partition.h: ... this. Update all users.
21887 (grub_pc_partition_bsd_entry): Rename to ...
21888 (grub_msdos_partition_bsd_entry): ... this. Update all users.
21889 (grub_pc_partition_disk_label): Rename to ...
21890 (grub_msdos_partition_disk_label): ... this. Update all users.
21891 (grub_pc_partition_entry): Rename to ...
21892 (grub_msdos_partition_entry): ... this. Update all users.
21893 (grub_pc_partition_mbr): Rename to ...
21894 (grub_msdos_partition_mbr): ... this. Update all users.
21895 (grub_pc_partition): Rename to ...
21896 (grub_msdos_partition): ... this. Update all users.
21897 (grub_pc_partition_is_empty): Rename to ...
21898 (grub_msdos_partition_is_empty): ... this. Update all users.
21899 (grub_pc_partition_is_extended): Rename to ...
21900 (grub_msdos_partition_is_extended): ... this. Update all users.
21901 (grub_pc_partition_is_bsd): Rename to ...
21902 (grub_msdos_partition_is_bsd): ... this. Update all users.
21903
21904 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
21905 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
21906 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
21907 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
21908 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
21909 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
21910 (gpt_mod_LDFLAGS): Rename to ...
21911 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
21912 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
21913 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
21914 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
21915 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
21916 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
21917 (part_gpt_mod_LDFLAGS): ... this.
21918 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
21919 `pcpart.mod' to `msdospart.mod'.
21920 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
21921 to ...
21922 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
21923 (msdospart_mod_LDFLAGS): ... this.
21924
21925 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
21926
21927 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
21928 (openbsd_opts): Likewise.
21929 (netbsd_opts): Likewise.
21930 (freebsd_flags): Added 0 terminator.
21931 (openbsd_flags): Likewise.
21932 (netbsd_flags): Likewise.
21933 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
21934 (grub_cmd_freebsd): Transformed into extended command.
21935 (grub_cmd_openbsd): Likewise.
21936 (grub_cmd_netbsd): Likewise.
21937 (cmd_freebsd): Changed type to grub_extcmd_t.
21938 (cmd_openbsd): Likewise.
21939 (cmd_netbsd): Likewise.
21940 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
21941 grub_cmd_openbsd as extended commands.
21942 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
21943 cmd_netbsd and cmd_openbsd
21944
21945 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
21946
21947 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
21948
21949 2009-08-21 Pavel Roskin <proski@gnu.org>
21950
21951 * Makefile.in (install-local): When checking if a file is in the
21952 build directory, use "test -e" to detect symlinks.
21953
21954 * Makefile.in (install-local): Remove all files in
21955 $(DESTDIR)$(pkglibdir) before installing new files there.
21956
21957 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
21958
21959 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
21960 grub-mkelfimage.
21961
21962 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
21963
21964 * util/grub-mkconfig.in: Don't use gfxterm by default if not
21965 explicitly specified by the user.
21966
21967 2009-08-18 Pavel Roskin <proski@gnu.org>
21968
21969 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
21970 grub_uint8_t pointer for data.
21971 * include/grub/fbutil.h (struct grub_video_fbblit_info):
21972 Likewise.
21973 * video/fb/fbutil.c: Remove unnecessary casts.
21974
21975 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
21976
21977 VBE cleanup.
21978
21979 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
21980 (grub_vbe_set_video_mode): Save active mode info
21981 only after setting the mode.
21982 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
21983 second argument.
21984
21985 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
21986
21987 Rename variables for clarity.
21988
21989 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
21990 (active_vbe_mode_info): ... this. All users updated.
21991 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
21992 All users updated.
21993 (initial_mode): Rename to ...
21994 (initial_vbe_mode): ... this. All users updated.
21995 (mode_in_use): Rename to ..
21996 (vbe_mode_in_use): ... this. All users updated.
21997 (mode_list): Rename to ..
21998 (vbe_mode_list): ... this. All users updated.
21999 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
22000 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
22001 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
22002 'mode_list_size' to 'vbe_mode_list_size'.
22003 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
22004 'best_mode_info' to 'best_vbe_mode_info' and
22005 'best_mode' to 'best_vbe_mode'
22006
22007 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
22008
22009 Remove duplicate grub_video_fb_get_video_ptr.
22010
22011 * include/grub/fbutil.h (get_data_ptr): Rename to ...
22012 (grub_video_fb_get_video_ptr): ... this.
22013 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
22014 * video/fb/fbutil.c: Add comment about addressing.
22015 (get_data_ptr): Rename to ...
22016 (grub_video_fb_get_video_ptr): ... this. All users updated.
22017 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
22018
22019 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
22020
22021 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
22022 grub_dprintf() that was just added.
22023
22024 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
22025
22026 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
22027 (DEFAULT_VIDEO_MODE): Remove macros.
22028 (grub_linux_boot): Remove assumption that Linux has FB support,
22029 and use "text" as default video mode.
22030
22031 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
22032
22033 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
22034 grub_dprintf.
22035 * fs/fat.c (grub_fat_read_data): Likewise.
22036
22037 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
22038
22039 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
22040 payload.
22041 (grub_module): Likewise.
22042
22043 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
22044
22045 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
22046 mbi->cmdline but free playground.
22047
22048 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
22049
22050 Handle group offset on UFS1.
22051
22052 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
22053 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
22054
22055 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
22056
22057 Split ufs.mod into ufs1.mod and ufs2.mod.
22058
22059 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
22060 (grub_fstest_SOURCES): Likewise.
22061 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
22062 (ufs_mod_SOURCES): Remove.
22063 (ufs_mod_CFLAGS): Likewise.
22064 (ufs_mod_LDFLAGS): Likewise.
22065 (ufs1_mod_SOURCES): New variable.
22066 (ufs1_mod_CFLAGS): Likewise.
22067 (ufs1_mod_LDFLAGS): Likewise.
22068 (ufs2_mod_SOURCES): New variable.
22069 (ufs2_mod_CFLAGS): Likewise.
22070 (ufs2_mod_LDFLAGS): Likewise.
22071 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
22072 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
22073 Likewise.
22074 (grub_emu_SOURCES): Likewise.
22075 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22076 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
22077 (grub_setup_SOURCES): Likewise.
22078 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22079 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
22080 (grub_setup_SOURCES): Likewise.
22081 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
22082 Likewise.
22083 * fs/ufs2.c: New file.
22084 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
22085
22086 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
22087
22088 Framebuffer split.
22089
22090 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
22091 subsystem at the end.
22092 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
22093 (video_fb_mod_SOURCES): New variable.
22094 (video_fb_mod_CFLAGS): Likewise.
22095 (video_fb_mod_LDFLAGS): Likewise.
22096 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
22097 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
22098 * video/i386/pc/vbeblit.c: Moved from here ...
22099 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
22100 * video/i386/pc/vbefill.c: Moved from here ...
22101 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
22102 * video/i386/pc/vbeutil.c: Moved from here ...
22103 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
22104 * include/grub/i386/pc/vbeblit.h: Moved from here ...
22105 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
22106 * include/grub/i386/pc/vbefill.h: Moved from here ...
22107 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
22108 * include/grub/i386/pc/vbeutil.h: Moved from here ...
22109 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
22110 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
22111 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
22112 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
22113 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
22114 (grub_video_adapter): Added 'get_info_and_fini'.
22115 (grub_video_get_info_and_fini): New prototype.
22116 (grub_video_set_mode): make modestring const char *.
22117 * loader/i386/linux.c (grub_linux_setup_video): Use
22118 grub_video_get_info_and_fini.
22119 (grub_linux_boot): Move modesetting just before booting.
22120 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
22121 grub_video_get_info_and_fini.
22122 * video/i386/pc/vbe.c: Moved framebuffer part ...
22123 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
22124 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
22125 grub_video_fbstd_colors and grub_video_fb_set_palette.
22126 (grub_video_vbe_init): Clear 'framebuffer' variable and use
22127 grub_video_fb_init.
22128 (grub_video_vbe_fini): Use grub_video_fb_fini.
22129 (grub_video_vbe_setup): Use framebuffer.render_target instead of
22130 render_target and use grub_video_fb_set_active_render_target and
22131 grub_video_fb_set_palette.
22132 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
22133 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
22134 (grub_video_vbe_adapter): Use framebuffer.
22135 * video/video.c (grub_video_get_info_and_fini): New function.
22136 (grub_video_set_mode): Make modestring const char *.
22137 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
22138 values are already initialised.
22139
22140 2009-08-14 Pavel Roskin <proski@gnu.org>
22141
22142 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
22143 ABS and APPLE_CC.
22144 * boot/i386/pc/diskboot.S: Likewise.
22145 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
22146 sectors allow compilation on MacOSX.
22147 * conf/i386-pc.rmk: Enable unconditional compilation of
22148 lnxboot.img.
22149
22150 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
22151
22152 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
22153 * util/grub.d/00_header.in: Enter interruptible sleep if
22154 GRUB_HIDDEN_TIMEOUT is set.
22155
22156 2009-08-13 Yves Blusseau <blusseau@zetam.org>
22157
22158 * include/grub/symbol.h: Add the LOCAL macro.
22159 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
22160 starting with "L_".
22161
22162 2009-08-13 Pavel Roskin <proski@gnu.org>
22163
22164 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
22165 any modern compilers we support.
22166
22167 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
22168 Use local labels starting with "L_" so that Apple assembler
22169 knows they are local.
22170
22171 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
22172
22173 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
22174 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
22175 (bsd_kernel_types): ... this enum.
22176
22177 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
22178 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
22179 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
22180
22181 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
22182 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
22183 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
22184 messages.
22185
22186 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
22187
22188 * util/grub-dumpdevtree: Moved from here ...
22189 * util/i386/efi/grub-dumpdevtree: ... to here.
22190 (hexify): New function. Converts a string to its hex version.
22191 Generate hex versions of "efi" and "device-properties" by calling
22192 hexify() on the ASCII strings rather than by hardcoding numbers.
22193
22194 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
22195
22196 * fs/jfs.c: Update copyright year.
22197
22198 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
22199
22200 * util/grub.d/00_header.in: Fix a comment.
22201 * util/grub.d/10_linux.in: Likewise.
22202 * util/grub.d/10_windows.in: Likewise.
22203 * util/grub.d/10_hurd.in: Likewise.
22204
22205 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
22206
22207 * util/grub-mkconfig.in: Allow the user to specify the used font
22208 with GRUB_FONT.
22209
22210 2009-08-08 Pavel Roskin <proski@gnu.org>
22211
22212 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
22213 available, xfs.mod needs it now.
22214
22215 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
22216 the "g" modifier in sed when the intention is to strip something
22217 once. This fixes comparison of kernels with multiple dashes.
22218
22219 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
22220 on it. Add missing space before closing bracket. Fix
22221 misleading formatting.
22222
22223 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
22224
22225 * docs/grub.texi: Major overhaul. Remove all sections that are
22226 specific to GRUB Legacy, or mostly composed of Legacy-specific
22227 information.
22228
22229 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
22230
22231 * docs/version.texi: New file. Provides version information for
22232 grub.texi.
22233
22234 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
22235
22236 * docs/grub.texi: Update CVS information to SVN.
22237 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
22238
22239 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
22240
22241 * util/grub-mkconfig.in: Remove a wrong `fi'.
22242
22243 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
22244
22245 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
22246 (grub_jfs_uuid): New function.
22247 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
22248
22249 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
22250
22251 * util/grub-mkconfig_lib.in (font_path): Move the functionality
22252 of it to ...
22253 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
22254 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
22255
22256 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
22257
22258 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
22259 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
22260 Update all users.
22261
22262 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
22263 not just "vmlinu[zx]".
22264 Moved from here ...
22265 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
22266 all users.
22267
22268 * util/grub.d/10_linux.in (find_latest): Moved from here ...
22269 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
22270 all users.
22271
22272 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
22273
22274 * util/grub.d/10_freebsd.in: Use an absolute device path for
22275 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
22276
22277 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
22278
22279 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
22280 handling of multiple abstraction modules.
22281
22282 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
22283
22284 Fix a bug resulting in black screen when loading Linux using a
22285 packed video mode.
22286
22287 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
22288 function.
22289
22290 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
22291 (grub_vbe_bios_getset_dac_palette_width): New function.
22292 (grub_vbe_bios_get_dac_palette_width)
22293 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
22294 grub_vbe_bios_getset_dac_palette_width()).
22295
22296 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
22297 check for return status.
22298 (grub_vbe_get_video_mode_info): When getting information for a packed
22299 mode (<= 8 bpp), obtain DAC palette width using
22300 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
22301 {red,green,blue}_mark_size.
22302
22303 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
22304
22305 * commands/search.c (options): Fix help output to match actual code.
22306
22307 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
22308
22309 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
22310 of homegrown code.
22311
22312 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
22313
22314 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
22315 on XFS or ReiserFS.
22316
22317 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
22318
22319 Support Apple partition map with sector size different from 512 bytes.
22320
22321 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
22322 (apple_partition_map_iterate): Respect 'aheader.blocksize'
22323 and 'apart.partmap_size'.
22324
22325 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
22326 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
22327
22328 Fix cpuid command.
22329
22330 * commands/i386/cpuid.c (options): New variable.
22331 (grub_cmd_cpuid): Return real error.
22332 (GRUB_MOD_INIT(cpuid)): Declare options.
22333
22334 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
22335
22336 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
22337 valid.
22338
22339 2009-07-31 Bean <bean123ch@gmail.com>
22340
22341 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
22342 log2_inode.
22343 (grub_fshelp_node): Move inode field to the end.
22344 (grub_xfs_data): Remove inode field.
22345 (grub_xfs_inode_block): Calculate inode size using sblock.
22346 (grub_xfs_inode_offset): Likewise.
22347 (grub_xfs_read_inode): Calculate inode size using sblock.
22348 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
22349 (grub_xfs_iterate_dir): Calculate inode size using sblock.
22350 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
22351 to match inode size.
22352 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
22353 not accessible when data is null.
22354 (grub_xfs_open): Likewise.
22355
22356 2009-07-31 Bean <bean123ch@gmail.com>
22357
22358 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
22359 Don't change pv->disk if it's already set.
22360
22361 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
22362 (grub_raid_register): ... here.
22363 (grub_raid_rescan): Removed.
22364
22365 * include/grub/raid.h (grub_raid_rescan): Removed.
22366
22367 * util/grub-fstest.c: Remove include file <grub/raid.h>.
22368 (fstest): Replace grub_raid_rescan with module fini function followed
22369 by init function.
22370
22371 * util/grub-probe.c: Add include file <grub/raid.h>.
22372 (probe_raid_level): New function.
22373 (probe): Detect abstraction by walking the disk device, support two
22374 level of abstraction (LVM on RAID) when detecting partition map.
22375
22376 2009-07-31 Pavel Roskin <proski@gnu.org>
22377
22378 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
22379 to grub_zalloc(), it was erroneous.
22380 Reported by Bean <bean123ch@gmail.com>
22381
22382 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
22383
22384 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
22385 embedding zone, not only the first one.
22386
22387 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
22388
22389 * term/gfxterm.c (clear_char): New function.
22390 (grub_virtual_screen_setup): Use clear_char.
22391 (scroll_up): Likewise.
22392 (grub_virtual_screen_cls): Likewise.
22393
22394 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
22395
22396 * util/deviceiter.c (get_acceleraid_disk_name): New static
22397 function.
22398 (grub_util_iterate_devices): Handle Accelraid devices.
22399 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
22400
22401 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
22402
22403 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
22404 separator for the suggested gfxpayload string (';' collides with the
22405 parser and needs escaping).
22406
22407 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
22408
22409 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
22410 Clear direction flag before jumping to OS.
22411 (grub_multiboot2_real_boot): Likewise.
22412
22413 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
22414
22415 * util/i386/pc/grub-install: Fix parsing of --disk-module
22416 option.
22417
22418 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
22419
22420 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
22421 when embedding.
22422
22423 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
22424
22425 * util/grub-mkconfig.in (package_version): New variable.
22426 Use it do display the version.
22427
22428 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
22429
22430 * kern/file.c (grub_file_open): Revert to previous check with
22431 grub_errno.
22432
22433 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
22434
22435 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
22436 from help line. It's out of sync with code.
22437
22438 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
22439
22440 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
22441 entries on failed boot.
22442
22443 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
22444
22445 * kern/file.c (grub_file_open): Fix an error check.
22446
22447 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
22448
22449 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
22450 partition map couldn't be identified.
22451
22452 2009-07-23 Pavel Roskin <proski@gnu.org>
22453
22454 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
22455 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
22456 case of little endian words becomes just an optimization.
22457 Respect const modifier.
22458 (md5_final): Use code that doesn't depend on endianness.
22459
22460 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
22461 to avoid loss of upper bits if align is unsigned and shorter
22462 than addr.
22463
22464 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
22465
22466 UUID support for UFS
22467
22468 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
22469 (grub_ufs_uuid): New function.
22470 (grub_ufs_fs): add .uuid
22471
22472 2009-07-21 Pavel Roskin <proski@gnu.org>
22473
22474 * kern/dl.c (grub_dl_check_header): Make static.
22475
22476 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
22477
22478 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
22479 add drivemap for Vista. It breaks Windows 7.
22480
22481 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
22482
22483 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
22484 128 bytes
22485
22486 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
22487
22488 Add BFS support
22489
22490 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
22491 (grub_fstest_SOURCES): Likewise.
22492 (pkglib_MODULES): Add befs.mod.
22493 (befs_mod_SOURCES): New variable.
22494 (befs_mod_CFLAGS): Likewise.
22495 (befs_mod_LDFLAGS): Likewise.
22496 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
22497 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
22498 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22499 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
22500 (grub_setup_SOURCES): Likewise.
22501 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22502 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22503 (grub_setup_SOURCES): Likewise.
22504 * fs/befs.c: New file.
22505 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
22506 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
22507 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
22508 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
22509 (B_KEY_INDEX_ALIGN): New declaration.
22510 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
22511 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
22512 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
22513 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
22514 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
22515 (grub_afs_mount) [MODE_BFS]: Likewise.
22516 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
22517 (grub_afs_fs): Use GRUB_AFS_FSNAME
22518 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
22519 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
22520 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
22521 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
22522
22523 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
22524
22525 * util/getroot.c (find_root_device): Add support for MacOSX.
22526 * util/hostdisk.c: Likewise.
22527
22528 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
22529
22530 * font/font.c (find_glyph): Check whether a font is present to avoid
22531 segmentation fault.
22532
22533 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
22534
22535 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
22536
22537 2009-07-20 Pavel Roskin <proski@gnu.org>
22538
22539 * configure.ac: Trim excessively wordy excuses.
22540
22541 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
22542
22543 Add symlink, mtime and label support to AtheFS.
22544
22545 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
22546 (grub_afs_iterate_dir): Handle symlinks.
22547 (grub_afs_open): Use grub_afs_read_symlink.
22548 (grub_afs_dir): Likewise.
22549 Pass mtime.
22550 (grub_afs_label): New function.
22551 (grub_afs_fs): Add grub_afs_label.
22552 (grub_afs_read_symlink): New function.
22553
22554 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
22555
22556 Fix AtheFS support.
22557
22558 * fs/afs.c: Fix comments style.
22559 (grub_afs_blockrun): Declare as packed.
22560 (grub_afs_datastream): Likewise.
22561 (grub_afs_bnode): Likewise.
22562 (grub_afs_btree): Likewise.
22563 (grub_afs_sblock): Likewise.
22564 Declare `name' as char.
22565 (grub_afs_inode): Declare as packed.
22566 Change void *vnode to grub_uint32_t unused.
22567 (grub_afs_iterate_dir): Check that key_size is positive.
22568 (grub_afs_mount): Don't read superblock twice.
22569 (grub_afs_dir): Don't free node in case of error,
22570 grub_fshelp_find_file already handles this.
22571 (grub_afs_open): Likewise.
22572
22573 2009-07-19 Pavel Roskin <proski@gnu.org>
22574
22575 * Makefile.in: Remove LIBLZO and enable_lzo.
22576 * conf/i386-pc.rmk: Remove lzo support.
22577 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
22578 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
22579 support.
22580 * kern/i386/pc/lzo1x.S: Remove.
22581 * kern/i386/pc/startup.S: Remove lzo support.
22582 * util/i386/pc/grub-mkimage.c: Likewise.
22583
22584 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
22585
22586 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
22587 * fs/xfs.c (grub_xfs_dir): Likewise.
22588 * fs/afs.c (grub_afs_dir): Likewise.
22589 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
22590 (grub_iso9660_open): Likewise.
22591 * fs/jfs.c (grub_jfs_open): Likewise.
22592 * fs/ext2.c (grub_ext2_dir): Likewise.
22593 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
22594 * script/sh/lexer.c (grub_script_yylex): Likewise.
22595
22596 2009-07-16 Pavel Roskin <proski@gnu.org>
22597
22598 * configure.ac: Never add "-c" to CFLAGS.
22599
22600 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
22601
22602 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
22603 grub_cv_cc_efiemu should be used.
22604
22605 * configure.ac: Typo fixes.
22606
22607 * kern/mm.c (grub_zalloc): New function.
22608 (grub_debug_zalloc): Likewise.
22609 * include/grub/mm.h: Declare grub_zalloc() and
22610 grub_debug_zalloc().
22611 * util/misc.c (grub_zalloc): New function.
22612 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
22613 instead of grub_malloc(), remove unneeded initializations.
22614 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
22615 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
22616 * commands/parttool.c (grub_cmd_parttool): Likewise.
22617 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
22618 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
22619 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
22620 * disk/usbms.c (grub_usbms_finddevs): Likewise.
22621 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
22622 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
22623 (grub_cmd_efiemu_pnvram): Likewise.
22624 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
22625 * fs/iso9660.c (grub_iso9660_mount): Likewise.
22626 (grub_iso9660_iterate_dir): Likewise.
22627 * fs/jfs.c (grub_jfs_opendir): Likewise.
22628 * fs/ntfs.c (list_file): Likewise.
22629 (grub_ntfs_mount): Likewise.
22630 * kern/disk.c (grub_disk_open): Likewise.
22631 * kern/dl.c (grub_dl_load_core): Likewise.
22632 * kern/elf.c (grub_elf_file): Likewise.
22633 * kern/env.c (grub_env_context_open): Likewise.
22634 (grub_env_set): Likewise.
22635 (grub_env_set_data_slot): Likewise.
22636 * kern/file.c (grub_file_open): Likewise.
22637 * kern/fs.c (grub_fs_blocklist_open): Likewise.
22638 * loader/i386/multiboot.c (grub_module): Likewise.
22639 * loader/xnu.c (grub_xnu_create_key): Likewise.
22640 (grub_xnu_create_value): Likewise.
22641 * normal/main.c (grub_normal_add_menu_entry): Likewise.
22642 (read_config_file): Likewise.
22643 * normal/menu_entry.c (make_screen): Likewise.
22644 * partmap/sun.c (sun_partition_map_iterate): Likewise.
22645 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
22646 * script/sh/script.c (grub_script_parse): Likewise.
22647 * video/bitmap.c (grub_video_bitmap_create): Likewise.
22648 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
22649 * video/readers/png.c (grub_png_output_byte): Likewise.
22650 (grub_video_reader_png): Likewise.
22651
22652 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
22653
22654 Enable all targets that can be built by default
22655
22656 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
22657 grub-mkfont and grub-fstest if they can be built
22658
22659 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
22660
22661 Fix hang and segmentation fault in grub-emu-usb
22662
22663 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
22664 * util/usb.c (grub_libusb_devices): likewise
22665 (grub_libusb_init): rename to ...
22666 (GRUB_MOD_INIT (libusb)):...this
22667 (grub_libusb_fini): rename to ..
22668 (GRUB_MOD_FINI (libusb)):...this
22669 * disk/usbms.c (grub_usbms_transfer): fix retry logic
22670 * include/grub/disk.h (grub_raid_init): removed, it's useless
22671 (grub_raid_fini): likewise
22672 (grub_lvm_init): likewise
22673 (grub_lvm_fini): likewise
22674 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
22675 by grub_init_all
22676
22677 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
22678
22679 Fix libusb
22680
22681 * Makefile.in (LIBUSB): new macro
22682 * genmk.rb (Utility/print_tail): new method
22683 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
22684 (top level): call util.print_tail at the end.
22685
22686 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
22687
22688 Make FreeBSD accept zpool.cache
22689
22690 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
22691 type is /boot/zfs/zpool.cache
22692
22693 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
22694
22695 Fix 64-bit efiemu
22696
22697 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
22698 correct wrong typedef
22699 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
22700
22701 2009-07-15 Pavel Roskin <proski@gnu.org>
22702
22703 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
22704 * kern/disk.c (struct grub_disk_cache): Likewise.
22705
22706 * commands/probe.c (options): Typo fix.
22707
22708 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
22709 Increase to 0x5a to accommodate FAT32. Adjust other offsets
22710 accordingly.
22711 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
22712
22713 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
22714 the end of "Error" to make the message more readable.
22715
22716 * boot/i386/pc/boot.S (kernel_segment): Remove.
22717 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
22718 for destination.
22719
22720 * boot/i386/pc/boot.S (boot_version): Remove.
22721 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
22722 Remove.
22723
22724 * include/grub/i386/pc/boot.h: Sort all offsets.
22725 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
22726 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
22727 * boot/i386/pc/boot.S: Assert location of every offset listed in
22728 include/grub/i386/pc/boot.h.
22729
22730 2009-07-13 Pavel Roskin <proski@gnu.org>
22731
22732 * include/grub/i386/coreboot/machine.h: Rename
22733 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
22734 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
22735 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
22736
22737 * kern/dl.c: Force native word size to suppress warnings when
22738 compiling grub-emu.
22739
22740 * kern/device.c (grub_device_iterate): Change struct part_ent to
22741 hold the name, not a pointer to it. Use one grub_malloc() per
22742 partition, not two. Free partition_name if grub_malloc() fails.
22743 Set ents to NULL only before grub_partition_iterate() is called.
22744
22745 2009-07-11 Bean <bean123ch@gmail.com>
22746
22747 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
22748 childname.
22749
22750 2009-07-10 Bean <bean123ch@gmail.com>
22751 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
22752
22753 * kern/ieee1275/openfw.c (grub_children_iterate)
22754 (grub_devalias_iterate): Fix size evaluation for property or path
22755 strings, which was broken since r2132.
22756
22757 2009-07-07 Pavel Roskin <proski@gnu.org>
22758
22759 * commands/search.c (search_file): Merge into ...
22760 (search_fs): ... this. Accept search type as argument.
22761 (grub_cmd_search): Pass search type to search_fs().
22762
22763 * include/grub/util/console.h: New file.
22764 * util/console.c: Use it instead of grub/machine/console.h.
22765 * util/grub-emu.c: Likewise.
22766
22767 * lib/arg.c (find_long_option): Remove.
22768 (find_long): Add `len' argument, make `s' const char *.
22769 (grub_arg_parse): Parse long options in place, not in a
22770 temporary buffer.
22771
22772 2009-07-06 Pavel Roskin <proski@gnu.org>
22773
22774 * commands/search.c (search_fs): Fix potential NULL pointer
22775 dereference.
22776
22777 * commands/search.c (search_fs): Replace QUID macro with quid_fn
22778 function pointer.
22779
22780 2009-07-06 Daniel Mierswa <impulze@impulze.org>
22781
22782 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
22783 comparison.
22784
22785 2009-07-05 Pavel Roskin <proski@gnu.org>
22786
22787 * include/grub/i386/linux.h (struct linux_kernel_params):
22788 Restore padding3, it's still needed.
22789
22790 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
22791 FreeBSD.
22792 * util/osdetect.lua: Likewise.
22793
22794 2009-07-05 Bean <bean123ch@gmail.com>
22795
22796 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
22797
22798 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
22799 (grub_lua_getenv): Likewise.
22800 (grub_lua_setenv): Likewise.
22801 (save_errno): New function.
22802 (push_result): Likewise.
22803 (grub_lua_enum_device): Likewise.
22804 (grub_lua_enum_file): Likewise.
22805 (grub_lua_file_open): Likewise.
22806 (grub_lua_file_close): Likewise.
22807 (grub_lua_file_seek): Likewise.
22808 (grub_lua_file_read): Likewise.
22809 (grub_lua_file_getline): Likewise.
22810 (grub_lua_file_getsize): Likewise.
22811 (grub_lua_file_getpos): Likewise.
22812 (grub_lua_file_eof): Likewise.
22813 (grub_lua_file_exist): Likewise.
22814 (grub_lua_add_menu): Likewise.
22815
22816 * script/lua/grub_lua.h (isupper): New inline function.
22817 (islower): Likewise.
22818 (ispunct): Likewise.
22819 (isxdigit): Likewise.
22820 (strcspn): Change to normal function.
22821 (strpbkr): New function declaration.
22822 (memchr): Likewise.
22823
22824 * script/lua/grub_main.c (scan_str): New function.
22825 (strcspn): Likewise.
22826 (strpbrk): Likewise.
22827 (memchr): Likewise.
22828
22829 * script/lua/linit.c (lualibs): Enable the string library.
22830
22831 * util/osdetect.lua: New file.
22832
22833 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
22834
22835 * include/grub/i386/linux.h (struct linux_kernel_params): Add
22836 `capabilities' member.
22837
22838 2009-07-02 Pavel Roskin <proski@gnu.org>
22839
22840 * genparttoollist.sh: Add missing newline at the end.
22841
22842 2009-07-01 Pavel Roskin <proski@gnu.org>
22843
22844 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
22845
22846 * util/hostdisk.c (open_device): Remove `const' from
22847 `sysctl_size', as sysctlbyname() can change it (in this case it
22848 doesn't actually happen).
22849
22850 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
22851 using signed long int constants.
22852
22853 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
22854 constant to avoid a warning on FreeBSD.
22855
22856 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
22857 where it's needed.
22858
22859 * Makefile.in: Install include/grub/machine symlink.
22860
22861 * Makefile.in: When installing symlinks, use "cp -fR", which
22862 works on FreeBSD and MacOSX.
22863 From Yves Blusseau <cl7m42e02@sneakemail.com>
22864
22865 * kern/dl.c (grub_dl_resolve_symbol): Make static.
22866 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
22867
22868 * util/misc.c: Move grub_reboot() and grub_halt() ...
22869 * util/grub-emu.c: ... here. Make main_env static.
22870 * include/grub/util/misc.h: Remove main_env.
22871
22872 * kern/mm.c: Use correct format to print size_t.
22873
22874 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
22875 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
22876 * kern/powerpc/dl.c: Likewise.
22877 * kern/sparc64/dl.c: Likewise.
22878 * kern/x86_64/dl.c: Likewise.
22879
22880 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
22881
22882 Fix grub-emu build on sparc64-ieee1275.
22883
22884 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
22885 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
22886
22887 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
22888
22889 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
22890 (grub_reboot, grub_halt): New functions.
22891
22892 * util/i386/pc/misc.c: Delete. Update all users.
22893 * util/sparc64/ieee1275/misc.c: Likewise.
22894 * util/powerpc/ieee1275/misc.c: Likewise.
22895
22896 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
22897
22898 * conf/i386.rmk (setjmp_mod_SOURCES)
22899 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
22900 * conf/common.rmk (setjmp_mod_SOURCES)
22901 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
22902 to use $(target_cpu).
22903 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
22904 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
22905 * conf/powerpc-ieee1275.rmk: Likewise.
22906 * conf/sparc64-ieee1275.rmk: Likewise.
22907
22908 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
22909 $(target_cpu) for kern/$(target_cpu)/dl.c.
22910 * conf/i386-efi.rmk: Likewise.
22911 * conf/i386-ieee1275.rmk: Likewise.
22912 * conf/x86_64-efi.rmk: Likewise.
22913 * conf/i386-coreboot.rmk: Likewise.
22914 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
22915 $(target_cpu) for kern/$(target_cpu)/dl.c and for
22916 kern/$(target_cpu)/cache.S.
22917 * conf/sparc64-ieee1275.rmk: Likewise.
22918
22919 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
22920
22921 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
22922 type to `grub_uint8_t', and adjust `padding9' accordingly.
22923
22924 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
22925
22926 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
22927
22928 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
22929 assembly in final jump, using register constraints.
22930
22931 (grub_linux_boot): For text mode, initialize `have_vga' using
22932 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
22933
22934 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
22935 right before the final jump.
22936
22937 Set `video_mode' to 0x3.
22938
22939 Document initialization of `video_page', `video_mode' and
22940 `video_ega_bx'.
22941
22942 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
22943
22944 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
22945 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
22946 and set GRUB_LINUX_FLAG_QUIET appropriately.
22947
22948 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
22949
22950 Fix build on Debian / sparc.
22951
22952 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
22953
22954 2009-06-28 Pavel Roskin <proski@gnu.org>
22955
22956 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
22957 fix a warning.
22958
22959 * util/grub.d/10_linux.in: Match SUSE style initrd names.
22960
22961 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
22962
22963 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
22964 `err'.
22965
22966 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
22967
22968 Revert r2338.
22969
22970 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
22971 file can't be opened. grub_file_open() is already supposed to set
22972 grub_errno / grub_errmsg appropriately.
22973 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
22974
22975 2009-06-27 Pavel Roskin <proski@gnu.org>
22976 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
22977
22978 * include/grub/dl.h: Include grub/elf.h.
22979 (struct grub_dl): Add symtab field.
22980 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
22981 GRUB_MODULES_MACHINE_READONLY.
22982 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
22983 of the header for read-only modules.
22984 (grub_dl_unload): Free mod->symtab for read-only modules.
22985 * kern/i386/dl.c: Use mod->symtab.
22986 * kern/powerpc/dl.c: Likewise.
22987 * kern/sparc64/dl.c: Likewise.
22988 * kern/x86_64/dl.c: Likewise.
22989
22990 * conf/i386-qemu.rmk: New file.
22991 * kern/i386/qemu/startup.S: Likewise.
22992 * kern/i386/qemu/mmap.c: Likewise.
22993 * boot/i386/qemu/boot.S: Likewise.
22994 * include/grub/i386/qemu/time.h: Likewise.
22995 * include/grub/i386/qemu/serial.h: Likewise.
22996 * include/grub/i386/qemu/kernel.h: Likewise.
22997 * include/grub/i386/qemu/console.h: Likewise.
22998 * include/grub/i386/qemu/boot.h: Likewise.
22999 * include/grub/i386/qemu/init.h: Likewise.
23000 * include/grub/i386/qemu/machine.h: Likewise.
23001 * include/grub/i386/qemu/loader.h: Likewise.
23002 * include/grub/i386/qemu/memory.h: Likewise.
23003
23004 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
23005 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
23006 [qemu] (pkglib_IMAGES): Add `boot.img'.
23007 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
23008 [qemu] (boot_img_FORMAT): New variables.
23009 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
23010 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
23011 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
23012 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
23013 [qemu] (kernel_img_FORMAT): New variables.
23014
23015 * configure.ac: Recognise `i386-qemu'.
23016
23017 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
23018 (for no compression).
23019 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
23020 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
23021 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
23022 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
23023 ifdefs).
23024
23025 2009-06-27 Pavel Roskin <proski@gnu.org>
23026
23027 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
23028 read.
23029 * efiemu/prepare32.c: Likewise.
23030 * efiemu/prepare64.c: Likewise.
23031
23032 2009-06-26 Pavel Roskin <proski@gnu.org>
23033
23034 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
23035 * include/grub/elf.h: Define symbols without "32" or "64" based
23036 on GRUB_TARGET_WORDSIZE.
23037 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
23038 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
23039 ELF definitions.
23040 * efiemu/loadcore64.c: Likewise.
23041 * loader/i386/bsd32.c: Likewise.
23042 * loader/i386/bsd64.c: Likewise.
23043 * kern/dl.c: Remove own ELF definitions.
23044 * util/i386/efi/grub-mkimage.c: Likewise.
23045
23046 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
23047
23048 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
23049 segment 0x0 unconditionally, because the reference generated by
23050 GAS is an absolute address.
23051
23052 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
23053
23054 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
23055 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
23056
23057 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
23058
23059 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
23060 indexes. Check for -f explicitly.
23061 (search_file): Improve error message.
23062 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
23063
23064 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
23065
23066 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
23067 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
23068
23069 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
23070
23071 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
23072 * conf/i386-ieee1275.rmk: Likewise.
23073 * conf/i386-coreboot.rmk: Likewise.
23074
23075 * kern/i386/pc/startup.S (grub_stop): Remove function.
23076 * kern/i386/ieee1275/startup.S: Likewise.
23077 * kern/i386/coreboot/startup.S: Likewise.
23078 * kern/i386/misc.S (grub_stop): New function.
23079
23080 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
23081
23082 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
23083 * kern/i386/realmode.S (real_to_prot): ... to here.
23084
23085 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
23086
23087 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
23088 with `kernel.img'.
23089 (kernel_elf_SOURCES): Rename to ...
23090 (kernel_img_SOURCES): ... this.
23091 (kernel_elf_HEADERS): Rename to ...
23092 (kernel_img_HEADERS): ... this. Update all users.
23093 (kernel_elf_ASFLAGS): Rename to ...
23094 (kernel_img_ASFLAGS): ... this.
23095 (kernel_elf_CFLAGS): Rename to ...
23096 (kernel_img_CFLAGS): ... this.
23097 (kernel_elf_LDFLAGS): Rename to ...
23098 (kernel_img_LDFLAGS): ... this.
23099 * conf/i386-coreboot.rmk: Likewise.
23100 * conf/powerpc-ieee1275.rmk: Likewise.
23101
23102 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
23103 with "kernel.img".
23104
23105 2009-06-21 Pavel Roskin <proski@gnu.org>
23106
23107 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
23108 to match nested functions.
23109 * loader/sparc64/ieee1275/linux.c: Likewise.
23110
23111 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
23112
23113 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
23114
23115 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
23116 all i386 platforms.
23117
23118 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
23119
23120 Fix asm file handling on ELF, and remove workarounds.
23121
23122 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
23123 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
23124 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
23125 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
23126
23127 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
23128
23129 Load BSD ELF modules
23130
23131 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
23132 and loader/i386/bsd64.c
23133 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
23134 (FREEBSD_MODTYPE_ELF_MODULE): New definition
23135 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
23136 (grub_freebsd_load_elfmodule32): New declaration
23137 (grub_freebsd_load_elfmoduleobj64): Likewise
23138 (grub_freebsd_load_elf_meta32): Likewise
23139 (grub_freebsd_load_elf_meta64): Likewise
23140 (grub_freebsd_add_meta): Likewise
23141 (grub_freebsd_add_meta_module): Likewise
23142 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
23143 (grub_freebsd_add_meta_module): Likewise and move module-specific
23144 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
23145 (grub_cmd_freebsd): Add elf-kernel specific parts
23146 based on grub_freebsd_add_meta_module
23147 (grub_cmd_freebsd_module): Add type parsing moved from
23148 grub_freebsd_add_meta_module
23149 (grub_cmd_freebsd_module_elf): New function
23150 (cmd_freebsd_module_elf): New variable
23151 (GRUB_MOD_INIT): Register freebsd_module_elf
23152 * loader/i386/bsd32.c: New file
23153 * loader/i386/bsd64.c: Likewise
23154 * loader/i386/bsdXX.c: Likewise
23155 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
23156 (grub_elf64_load): Likewise
23157 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
23158 All users updated
23159 (grub_elf64_load_hook_t): Likewise
23160
23161 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
23162
23163 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
23164 variable.
23165 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
23166 don't write a menu entry for recovery mode.
23167
23168 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
23169
23170 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
23171 after it's no longer needed.
23172
23173 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
23174
23175 * include/grub/i386/loader.h (grub_linux_prot_size)
23176 (grub_linux_tmp_addr, grub_linux_real_addr)
23177 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
23178 GRUB_MACHINE_PCBIOS.
23179 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
23180 common grub_util_info() call to ...
23181 (generate_image): ... here.
23182 Fix use of uninitialized memory, comparison of signed with
23183 unsigned integers and memory leak.
23184 Remove bogus module address message.
23185
23186 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
23187
23188 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
23189 grub_raid_register
23190 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
23191
23192 2009-06-19 Pavel Roskin <proski@gnu.org>
23193
23194 * configure.ac: Remove stray AC_MSG_CHECKING.
23195
23196 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
23197
23198 * disk/scsi.c (grub_scsi_open): use continue instead of big if
23199
23200 2009-06-18 Pavel Roskin <proski@gnu.org>
23201
23202 * conf/common.rmk: Add fs_file.mod.
23203 * disk/fs_file.c: New file.
23204 * include/grub/disk.h (enum grub_disk_dev_id): Add
23205 GRUB_DISK_DEVICE_FILE_ID.
23206
23207 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
23208
23209 Fix build with Apple's toolchain. Part 2
23210
23211 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
23212 a fake start
23213
23214 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
23215
23216 Fix build with Apple's toolchain. Part 1
23217
23218 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
23219 for long calls
23220 * configure.ac: remove a leftover AC_MSG_RESULT
23221 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
23222 Apple's toolchain
23223
23224 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
23225
23226 Fix warnings
23227
23228 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
23229 (decomp_block): initialize ch
23230 use grub_memcpy instead of memcpy
23231
23232 2009-06-17 Pavel Roskin <proski@gnu.org>
23233
23234 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
23235 version, use declarations needed to use vga_text as the startup
23236 console.
23237
23238 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
23239 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
23240 the kernel.
23241 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
23242 and grub_at_keyboard_fini(), it's done on module load and
23243 unload.
23244
23245 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
23246
23247 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
23248 file can't be found.
23249 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
23250
23251 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
23252
23253 Fix newline handling
23254
23255 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
23256 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
23257 (grub_script_yylex): don't segfault on unterminated script
23258 newline terminates command and variable
23259
23260 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
23261
23262 avoid double grub_adjust_range call. Bug reported by David Simner
23263
23264 * kern/disk.c (grub_disk_write): change to raw disk access before
23265 calling disk_read
23266
23267 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
23268
23269 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
23270 spaces, for the benefit of help2man.
23271 * util/i386/efi/grub-mkimage.c (usage): Likewise.
23272
23273 2009-06-16 Pavel Roskin <proski@gnu.org>
23274
23275 * kern/i386/halt.c: Include grub/machine/init.h.
23276 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
23277
23278 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
23279
23280 * util/grub.d/30_os-prober.in: Use ${root} in the generated
23281 drivemap menuentry.
23282
23283 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
23284
23285 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
23286 `echo' command.
23287
23288 2009-06-16 Pavel Roskin <proski@gnu.org>
23289
23290 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
23291 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
23292 save %dx, we only need %dl and we never change it.
23293 * boot/i386/pc/cdboot.S: Don't set the root drive.
23294 * boot/i386/pc/pxeboot.S: Likewise.
23295 * include/grub/i386/pc/boot.h: Remove
23296 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
23297 GRUB_BOOT_MACHINE_DRIVE_CHECK.
23298 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
23299 * kern/i386/pc/init.c (make_install_device): Remove references
23300 to grub_root_drive.
23301 * kern/i386/pc/startup.S: Likewise.
23302 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
23303
23304 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
23305
23306 xnu_uuid command
23307
23308 * commands/xnu_uuid.c: new file
23309 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
23310 (xnu_uuid_mod_SOURCES): new variable
23311 (xnu_uuid_mod_CFLAGS): likewise
23312 (xnu_uuid_mod_LDFLAGS): likewise
23313 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
23314 * conf/i386-ieee1275.rmk: likewise
23315 * conf/i386-pc.rmk: likewise
23316 * conf/powerpc-ieee1275.rmk: likewise
23317 * conf/sparc64-ieee1275.rmk: likewise
23318 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
23319
23320 2009-06-16 Pavel Roskin <proski@gnu.org>
23321
23322 * configure.ac: Avoid '==' in test command, it's not portable.
23323
23324 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
23325
23326 Probe command
23327
23328 * commands/probe.c: new file
23329 * conf/common.rmk (pkglib_MODULES): add probe.mod
23330 (probe_mod_SOURCES): new variable
23331 (probe_mod_CFLAGS): likewise
23332 (probe_mod_LDFLAGS): likewise
23333 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
23334 * conf/i386-ieee1275.rmk: likewise
23335 * conf/i386-pc.rmk: likewise
23336 * conf/powerpc-ieee1275.rmk: likewise
23337 * conf/sparc64-ieee1275.rmk: likewise
23338
23339 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
23340
23341 Fix handling of string like \"hello\" and "a
23342 b"
23343
23344 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
23345 (grub_script_yylex): fix parsing of quoting, escaping and newline
23346
23347 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
23348
23349 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
23350 handling
23351
23352 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
23353
23354 * util/grub-mkconfig.in: Fix parsing of --output option.
23355
23356 2009-06-12 Pavel Roskin <proski@gnu.org>
23357
23358 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
23359 genmk.rb don't need to be generated or installed.
23360
23361 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
23362
23363 * commands/i386/pc/drivemap_int13h.S: add more comments
23364
23365 2009-06-11 Pavel Roskin <proski@gnu.org>
23366
23367 * Makefile.in (uninstall): Uninstall manuals.
23368
23369 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
23370 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
23371 and update-grub_lib in two places.
23372 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
23373
23374 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
23375 a compiler warning.
23376
23377 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
23378 `entry_lo' to fix variable shadowing.
23379
23380 2009-06-11 Christian Franke <franke@computer.org>
23381
23382 * kern/misc.c (__enable_execute_stack): Add missing return type
23383 to prevent gcc warning.
23384
23385 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
23386
23387 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
23388
23389 2009-06-11 Pavel Roskin <proski@gnu.org>
23390
23391 * Makefile.in: Don't rely on any scripts being executable.
23392 Always use $(SHELL) to run shell scripts.
23393
23394 * configure.ac: Always define ___main if using -nostdlib. This
23395 fixes tests on Cygwin.
23396
23397 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
23398
23399 UDF fix
23400
23401 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
23402 is in bytes and not in blocks
23403
23404 2009-06-11 Pavel Roskin <proski@gnu.org>
23405
23406 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
23407 warning.
23408
23409 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
23410
23411 * util/grub.d/30_os-prober.in: Fix a comment. Source
23412 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
23413 to set the root device. Place drivemap command in the generated
23414 chain entry.
23415
23416 2009-06-11 Pavel Roskin <proski@gnu.org>
23417
23418 * configure.ac: Remove host_m32. Issues with 64-bit utilities
23419 have long been resolved.
23420
23421 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
23422
23423 * util/grub.d/10_linux.in: Capitalise "Linux".
23424
23425 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
23426
23427 2009-06-11 Pavel Roskin <proski@gnu.org>
23428
23429 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
23430 fix a gcc warning and ensure that the function won't ever exit.
23431
23432 * kern/i386/ieee1275/init.c: Add missing prototype for
23433 grub_stop_floppy().
23434
23435 * loader/ieee1275/multiboot2.c [__i386__]: Include
23436 grub/cpu/multiboot.h.
23437
23438 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
23439 casts to short - they are not portable and cause warnings. Fix
23440 use of uninitialized values in input_buf. Use ARRAY_SIZE.
23441
23442 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
23443
23444 Drivemap fixes
23445
23446 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
23447 new function
23448 (grub_get_root_biosnumber_saved): new variable
23449 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
23450 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
23451 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
23452 %dx after the call if necessary
23453 * conf/common.rmk (pkglib_MODULES): remove boot.mod
23454 (boot_mod_SOURCES): remove
23455 (boot_mod_CFLAGS): remove
23456 (boot_mod_LDFLAGS): remove
23457 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
23458 (boot_mod_SOURCES): new variable
23459 (boot_mod_CFLAGS): likewise
23460 (boot_mod_LDFLAGS): likewise
23461 * conf/i386-efi.rmk: likewise
23462 * conf/i386-ieee1275.rmk: likewise
23463 * conf/i386-pc.rmk: likewise
23464 * conf/powerpc-ieee1275.rmk: likewise
23465 * conf/sparc64-ieee1275.rmk: likewise
23466 * conf/x86_64-efi.rmk: likewise
23467 * include/grub/i386/pc/biosnum.h: new file
23468 * lib/i386/pc/biosnum.c: likewise
23469 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
23470 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
23471 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
23472
23473 2009-06-10 Pavel Roskin <proski@gnu.org>
23474
23475 * io/gzio.c (test_header): Don't reuse one buffer for all data.
23476 Use separate variables. Read only the file size at the end, but
23477 not the checksum that we don't use.
23478
23479 * kern/file.c (grub_file_read): Use void pointer for the buffer.
23480 Adjust all callers.
23481
23482 * kern/ieee1275/openfw.c: Remove libc includes.
23483 * kern/ieee1275/cmain.c: Likewise.
23484 * include/grub/ieee1275/ieee1275.h: Likewise.
23485
23486 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
23487 compiler warnings.
23488
23489 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
23490
23491 * Makefile.in: Remove all trailing whitespace.
23492 * conf/i386-pc.rmk: Likewise.
23493 * conf/powerpc-ieee1275.rmk: Likewise.
23494 * conf/sparc64-ieee1275.rmk: Likewise.
23495 * docs/grub.texi: Likewise.
23496 * docs/texinfo.tex: Likewise.
23497 * disk/fs_uuid.c: Likewise.
23498 * disk/lvm.c: Likewise.
23499 * disk/scsi.c: Likewise.
23500 * disk/ata.c: Likewise.
23501 * disk/ieee1275/ofdisk.c: Likewise.
23502 * disk/i386/pc/biosdisk.c: Likewise.
23503 * disk/host.c: Likewise.
23504 * disk/raid.c: Likewise.
23505 * disk/efi/efidisk.c: Likewise.
23506 * disk/usbms.c: Likewise.
23507 * disk/memdisk.c: Likewise.
23508 * disk/loopback.c: Likewise.
23509 * kern/powerpc/dl.c: Likewise.
23510 * kern/device.c: Likewise.
23511 * kern/dl.c: Likewise.
23512 * kern/sparc64/dl.c: Likewise.
23513 * kern/ieee1275/ieee1275.c: Likewise.
23514 * kern/term.c: Likewise.
23515 * kern/fs.c: Likewise.
23516 * kern/i386/dl.c: Likewise.
23517 * kern/i386/pc/startup.S: Likewise.
23518 * kern/i386/pc/init.c: Likewise.
23519 * kern/i386/pc/mmap.c: Likewise.
23520 * kern/i386/pc/lzo1x.S: Likewise.
23521 * kern/i386/ieee1275/init.c: Likewise.
23522 * kern/i386/realmode.S: Likewise.
23523 * kern/i386/tsc.c: Likewise.
23524 * kern/partition.c: Likewise.
23525 * kern/corecmd.c: Likewise.
23526 * kern/file.c: Likewise.
23527 * kern/efi/efi.c: Likewise.
23528 * kern/efi/init.c: Likewise.
23529 * kern/efi/mm.c: Likewise.
23530 * kern/main.c: Likewise.
23531 * kern/err.c: Likewise.
23532 * kern/env.c: Likewise.
23533 * kern/disk.c: Likewise.
23534 * kern/generic/millisleep.c: Likewise.
23535 * kern/generic/rtc_get_time_ms.c: Likewise.
23536 * kern/misc.c: Likewise.
23537 * kern/parser.c: Likewise.
23538 * genmk.rb: Likewise.
23539 * configure.ac: Likewise.
23540 * boot/i386/pc/diskboot.S: Likewise.
23541 * boot/i386/pc/pxeboot.S: Likewise.
23542 * boot/i386/pc/boot.S: Likewise.
23543 * boot/i386/pc/lnxboot.S: Likewise.
23544 * boot/i386/pc/cdboot.S: Likewise.
23545 * parttool/pcpart.c: Likewise.
23546 * video/readers/tga.c: Likewise.
23547 * video/video.c: Likewise.
23548 * video/bitmap.c: Likewise.
23549 * lib/envblk.c: Likewise.
23550 * lib/i386/setjmp.S: Likewise.
23551 * fs/xfs.c: Likewise.
23552 * fs/afs.c: Likewise.
23553 * fs/fat.c: Likewise.
23554 * fs/ntfs.c: Likewise.
23555 * fs/udf.c: Likewise.
23556 * fs/affs.c: Likewise.
23557 * fs/iso9660.c: Likewise.
23558 * fs/hfs.c: Likewise.
23559 * fs/fshelp.c: Likewise.
23560 * fs/ext2.c: Likewise.
23561 * fs/jfs.c: Likewise.
23562 * fs/reiserfs.c: Likewise.
23563 * fs/hfsplus.c: Likewise.
23564 * fs/minix.c: Likewise.
23565 * fs/cpio.c: Likewise.
23566 * fs/sfs.c: Likewise.
23567 * fs/ufs.c: Likewise.
23568 * efiemu/prepare.c: Likewise.
23569 * efiemu/loadcore_common.c: Likewise.
23570 * efiemu/runtime/efiemu.sh: Likewise.
23571 * efiemu/runtime/efiemu.S: Likewise.
23572 * efiemu/runtime/efiemu.c: Likewise.
23573 * efiemu/pnvram.c: Likewise.
23574 * efiemu/main.c: Likewise.
23575 * efiemu/i386/pc/cfgtables.c: Likewise.
23576 * efiemu/i386/loadcore64.c: Likewise.
23577 * efiemu/i386/loadcore32.c: Likewise.
23578 * efiemu/loadcore.c: Likewise.
23579 * efiemu/symbols.c: Likewise.
23580 * efiemu/mm.c: Likewise.
23581 * include/grub/autoefi.h: Likewise.
23582 * include/grub/datetime.h: Likewise.
23583 * include/grub/term.h: Likewise.
23584 * include/grub/hfs.h: Likewise.
23585 * include/grub/lvm.h: Likewise.
23586 * include/grub/i386/tsc.h: Likewise.
23587 * include/grub/i386/linux.h: Likewise.
23588 * include/grub/i386/xnu.h: Likewise.
23589 * include/grub/i386/efiemu.h: Likewise.
23590 * include/grub/i386/pc/biosdisk.h: Likewise.
23591 * include/grub/i386/pc/memory.h: Likewise.
23592 * include/grub/i386/pc/vbe.h: Likewise.
23593 * include/grub/parttool.h: Likewise.
23594 * include/grub/video.h: Likewise.
23595 * include/grub/memory.h: Likewise.
23596 * include/grub/fs.h: Likewise.
23597 * include/grub/partition.h: Likewise.
23598 * include/grub/xnu.h: Likewise.
23599 * include/grub/efi/api.h: Likewise.
23600 * include/grub/efi/pe32.h: Likewise.
23601 * include/grub/efi/memory.h: Likewise.
23602 * include/grub/multiboot.h: Likewise.
23603 * include/grub/usbdesc.h: Likewise.
23604 * include/grub/multiboot2.h: Likewise.
23605 * include/grub/acpi.h: Likewise.
23606 * include/grub/efiemu/efiemu.h: Likewise.
23607 * include/grub/disk.h: Likewise.
23608 * include/grub/ieee1275/ieee1275.h: Likewise.
23609 * include/grub/net.h: Likewise.
23610 * include/grub/machoload.h: Likewise.
23611 * include/grub/macho.h: Likewise.
23612 * include/multiboot.h: Likewise.
23613 * genmoddep.awk: Likewise.
23614 * normal/main.c: Likewise.
23615 * normal/menu_entry.c: Likewise.
23616 * normal/menu_viewer.c: Likewise.
23617 * normal/completion.c: Likewise.
23618 * normal/cmdline.c: Likewise.
23619 * normal/misc.c: Likewise.
23620 * normal/datetime.c: Likewise.
23621 * bus/usb/usbtrans.c: Likewise.
23622 * bus/usb/ohci.c: Likewise.
23623 * bus/usb/uhci.c: Likewise.
23624 * bus/usb/usb.c: Likewise.
23625 * mmap/efi/mmap.c: Likewise.
23626 * mmap/i386/pc/mmap_helper.S: Likewise.
23627 * mmap/i386/pc/mmap.c: Likewise.
23628 * mmap/i386/mmap.c: Likewise.
23629 * mmap/i386/uppermem.c: Likewise.
23630 * mmap/mmap.c: Likewise.
23631 * commands/acpi.c: Likewise.
23632 * commands/echo.c: Likewise.
23633 * commands/blocklist.c: Likewise.
23634 * commands/loadenv.c: Likewise.
23635 * commands/usbtest.c: Likewise.
23636 * commands/boot.c: Likewise.
23637 * commands/parttool.c: Likewise.
23638 * commands/search.c: Likewise.
23639 * commands/cat.c: Likewise.
23640 * commands/i386/pc/play.c: Likewise.
23641 * commands/i386/pc/drivemap.c: Likewise.
23642 * commands/i386/pc/vbeinfo.c: Likewise.
23643 * commands/i386/pc/acpi.c: Likewise.
23644 * commands/i386/pc/vbetest.c: Likewise.
23645 * commands/ls.c: Likewise.
23646 * commands/cmp.c: Likewise.
23647 * commands/test.c: Likewise.
23648 * commands/efi/acpi.c: Likewise.
23649 * commands/gptsync.c: Likewise.
23650 * commands/help.c: Likewise.
23651 * partmap/amiga.c: Likewise.
23652 * partmap/apple.c: Likewise.
23653 * partmap/acorn.c: Likewise.
23654 * partmap/pc.c: Likewise.
23655 * partmap/sun.c: Likewise.
23656 * partmap/gpt.c: Likewise.
23657 * script/sh/lexer.c: Likewise.
23658 * script/sh/function.c: Likewise.
23659 * font/font.c: Likewise.
23660 * font/font_cmd.c: Likewise.
23661 * loader/powerpc/ieee1275/linux.c: Likewise.
23662 * loader/efi/chainloader.c: Likewise.
23663 * loader/multiboot_loader.c: Likewise.
23664 * loader/macho.c: Likewise.
23665 * loader/i386/multiboot.c: Likewise.
23666 * loader/i386/linux.c: Likewise.
23667 * loader/i386/pc/linux.c: Likewise.
23668 * loader/i386/pc/multiboot2.c: Likewise.
23669 * loader/i386/pc/chainloader.c: Likewise.
23670 * loader/i386/pc/xnu.c: Likewise.
23671 * loader/i386/bsd_trampoline.S: Likewise.
23672 * loader/i386/efi/linux.c: Likewise.
23673 * loader/i386/multiboot_elfxx.c: Likewise.
23674 * loader/i386/bsd_helper.S: Likewise.
23675 * loader/i386/bsd.c: Likewise.
23676 * loader/i386/linux_trampoline.S: Likewise.
23677 * loader/i386/xnu_helper.S: Likewise.
23678 * loader/i386/xnu.c: Likewise.
23679 * loader/i386/bsd_pagetable.c: Likewise.
23680 * loader/i386/multiboot_helper.S: Likewise.
23681 * loader/xnu.c: Likewise.
23682 * loader/xnu_resume.c: Likewise.
23683 * io/gzio.c: Likewise.
23684 * term/efi/console.c: Likewise.
23685 * term/terminfo.c: Likewise.
23686 * term/ieee1275/ofconsole.c: Likewise.
23687 * term/i386/pc/serial.c: Likewise.
23688 * term/i386/pc/vesafb.c: Likewise.
23689 * term/i386/pc/vga.c: Likewise.
23690 * term/usb_keyboard.c: Likewise.
23691 * term/gfxterm.c: Likewise.
23692 * aclocal.m4: Likewise.
23693 * util/lvm.c: Likewise.
23694 * util/grub.d/30_os-prober.in: Likewise.
23695 * util/grub.d/10_hurd.in: Likewise.
23696 * util/console.c: Likewise.
23697 * util/grub-macho2img.c: Likewise.
23698 * util/grub-probe.c: Likewise.
23699 * util/hostfs.c: Likewise.
23700 * util/i386/pc/grub-mkimage.c: Likewise.
23701 * util/i386/pc/grub-setup.c: Likewise.
23702 * util/i386/efi/grub-mkimage.c: Likewise.
23703 * util/grub-mkconfig.in: Likewise.
23704 * util/raid.c: Likewise.
23705 * util/resolve.c: Likewise.
23706 * util/grub-mkdevicemap.c: Likewise.
23707 * util/grub-emu.c: Likewise.
23708 * util/getroot.c: Likewise.
23709 * util/hostdisk.c: Likewise.
23710 * util/usb.c: Likewise.
23711 * util/grub-editenv.c: Likewise.
23712 * util/misc.c: Likewise.
23713
23714 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
23715
23716 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
23717 `genparttoollist.sh'.
23718 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
23719 Add `*.sh' to the list find searches for and change `mdate.sh'
23720 to `mdate-sh'.
23721
23722 2009-06-10 Pavel Roskin <proski@gnu.org>
23723
23724 * include/grub/multiboot2.h: Provide compatibility defines for
23725 multiboot2.h.
23726 * include/multiboot2.h: Include stdint.h only if needed, using
23727 angle brackets.
23728 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
23729 grub/multiboot2.h.
23730 * loader/ieee1275/multiboot2.c: Likewise.
23731 * loader/multiboot2.c: Likewise.
23732 * loader/multiboot_loader.c: Likewise.
23733
23734 * configure.ac: Use -nostdlib when probing for the target. It
23735 should not be required to have libc for the target.
23736
23737 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
23738 they fail without libc headers for the target.
23739 * include/grub/powerpc/libgcc.h: Use weak attribute for all
23740 exports.
23741 * include/grub/sparc64/libgcc.h: Likewise. Don't use
23742 preprocessor conditionals.
23743
23744 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
23745 build system doesn't need to be aware of the tar.c internals.
23746
23747 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
23748
23749 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
23750
23751 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
23752
23753 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
23754 disk limit to 26 for IDE, Virtio, Xen and SCSI.
23755
23756 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
23757
23758 * util/i386/pc/grub-install.in: Change the error message if UUIDs
23759 aren't available if ata.mod gets used.
23760
23761 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
23762
23763 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
23764 initialising controller.
23765 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
23766
23767 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
23768
23769 * util/i386/pc/grub-install.in: Add a parameter --disk-module
23770 to choose between ata and biosdisk module on i386-pc.
23771
23772 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
23773
23774 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
23775 Subclass and Programming Interface fields in terms of the 3 byte
23776 Class Code register.
23777 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
23778
23779 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
23780 interface is OHCI. Add grub_dprintf for symmetry with
23781 bus/usb/uhci.c.
23782 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
23783 interface is UHCI. Add interf variable for programming
23784 interface. Print interface with class/subclass.
23785
23786 * bus/usb/ohci.c: Set interf with correct field.
23787
23788 * bus/usb/uhci.c: Remove unneeded doubled lines.
23789 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
23790 Remove whitespace inside comment.
23791
23792 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
23793
23794 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
23795 as fallback an equivalent option without depth.
23796
23797 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
23798
23799 Not fail if unable to retrieve C/H/S on LBA disks
23800
23801 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
23802 if unable to retrieve C/H/S on LBA disks
23803
23804 2009-06-08 Pavel Roskin <proski@gnu.org>
23805
23806 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
23807 about aliasing.
23808
23809 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
23810
23811 * Makefile.in (uninstall): Remove all $lib_DATA files.
23812
23813 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
23814
23815 Bugfix: install on partitionless device
23816
23817 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
23818 is a whole disk
23819
23820 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
23821
23822 * Makefile.in (uninstall): Remove all $include_DATA files.
23823
23824 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
23825
23826 * commands/true.c: New file. Implement the true and false commands.
23827 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
23828 (true_mod_SOURCES): New variable.
23829 (true_mod_CFLAGS): Likewise.
23830 (true_mod_LDFLAGS): Likewise.
23831
23832 2009-06-05 Colin D Bennett <colin@gibibit.com>
23833
23834 Optimized font character lookup using binary search instead of linear
23835 search. Fonts now are required to have the character index ordered by
23836 code point.
23837
23838 * font/font.c (load_font_index): Verify that fonts have ordered
23839 character indices.
23840 (find_glyph): Use binary search instead of linear search to find a
23841 character in a font.
23842
23843 2009-06-05 Michael Scherer <misc@mandriva.org>
23844
23845 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
23846 uses case sensitive btree.
23847 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
23848 only for case insensitive filesystems.
23849
23850 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
23851
23852 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
23853 * conf/common.rmk (search_mod_CFLAGS): likewise
23854
23855 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23856
23857 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
23858 compensate a compiler bug
23859
23860 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23861
23862 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
23863 instead of '\b'
23864
23865 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23866
23867 Definitions for creating asm symbols with Apple's CC
23868
23869 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
23870 [APPLE_CC] (VARIABLE): likewise
23871
23872 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23873
23874 Disable lnxboot.img when compiled
23875 with Apple's CC
23876
23877 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
23878 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
23879 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
23880 [! APPLE_CC] (CODE_LENG): skip
23881 [! APPLE_CC] (setup_sects): likewise
23882 [! APPLE_CC]: skip filling
23883
23884 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23885
23886 Address in trampolines based on 32-bit registers when compiled
23887 with Apple's CC
23888
23889 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
23890 for addresses
23891 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
23892
23893 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23894
23895 Avoid aliases when compiling with Apple's CC for PCBIOS machine
23896
23897 * kern/misc.c [APPLE_CC] (memcpy): new function
23898 [APPLE_CC] (memmove): likewise
23899 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
23900 (memcpy): define alias conditionally on !APPLE_CC
23901 (memset): likewise
23902 (abort): likewise
23903 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
23904 APPLE_CC are defined
23905 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
23906 (grub_assert_fail): make prototype conditional
23907
23908 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23909
23910 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
23911
23912 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
23913 grub-macho2img
23914 (CLEANFILES): add grub-macho2img
23915 (grub_macho2img_SOURCES): new variable
23916 * kern/i386/pc/startup.S (bss_start): new variable
23917 (bss_end): likewise
23918 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
23919 * util/grub-macho2img.c: new file
23920
23921 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23922
23923 Use objconv when compiling with Apple's CC
23924
23925 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
23926 (efiemu64.o): likewise
23927 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
23928 when compiling with Apple's CC
23929 (efiemu64_s.o): likewise
23930 * configure.ac: check for objconv when compiling with Apple's CC
23931 * genmk.rb: use objconv for modules when compiled with Apple's CC
23932
23933 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23934
23935 Define segment as well as section when compiling with
23936 Apple's CC
23937
23938 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
23939 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
23940 (efiemu_convert_pointer): likewise
23941 (efiemu_set_virtual_address_map): likewise
23942 (efiemu_convert_pointer): likewise
23943 (efiemu_getcrc32): likewise
23944 (init_crc32_table): likewise
23945 (reflect): likewise
23946 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
23947 (GRUB_MOD_DEP): likewise
23948
23949 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23950
23951 Allow a compilation without -mcmodel=large
23952
23953 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
23954 when compiled without -mcmodel=large
23955 (filter_memory_map): remove memory post 4 GiB when compiled
23956 without -mcmodel=large
23957 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
23958 TARGET_CFLAGS when -mcmodel=large isn't supported
23959
23960 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23961
23962 Remove nested functions in efiemu core
23963
23964 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
23965
23966 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23967
23968 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
23969
23970 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
23971 temporary storage
23972 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
23973 using Apple's CC
23974 (grub_cpu_is_tsc_supported): likewise
23975 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
23976
23977 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23978
23979 Absolute addressing through constant with Apple's cc
23980
23981 * kern/i386/pc/startup.S: Define necessary constants
23982 and address through it when using ABS with Apple's CC
23983 * boot/i386/pc/diskboot.S: likewise
23984 * boot/i386/pc/boot.S: likewise
23985 * boot/i386/pc/lnxboot.S: likewise
23986 * boot/i386/pc/cdboot.S: likewise
23987 * mmap/i386/pc/mmap_helper.S: likewise
23988 * commands/i386/pc/drivemap_int13h.S: likewise
23989
23990 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23991
23992 Check if compiler is apple cc
23993
23994 * Makefile.in (ASFLAGS): new variable
23995 (TARGET_ASFLAGS): likewise
23996 (TARGET_MODULE_FORMAT): likewise
23997 (TARGET_APPLE_CC): likewise
23998 (OBJCONV): likewise
23999 (TARGET_IMG_CFLAGS): likewise
24000 (TARGET_CPPFLAGS): add includedir
24001 * configure.ac: call grub_apple_cc and grub_apple_target_cc
24002 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
24003 Check for linker script only if compiler isn't Apple's CC
24004 (TARGET_MODULE_FORMAT): set
24005 (TARGET_APPLE_CC): likewise
24006 (TARGET_ASFLAGS): likewise
24007 (ASFLAGS): likewise
24008 Check for objcopy only if compiler isn't Apple's CC
24009 Check for BSS symbol only if compiler isn't Apple's CC
24010 * genmk.rb: adapt nm options if we use Apple's utils
24011 * aclocal.m4 (grub_apple_cc): new test
24012 (grub_apple_target_cc): likewise
24013
24014 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
24015
24016 Simplify sed expressions and improve awk
24017
24018 * Makefile.in (install-local): simplify sed expression
24019 * gencmdlist.sh: likewise
24020 * genmoddep.awk: avoid adding module as a dependency of itself
24021
24022 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
24023
24024 Add missing start symbols
24025
24026 * boot/i386/pc/boot.S: add start
24027 * boot/i386/pc/pxeboot.S: likewise
24028
24029 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
24030
24031 Fix wrong assumptions with grub-mkimage on EFI
24032
24033 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
24034 (relocate_addresses): consider both r_addend and value at offset
24035 (make_mods_section): zerofill modinfo and header
24036 (convert_elf): write prefix here
24037
24038 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
24039
24040 Use .asciz instead of .string
24041
24042 * i386/pc/diskboot.S: use .asciz instead of .string
24043 * i386/pc/boot.S: likewise
24044 * include/grub/dl.h (GRUB_MOD_DEP): likewise
24045 (GRUB_MOD_NAME): likewise
24046
24047 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
24048
24049 gfxpayload support
24050
24051 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
24052 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
24053 (grub_video_setup): remove
24054 (grub_video_set_mode): new prototype
24055 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
24056 (vid_mode): remove
24057 (linux_vesafb_res): compile only on PCBIOS
24058 (grub_linux_boot): support gfxpayload
24059 * loader/i386/pc/xnu.c (video_hook): new function
24060 (grub_xnu_set_video): support gfxpayload
24061 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
24062 (DEFAULT_VIDEO_HEIGHT): likewise
24063 (DEFAULT_VIDEO_FLAGS): likewise
24064 (DEFAULT_VIDEO_MODE): new definition
24065 (video_hook): new function
24066 (grub_gfxterm_init): use grub_video_set_mode
24067 * util/grub.d/30_os-prober.in: remove explicit modesetting before
24068 loading xnu
24069 * video/video.c (grub_video_setup): removed
24070 (grub_video_set_mode): new function based on grub_gfxterm_init and
24071 grub_video_setup
24072
24073 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
24074
24075 Avoid calling biosdisk in drivemap
24076
24077 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
24078 (revparse_biosdisk): likewise
24079 (list_mappings): derive name from id directly
24080 (grub_cmd_drivemap): use tryparse_diskstring
24081
24082 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
24083
24084 Script fixes
24085
24086 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
24087 (grub_lexer_param): add tokenonhold
24088 (grub_script_create_cmdline): remove cmdline. All callers updated
24089 (grub_script_function_create): make functionname
24090 grub_script_arg. All callers updated
24091 (grub_script_execute_argument_to_string): new prototype
24092 * kern/parser.c (state_transitions): reorder
24093 (grub_parser_cmdline_state): fix a bug and make more compact
24094 * script/sh/execute.c (grub_script_execute_argument_to_string):
24095 make global
24096 (grub_script_execute_cmdline): use new format
24097 * script/sh/function.c (grub_script_function_create): make functionname
24098 grub_script_arg. All callers updated
24099 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
24100 (grub_script_yylex): remove
24101 (grub_script_yylex2): renamed to ...
24102 (grub_script_yylex): ...renamed
24103 parse the expressions like a${b}c
24104 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
24105 (GRUB_PARSER_TOKEN_VAR): remove
24106 (GRUB_PARSER_TOKEN_NAME): likewise
24107 ("if"): declare as typeless
24108 ("while"): likewise
24109 ("function"): likewise
24110 ("else"): likewise
24111 ("then"): likewise
24112 ("fi"): likewise
24113 (text): remove
24114 (argument): likewise
24115 (script): accept empty scripts and make exit on error
24116 (arguments): use GRUB_PARSER_TOKEN_ARG
24117 (function): likewise
24118 (command): move error handling to script
24119 (menuentry): move grub_script_lexer_ref before
24120 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
24121 argument. All callers updated
24122
24123 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
24124
24125 Prevent GRUB from probing floppies during boot.
24126
24127 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
24128 * commands/search.c (options): Add --no-floppy.
24129 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
24130 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
24131 --no-floppy when searching for UUIDs.
24132
24133 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
24134
24135 Simplify the code duplication in commands/search.c.
24136
24137 * commands/search.c (search_label, search_fs_uuid): Merge into ...
24138 (search_fs): ... this. Update all users.
24139
24140 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
24141
24142 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
24143
24144 2009-05-28 Pavel Roskin <proski@gnu.org>
24145
24146 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
24147 Remove the original symlink explicitly.
24148
24149 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
24150 just one slash. That's how grub_fshelp_find_file() does it.
24151
24152 2009-05-26 Pavel Roskin <proski@gnu.org>
24153
24154 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
24155 to `str'.
24156
24157 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
24158 possibly unused.
24159
24160 2009-05-25 Christian Franke <franke@computer.org>
24161
24162 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
24163 register.
24164 (grub_atapi_identify): Add wait after drive select.
24165 (grub_ata_identify): Do more strict status register check before
24166 calling grub_atapi_identify (). Suppress error message if status
24167 register is 0x00 after command failure. Add status register
24168 check after PIO read to avoid bogus identify due to stuck DRQ.
24169 Thanks to Pavel Roskin for testing.
24170 (grub_device_initialize): Remove unsafe status register check.
24171 Thanks to 'phcoder' for problem report and patch.
24172 Prevent sign extension in debug message.
24173
24174 2009-05-23 Colin D Bennett <colin@gibibit.com>
24175
24176 Cleaned up `include/grub/normal.h'. Grouped prototypes by
24177 definition file, and functions defined in `normal/menu.c' have had
24178 their prototypes moved to `include/grub/menu.h' for consistency.
24179
24180 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
24181 from normal.h.
24182 (grub_menu_get_entry): Likewise.
24183 (grub_menu_get_timeout): Likewise.
24184 (grub_menu_set_timeout): Likewise.
24185 (grub_menu_execute_entry): Likewise.
24186 (grub_menu_execute_with_fallback): Likewise.
24187 (grub_menu_entry_run): Likewise.
24188
24189 * include/grub/normal.h: Re-ordered and grouped function
24190 prototypes by file that the function is defined in.
24191 (grub_menu_execute_callback): Removed; moved to menu.h.
24192 (grub_menu_get_entry): Likewise.
24193 (grub_menu_get_timeout): Likewise.
24194 (grub_menu_set_timeout): Likewise.
24195 (grub_menu_execute_entry): Likewise.
24196 (grub_menu_execute_with_fallback): Likewise.
24197 (grub_menu_entry_run): Likewise.
24198 (grub_menu_addentry): Renamed from this ...
24199 (grub_normal_add_menu_entry): ... to this.
24200
24201 * normal/main.c (grub_menu_addentry): Renamed from this ...
24202 (grub_normal_add_menu_entry): ... to this.
24203
24204 * script/sh/execute.c (grub_script_execute_menuentry): Update
24205 reference to renamed grub_menu_addentry function.
24206
24207 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
24208
24209 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
24210
24211 2009-05-22 Pavel Roskin <proski@gnu.org>
24212
24213 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
24214 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
24215 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
24216 compiling for the i386 targets, but not for the utilities.
24217
24218 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
24219 to grub_uint8_t.
24220 (grub_root_drive): Likewise.
24221 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
24222 remove alignment.
24223 (grub_root_drive): Change size to byte.
24224 (grub_start_addr): Remove.
24225 (grub_end_addr): Likewise.
24226 (grub_apm_bios_info): Likewise.
24227
24228 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
24229
24230 * normal/i386: Remove.
24231 * normal/powerpc: Likewise.
24232 * normal/sparc64: Likewise.
24233 * normal/x86_64: Likewise.
24234
24235 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
24236
24237 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
24238 * loader/i386/linux_trampoline.S: Fix indentation
24239 * loader/i386/xnu_helper.S: Likewise
24240
24241 2009-05-18 Colin D Bennett <colin@gibibit.com>
24242
24243 Display error messages when parsing a Lua statement fails.
24244 Previously, executing a syntactically invalid statement like
24245 ")foo" or "bar;" would silently fail.
24246
24247 * script/lua/grub_main.c (handle_lua_error): New function.
24248 (grub_lua_parse_line): Improved reporting of Lua parser and
24249 execution errors.
24250
24251 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
24252
24253 Remove -Werror which causes build to fail on some systems
24254
24255 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
24256 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
24257 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
24258
24259 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
24260
24261 trampoline for linux on 64-bit platform
24262
24263 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
24264 loader/i386/efi/linux_trampoline.S
24265 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
24266 declaration
24267 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
24268 here
24269 * loader/i386/linux_trampoline.S: moved here
24270 * loader/i386/efi/linux.c (allocate_pages): reserve space for
24271 trampoline
24272 (jumpvector): removed
24273 (grub_linux_trampoline_start): new declaration
24274 (grub_linux_trampoline_end): likewise
24275 (grub_linux_boot): use trampoline when on 64-bit platform
24276 * loader/i386/linux.c: likewise
24277
24278 2009-05-16 Pavel Roskin <proski@gnu.org>
24279
24280 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
24281 const to avoid a warning.
24282 (grub_lua_setenv): Likewise.
24283 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
24284 lmsg to fix a warning.
24285
24286 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
24287
24288 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
24289 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
24290 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
24291 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
24292 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
24293 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
24294 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
24295 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
24296
24297 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
24298
24299 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
24300
24301 2009-05-16 Bean <bean123ch@gmail.com>
24302
24303 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
24304 (lua_mod_SOURCES): New variable.
24305 (lua_mod_CFLAGS): Likewise.
24306 (lua_mod_LDFLAGS): Likewise.
24307
24308 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
24309 (setjmp_mod_SOURCES): New variable.
24310 (setjmp_mod_CFLAGS): Likewise.
24311 (setjmp_LDFLAGS): Likewise.
24312
24313 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
24314 (setjmp_mod_SOURCES): New variable.
24315 (setjmp_mod_CFLAGS): Likewise.
24316 (setjmp_LDFLAGS): Likewise.
24317
24318 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
24319 (setjmp_mod_SOURCES): New variable.
24320 (setjmp_mod_CFLAGS): Likewise.
24321 (setjmp_LDFLAGS): Likewise.
24322
24323 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
24324 (setjmp_mod_SOURCES): New variable.
24325 (setjmp_mod_CFLAGS): Likewise.
24326 (setjmp_LDFLAGS): Likewise.
24327
24328 * normal/i386/setjmp.S: Moved from here ...
24329 * lib/i386/setjmp.S: ... Moved here
24330 * normal/x86_64/setjmp.S: Moved from here ...
24331 * lib/x86_64/setjmp.S: ... Moved here
24332 * normal/powerpc/setjmp.S: Moved from here ...
24333 * lib/powerpc/setjmp.S: ... Moved here
24334 * normal/sparc64/setjmp.S: Moved from here ...
24335 * lib/sparc64/setjmp.S: ... Moved here
24336
24337 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
24338 returns_twice in mingw.
24339
24340 * script/lua/grub_lib.c: New file.
24341 * script/lua/grub_lib.h: Likewise.
24342 * script/lua/grub_lua.h: Likewise.
24343 * script/lua/grub_main.c: Likewise.
24344 * script/lua/lapi.c: Likewise.
24345 * script/lua/lapi.h: Likewise.
24346 * script/lua/lauxlib.c: Likewise.
24347 * script/lua/lauxlib.h: Likewise.
24348 * script/lua/lbaselib.c: Likewise.
24349 * script/lua/lcode.c: Likewise.
24350 * script/lua/lcode.h: Likewise.
24351 * script/lua/ldblib.c: Likewise.
24352 * script/lua/ldebug.c: Likewise.
24353 * script/lua/ldebug.h: Likewise.
24354 * script/lua/ldo.c: Likewise.
24355 * script/lua/ldo.h: Likewise.
24356 * script/lua/ldump.c: Likewise.
24357 * script/lua/lfunc.c: Likewise.
24358 * script/lua/lfunc.h: Likewise.
24359 * script/lua/lgc.c: Likewise.
24360 * script/lua/lgc.h: Likewise.
24361 * script/lua/linit.c: Likewise.
24362 * script/lua/liolib.c: Likewise.
24363 * script/lua/llex.c: Likewise.
24364 * script/lua/llex.h: Likewise.
24365 * script/lua/llimits.h: Likewise.
24366 * script/lua/lmathlib.c: Likewise.
24367 * script/lua/lmem.c: Likewise.
24368 * script/lua/lmem.h: Likewise.
24369 * script/lua/loadlib.c: Likewise.
24370 * script/lua/lobject.c: Likewise.
24371 * script/lua/lobject.h: Likewise.
24372 * script/lua/lopcodes.c: Likewise.
24373 * script/lua/lopcodes.h: Likewise.
24374 * script/lua/loslib.c: Likewise.
24375 * script/lua/lparser.c: Likewise.
24376 * script/lua/lparser.h: Likewise.
24377 * script/lua/lstate.c: Likewise.
24378 * script/lua/lstate.h: Likewise.
24379 * script/lua/lstring.c: Likewise.
24380 * script/lua/lstring.h: Likewise.
24381 * script/lua/lstrlib.c: Likewise.
24382 * script/lua/ltable.c: Likewise.
24383 * script/lua/ltable.h: Likewise.
24384 * script/lua/ltablib.c: Likewise.
24385 * script/lua/ltm.c: Likewise.
24386 * script/lua/ltm.h: Likewise.
24387 * script/lua/lua.h: Likewise.
24388 * script/lua/luaconf.h: Likewise.
24389 * script/lua/lualib.h: Likewise.
24390 * script/lua/lundump.c: Likewise.
24391 * script/lua/lundump.h: Likewise.
24392 * script/lua/lvm.c: Likewise.
24393 * script/lua/lvm.h: Likewise.
24394 * script/lua/lzio.c: Likewise.
24395 * script/lua/lzio.h: Likewise.
24396
24397 2009-05-16 Bean <bean123ch@gmail.com>
24398
24399 * include/grub/kernel.h (grub_module_header_types): Add type
24400 OBJ_TYPE_CONFIG.
24401
24402 * kern/main.c (grub_load_config): New function.
24403 (grub_main): Call grub_load_config to read boot config.
24404
24405 * grub-mkimage (generate_image): New parameter config_path.
24406 (options): New option --config.
24407 (main): Parse --config option, and pass it to generate_image.
24408
24409 2009-05-14 Christian Franke <franke@computer.org>
24410
24411 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
24412 This fixes build on Cygwin.
24413
24414 2009-05-14 Pavel Roskin <proski@gnu.org>
24415
24416 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
24417 jump. This saves two bytes, so the typical case of 2 swapped
24418 drives would fit 32 bytes.
24419
24420 2009-05-13 Pavel Roskin <proski@gnu.org>
24421
24422 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
24423 grub_uint32_t to avoid a warning.
24424
24425 * loader/i386/linux.c (allocate_pages): When assigning
24426 real_mode_mem, cast through grub_size_t to fix a warning. The
24427 code already makes sure that the value would fit a pointer.
24428 (grub_linux_setup_video): Cast render_target->data to
24429 grub_size_t to fix a warning.
24430
24431 2009-05-13 Javier Martín <lordhabbit@gmail.com>
24432
24433 * commands/i386/pc/drivemap.c: New file - implement drivemap
24434 command.
24435 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
24436 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
24437
24438 2009-05-13 Pavel Roskin <proski@gnu.org>
24439
24440 * util/i386/pc/grub-setup.c (setup): Remove unused variable
24441 embedding_area_exists.
24442
24443 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
24444
24445 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
24446 it easier to understand / work with.
24447 Improve warning messages for cases where there's no embedding area,
24448 or when it is too small (or core.img too large).
24449
24450 2009-05-13 Pavel Roskin <proski@gnu.org>
24451
24452 * loader/i386/pc/multiboot2.c: Add necessary includes for
24453 grub_multiboot2_real_boot().
24454
24455 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
24456 PX record is always little-endian. We only need the lower 2
24457 bytes of the mode.
24458
24459 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
24460 facilitate code reuse.
24461 (grub_cpio_mount): Use "struct head", not a char buffer. This
24462 fixes a warning reported by gcc 4.4.
24463
24464 * kernel/disk.c (grub_disk_read): Use void pointer for the
24465 buffer.
24466 (grub_disk_write): Use const void pointer for the buffer.
24467 Adjust all callers. Remove unnecessary casts.
24468
24469 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
24470
24471 * util/i386/pc/grub-install.in: Update copyright year.
24472
24473 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
24474
24475 gptsync
24476
24477 * commands/gptsync.c: new file
24478 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
24479 (gptsync_mod_SOURCES): new variable
24480 (gptsync_mod_CFLAGS): likewise
24481 (gptsync_mod_LDFLAGS): likewise
24482 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
24483 new definition
24484 (GRUB_PC_PARTITION_TYPE_HFS): likewise
24485 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
24486 * conf/i386-ieee1275.rmk: likewise
24487 * conf/i386-pc.rmk: likewise
24488 * conf/powerpc-ieee1275.rmk: likewise
24489
24490 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
24491
24492 Fixed grub-emu
24493
24494 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
24495 (grub_dl_ref): likewise
24496
24497 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
24498
24499 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
24500 split in two functions (one for msdos and one for gpt).
24501
24502 2009-05-08 Pavel Roskin <proski@gnu.org>
24503
24504 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
24505 not modified.
24506
24507 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
24508 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
24509 Initialize them with -1. Add sanity check for bad1. Eliminate
24510 nerr variable.
24511
24512 2009-05-08 David S. Miller <davem@davemloft.net>
24513
24514 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
24515
24516 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
24517
24518 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
24519 existence.
24520
24521 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
24522
24523 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
24524 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
24525
24526 2009-05-05 David S. Miller <davem@davemloft.net>
24527
24528 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
24529
24530 2009-05-05 Pavel Roskin <proski@gnu.org>
24531
24532 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
24533 of grub_dl_ref() and grub_dl_unref().
24534 * commands/parttool.c: Remove preprocessor conditionals around
24535 grub_dl_ref() and grub_dl_unref().
24536 * fs/affs.c: Likewise.
24537 * fs/afs.c: Likewise.
24538 * fs/cpio.c: Likewise.
24539 * fs/ext2.c: Likewise.
24540 * fs/fat.c: Likewise.
24541 * fs/hfs.c: Likewise.
24542 * fs/hfsplus.c: Likewise.
24543 * fs/iso9660.c: Likewise.
24544 * fs/jfs.c: Likewise.
24545 * fs/minix.c: Likewise.
24546 * fs/ntfs.c: Likewise.
24547 * fs/reiserfs.c: Likewise.
24548 * fs/sfs.c: Likewise.
24549 * fs/udf.c: Likewise.
24550 * fs/ufs.c: Likewise.
24551 * fs/xfs.c: Likewise.
24552 * include/grub/dl.h: Likewise.
24553 * loader/xnu.c: Likewise.
24554
24555 2009-05-04 Pavel Roskin <proski@gnu.org>
24556
24557 * commands/acpi.c: Remove unused variable my_mod.
24558 * partmap/amiga.c: Likewise.
24559 * partmap/apple.c: Likewise.
24560 * partmap/gpt.c: Likewise.
24561 * partmap/pc.c: Likewise.
24562 * partmap/sun.c: Likewise.
24563 * term/gfxterm.c: Likewise.
24564 * term/i386/pc/vesafb.c: Likewise.
24565 * term/i386/pc/vga.c: Likewise.
24566
24567 2009-05-04 David S. Miller <davem@davemloft.net>
24568
24569 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
24570 pointer args to grub_ieee1275_get_property().
24571
24572 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
24573
24574 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
24575 devices, and do not traverse down under controller nodes.
24576
24577 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
24578 (grub_ofdisk_open): Use it to un-escape "," characters.
24579 * kern/disk.c (find_part_sep): New.
24580 (grub_disk_open): Use it to find the first non-escaped ','
24581 character in the disk name.
24582 * util/ieee1275/devicemap.c (escape_of_path): New.
24583 (grub_util_emit_devicemap_entry): Use it.
24584 * util/sparc64/ieee1275/grub-install.in: Update script to
24585 strip partition specifiers properly by not triggering on
24586 '\' escaped ',' characters.
24587
24588 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
24589
24590 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
24591 to 0x300.
24592 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
24593 resolutions.
24594 (linux_vesafb_modes): Add a lot of additional modes to the list (based
24595 on documentation from Wikipedia).
24596
24597 2009-05-04 Pavel Roskin <proski@gnu.org>
24598
24599 * disk/ata.c: Spelling fixes.
24600 * disk/raid.c: Likewise.
24601 * disk/usbms.c: Likewise.
24602 * disk/dmraid_nvidia.c: Likewise.
24603 * kern/ieee1275/openfw.c: Likewise.
24604 * kern/ieee1275/init.c: Likewise.
24605 * kern/ieee1275/cmain.c: Likewise.
24606 * boot/i386/pc/cdboot.S: Likewise.
24607 * video/readers/png.c: Likewise.
24608 * video/i386/pc/vbe.c: Likewise.
24609 * fs/udf.c: Likewise.
24610 * fs/hfs.c: Likewise.
24611 * fs/reiserfs.c: Likewise.
24612 * efiemu/runtime/efiemu.c: Likewise.
24613 * efiemu/main.c: Likewise.
24614 * efiemu/mm.c: Likewise.
24615 * include/grub/elf.h: Likewise.
24616 * include/grub/xnu.h: Likewise.
24617 * include/grub/usbdesc.h: Likewise.
24618 * include/grub/usb.h: Likewise.
24619 * include/grub/script_sh.h: Likewise.
24620 * include/grub/lib/LzmaEnc.h: Likewise.
24621 * include/grub/efiemu/efiemu.h: Likewise.
24622 * include/grub/command.h: Likewise.
24623 * normal/menu.c: Likewise.
24624 * normal/main.c: Likewise.
24625 * normal/datetime.c: Likewise.
24626 * bus/usb/uhci.c: Likewise.
24627 * mmap/i386/uppermem.c: Likewise.
24628 * mmap/mmap.c: Likewise.
24629 * commands/acpi.c: Likewise.
24630 * commands/test.c: Likewise.
24631 * partmap/apple.c: Likewise.
24632 * font/font.c: Likewise.
24633 * loader/sparc64/ieee1275/linux.c: Likewise.
24634 * loader/macho.c: Likewise.
24635 * loader/i386/bsd_trampoline.S: Likewise.
24636 * loader/i386/bsd.c: Likewise.
24637 * loader/xnu.c: Likewise.
24638 * term/i386/pc/vesafb.c: Likewise.
24639 * term/usb_keyboard.c: Likewise.
24640 * util/resolve.c: Likewise.
24641 * util/getroot.c: Likewise.
24642
24643 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
24644
24645 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
24646
24647 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
24648
24649 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
24650 build error.
24651
24652 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
24653
24654 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
24655 parameter only available on BIOS.
24656
24657 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
24658
24659 Removed wrong semicolon in declaration
24660
24661 * grub/misc.h (grub_dprintf): remove semicolon
24662
24663 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
24664
24665 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
24666 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
24667 is done by grub_cmd_linux() now).
24668 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
24669 restore video to text mode.
24670 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
24671 indicates lack of "vga=" parameter. "vga=0" is mapped to
24672 `GRUB_LINUX_VID_MODE_NORMAL'.
24673
24674 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
24675
24676 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
24677 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
24678 and `normal/script.c'. Add `kern/rescue_reader.c',
24679 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
24680 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
24681 `grub_script.tab.c'.
24682
24683 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24684 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
24685 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24686 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
24687 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24688
24689 * Makefile.in: Remove duplicated 2008 in Copyright line.
24690
24691 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
24692
24693 * util/misc.c (grub_util_warn): New function. Emits a warning
24694 unconditionally.
24695 * include/grub/util/misc.h (grub_util_warn): New declaration.
24696
24697 * util/i386/pc/grub-install.in: Understand --force and pass it down
24698 to grub-setup.
24699
24700 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
24701 down to setup().
24702 (setup): Improve error messages and add warnings when requested to
24703 install in odd layouts. Refuse to install using blocklists unless
24704 --force was set.
24705
24706 2009-05-04 martin f. krafft <madduck@madduck.net>
24707
24708 * disk/raid.c (grub_raid_scan_device): Improve debug message.
24709
24710 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
24711
24712 Updated copyright year
24713
24714 * fs/hfsplus.c: updated copyright year
24715
24716 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
24717
24718 HFS+ UUID
24719
24720 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
24721 in the space previously used by unused3
24722 (grub_hfsplus_uuid): new function
24723 (grub_hfsplus_fs): added uuid field
24724
24725 2009-05-03 Pavel Roskin <proski@gnu.org>
24726
24727 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
24728 suppress warnings. It's no longer needed.
24729 * disk/host.c: Likewise.
24730 * disk/ata_pthru.c: Likewise.
24731 * disk/loopback.c: Likewise.
24732 * hook/datehook.c: Likewise.
24733 * parttool/pcpart.c: Likewise.
24734 * fs/i386/pc/pxe.c: Likewise.
24735 * fs/ntfscomp.c: Likewise.
24736 * efiemu/main.c: Likewise.
24737 * mmap/mmap.c: Likewise.
24738 * commands/crc.c: Likewise.
24739 * commands/hexdump.c: Likewise.
24740 * commands/hdparm.c: Likewise.
24741 * commands/acpi.c: Likewise.
24742 * commands/echo.c: Likewise.
24743 * commands/minicmd.c: Likewise.
24744 * commands/blocklist.c: Likewise.
24745 * commands/memrw.c: Likewise.
24746 * commands/loadenv.c: Likewise.
24747 * commands/usbtest.c: Likewise.
24748 * commands/lsmmap.c: Likewise.
24749 * commands/boot.c: Likewise.
24750 * commands/parttool.c: Likewise.
24751 * commands/configfile.c: Likewise.
24752 * commands/search.c: Likewise.
24753 * commands/ieee1275/suspend.c: Likewise.
24754 * commands/cat.c: Likewise.
24755 * commands/i386/pc/pxecmd.c: Likewise.
24756 * commands/i386/pc/play.c: Likewise.
24757 * commands/i386/pc/halt.c: Likewise.
24758 * commands/i386/pc/vbeinfo.c: Likewise.
24759 * commands/i386/pc/vbetest.c: Likewise.
24760 * commands/lspci.c: Likewise.
24761 * commands/date.c: Likewise.
24762 * commands/handler.c: Likewise.
24763 * commands/ls.c: Likewise.
24764 * commands/test.c: Likewise.
24765 * commands/cmp.c: Likewise.
24766 * commands/efi/loadbios.c: Likewise.
24767 * commands/efi/fixvideo.c: Likewise.
24768 * commands/halt.c: Likewise.
24769 * commands/help.c: Likewise.
24770 * commands/reboot.c: Likewise.
24771 * hello/hello.c: Likewise.
24772 * script/sh/main.c: Likewise.
24773 * loader/xnu.c: Likewise.
24774 * term/terminfo.c: Likewise.
24775 * term/i386/pc/serial.c: Likewise.
24776 * term/usb_keyboard.c: Likewise.
24777
24778 2009-05-03 David S. Miller <davem@davemloft.net>
24779
24780 * normal/menu.c: Include grub/parser.h
24781
24782 2009-05-03 Pavel Roskin <proski@gnu.org>
24783
24784 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
24785 not char*.
24786 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
24787 Suggested by Javier Martín <lordhabbit@gmail.com>
24788
24789 * util/i386/pc/grub-mkrescue.in: Allow for the case when
24790 efiemu??.o doesn't exist.
24791 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
24792 copying.
24793
24794 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
24795
24796 FreeBSD 64-bit support
24797
24798 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
24799 and loader/i386/bsd_trampoline.S
24800 (bsd_mod_ASFLAGS): new variable
24801 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
24802 (FREEBSD_MODTYPE_KERNEL64): likewise
24803 (grub_bsd64_trampoline_start): likewise
24804 (grub_bsd64_trampoline_end): likewise
24805 (grub_bsd64_trampoline_selfjump): likewise
24806 (grub_bsd64_trampoline_gdt): likewise
24807 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
24808 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
24809 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
24810 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
24811 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
24812 of "attrib" member
24813 * loader/i386/bsd_pagetable.c: new file
24814 * loader/i386/bsd_trampoline.S: likewise
24815 * loader/i386/bsd.c (ALIGN_QWORD): new macro
24816 (ALIGN_VAR): likewise
24817 (entry_hi): new variable
24818 (kern_end_mdofs): likewise
24819 (is_64bit): likewise
24820 (grub_freebsd_add_meta): use ALIGN_VAR
24821 (grub_e820_mmap): new declaration
24822 (grub_freebsd_add_mmap): new function
24823 (grub_freebsd_add_meta_module): support 64 bit kernels
24824 (grub_freebsd_list_modules): use ALIGN_VAR
24825 (gdt_descriptor): new declaration
24826 (grub_freebsd_boot): support 64 bit kernels
24827 (grub_bsd_elf64_hook): new function
24828 (grub_bsd_load_elf): support elf64
24829
24830 2009-05-03 Bean <bean123ch@gmail.com>
24831
24832 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
24833 after we get the result of if statement.
24834
24835 2009-05-03 Bean <bean123ch@gmail.com>
24836
24837 * Makefile.in (enable_efiemu): New variable.
24838
24839 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
24840 set.
24841 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
24842 path.
24843 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
24844 path, add -mno-red-zone option.
24845 (efiemu64_s.o): Likewise.
24846 (efiemu64.o): Use macro $^ for source file.
24847
24848 * configure.ac (--enable-efiemu): New option.
24849
24850 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
24851
24852 xnu support
24853
24854 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
24855 (pkglib_MODULES): add xnu.mod
24856 (xnu_mod_SOURCES): new variable
24857 (xnu_mod_CFLAGS): likewise
24858 (xnu_mod_LDFLAGS): likewise
24859 (xnu_mod_ASFLAGS): likewise
24860 * conf/i386-pc.rmk: likewise
24861 * conf/x86_64-efi.rmk: likewise
24862 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
24863 new declaration
24864 * include/grub/i386/macho.h: new file
24865 * include/grub/i386/xnu.h: likewise
24866 * include/grub/macho.h: likewise
24867 * include/grub/machoload.h: likewise
24868 * include/grub/x86_64/macho.h: likewise
24869 * include/grub/x86_64/xnu.h: likewise
24870 * include/grub/xnu.h: likewise
24871 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
24872 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
24873 * loader/i386/efi/xnu.c: new file
24874 * loader/i386/pc/xnu.c: likewise
24875 * loader/i386/xnu.c: likewise
24876 * loader/i386/xnu_helper.S: likewise
24877 * loader/macho.c: likewise
24878 * loader/xnu.c: likewise
24879 * loader/xnu_resume.c: likewise
24880 * util/grub-dumpdevtree: likewise
24881 * include/grub/i386/pit.h: include grub/err.h
24882 (grub_pit_wait): export
24883 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
24884
24885 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
24886
24887 Efiemu
24888
24889 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
24890 _linux_efi, linux_efi.
24891 new files in grub-emu
24892 new targets efiemu32.o and efiemu64.o
24893 * loader/linux_normal_efiemu.c: likewise
24894 * loader/i386/efi/linux.c: added preliminary efiemu support
24895 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
24896 files to copy
24897 * include/grub/autoefi.h: new file
24898 * include/grub/i386/efiemu.h: likewise
24899 * include/grub/i386/pc/efiemu.h: likewise
24900 * include/grub/efi/api.h: add LL suffix when necessary
24901 new definitions relating to tables
24902 * include/grub/efiemu/efiemu.h: new file
24903 * include/grub/efiemu/runtime.h: likewise
24904 * efiemu/prepare.c: likewise
24905 * efiemu/loadcore_common.c: likewise
24906 * efiemu/loadcore64.c: likewise
24907 * efiemu/runtime/efiemu.sh: likewise
24908 * efiemu/runtime/efiemu.S: likewise
24909 * efiemu/runtime/efiemu.c: likewise
24910 * efiemu/runtime/config.h: likewise
24911 * efiemu/prepare32.c: likewise
24912 * efiemu/main.c: likewise
24913 * efiemu/modules/pnvram.c: likewise
24914 * efiemu/modules/i386: likewise
24915 * efiemu/modules/i386/pc: likewise
24916 * efiemu/modules/acpi.c: likewise
24917 * efiemu/i386/pc/cfgtables.c: likewise
24918 * efiemu/i386/loadcore64.c: likewise
24919 * efiemu/i386/loadcore32.c: likewise
24920 * efiemu/prepare64.c: likewise
24921 * efiemu/loadcore.c: likewise
24922 * efiemu/symbols.c: likewise
24923 * efiemu/mm.c: likewise
24924 * efiemu/loadcore32.c: likewise
24925
24926 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
24927
24928 ACPI spoofing
24929
24930 * commands/acpi.c: new file
24931 * commands/i386/pc/acpi.c: likewise
24932 * commands/efi/acpi.c: likewise
24933 * include/grub/acpi.h: likewise
24934 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
24935 (acpi_mod_SOURCES): new variable
24936 (acpi_mod_CFLAGS): likewise
24937 (acpi_mod_LDFLAGS): likewise
24938 * conf/i386-efi.rmk: likewise
24939 * conf/x86_64-efi.rmk: likewise
24940
24941 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
24942
24943 Missing part from mmap patch
24944
24945 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
24946 (grub_mmap_unregister)
24947 (grub_mmap_free_and_unregister): use grub_mmap_register
24948
24949 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
24950
24951 Mmap services
24952
24953 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
24954 * loader/i386/linux.c (find_mmap_size): likewise
24955 (allocate_pages): likewise
24956 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
24957 (grub_fill_multiboot_mmap): likewise
24958 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
24959 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
24960 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
24961 (OPENBSD_MMAP_RESERVED): likewise
24962 * include/grub/i386/pc/memory.h: include grub/memory.h
24963 (grub_lower_mem): removed
24964 (grub_upper_mem): likewise
24965 (GRUB_MACHINE_MEMORY_ACPI): new definition
24966 (GRUB_MACHINE_MEMORY_NVS): likewise
24967 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
24968 (GRUB_MACHINE_MEMORY_HOLE): likewise
24969 (grub_machine_mmap_register): likewise
24970 (grub_machine_mmap_unregister): likewise
24971 (grub_machine_get_upper): likewise
24972 (grub_machine_get_lower): likewise
24973 (grub_machine_get_post64): likewise
24974 * include/grub/i386/efi/memory.h: new file
24975 * include/grub/x86_64/efi/memory.h: likewise
24976 * include/grub/efi/memory.h: likewise
24977 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
24978 (mmap_mod_SOURCES): new variable
24979 (mmap_mod_LDFLAGS): likewise
24980 (mmap_mod_ASFLAGS): likewise
24981 * conf/i386-coreboot.rmk: likewise
24982 * conf/i386-ieee1275.rmk: likewise
24983 * conf/i386-efi.rmk: likewise
24984 * conf/x86_64-efi.rmk: likewise
24985 * include/grub/types.h (UINT_TO_PTR): new macro
24986 (PTR_TO_UINT32): likewise
24987 (PTR_TO_UINT64): likewise
24988 * include/grub/memory.h: new file
24989 * mmap/i386/pc/mmap.c: likewise
24990 * mmap/i386/pc/mmap_helper.S: likewise
24991 * mmap/i386/uppermem.c: likewise
24992 * mmap/mmap.c: likewise
24993 * mmap/efi/mmap.c: likewise
24994 * kern/i386/coreboot/init.c (grub_machine_init): don't use
24995 grub_upper_mem
24996 * kern/i386/pc/init.c (grub_lower_mem): removed variable
24997 (grub_upper_mem): likewise
24998 (grub_machine_init): don't use grub_upper_mem,
24999 make grub_lower_mem local
25000 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
25001 grub_mmap_iterate and grub_mmap_get_upper
25002 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
25003
25004 2009-05-02 Bean <bean123ch@gmail.com>
25005
25006 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
25007 script/sh/parser.y.
25008 (pkglib_MODULES): Add normal.mod and sh.mod.
25009 (normal_SOURCES): New variable.
25010 (normal_mod_CFLAGS): Likewise.
25011 (normal_mod_LDFLAGS): Likewise.
25012 (sh_mod_SOURCES): Likewise.
25013 (sh_mod_CFLAGS): Likewise.
25014 (sh_mod_LDFLAGS): Likewise.
25015
25016 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
25017 script/sh/lexer.c_DEPENDENCIES.
25018 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
25019 kern/rescue_reader.c and kern/rescue_parser.c.
25020 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
25021 (grub_emu_SOURCES): Change source files.
25022 (pkglib_MODULES): Remove normal.mod.
25023 (normal_SOURCES): Removed.
25024 (normal_mod_CFLAGS): Likewise.
25025 (normal_mod_LDFLAGS): Likewise.
25026 * conf/i386-coreboot.rmk: Likewise.
25027 * conf/i386-efi.rmk: Likewise.
25028 * conf/i386-ieee1276.rmk: Likewise.
25029 * conf/powerpc-ieee1275.rmk: Likewise.
25030 * conf/sparc64-ieee1275.rmk: Likewise.
25031 * conf/x86_64-efi.rmk: Likewise.
25032
25033 * include/grub/command.h (grub_command_execute): New inline function.
25034
25035 * include/grub/menu.h (grub_menu_entry): Removed commands field.
25036
25037 * include/grub/normal.h: Remove <grub/setjmp.h>.
25038 (grub_fs_module_list): Moved to normal/autofs.c.
25039 (grub_exit_env): Removed.
25040 (grub_command_execute): Likewise.
25041 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
25042 parameter script.
25043 (read_command_list): New function declaration.
25044 (read_fs_list): Likewise.
25045
25046 * include/parser.h: Include <grub/reader.h>.
25047 (grub_parser_split_cmdline): Change type of getline parameter.
25048 (grub_parser): New structure.
25049 (grub_parser_class): New variable.
25050 (grub_parser_execute): New function declaration.
25051 (grub_register_rescue_parser): Likewise.
25052 (grub_parser_register): New inline function.
25053 (grub_parser_unregister): Likewise.
25054 (grub_parser_get_current): Likewise.
25055 (grub_parser_set_current): Likewise.
25056
25057 * include/grub/reader.h: New file.
25058 * kern/reader.c: Likewise.
25059 * kern/rescue_parser.c: Likewise.
25060 * kern/rescue_reader.c: Likewise.
25061 * normal/autofs.c: Likewise.
25062 * normal/dyncmd.c: Likewise.
25063
25064 * include/grub/rescue.h: Removed.
25065 * normal/command.h: Likewise.
25066
25067 * include/grub/script.h: Moved to ...
25068 * include/grub/script_sh.h: ... Moved here.
25069 * normal/execute.c: Moved to ...
25070 * script/sh/execute.c: ... Moved here.
25071 * normal/function.c: Moved to ...
25072 * script/sh/function.c: ... Moved here.
25073 * normal/lexer.c: Moved to ...
25074 * script/sh/lexer.c: ... Moved here.
25075 * normal/parser.y: Moved to ...
25076 * script/sh/parser.y: ... Moved here.
25077 * normal/script.c: Moved to ...
25078 * script/sh/script.c: ... Moved here.
25079
25080 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
25081 <grub/reader.h>.
25082 (grub_exit_env): Removed.
25083 (fs_module_list): Moved to normal/autofs.c.
25084 (grub_file_getline): Don't handle comment here.
25085 (free_menu): Skip removed field entry->commands.
25086 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
25087 script parameter.
25088 (read_config_file): Removed nested parameter, change getline function.
25089 (grub_enter_normal_mode): Removed.
25090 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
25091 (read_command_list): Likewise.
25092 (autoload_fs_module): Moved to normal/autofs.c.
25093 (read_fs_list): Likewise.
25094 (reader_nested): New variable.
25095 (grub_normal_execute): Run parser.sh to switch to sh parser.
25096 (grub_cmd_rescue): Removed.
25097 (cmd_normal): Removed.
25098 (grub_cmd_normal): Unregister itself at the beginning. Don't register
25099 rescue command.
25100 (grub_cmdline_run): New function.
25101 (grub_normal_reader_init): Likewise.
25102 (grub_normal_read_line): Likewise.
25103 (grub_env_write_pager): Likewise.
25104 (cmdline): New variable.
25105 (grub_normal_reader): Likewise.
25106 (GRUB_MOD_INIT): Register normal reader and set as current, register
25107 pager hook, register normal command with grub_register_command_prio,
25108 so that it won't show up in command.lst.
25109 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
25110 grub_fs_autoload_hook.
25111
25112 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
25113 (grub_menu_execute_entry): Replace grub_script_execute with
25114 grub_parser_execute, change parameter to grub_command_execute.
25115
25116 * normal/menu_text.c: Remove <grub/script.h>.
25117
25118 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
25119 and <grub/parser.h>.
25120 (run): Change editor_getline to use new parser interface. Change
25121 parameter to grub_command_execute.
25122
25123 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
25124 <grub/reader.h> and <grub/parser.h>.
25125 (grub_load_normal_mode): Execute normal command.
25126 (grub_main): Call grub_register_core_commands,
25127 grub_register_rescue_parser and grub_register_rescue_reader, use
25128 grub_reader_loop to enter input loop.
25129
25130 * kern/parser.c (grub_parser_split_cmdline): Change type of
25131 getline parameter.
25132 (grub_parser_class): New variable.
25133 (grub_parser_execute): New function.
25134
25135 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
25136 * loader/multiboot2.c: Likewise.
25137 * loader/sparc64/ieee1275/linux.c: Likewise.
25138
25139 * util/grub-emu.c (read_command_list): New dummy function.
25140
25141 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
25142
25143 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
25144 count to 16 for CCISS and IDA.
25145
25146 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
25147
25148 * normal/menu_text.c (grub_wait_after_message): Print a newline
25149 after waiting for user input.
25150
25151 * loader/i386/linux.c: Include `<grub/normal.h>'.
25152 (grub_cmd_linux): Improve the error message about `ask' mode, by
25153 waiting for user input so it's not missed (we can do this, since
25154 user requested interaction).
25155
25156 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
25157
25158 Added missing lst to grub-mkrescue
25159
25160 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
25161 and ${input_dir}/parttool.lst
25162
25163 2009-04-30 David S. Miller <davem@davemloft.net>
25164
25165 * util/hostdisk.c (device_is_wholedisk): New function.
25166 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
25167 zero only if device_is_wholedisk() returns true.
25168
25169 * util/hostdisk.c (convert_system_partition_to_system_disk):
25170 Handle virtual disk devices named /dev/vdiskX as found on sparc
25171 and powerpc.
25172
25173 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
25174 lettered partition specifier is found, convert to numbered.
25175
25176 2009-04-29 David S. Miller <davem@davemloft.net>
25177
25178 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
25179 * include/grub/sparc64/ieee1275/memory.h: Likewise.
25180
25181 * normal/command.c: Add missing newline at end of file.
25182
25183 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
25184 warnings.
25185 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
25186 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
25187 grub_ofdisk_read): Likewise, and deal similarly with the fact that
25188 ihandles have a 32-bit type but need to be stored in a "void *".
25189
25190 2009-04-28 Pavel Roskin <proski@gnu.org>
25191
25192 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
25193 not disk. Adjust all dependencies.
25194 (grub_fs_uuid_close): Use grub_device_close(), not
25195 grub_disk_close().
25196
25197 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
25198 parent's partition, don't copy it by reference, as it gets freed
25199 on close.
25200
25201 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
25202
25203 Preboot hooks support
25204
25205 * commands/boot.c (struct grub_preboot_t): new declaration
25206 (preboots_head): new variable
25207 (preboots_tail): likewise
25208 (grub_loader_register_preboot_hook): new function
25209 (grub_loader_unregister_preboot_hook): likewise
25210 (grub_loader_set): launch preboot hooks
25211 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
25212 (grub_loader_register_preboot_hook): new declaration
25213 (grub_loader_unregister_preboot_hook): likewise
25214
25215 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
25216
25217 Warning fix
25218
25219 * disk/scsi.c (grub_scsi_open): added missing cast when
25220 calling grub_dprintf
25221
25222 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
25223
25224 Bug and warning fixes
25225
25226 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
25227 declaration
25228 * commands/test.c (test_parse): fixed bug with file tests and corrected
25229 declaration of find_file
25230
25231 2009-04-26 Pavel Roskin <proski@gnu.org>
25232
25233 * Makefile.in: Don't install empty manual pages if help2man is
25234 missing. Use help2man option for output, not shell redirection.
25235
25236 2009-04-26 David S. Miller <davem@davemloft.net>
25237
25238 * util/grub-mkdevicemap.c (make_device_map): Add missing
25239 NESTED_FUNC_ATTR to process_device().
25240
25241 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
25242
25243 Test command
25244
25245 * commands/test.c: rewritten to use bash-like test
25246
25247 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
25248
25249 Parttool autoloading and improvements
25250
25251 * Makefile.in (pkglib_DATA): add parttool.lst
25252 (parttool.lst): new target
25253 * genmk.rb: generate parttool-*
25254 (CLEANFILES): add #{parttool}
25255 (PARTTOOLFILES): new variable
25256 * genparttoollist.sh: new file
25257 * parttool/pcpart.c (grub_pcpart_boot): more feedback
25258 (grub_pcpart_type): likewise
25259 * commands/parttool.c (helpmsg): new variable
25260 (grub_cmd_parttool): output help if not enough arguments are supplied
25261 autoload modules
25262 (GRUB_MOD_INIT(parttool)): use helpmsg
25263
25264 2009-04-24 David S. Miller <davem@davemloft.net>
25265
25266 Avoiding opening same device multiple times in device iterator.
25267
25268 * kern/device.c: (grub_device_iterate): Define struct part_ent,
25269 and use it to build a list of partitions in iterate_disk() and
25270 iterate_partition().
25271
25272 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
25273 on disk->data.
25274
25275 * disk/ieee1275/nand.c (grub_nand_iterate): Return
25276 grub_devalias_iterate() result instead of unconditional 0.
25277 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
25278 Also, capture hook return value, either directly or via
25279 grub_children_iterate(), and propagate to caller.
25280 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
25281 grub_children_iterate): Return value is now 'int' instead of
25282 'grub_err_t'.
25283 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
25284 like a proper iterator, stopping when hooks return non-zero.
25285 (grub_devalias_iterate): Likewise.
25286
25287 2009-04-23 David S. Miller <davem@davemloft.net>
25288
25289 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
25290
25291 2009-04-22 David S. Miller <davem@davemloft.net>
25292
25293 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
25294 is larger than address_cells, use that value for address_cells too.
25295
25296 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
25297 IEEE1275_MAX_PATH_LEN): Define.
25298 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
25299 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
25300 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
25301 'devtype'. Explicitly NULL terminate devalias expansion.
25302
25303 * util/sparc64/ieee1275/misc.c: New file.
25304 * util/sparc64/ieee1275/grub-setup.c: New file.
25305 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
25306 * util/sparc64/ieee1275/grub-mkimage.c: New file.
25307 * util/sparc64/ieee1275/grub-install.in: New file.
25308 * util/ieee1275/ofpath.c: New file.
25309 * util/ieee1275/devicemap.c: New file.
25310 * util/devicemap.c: New file.
25311 * util/deviceiter.c: New file.
25312 * kern/sparc64/ieee1275/init.c: New file.
25313 * include/grub/util/ofpath.h: New file.
25314 * include/grub/util/deviceiter.h: New file.
25315 * util/grub-mkdevicemap.c: Include deviceiter.h.
25316 Implement using grub_util_emit_devicemap_entry and
25317 grub_util_iterate_devices.
25318 * conf/i386-corebook.rmk: Build util/deviceiter.c and
25319 util/devicemap.c into grub-mkdevicemap
25320 * conf/i386-efi.rmk: Likewise.
25321 * conf/i386-ieee1275.rmk: Likewise.
25322 * conf/i386-pc.rmk: Likewise.
25323 * conf/powerpc-ieee1275.rmk: Likewise.
25324 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
25325 images and installation utilities. Build kernel as image
25326 instead of as elf binary. Use common rules as much as possible.
25327
25328 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
25329
25330 Correct GPT definition
25331
25332 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
25333 of "attrib" member
25334
25335 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
25336
25337 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
25338
25339 2009-04-19 David S. Miller <davem@davemloft.net>
25340
25341 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
25342 (grub_rescue_cmd_linux): Rename to...
25343 (grub_cmd_linux): and fix prototype.
25344 (grub_rescue_cmd_initrd): Rename to...
25345 (grub_cmd_initrd): and fix prototype.
25346 (cmd_linux, cmd_initrd): New.
25347 (GRUB_MOD_INIT(linux)): Use grub_register_command().
25348 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
25349
25350 2009-04-17 Pavel Roskin <proski@gnu.org>
25351
25352 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
25353 format.
25354 (grub_ohci_transfer): Likewise.
25355
25356 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
25357
25358 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
25359 return without a value. Fix inconsistent indentation.
25360
25361 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
25362 match struct grub_fs.
25363
25364 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
25365 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
25366 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
25367 * commands/lspci.c (grub_lspci_iter): Likewise.
25368
25369 2009-04-16 Bean <bean123ch@gmail.com>
25370
25371 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
25372 value.
25373
25374 2009-04-15 Pavel Roskin <proski@gnu.org>
25375
25376 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
25377 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
25378 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
25379 definitions.
25380
25381 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
25382
25383 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
25384 that no multiple data or metadata areas are supported and `Unknown
25385 metadata header'.
25386
25387 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
25388
25389 Move loader out of the kernel
25390
25391 * kern/loader.c: moved to ...
25392 * commands/boot.c: ... moved here
25393 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
25394 * commands/boot.c (grub_cmd_boot): moved here. All users updated
25395 * include/grub/kernel.h (grub_machine_fini): export
25396 * include/grub/loader.h (grub_loader_is_loaded): update declaration
25397 (grub_loader_set): likewise
25398 (grub_loader_unset): likewise
25399 (grub_loader_boot): likewise
25400 * conf/common.rmk: new module boot.mod
25401 (pkglib_MODULES): add boot.mod
25402 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
25403 (grub_emu_SOURCES): likewise
25404 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
25405 (grub_emu_SOURCES): likewise
25406 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
25407 (grub_emu_SOURCES): likewise
25408 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
25409 (grub_emu_SOURCES): likewise
25410 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
25411 (grub_emu_SOURCES): likewise
25412 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
25413 (grub_emu_SOURCES): likewise
25414 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
25415 (grub_emu_SOURCES): likewise
25416
25417 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
25418
25419 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
25420
25421 * kern/misc.c (grub_itoa): Removed function
25422 (grub_ltoa): likewise
25423 (grub_vsprintf): use grub_lltoa
25424
25425 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
25426
25427 Restore grub-emu
25428
25429 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
25430 * conf/i386-coreboot.rmk: likewise
25431 * conf/i386-ieee1275.rmk: likewise
25432 * conf/powerpc-ieee1275.rmk: likewise
25433
25434 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
25435
25436 * INSTALL: Add that `./autogen.sh' needs to be run before
25437 `./configure.'.
25438
25439 2009-04-14 Bean <bean123ch@gmail.com>
25440
25441 * Makefile.in (pkglib_DATA): Add handler.lst.
25442 (handler.lst): New rule.
25443
25444 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
25445 * conf/i386-coreboot.rmk: Likewise.
25446 * conf/i386-ieee1275.rmk: Likewise.
25447 * conf/i386-efi.rmk: Likewise.
25448 * conf/x86_64-efi.rmk: Likewise.
25449 * conf/powerpc-ieee1275.rmk: Likewise.
25450 * conf/sparc64-ieee1275.rmk: Likewise.
25451
25452 * genhandlerlist.sh: New file.
25453
25454 * genmk.rb: Add rules to generate handler.lst.
25455
25456 * include/grub/normal.h (grub_file_getline): New function definition.
25457 (read_handler_list): Likewise.
25458 (free_handler_list): Likewise.
25459
25460 * include/grub/term.h (grub_term_register_input): Add name parameter
25461 for auto generation of handler.lst.
25462 (grub_term_register_output): Likewise.
25463
25464 * normal/handler.c: New file.
25465
25466 * normal/main.c (get_line): Renamed to grub_file_getline.
25467 (read_config_file): Use the newly renamed grub_file_getline.
25468 (read_command_list): Likewise.
25469 (read_fs_list): Likewise.
25470 (grub_normal_execute): Call read_handler_list to parse handler.lst.
25471 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
25472
25473 * term/efi/console.c (grub_console_init): Add name parameter for auto
25474 generation of handler.lst.
25475 * term/gfxterm.c: Likewise.
25476 * term/i386/pc/at_keyboard.c: Likewise.
25477 * term/i386/pc/console.c: Likewise.
25478 * term/i386/pc/serial.c: Likewise.
25479 * term/i386/pc/vesafb.c: Likewise.
25480 * term/i386/pc/vga.c: Likewise.
25481 * term/i386/pc/vga_text.c: Likewise.
25482 * term/ieee1275/ofconsole.c: Likewise.
25483 * term/usb_keyboard.c: Likewise.
25484
25485 2009-04-14 Bean <bean123ch@gmail.com>
25486
25487 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
25488 properly with null character.
25489
25490 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
25491
25492 * configure: Remove.
25493 * config.h.in: Likewise.
25494 * stamp-h.in: Likewise.
25495 * DISTLIST: Likewise.
25496 * conf/common.mk: Likewise.
25497 * conf/i386-coreboot.mk: Likewise.
25498 * conf/i386-efi.mk: Likewise.
25499 * conf/i386-ieee1275.mk: Likewise.
25500 * conf/i386.mk: Likewise.
25501 * conf/i386-pc.mk: Likewise.
25502 * conf/powerpc-ieee1275.mk: Likewise.
25503 * conf/sparc64-ieee1275.mk: Likewise.
25504 * conf/x86_64-efi.mk: Likewise.
25505
25506 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
25507 develop on GRUB.
25508
25509 2009-04-14 John Stanley <jpsinthemix@verizon.net>
25510 David S. Miller <davem@davemloft.net>
25511
25512 * util/hostdisk.c (make_device_name): Fix buffer length
25513 calculations.
25514
25515 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
25516
25517 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
25518 <sys/param.h> and <sys/sysctl.h>.
25519 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
25520 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
25521 opening the device and reset them afterwards.
25522
25523 2009-04-13 Pavel Roskin <proski@gnu.org>
25524
25525 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
25526 Reported by John Stanley <jpsinthemix@verizon.net>
25527
25528 2009-04-13 Robert Millan <rmh@aybabtu.com>
25529
25530 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
25531 that name for menuentries when appropriate.
25532
25533 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
25534
25535 * util/grub.d/10_freebsd.in: Add a missing `fi'.
25536
25537 2009-04-13 Robert Millan <rmh@aybabtu.com>
25538
25539 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
25540 to Linux, simply abort telling the user it's no longer supported.
25541
25542 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
25543
25544 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
25545 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
25546 `freebsd_loadenv' only when devices.hints exist.
25547
25548 2009-04-13 Pavel Roskin <proski@gnu.org>
25549
25550 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
25551
25552 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
25553
25554 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
25555 partition number.
25556 (grub_drive): Likewise.
25557
25558 2009-04-13 David S. Miller <davem@davemloft.net>
25559
25560 * kern/sparc64/ieee1275/ieee1275.c: New file.
25561 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
25562 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
25563 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
25564 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
25565 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
25566 grub_ieee1275_alloc_physmem): Declare new exported functions.
25567
25568 * include/grub/sparc64/ieee1275/loader.h: New file.
25569 * include/grub/sparc64/ieee1275/memory.h: Likewise.
25570 * include/grub/sparc64/kernel.h: Likewise.
25571 * loader/sparc64/ieee1275/linux.c: Likewise.
25572
25573 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
25574 (grub_fstest_SOURCES): Likewise.
25575
25576 * util/hostdisk.c (make_device_name): Do not make any assumptions
25577 about the length of drive names.
25578
25579 * kern/dl.c (grub_dl_load_file): Close file immediately when
25580 we are done using it.
25581
25582 2009-04-12 David S. Miller <davem@davemloft.net>
25583
25584 * kern/misc.c (grub_ltoa): Fix cast when handling negative
25585 values. Noticed by Pavel Roskin.
25586
25587 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
25588 target compiler.
25589
25590 * genmk.rb: Add more flexible image type specification, also
25591 pass --strip-unneeded to objcopy.
25592 * conf/i386-pc.rmk: Use *_FORMAT.
25593 * conf/i386-pc.mk: Rebuilt.
25594
25595 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
25596 (OFDISK_HASH_SZ): Define.
25597 (ofdisk_hash): New hash table.
25598 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
25599 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
25600 instead of device phandle which is not unique.
25601
25602 * kern/sparc64/ieee1275/init.c: Delete, replace with...
25603 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
25604 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
25605 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
25606 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
25607 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
25608 GRUB_KERNEL_MACHINE_DATA_END): Define.
25609 (grub_kernel_image_size, grub_total_module_size): Declare.
25610
25611 2009-04-12 Pavel Roskin <proski@gnu.org>
25612
25613 * configure.ac: Change the logic when we check for target tools.
25614 Do it when the target is specified and it's different from the
25615 specified value of the host.
25616
25617 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
25618
25619 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
25620 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
25621 GNU/kFreeBSD. Check if a device is a character device. Use
25622 DIOCGMEDIASIZE to get the size.
25623 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
25624 support for GNU/kFreeBSD.
25625 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
25626 is a character device instead of a block device. Add support for
25627 FreeBSD device names.
25628
25629 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
25630 is a character device instead of a block device.
25631
25632 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
25633 is a character device instead of a block device.
25634
25635 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
25636
25637 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
25638 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
25639 FreeBSD. Check if a device is a character device. Use
25640 DIOCGMEDIASIZE to get the size.
25641 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
25642 support for FreeBSD.
25643 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
25644 is a character device instead of a block device. Add support for
25645 FreeBSD device names.
25646
25647 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
25648 a character device instead of a block device.
25649 (grub_util_check_char_device): New function.
25650
25651 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
25652 a character device instead of a block device.
25653
25654 * include/grub/util/getroot.h (grub_util_check_char_device): New
25655 prototype.
25656
25657 2009-04-11 David S. Miller <davem@davemloft.net>
25658
25659 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
25660 static libgcc.
25661 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
25662 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
25663 function, if present.
25664 (__bswapdi2): Likewise.
25665
25666 * include/grub/sparc64/ieee1275/boot.h: New file.
25667 * boot/sparc64/ieee1275/boot.S: Likewise.
25668 * boot/sparc64/ieee1275/diskboot.S: Likewise.
25669
25670 * kern/misc.c (grub_ltoa): New function.
25671 (grub_vsprintf): Use it to format 'long' integers.
25672
25673 2009-04-10 David S. Miller <davem@davemloft.net>
25674
25675 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
25676 slots are of type grub_ieee1275_cell_t.
25677 (grub_nand_read): Likewise.
25678 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
25679 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
25680 macros are used to compare values in arg/ret block of the call.
25681 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
25682 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
25683 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
25684 grub_ieee1275_instance_to_path, grub_ieee1275_write,
25685 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
25686 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
25687 grub_ieee1275_close, grub_ieee1275_set_property,
25688 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
25689 grub_ieee1275_cell_t.
25690 * kern/ieee1275/openfw.c (grub_map): Likewise.
25691 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
25692 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
25693
25694 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
25695 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
25696 (grub_devalias_iterate): Likewise.
25697
25698 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
25699
25700 UFS improvements
25701
25702 * fs/ufs.c (INODE_NBLOCKS): new definition
25703 (struct grub_ufs_dirent): added fields for non-BSD dirents
25704 (grub_ufs_get_file_block): fixed double indirect handling
25705 (grub_ufs_lookup_symlink): use more robust way to determine whether
25706 symlink is inline
25707 (grub_ufs_find_file): support for non-BSD dirents
25708 (grub_ufs_dir): support for non-BSD dirents
25709
25710 2009-04-10 Bean <bean123ch@gnail.com>
25711
25712 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
25713 attribute, otherwise the size would be wrong for i386 platform.
25714
25715 * include/grub/pci.h (grub_pci_read_word): New inline function.
25716 (grub_pci_read_byte): Likewise.
25717 (grub_pci_write): Likewise.
25718 (grub_pci_write_word): Likewise.
25719 (grub_pci_write_byte): Likewise.
25720
25721 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
25722
25723 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
25724 (find_framebuf): Scan pci to locate the frame buffer address.
25725
25726 * commands/efi/fixvideo.c: New file.
25727
25728 * commands/efi/loadbios.c: Likewise.
25729
25730 * commands/memrw.c: Likewise.
25731
25732 * util/grub-dumpbios.in: Likewise.
25733
25734 * conf/common.rmk (grub-dumpbios): New utility.
25735 (pkglib_MODULES): New module memrw.mod.
25736 (memrw_mod_SOURCE): New macro.
25737 (memrw_mod_CFLAGS): Likewise.
25738 (memrw_mod_LDFLAGS): Likewise.
25739
25740 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
25741 fixvideo.mod.
25742 (loadbios_mod_SOURCE): New macro.
25743 (loadbios_mod_CFLAGS): Likewise.
25744 (loadbios_mod_LDFLAGS): Likewise.
25745 (fixvideo_mod_SOURCE): Likewise.
25746 (fixvideo_mod_CFLAGS): Likewise.
25747 (fixvideo_mod_LDFLAGS): Likewise.
25748
25749 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
25750 fixvideo.mod.
25751 (loadbios_mod_SOURCE): New macro.
25752 (loadbios_mod_CFLAGS): Likewise.
25753 (loadbios_mod_LDFLAGS): Likewise.
25754 (fixvideo_mod_SOURCE): Likewise.
25755 (fixvideo_mod_CFLAGS): Likewise.
25756 (fixvideo_mod_LDFLAGS): Likewise.
25757
25758 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
25759
25760 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
25761
25762 2009-04-07 David S. Miller <davem@davemloft.net>
25763
25764 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
25765 support for R_SPARC_OLO10 relocations. Fix compile warning for
25766 R_SPARC_WDISP30 case.
25767 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
25768
25769 2009-04-06 Pavel Roskin <proski@gnu.org>
25770
25771 * include/grub/misc.h (ARRAY_SIZE): New macro.
25772 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
25773 New macro.
25774 * loader/i386/linux.c (allocate_pages): Use free_pages().
25775 (grub_linux_unload): Don't use free_pages().
25776 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
25777 wrong index. Treat all other modes as text modes.
25778 (grub_cmd_linux): Initialize vid_mode unconditionally to
25779 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
25780
25781 * commands/help.c (print_command_help): Use cmd->prio, not
25782 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
25783
25784 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
25785
25786 Parttool
25787
25788 * parttool/pcpart.c: new file
25789 * commands/parttool.c: likewise
25790 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
25791 (parttool_mod_SOURCES): new variable
25792 (parttool_mod_CFLAGS): likewise
25793 (parttool_mod_LDFLAGS): likewise
25794 (pcpart_mod_SOURCES): likewise
25795 (pcpart_mod_CFLAGS): likewise
25796 (pcpart_mod_LDFLAGS): likewise
25797 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
25798 and parttool/pcpart.c
25799 * conf/i386-efi.rmk: likewise
25800 * conf/i386-ieee1275.rmk: likewise
25801 * conf/i386-pc.rmk: likewise
25802 * conf/powerpc-ieee1275.rmk: likewise
25803 * conf/sparc64-ieee1275.rmk: likewise
25804 * conf/x86_64-ieee1275.rmk: likewise
25805
25806 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
25807
25808 Support for mtime and further expandability of dir command
25809
25810 * include/grub/lib/datetime.h: moved to ...
25811 * include/grub/datetime.h: ... moved here and added
25812 declaration of grub_unixtime2datetime. All users updated
25813 * include/grub/fs.h: new syntax for dir and mtime functions in
25814 struct grub_fs
25815 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
25816 and GRUB_FSHELP_FLAGS_MASK
25817 * commands/ls.c (grub_ls_list_files): Write mtime in long format
25818 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
25819 (grub_ext2_mtime): new function
25820 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
25821 (grub_hfsplus_mtime): new function
25822 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
25823 (GRUB_UFS_ATTR_FILE): likewise
25824 (GRUB_UFS_ATTR_LNK): likewise
25825 (struct grub_ufs_sblock): new fields mtime
25826 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
25827 all users updated
25828 (grub_ufs_dir): mtime support
25829 (grub_ufs_mtime): new function
25830 * fs/affs.c (grub_affs_dir): use new dir syntax
25831 * fs/afs.c (grub_afs_dir): likewise
25832 * fs/cpio.c (grub_cpio_dir): likewise
25833 * fs/fat.c (grub_fat_find_dir): likewise
25834 * fs/hfs.c (grub_hfs_dir): likewise
25835 * fs/iso9660.c (grub_iso9660_dir): likewise
25836 * fs/jfs.c (grub_jfs_dir): likewise
25837 * fs/minix.c (grub_minix_dir): likewise
25838 * fs/ntfs.c (grub_ntfs_dir): likewise
25839 * fs/reiserfs.c (grub_reiserfs_dir): likewise
25840 * fs/sfs.c (grub_sfs_dir): likewise
25841 * fs/xfs.c (grub_xfs_dir): likewise
25842 * util/hostfs.c (grub_hostfs_dir): likewise
25843 * lib/datetime.c: moved to ...
25844 * normal/datetime.c: ... moved here
25845 (grub_unixtime2datetime): new function
25846 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
25847 * normal/completion.c (iterate_dir): use new dir syntax
25848 * normal/misc.c (grub_normal_print_device_info): tell the
25849 last modification time of a volume
25850 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
25851 * conf/common.rmk: added lib/datetime.c to ls.mod
25852 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
25853 (normal_mod_SOURCES): likewise
25854 (datetime_mod_SOURCES): Removed lib/datetime.c
25855 * conf/i386-efi.rmk: likewise
25856 * conf/i386-ieee1275.rmk: likewise
25857 * conf/i386-pc.rmk: likewise
25858 * conf/powerpc-ieee1275.rmk: likewise
25859 * conf/sparc64-ieee1275.rmk: likewise
25860 * conf/x86_64-efi.rmk: likewise
25861
25862 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
25863
25864 Trim trailing spaces in FAT label and support mtools-like labels
25865
25866 * fs/fat.c (grub_fat_iterate_dir): New function based
25867 on grub_fat_find_dir
25868 (grub_fat_find_dir): use grub_fat_iterate_dir
25869 (grub_fat_label): likewise
25870
25871 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
25872
25873 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
25874 and command.h
25875 remove extraneous kernel_elf_HEADERS
25876
25877 2009-04-04 Bean <bean123ch@gnail.com>
25878
25879 * include/grub/util/misc.h: Add dummy function fsync for mingw.
25880
25881 * util/misc.c: Likewise.
25882
25883 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
25884
25885 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
25886 instead of grub_printf.
25887
25888 2009-04-03 Robert Millan <rmh@aybabtu.com>
25889
25890 * loader/i386/linux.c (grub_linux_setup_video): Fill
25891 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
25892 values from `mode info' structure instead of hardcoded
25893 values.
25894
25895 2009-04-01 Pavel Roskin <proski@gnu.org>
25896
25897 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
25898 unused now.
25899 * genmk.rb: Likewise.
25900 * configure.ac: Likewise.
25901
25902 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
25903
25904 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
25905 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
25906
25907 2009-04-01 David S. Miller <davem@davemloft.net>
25908
25909 * normal/sparc64/setjmp.S: Fix setjmp implementation.
25910 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
25911 (grub_setjmp): Mark with 'returns_twice' attribute.
25912 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
25913 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
25914 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
25915
25916 2009-04-01 Robert Millan <rmh@aybabtu.com>
25917
25918 Reapply fix from 2008-07-28 which was accidentally reverted; also
25919 perform the same fix to a similar check in same function.
25920
25921 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
25922 with the same number are found, just use issue a warning with
25923 grub_dprintf(), as this error has been reported to be non-fatal.
25924
25925 2009-03-31 Pavel Roskin <proski@gnu.org>
25926
25927 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
25928 for cross-compilation.
25929
25930 2009-03-30 Robert Millan <rmh@aybabtu.com>
25931
25932 Fix i386-ieee1275 build.
25933
25934 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
25935 Remove declaration.
25936
25937 2009-03-30 Pavel Roskin <proski@gnu.org>
25938
25939 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
25940 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
25941 zero-terminated, rely only on the strlen value. Fix comparison
25942 of strings differing in length.
25943
25944 2009-03-30 Robert Millan <rmh@aybabtu.com>
25945
25946 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
25947 checking for abi version. Improve error messages on BIOS to notify
25948 user about `linux16' command.
25949
25950 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
25951
25952 Leak fixes
25953
25954 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
25955 in case of collision
25956 * disk/scsi.c (grub_scsi_open): free scsi in case of error
25957
25958 2009-03-29 Robert Millan <rmh@aybabtu.com>
25959
25960 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
25961 set `vid_mode' accordingly.
25962 (grub_linux_boot): Process `vid_mode' and set video mode.
25963
25964 2009-03-29 Robert Millan <rmh@aybabtu.com>
25965
25966 * util/grub.d/10_linux.in (linux_entry): New function.
25967 Factorize generation of Linux boot entries.
25968
25969 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
25970
25971 Make the format of Environment Block plain text. The boot loader
25972 part is not tested well yet.
25973
25974 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
25975 (buffer): Removed.
25976 (envblk): Likewise.
25977 (usage): Remove "info" and "clear". Add "unset". Update the
25978 description of "set", as this does not delete variables any
25979 longer.
25980 (create_envblk_file): Complete rewrite.
25981 (open_envblk_file): Likewise.
25982 (cmd_info): Removed.
25983 (cmd_list): Likewise.
25984 (cmd_set): Likewise.
25985 (cmd_clear): Likewise.
25986 (list_variables): New function.
25987 (write_envblk): Likewise.
25988 (set_variables): Likewise.
25989 (unset_variables): Likewise.
25990 (main): Complete rewrite.
25991
25992 * commands/loadenv.c (buffer): Removed.
25993 (envblk): Likewise.
25994 (open_envblk_file): New function.
25995 (read_envblk_file): Complete rewrite.
25996 (grub_cmd_load_env): Likewise.
25997 (grub_cmd_list_env): Likewise.
25998 (struct blocklist): New struct.
25999 (free_blocklists): New function.
26000 (check_blocklists): Likewise.
26001 (write_blocklists): Likewise.
26002 (grub_cmd_save_env): Complete rewrite.
26003
26004 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
26005 a plain text signature.
26006 (GRUB_ENVBLK_MAXLEN): Removed.
26007 (struct grub_envblk): Complete rewrite.
26008 (grub_envblk_find): Removed.
26009 (grub_envblk_insert): Likewise.
26010 (grub_envblk_open): New prototype.
26011 (grub_envblk_set): Likewise.
26012 (grub_envblk_delete): Put const to VALUE.
26013 (grub_envblk_iterate): Put const to NAME and VALUE.
26014 (grub_envblk_close): New prototype.
26015 (grub_envblk_buffer): New inline function.
26016 (grub_envblk_size): Likewise.
26017
26018 * lib/envblk.c: Include grub/mm.h.
26019 (grub_env_find): Removed.
26020 (grub_envblk_open): New function.
26021 (grub_envblk_close): Likewise.
26022 (escaped_value_len): Likewise.
26023 (find_next_line): Likewise.
26024 (grub_envblk_insert): Removed.
26025 (grub_envblk_set): New function.
26026 (grub_envblk_delete): Complete rewrite.
26027 (grub_envblk_iterate): Likewise.
26028
26029 2009-03-28 Robert Millan <rmh@aybabtu.com>
26030
26031 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
26032 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
26033 variables. Use 16-bit loader.
26034 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
26035 loader.
26036 * kern/i386/loader.S (grub_linux_boot): Rename to ...
26037 (grub_linux16_boot): ... this. Update all users.
26038 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
26039 (grub_linux_boot): ... this. Update all users.
26040
26041 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
26042 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
26043 commands to `linux16' and `initrd16'.
26044 (GRUB_MOD_FINI(linux)): Rename to ...
26045 (GRUB_MOD_FINI(linux16)): ... this.
26046
26047 2009-03-24 Pavel Roskin <proski@gnu.org>
26048
26049 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
26050 not just for compilation.
26051
26052 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
26053
26054 Move multiboot helper out of kernel
26055
26056 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
26057 `loader/i386/multiboot_helper.S'.
26058 * conf/i386-coreboot.rmk: Likewise
26059 * conf/i386-ieee1275.rmk: Likewise
26060
26061 * kern/i386/loader.S: Move multiboot helpers from here...
26062 * loader/i386/multiboot_helper.S: ...moved here
26063 * include/grub/i386/loader.h: Move declarations of multiboot
26064 helpers from here...
26065 * include/grub/i386/multiboot.h: ...moved here
26066 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
26067
26068 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
26069
26070 * kern/env.c (grub_env_context_open): Added an argument to specify
26071 whether a new context inherits exported variables from current
26072 one. This is useful when making a sandbox to interpret a config
26073 file.
26074 All callers updated.
26075
26076 * include/grub/env.h (grub_env_context_open): Updated the prototype.
26077
26078 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
26079
26080 * kern/env.c (grub_env_context_close): Fix memory leaks.
26081
26082 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
26083
26084 * normal/main.c (grub_normal_execute): Added an argument
26085 BATCH to specify if an interactive interface should be provided
26086 after reading a config file.
26087 All callers updated.
26088 (read_command_list): Prevent being executed twice.
26089 (read_fs_list): Likewise.
26090
26091 * include/grub/normal.h (grub_normal_execute): Updated the
26092 prototype.
26093
26094 2009-03-22 Pavel Roskin <proski@gno.org>
26095
26096 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
26097 _start.
26098 * kern/i386/pc/startup.S: Likewise.
26099 * kern/i386/efi/startup.S: Likewise.
26100 * kern/i386/ieee1275/startup.S: Likewise.
26101 * kern/i386/coreboot/startup.S: Likewise.
26102 * kern/x86_64/efi/startup.S: Likewise.
26103
26104 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
26105 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
26106 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
26107
26108 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
26109
26110 Bugfixes in multiboot for bugs uncovered by solaris kernel.
26111
26112 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
26113 limit detection.
26114 Use vaddr of correct segment for entry_point.
26115
26116 2009-03-21 Bean <bean123ch@gmail.com>
26117
26118 * commands/blocklist.c: Add include file <grub/command.h>, remove
26119 <grub/normal.h> and <grub/arg.h>.
26120 (grub_cmd_blocklist): Use the new command interface.
26121 (GRUB_MOD_INIT): Likewise.
26122 (GRUB_MOD_FINI): Likewise.
26123 * commands/boot.c: Likewise.
26124 * commands/cat.c: Likewise.
26125 * commands/cmp.c: Likewise.
26126 * commands/configfile.c: Likewise.
26127 * commands/crc.c: Likewise.
26128 * commands/echo.c: Likewise.
26129 * commands/halt.c: Likewise.
26130 * commands/handler.c: Likewise.
26131 * commands/hdparm.c: Likewise.
26132 * commands/help.c: Likewise.
26133 * commands/hexdump.c: Likewise.
26134 * commands/loadenv.c: Likewise.
26135 * commands/ls.c: Likewise.
26136 * commands/lsmmap.c: Likewise.
26137 * commands/lspci.c: Likewise.
26138 * commands/loadenv.c: Likewise.
26139 * commands/read.c: Likewise.
26140 * commands/reboot.c: Likewise.
26141 * commands/search.c: Likewise.
26142 * commands/sleep.c: Likewise.
26143 * commands/test.c: Likewise.
26144 * commands/usbtest.c: Likewise.
26145 * commands/videotest.c: Likewise.
26146 * commands/i386/cpuid.c: Likewise.
26147 * commands/i386/pc/halt.c: Likewise.
26148 * commands/i386/pc/play.c: Likewise.
26149 * commands/i386/pc/pxecmd.c: Likewise.
26150 * commands/i386/pc/vbeinfo.c: Likewise.
26151 * commands/i386/pc/vbetest.c: Likewise.
26152 * commands/ieee1275/suspend.c: Likewise.
26153 * disk/loopback.c: Likewise.
26154 * font/font_cmd.c: Likewise.
26155 * hello/hello.c: Likewise.
26156 * loader/efi/appleloader.c: Likewise.
26157 * loader/efi/chainloader.c: Likewise.
26158 * loader/i386/bsd.c: Likewise.
26159 * loader/i386/efi/linux.c: Likewise.
26160 * loader/i386/ieee1275/linux.c: Likewise.
26161 * loader/i386/linux.c: Likewise.
26162 * loader/i386/pc/chainloader.c: Likewise.
26163 * loader/i386/pc/linux.c: Likewise.
26164 * loader/powerpc/ieee1275/linux.c: Likewise.
26165 * loader/multiboot_loader.c: Likewise.
26166 * term/gfxterm.c: Likewise.
26167 * term/i386/pc/serial.c: Likewise.
26168 * term/terminfo.c: Likewise.
26169
26170 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
26171 * term/i386/pc/vga.c: Likewise.
26172 * video/readers/jpeg.c: Likewise.
26173 * video/readers/png.c: Likewise.
26174 * video/readers/tga.c: Likewise.
26175
26176 * util/grub-fstest (cmd_loopback): Removed.
26177 (cmd_blocklist): Likewise.
26178 (cmd_ls): Likewise.
26179 (grub_register_command): Likewise.
26180 (grub_unregister_command): Likewise.
26181 (execute_command): Use grub_command_find to locate command and execute
26182 it.
26183
26184 * include/grub/efi/chainloader.h: Removed.
26185 * loader/efi/chainloader_normal.c: Likewise.
26186 * loader/i386/bsd_normal.c: Likewise.
26187 * loader/i386/pc/chainloader_normal.c: Likewise.
26188 * loader/i386/pc/multiboot_normal.c: Likewise.
26189 * loader/linux_normal.c: Likewise.
26190 * loader/multiboot_loader_normal.c: Likewise.
26191 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
26192
26193 * gencmdlist.sh: Scan new registration command grub_register_extcmd
26194 and grub_register_command_p1.
26195
26196 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
26197 kern/command.c, lib/arg.c and commands/extcmd.c.
26198 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
26199 (minicmd_mod_SOURCES): New variable.
26200 (minicmd_mod_CFLAGS): Likewise.
26201 (minicmd_mod_LDFLAGS): Likewise.
26202 (extcmd_mod_SOURCES): Likewise.
26203 (extcmd_mod_CFLAGS): Likewise.
26204 (extcmd_mod_LDFLAGS): Likewise.
26205 (boot_mod_SOURCES): Removed.
26206 (boot_mod_CFLAGS): Likewise.
26207 (boot_mod_LDFLAGS): Likewise.
26208
26209 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
26210 kern/corecmd.c.
26211 (kernel_img_HEADERS): Add command.h.
26212 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
26213 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
26214 and lib/arg.c.
26215 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
26216 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
26217 remove the corresponding normal mode command.
26218 (normal_mod_SOURCES): Remove normal/arg.c.
26219 * conf/i386-coreboot.rmk: Likewise.
26220 * conf/i386-efi.rmk: Likewise.
26221 * conf/i386-ieee1275.rmk: Likewise.
26222 * conf/powerpc-ieee1275.rmk: Likewise.
26223 * conf/x86_64-efi.rmk: Likewise.
26224
26225 * include/grub/arg.h: Move from here ...
26226 * include/grub/lib/arg.h: ... to here.
26227
26228 * normal/arg.c: Move from here ...
26229 * lib/arg.c: ... to here.
26230
26231 * commands/extcmd.c: New file.
26232 * commands/minicmd.c: Likewise.
26233 * include/grub/command.h: Likewise.
26234 * include/grub/extcmd.h: Likewise.
26235 * kern/command.c: Likewise.
26236 * kern/corecmd.c: Likewise.
26237
26238 * kern/list.c (grub_list_iterate): Return int instead of void.
26239 (grub_list_insert): New function.
26240 (grub_prio_list_insert): Likewise.
26241
26242 * kern/rescue.c (grub_rescue_command): Removed.
26243 (grub_rescue_command_list): Likewise.
26244 (grub_rescue_register_command): Likewise.
26245 (grub_rescue_unregister_command): Likewise.
26246 (grub_rescue_cmd_boot): Move to minicmd.c
26247 (grub_rescue_cmd_help): Likewise.
26248 (grub_rescue_cmd_info): Likewise.
26249 (grub_rescue_cmd_boot): Likewise.
26250 (grub_rescue_cmd_testload): Likewise.
26251 (grub_rescue_cmd_dump): Likewise.
26252 (grub_rescue_cmd_rmmod): Likewise.
26253 (grub_rescue_cmd_lsmod): Likewise.
26254 (grub_rescue_cmd_exit): Likewise.
26255 (grub_rescue_print_devices): Moved to corecmd.c.
26256 (grub_rescue_print_files): Likewise.
26257 (grub_rescue_cmd_ls): Likewise.
26258 (grub_rescue_cmd_insmod): Likewise.
26259 (grub_rescue_cmd_set): Likewise.
26260 (grub_rescue_cmd_unset): Likewise.
26261 (attempt_normal_mode): Use grub_command_find to get normal module.
26262 (grub_enter_rescue_mode): Use grub_register_core_commands to register
26263 commands, remove grub_rescue_register_command calls.
26264
26265 * normal/command.c (grub_register_command): Removed.
26266 (grub_unregister_command): Likewise.
26267 (grub_command_find): Likewise.
26268 (grub_iterate_commands): Likewise.
26269 (rescue_command): Likewise.
26270 (export_command): Moved to corecmd.c.
26271 (set_command): Removed.
26272 (unset_command): Likewise.
26273 (insmod_command): Likewise.
26274 (rmmod_command): Likewise.
26275 (lsmod_command): Likewise.
26276 (grub_command_init): Likewise.
26277
26278 * normal/completion.c (iterate_command): Use cmd->prio to check for
26279 active command.
26280 (complete_arguments): Use grub_extcmd_t structure to find options.
26281 (grub_normal_do_completion): Change function grub_iterate_commands to
26282 grub_command_iterate.
26283
26284 * normal/execute.c (grub_script_execute_cmd): No need to parse
26285 argument here.
26286
26287 * normal/main.c (grub_dyncmd_dispatcher): New function.
26288 (read_command_list): Register unload commands as dyncmd.
26289 (grub_cmd_normal): Use new command interface, register rescue,
26290 unregister normal at entry, register normal, unregister rescue at exit.
26291
26292 * include/grub/list.h (grub_list_test_t): New type.
26293 (grub_list_iterate): Return int instead of void.
26294 (grub_list_insert): New function.
26295 (GRUB_AS_NAMED_LIST_P): New macro.
26296 (GRUB_AS_PRIO_LIST): Likewise.
26297 (GRUB_AS_PRIO_LIST_P): Likewise.
26298 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
26299 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
26300 (grub_prio_list): New structure.
26301 (grub_prio_list_insert): New function.
26302 (grub_prio_list_remove): New inline function.
26303
26304 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
26305 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
26306 (GRUB_COMMAND_FLAG_MENU): Likewise.
26307 (GRUB_COMMAND_FLAG_BOTH): Likewise.
26308 (GRUB_COMMAND_FLAG_TITLE): Likewise.
26309 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
26310 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
26311 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
26312 (grub_command): Likewise.
26313 (grub_register_command): Likewise.
26314 (grub_command_find): Likewise.
26315 (grub_iterate_commands): Likewise.
26316 (grub_command_init): Likewise.
26317 (grub_arg_parse): Likewise.
26318 (grub_arg_show_help): Likewise.
26319
26320 * include/grub/rescue.h (grub_rescue_register_command): Removed.
26321 (grub_rescue_unregister_command): Likewise.
26322
26323 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
26324 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
26325 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
26326
26327 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
26328 grub_rescue_cmd_initrd.
26329 * include/grub/i386/loader.h: Likewise.
26330 * include/grub/x86_64/loader.h: Likewise.
26331
26332 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
26333
26334 2009-03-21 Bean <bean123ch@gmail.com>
26335
26336 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
26337 instead of stat in mingw environment.
26338
26339 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
26340
26341 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
26342
26343 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
26344 AC_CONFIG_LINKS.
26345
26346 2009-03-21 Bean <bean123ch@gmail.com>
26347
26348 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
26349 out of range error.
26350
26351 2009-03-18 Michel Dänzer <michel@daenzer.net>
26352
26353 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
26354 checking inode flags for EXT4_EXTENTS_FLAG.
26355
26356 2009-03-18 Robert Millan <rmh@aybabtu.com>
26357
26358 * loader/i386/linux.c: Include `<grub/video.h>' and
26359 `<grub/i386/pc/vbe.h>'..
26360 (grub_linux_setup_video): New function. Loosely based on the EFI one.
26361 (grub_linux32_boot): Attempt to configure video settings with
26362 grub_linux_setup_video().
26363 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
26364 to avoid grub_console_fini() which would step out of graphical mode
26365 unconditionally.
26366
26367 2009-03-14 Robert Millan <rmh@aybabtu.com>
26368
26369 Fix build on powerpc.
26370 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
26371
26372 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
26373
26374 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
26375 background image command.
26376
26377 2009-03-12 Colin D Bennett <colin@gibibit.com>
26378
26379 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
26380 (grub_gfxterm_putchar): Extract pairs of identical calls to
26381 draw_cursor out of conditional blocks.
26382
26383 2009-03-11 Pavel Roskin <proski@gnu.org>
26384
26385 * fs/hfs.c (grub_hfs_strncasecmp): New function.
26386 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
26387
26388 2009-03-11 Robert Millan <rmh@aybabtu.com>
26389
26390 * loader/i386/multiboot_elfxx.c
26391 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
26392
26393 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
26394
26395 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
26396 `kern/handler.c'.
26397
26398 2009-03-11 Robert Millan <rmh@aybabtu.com>
26399
26400 * loader/i386/multiboot.c (code_size): New variable.
26401 (grub_multiboot): Define offsets by adding to `code_size' rather
26402 than subtracting from `grub_multiboot_payload_size'. Provide
26403 4-byte alignment to MBI and others by increasing
26404 `boot_loader_name_length' appropriately.
26405
26406 * loader/i386/multiboot_elfxx.c
26407 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
26408
26409 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
26410
26411 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
26412 `fs/ext2.c'.
26413
26414 2009-03-08 Robert Millan <rmh@aybabtu.com>
26415
26416 Make loader/i386/linux.c usable on i386-pc again.
26417
26418 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
26419 memory to heap.
26420 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
26421 `#error' stanza.
26422
26423 2009-03-07 Bean <bean123ch@gmail.com>
26424
26425 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
26426 allocation.
26427
26428 2009-03-06 Robert Millan <rmh@aybabtu.com>
26429
26430 Fix display issue on terminals with screen size other than 80x25
26431 (e.g. gfxterm with resolution higher than 640x480).
26432
26433 * normal/main.c (grub_normal_init_page): Display title text in a
26434 position relative to the center of the terminal instead of relying
26435 on a hardcoded offset.
26436
26437 2009-03-04 Robert Millan <rmh@aybabtu.com>
26438
26439 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
26440 installed.
26441
26442 * Makefile.in (host_kernel): New variable.
26443 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
26444 scripts instead of just the windows one.
26445 * configure.ac: Initialize and AC_SUBST `host_kernel'.
26446
26447 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
26448
26449 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
26450 `kern/handler.c'.
26451 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
26452 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
26453 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
26454 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26455 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26456 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26457
26458 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
26459
26460 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
26461 or if there's no space for the disk label and print the partition number on a
26462 invalid magic.
26463
26464 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
26465
26466 * util/misc.c: Include <time.h>.
26467 (grub_millisleep): New function.
26468
26469 2009-03-04 Bean <bean123ch@gmail.com>
26470
26471 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
26472 another option -mno-red-zone.
26473
26474 * commands/handler.c: Change module description.
26475
26476 * kern/handler.c: Add missing space at the end of description line.
26477
26478 * kern/list.c: Likewise.
26479
26480 2009-03-03 Robert Millan <rmh@aybabtu.com>
26481
26482 Move more components to the relocation area, and fix mbi pointer
26483 handling to use the destination rather than the origin (thanks to
26484 Vladimir Serbinenko for spotting).
26485
26486 * loader/i386/multiboot.c (mbi_dest): New variable.
26487 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
26488 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
26489 relocation area.
26490
26491 2009-03-01 Bean <bean123ch@gmail.com>
26492
26493 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
26494 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
26495 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
26496 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
26497
26498 * loader/i386/efi/linux.c (acpi_guid): New variable.
26499 (acpi_guid): Likewise.
26500 (EBDA_SEG_ADDR): New constant.
26501 (LOW_MEM_ADDR): Likewise.
26502 (FAKE_EBDA_SEG): Likewise.
26503 (fake_bios_data): New function.
26504 (grub_linux_boot): Call fake_bios_data.
26505
26506 2009-03-01 Bean <bean123ch@gmail.com>
26507
26508 * commands/terminal.c: Removed.
26509
26510 * commands/handler.c: New file.
26511
26512 * include/grub/list.h: Likewise.
26513
26514 * include/grub/handler.h: Likewise.
26515
26516 * kern/list.c: Likewise.
26517
26518 * kern/handler.c: Likewise.
26519
26520 * kern/term.h: Include header file <grub/handler.h>.
26521 (grub_term_input): Move next field to the beginning.
26522 (grub_term_output): Likewise.
26523 (grub_term_input_class): New variable.
26524 (grub_term_output_class): Likewise.
26525 (grub_term_register_input): Changed to inline function.
26526 (grub_term_register_output): Likewise.
26527 (grub_term_unregister_input): Likewise.
26528 (grub_term_unregister_output): Likewise.
26529 (grub_term_set_current_input): Likewise.
26530 (grub_term_set_current_output): Likewise.
26531 (grub_term_get_current_input): Likewise.
26532 (grub_term_get_current_output): Likewise.
26533 (grub_term_iterate_input): Removed.
26534 (grub_term_iterate_output): Likewise.
26535
26536 * kern/term.c (grub_term_list_input): Removed.
26537 (grub_term_list_output): Likewise.
26538 (grub_term_input_class): New variable.
26539 (grub_term_output_class): Likewise.
26540 (grub_cur_term_input): Change variable as macro.
26541 (grub_cur_term_output): Likewise.
26542 (grub_term_register_input): Removed.
26543 (grub_term_register_output): Likewise.
26544 (grub_term_unregister_input): Likewise.
26545 (grub_term_unregister_output): Likewise.
26546 (grub_term_set_current_input): Likewise.
26547 (grub_term_set_current_output): Likewise.
26548 (grub_term_iterate_input): Likewise.
26549 (grub_term_iterate_output): Likewise.
26550 (grub_term_get_current_input): Likewise.
26551 (grub_term_get_current_output): Likewise.
26552
26553 * util/grub-editenv.c: Include header file <grub/handler.h>.
26554 (grub_term_get_current_input): Removed.
26555 (grub_term_get_current_output): Likewise.
26556 (grub_term_input_class): New variable.
26557 (grub_term_output_class): Likewise.
26558
26559 * util/grub-fstest.c (grub_term_get_current_input): Removed.
26560 (grub_term_get_current_output): Likewise.
26561 (grub_term_input_class): New variable.
26562 (grub_term_output_class): Likewise.
26563
26564 * util/grub-probe.c (grub_term_get_current_input): Removed.
26565 (grub_term_get_current_output): Likewise.
26566 (grub_term_input_class): New variable.
26567 (grub_term_output_class): Likewise.
26568
26569 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
26570 (grub_term_get_current_output): Likewise.
26571 (grub_term_input_class): New variable.
26572 (grub_term_output_class): Likewise.
26573
26574 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
26575 (terminal_mod_SOURCES): Likewise.
26576 (terminal_mod_CFLAGS): Likewise.
26577 (terminal_mod_LDFLAGS): Likewise.
26578
26579 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
26580 handler.c.
26581 (kernel_img_SOURCES): Add list.c and handler.c.
26582 (kernel_img_HEADERS): Add list.h and handler.h.
26583
26584 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
26585 handler.c.
26586 (kernel_mod_SOURCES): Add list.c and handler.c.
26587 (kernel_mod_HEADERS): Add list.h and handler.h.
26588
26589 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
26590 handler.c.
26591 (kernel_elf_SOURCES): Add list.c and handler.c.
26592 (kernel_elf_HEADERS): Add list.h and handler.h.
26593
26594 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
26595 handler.c.
26596 (kernel_elf_SOURCES): Add list.c and handler.c.
26597 (kernel_elf_HEADERS): Add list.h and handler.h.
26598
26599 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
26600 handler.c.
26601 (kernel_mod_SOURCES): Add list.c and handler.c.
26602 (kernel_mod_HEADERS): Add list.h and handler.h.
26603
26604 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
26605 handler.c.
26606 (kernel_elf_SOURCES): Add list.c and handler.c.
26607 (kernel_elf_HEADERS): Add list.h and handler.h.
26608
26609 2009-02-27 Robert Millan <rmh@aybabtu.com>
26610
26611 Factorize elf32 / elf64 code in Multiboot loader. This will
26612 prevent it from getting out of sync again.
26613
26614 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
26615 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
26616 grub_multiboot_load_elf64): Move from here ...
26617 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
26618 grub_multiboot_load_elf): ... to here (new file).
26619
26620 2009-02-27 Robert Millan <rmh@aybabtu.com>
26621
26622 * util/grub.d/10_linux.in: Rename "single-user mode" to
26623 "recovery mode".
26624
26625 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
26626
26627 Don't leak in SCSI code.
26628 * disk/scsi.c (grub_scsi_close): free `scsi'.
26629
26630 2009-02-27 Robert Millan <rmh@aybabtu.com>
26631
26632 * loader/i386/pc/multiboot.c: Move from here ...
26633 * loader/i386/multiboot.c: ... to here. Update all users.
26634
26635 2009-02-27 Robert Millan <rmh@aybabtu.com>
26636
26637 Patch from Alexandre Bique <bique.alexandre@gmail.com>
26638 * util/i386/pc/grub-setup.c (setup): Fix directory path.
26639
26640 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
26641
26642 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
26643 b-tree.
26644
26645 2009-02-27 Robert Millan <rmh@aybabtu.com>
26646
26647 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
26648 `0x' qualifier as 0 when base is specified as parameter).
26649
26650 2009-02-24 Bean <bean123ch@gmail.com>
26651
26652 * configure.ac: Check for -mcmodel=large in x86_64 target.
26653
26654 * include/grub/efi/api.h (efi_call_10): New macro.
26655 (efi_wrap_10): New function.
26656
26657 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
26658 (GRUB_PE32_REL_BASED_HIGH): Likewise.
26659 (GRUB_PE32_REL_BASED_LOW): Likewise.
26660 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
26661 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
26662 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
26663 (GRUB_PE32_REL_BASED_SECTION): Likewise.
26664 (GRUB_PE32_REL_BASED_REL): Likewise.
26665 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
26666 (GRUB_PE32_REL_BASED_DIR64): Likewise.
26667 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
26668
26669 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
26670 issue.
26671
26672 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
26673 (efi_wrap_10): New function.
26674
26675 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
26676
26677 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
26678 MB/MBP model (NV chipset).
26679 (devdata_devs): Add devpath_5 to the list.
26680
26681 * load/i386/efi/linux.c (video_base): Remove variable.
26682 (RGB_MASK): New macro.
26683 (RGB_MAGIC): Likewise.
26684 (LINE_MIN): Likewise.
26685 (LINE_MAX): Likewise.
26686 (FBTEST_STEP): Likewise.
26687 (FBTEST_COUNT): Likewise.
26688 (fb_list): New variable.
26689 (grub_find_video_card): Remove function.
26690 (find_framebuf): New function.
26691 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
26692 line length.
26693
26694 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
26695 problem for x86_64.
26696
26697 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
26698
26699 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
26700
26701 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
26702 coding tool name.
26703
26704 2009-02-22 Robert Millan <rmh@aybabtu.com>
26705
26706 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
26707 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
26708 in our relocation, instead of using it directly from heap. Also
26709 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
26710
26711 2009-02-21 Robert Millan <rmh@aybabtu.com>
26712
26713 Implement USB keyboard support (based on patch by Marco Gerards)
26714
26715 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
26716 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
26717 (usb_keyboard_mod_LDFLAGS): New variables.
26718
26719 * term/usb_keyboard.c: New file.
26720
26721 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
26722
26723 Corrected wrong declaration
26724
26725 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
26726
26727 2009-02-14 Christian Franke <franke@computer.org>
26728
26729 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
26730 (grub_lspci_iter): Print class code and programming interface byte.
26731
26732 2009-02-14 Christian Franke <franke@computer.org>
26733
26734 * gendistlist.sh: Ignore `.svn' directories.
26735
26736 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
26737
26738 * fs/fat.c: Add 2009 to Copyright line.
26739
26740 2009-02-14 Christian Franke <franke@computer.org>
26741
26742 * commands/hdparm.c: New file. Provides `hdparm' command
26743 which sends ATA commands via grub_disk_ata_pass_through ().
26744
26745 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
26746
26747 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
26748 and <grub/cpu/io.h> to include/grub/ata.h.
26749 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
26750 (GRUB_CDROM_SECTOR_SIZE): Remove.
26751 (GRUB_ATA_*): Move to include/grub/ata.h.
26752 (GRUB_ATAPI_*): Likewise.
26753 (enum grub_ata_commands): Likewise.
26754 (enum grub_ata_timeout_milliseconds): Likewise.
26755 (struct grub_ata_device): Likewise.
26756 (grub_ata_regset): Likewise.
26757 (grub_ata_regget): Likewise.
26758 (grub_ata_regset2): Likewise.
26759 (grub_ata_regget2): Likewise.
26760 (grub_ata_check_ready): Likewise.
26761 (grub_ata_wait_not_busy): Remove static, exported in
26762 include/grub/ata.h.
26763 (grub_ata_wait_drq): Likewise.
26764 (grub_ata_pio_read): Likewise.
26765
26766 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
26767 function for hdparm.mod.
26768
26769 * include/grub/ata.h: New file, contains declarations from
26770 disk/ata.c.
26771 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
26772
26773 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
26774 (grub_disk_ata_pass_through): New exported variable.
26775
26776 * kern/disk.c (grub_disk_ata_pass_through): New variable.
26777
26778 2009-02-13 Colin D Bennett <colin@gibibit.com>
26779
26780 Support multiple fallback entries, and provide an API to support
26781 executing default+fallback menu entries. Renamed the `terminal' menu
26782 viewer to `text'.
26783
26784 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
26785 variable declaration.
26786 (grub_menu_execute_callback): New structure declaration.
26787 (grub_menu_execute_callback_t): New typedef.
26788 (grub_menu_execute_with_fallback): New function declaration.
26789 (grub_menu_get_entry): Likewise.
26790 (grub_menu_get_timeout): Likewise.
26791 (grub_menu_set_timeout): Likewise.
26792
26793 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
26794
26795 * normal/menu.c (grub_wait_after_message): Moved to
26796 `normal/menu_text.c'.
26797 (draw_border): Likewise.
26798 (print_message): Likewise.
26799 (print_entry): Likewise.
26800 (print_entries): Likewise.
26801 (grub_menu_init_page): Likewise.
26802 (get_entry_number): Likewise.
26803 (print_timeout): Likewise.
26804 (run_menu): Likewise.
26805 (grub_menu_execute_entry): Likewise.
26806 (show_text_menu): Likewise.
26807 (get_and_remove_first_entry_number): New function.
26808 (grub_menu_execute_with_fallback): Likewise.
26809 (get_entry): Renamed to ...
26810 (grub_menu_get_entry): .. this and made it global.
26811 (get_timeout): Renamed to ...
26812 (grub_menu_get_timeout): ... this and made it global.
26813 (set_timeout): Renamed to ...
26814 (grub_menu_set_timeout): ... this and made it global.
26815 (grub_normal_terminal_menu_viewer): Renamed to ...
26816 (grub_normal_text_menu_viewer): ... this.
26817
26818 * normal/menu_text.c: New file. Extracted text-menu-specific code
26819 from normal/menu.c.
26820
26821 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
26822 (normal_mod_SOURCES): Likewise.
26823
26824 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
26825 (normal_mod_SOURCES): Likewise.
26826
26827 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26828 (normal_mod_SOURCES): Likewise.
26829
26830 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
26831 (normal_mod_SOURCES): Likewise.
26832
26833 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26834 (normal_mod_SOURCES): Likewise.
26835
26836 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26837 (normal_mod_SOURCES): Likewise.
26838
26839 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
26840 (normal_mod_SOURCES): Likewise.
26841
26842 2009-02-11 Robert Millan <rmh@aybabtu.com>
26843
26844 * util/grub.d/00_header.in: Update old reference to `font' command.
26845
26846 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
26847
26848 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
26849
26850 Based on patch from Javier Martín.
26851
26852 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
26853
26854 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
26855 to avoid false positives with FAT.
26856 (grub_fstest_SOURCES): Likewise.
26857 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
26858 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
26859 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26860 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
26861 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26862 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26863
26864 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
26865
26866 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
26867 bpb.version_specific.fat12_or_fat16.fstype and
26868 bpb.version_specific.fat32.fstype.
26869
26870 2009-02-08 Robert Millan <rmh@aybabtu.com>
26871
26872 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
26873
26874 2009-02-08 Robert Millan <rmh@aybabtu.com>
26875
26876 * Makefile.in (host_os, host_cpu): New variables.
26877 (target_os): Remove. Update all users.
26878
26879 2009-02-08 Marco Gerards <marco@gnu.org>
26880
26881 * Makefile.in (enable_grub_emu_usb): New variable.
26882 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
26883 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
26884 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
26885 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
26886 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
26887 `usbtest.mod' and `usbms.mod'.
26888 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
26889 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
26890 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
26891 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
26892 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
26893 variables.
26894
26895 * disk/usbms.c: New file.
26896
26897 * include/grub/usb.h: Likewise.
26898
26899 * include/grub/usbtrans.h: Likewise.
26900
26901 * include/grub/usbdesc.h: Likewise.
26902
26903 * bus/usb/usbtrans.c: Likewise.
26904
26905 * bus/usb/ohci.c: Likewise.
26906
26907 * bus/usb/uhci.c: Likewise.
26908
26909 * bus/usb/usbhub.c: Likewise.
26910
26911 * bus/usb/usb.c: Likewise.
26912
26913 * commands/usbtest.c: Likewise.
26914
26915 * util/usb.c: Likewise.
26916
26917 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
26918
26919 * configure.ac: Test for libusb presence.
26920
26921 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
26922
26923 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
26924
26925 * kern/mm.c: Add more comments.
26926
26927 2009-02-08 Robert Millan <rmh@aybabtu.com>
26928
26929 Patch from Javier Martín.
26930 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
26931 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
26932
26933 2009-02-08 Robert Millan <rmh@aybabtu.com>
26934
26935 * fs/cpio.c: Split tar functionality to ...
26936 * fs/tar.c: ... here (new file). Update all users.
26937
26938 2009-02-07 Robert Millan <rmh@aybabtu.com>
26939
26940 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
26941 backward-incompatible features.
26942
26943 Based on patch from Javier Martín, with some adjustments.
26944
26945 2009-02-07 Michael Scherer <misc@mandriva.org>
26946
26947 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
26948
26949 2009-02-07 Robert Millan <rmh@aybabtu.com>
26950
26951 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
26952 position of `disk/lvm.c' to ensure grub_init_all() always picks it
26953 after the RAID stuff.
26954
26955 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
26956
26957 Fixes problem when running vbetest command as reported by
26958 Vladimir Serbinenko <phcoder@gmail.com>.
26959
26960 * (grub_vbe_set_video_mode): Fixed problem with text modes.
26961
26962 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
26963
26964 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
26965 /dev/md/NpN style mdraid devices.
26966
26967 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
26968
26969 * util/unifont2pff.rb: Remove.
26970
26971 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
26972
26973 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
26974 `#'.
26975
26976 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
26977
26978 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
26979 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
26980 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
26981 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
26982 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26983 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26984 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26985
26986 2009-02-02 Christian Franke <franke@computer.org>
26987
26988 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
26989
26990 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
26991
26992 * INSTALL: Note that we now require at least autoconf 2.59 and
26993 that LZO is optional.
26994
26995 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
26996
26997 Base on patch on bug #24154 created by Tomas Tintera
26998 <trosos@seznam.cz>.
26999
27000 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
27001
27002 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
27003
27004 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
27005 <bero@arklinux.org>.
27006
27007 * normal/parser.y (script_init): Add missing semicolon.
27008
27009 2009-01-31 Colin D Bennett <colin@gibibit.com>
27010
27011 * normal/main.c: Add include to grub/menu_viewer.h.
27012 (free_menu_entry_classes): Added.
27013 (grub_normal_menu_addentry): Added class property handling.
27014 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
27015 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
27016
27017 * normal/menu_viewer.c: New file.
27018
27019 * normal/menu.c (run_menu_entry): Renamed to ...
27020 (grub_menu_execute_entry): ... this and made it as global.
27021 (grub_menu_run): Renamed to ...
27022 (show_text_menu): ... this and made it local.
27023 (show_text_menu): Adapt to new function names.
27024 (grub_normal_terminal_menu_viewer): New global variable.
27025
27026 * include/grub/menu.h: New file.
27027
27028 * include/grub/menu_viewer.h: New file.
27029
27030 * include/grub/normal.h: Added include to grub/menu.h.
27031 (grub_menu_entry): Moved to include/grub/menu.h.
27032 (grub_menu_entry_t): Likewise.
27033 (grub_menu): Likewise.
27034 (grub_menu_t): Likewise.
27035 (grub_normal_terminal_menu_viewer): Added.
27036 (grub_menu_execute_entry): Likewise.
27037 (grub_menu_run): Removed.
27038
27039 * DISTLIST: Added include/grub/menu.h.
27040 Added include/grub/menu_viewer.h.
27041 Added normal/menu_viewer.c.
27042
27043 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
27044
27045 * normal/execute.c (grub_script_execute_menuentry): Changed to use
27046 arglist for menutitle arguments.
27047
27048 * normal/main.c (grub_normal_menu_addentry): Likewise.
27049
27050 * normal/parser.y (menuentry): Likewise.
27051
27052 * normal/script.c (grub_script_create_cmdmenu): Likewise.
27053
27054 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
27055 (grub_script_create_cmdmenu): Likewise.
27056
27057 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
27058
27059 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
27060 changes.
27061
27062 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
27063
27064 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
27065
27066 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
27067
27068 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
27069
27070 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
27071
27072 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
27073
27074 2009-01-30 Christian Franke <franke@computer.org>
27075
27076 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
27077 in option help text.
27078
27079 2009-01-27 Pavel Roskin <proski@gnu.org>
27080
27081 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
27082
27083 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
27084
27085 * commands/lsmmap.c: Add include to grub/machine/memory.h.
27086
27087 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
27088
27089 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
27090 unregister function.
27091
27092 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
27093
27094 * disk/scsi.c (grub_scsi_read): Fix sign problem.
27095
27096 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
27097
27098 * util/grub-mkfont.c (usage): Fix typo.
27099
27100 * util/elf/grub-mkimage.c (load_modules): Fix warning.
27101
27102 2009-01-26 Daniel Mierswa <impulze@impulze.org>
27103
27104 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
27105
27106 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
27107
27108 * kern/misc.c (grub_strcasecmp): New function.
27109 (grub_strcasecmp): Use grub_size_t instead of int for length.
27110 Fix return value.
27111 * include/grub/misc.h: Update function prototypes.
27112
27113 2009-01-26 Robert Millan <rmh@aybabtu.com>
27114
27115 * configure.ac: Fix cross-compilation check.
27116
27117 2009-01-22 Christian Franke <franke@computer.org>
27118
27119 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
27120 (precision) digit string. Allow `.format2' without `format1' (width).
27121 Limit input chars for `%s' output to `format2' if specified. This is
27122 compatible with standard printf ().
27123
27124 2009-01-22 Christian Franke <franke@computer.org>
27125
27126 * disk/ata.c (grub_ata_wait_status): Replace by ...
27127 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
27128 other status bits may be invalid while BSY is asserted.
27129 (grub_ata_check_ready): New function.
27130 (grub_ata_cmd): Removed.
27131 (grub_ata_wait_drq): New function.
27132 (grub_ata_strncpy): Remove inline.
27133 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
27134 and error check now done by grub_ata_wait_drq ().
27135 (grub_ata_pio_write): Likewise.
27136 (grub_atapi_identify): Set DEV before check for !BSY. Use
27137 grub_ata_wait_drq () to wait for data.
27138 (grub_ata_device_initialize): Add status register check to
27139 detect missing SATA slave devices. Add debug messages.
27140 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
27141 (grub_atapi_packet): Set DEV before check for !BSY. Replace
27142 transfer loop by grub_ata_pio_write ().
27143 (grub_ata_identify): Set DEV before check for !BSY. Use
27144 grub_ata_wait_drq () to wait for data.
27145 (grub_ata_setaddress): Set DEV before check for !BSY.
27146 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
27147 read/write in one loop. Fix invalid command on write. Fix incomplete
27148 command on (size % batch) == 0. Add missing error check after write of
27149 last block. Add debug messages.
27150 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
27151
27152 2009-01-19 Christian Franke <franke@computer.org>
27153
27154 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
27155 (GRUB_ATAPI_IREASON_*): Likewise.
27156 (grub_ata_pio_write): Fix timeout error return.
27157 (grub_atapi_identify): Add grub_ata_wait () after cmd.
27158 (grub_atapi_wait_drq): New function.
27159 (grub_atapi_packet): New parameter `size'.
27160 Use grub_atapi_wait_drq () and direct write instead of
27161 grub_ata_pio_write ().
27162 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
27163 reads the number of bytes requested by the device for each DRQ
27164 assertion.
27165 (grub_atapi_write): Remove old implementation, return not
27166 implemented instead.
27167
27168 2009-01-19 Christian Franke <franke@computer.org>
27169
27170 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
27171 of 512 to calculate data size.
27172 (grub_scsi_read12): Likewise.
27173 (grub_scsi_write10): Likewise.
27174 (grub_scsi_write12): Likewise.
27175 (grub_scsi_read): Adjust size according to blocksize.
27176 Add checks for invalid blocksize and unaligned transfer.
27177
27178 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
27179
27180 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
27181
27182 * term/gfxterm.c (write_char): Fix background rendering for wide
27183 width glyphs.
27184
27185 2009-01-19 Robert Millan <rmh@aybabtu.com>
27186
27187 * config.guess: Update to latest version from config git.
27188 * config.sub: Likewise.
27189
27190 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
27191
27192 * Makefile.in: Change font compilation to use new grub-mkfont instead
27193 of java version.
27194
27195 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
27196 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
27197 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
27198 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
27199 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
27200 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
27201 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
27202 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
27203 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
27204
27205 2009-01-16 Christian Franke <franke@computer.org>
27206
27207 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
27208 (enum grub_ata_timeout_milliseconds): New enum.
27209 (grub_ata_wait_status): Add parameter milliseconds.
27210 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
27211 recovery from timed-out commands.
27212 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
27213 return grub_errno instead of REG_ERROR.
27214 (grub_ata_pio_write): Add parameter milliseconds.
27215 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
27216 Pass milliseconds to grub_ata_wait_status () and
27217 grub_ata_pio_read ().
27218 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
27219 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
27220 grub_ata_wait_status (). Fix IDENTIFY timeout check.
27221 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
27222 It is not suitable for device detection, because DEV bit is ignored,
27223 the command may run too long, and not all devices set the signature
27224 properly.
27225 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
27226 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
27227 Fix device selection, DEV bit must be set first to address the registers
27228 of the correct device.
27229 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
27230 grub_ata_pio_read/write ().
27231 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
27232 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
27233
27234 2009-01-13 Carles Pina i Estany <carles@pina.cat>
27235
27236 * util/grub-editenv.c (main): Use fseeko(), not fseek().
27237
27238 2009-01-13 Bean <bean123ch@gmail.com>
27239
27240 * util/grub-mkfont.c (write_font): forget to remove some debug code.
27241
27242 2009-01-13 Bean <bean123ch@gmail.com>
27243
27244 * Makefile.in: (enable_grub_mkfont): New variable.
27245 (freetype_cflags): Likewise.
27246 (freetype_libs): Likewise.
27247
27248 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
27249 (grub_mkfont_SOURCES): New variable.
27250 (grub_mkfont_CFLAGS): Likewise.
27251 (grub_mkfont_LDFLAGS): Likewise.
27252
27253 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
27254 library if `--enable-grub-mkfont' is requested.
27255 (enable_grub_mkfont): New variable.
27256 (freetype_cflags): Likewise.
27257 (freetype_libs): Likewise.
27258
27259 * util/grub-mkfont.c: New file.
27260
27261 2009-01-12 Christian Franke <franke@computer.org>
27262
27263 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
27264 mode check. Fix setting of compat_use[].
27265
27266 2009-01-10 Robert Millan <rmh@aybabtu.com>
27267
27268 Update a few copyright years which we forgot to do in 2008 (only for
27269 files whose changes made in 2008 were copyright-significant)
27270
27271 * Makefile.in: Add 2008 to Copyright line.
27272 * disk/ieee1275/ofdisk.c: Likewise.
27273 * disk/efi/efidisk.c: Likewise.
27274 * kern/dl.c: Likewise.
27275 * kern/sparc64/ieee1275/init.c: Likewise.
27276 * kern/mm.c: Likewise.
27277 * kern/efi/mm.c: Likewise.
27278 * boot/i386/pc/boot.S: Likewise.
27279 * genfslist.sh: Likewise.
27280 * fs/iso9660.c: Likewise.
27281 * fs/hfs.c: Likewise.
27282 * fs/jfs.c: Likewise.
27283 * fs/minix.c: Likewise.
27284 * fs/ufs.c: Likewise.
27285 * gensymlist.sh.in: Likewise.
27286 * genkernsyms.sh.in: Likewise.
27287 * include/grub/misc.h: Likewise.
27288 * include/grub/types.h: Likewise.
27289 * include/grub/symbol.h: Likewise.
27290 * include/grub/elf.h: Likewise.
27291 * include/grub/kernel.h: Likewise.
27292 * include/grub/disk.h: Likewise.
27293 * include/grub/dl.h: Likewise.
27294 * include/grub/i386/linux.h: Likewise.
27295 * include/grub/i386/pc/biosdisk.h: Likewise.
27296 * include/grub/efi/api.h: Likewise.
27297 * include/grub/efi/pe32.h: Likewise.
27298 * include/grub/util/misc.h: Likewise.
27299 * normal/execute.c: Likewise.
27300 * normal/arg.c: Likewise.
27301 * normal/completion.c: Likewise.
27302 * normal/lexer.c: Likewise.
27303 * normal/parser.y: Likewise.
27304 * normal/misc.c: Likewise.
27305 * commands/i386/pc/vbeinfo.c: Likewise.
27306 * commands/hexdump.c: Likewise.
27307 * commands/terminal.c: Likewise.
27308 * commands/ls.c: Likewise.
27309 * commands/help.c: Likewise.
27310 * partmap/pc.c: Likewise.
27311 * loader/efi/chainloader.c: Likewise.
27312 * loader/multiboot_loader.c: Likewise.
27313 * loader/i386/pc/multiboot2.c: Likewise.
27314 * term/efi/console.c: Likewise.
27315 * term/i386/pc/serial.c: Likewise.
27316 * util/lvm.c: Likewise.
27317 * util/console.c: Likewise.
27318 * util/i386/efi/grub-mkimage.c: Likewise.
27319 * util/raid.c: Likewise.
27320
27321 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
27322
27323 * commands/videotest.c: Removed include to grub/machine/memory.h.
27324
27325 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
27326 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
27327 (video_mod_SOURCES): Removed.
27328 (video_mod_CFLAGS): Likewise.
27329 (video_mod_LDFLAGS): Likewise.
27330 (gfxterm_mod_SOURCES): Likewise.
27331 (gfxterm_mod_CFLAGS): Likewise.
27332 (gfxterm_mod_LDFLAGS): Likewise.
27333 (videotest_mod_SOURCES): Likewise.
27334 (videotest_mod_CFLAGS): Likewise.
27335 (videotest_mod_LDFLAGS): Likewise.
27336 (bitmap_mod_SOURCES): Likewise.
27337 (bitmap_mod_CFLAGS): Likewise.
27338 (bitmap_mod_LDFLAGS): Likewise.
27339 (tga_mod_SOURCES): Likewise.
27340 (tga_mod_CFLAGS): Likewise.
27341 (tga_mod_LDFLAGS): Likewise.
27342 (jpeg_mod_SOURCES): Likewise.
27343 (jpeg_mod_CFLAGS): Likewise.
27344 (jpeg_mod_LDFLAGS): Likewise.
27345 (png_mod_SOURCES): Likewise.
27346 (png_mod_CFLAGS): Likewise.
27347 (png_mod_LDFLAGS): Likewise.
27348
27349 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
27350 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
27351 (video_mod_SOURCES): Added.
27352 (video_mod_CFLAGS): Likewise.
27353 (video_mod_LDFLAGS): Likewise.
27354 (videotest_mod_SOURCES): Likewise.
27355 (videotest_mod_CFLAGS): Likewise.
27356 (videotest_mod_LDFLAGS): Likewise.
27357 (bitmap_mod_SOURCES): Likewise.
27358 (bitmap_mod_CFLAGS): Likewise.
27359 (bitmap_mod_LDFLAGS): Likewise.
27360 (tga_mod_SOURCES): Likewise.
27361 (tga_mod_CFLAGS): Likewise.
27362 (tga_mod_LDFLAGS): Likewise.
27363 (jpeg_mod_SOURCES): Likewise.
27364 (jpeg_mod_CFLAGS): Likewise.
27365 (jpeg_mod_LDFLAGS): Likewise.
27366 (png_mod_SOURCES): Likewise.
27367 (png_mod_CFLAGS): Likewise.
27368 (png_mod_LDFLAGS): Likewise.
27369 (gfxterm_mod_SOURCES): Likewise.
27370 (gfxterm_mod_CFLAGS): Likewise.
27371 (gfxterm_mod_LDFLAGS): Likewise.
27372
27373 * term/gfxterm.c: Removed include to grub/machine/memory.h,
27374 grub/machine/console.h.
27375
27376 2009-01-04 Jerone Young <jerone@gmail.com>
27377
27378 Make on screen instructions clearer
27379
27380 Based on patch created by Jidanni <jidanni@jidanni.org>
27381
27382 * normal/menu.c: print clearer instructions on the screen
27383
27384 2009-01-02 Colin D Bennett <colin@gibibit.com>
27385
27386 New font engine.
27387
27388 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
27389 build system and fixed gfxterm.c to work with different sized fonts.
27390
27391 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
27392
27393 * configure: Re-generated.
27394
27395 * DISTLIST: Removed font/manager.c.
27396 Added font/font.c.
27397 Added font/font_cmd.c.
27398
27399 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
27400 compilation.
27401
27402 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
27403
27404 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
27405
27406 * kern/term.c: Changed users of grub_utf8_to_ucs4.
27407
27408 * normal/menu.c: Likewise.
27409
27410 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
27411 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
27412
27413 * include/grub/font.h: Replaced with new file.
27414
27415 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
27416 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
27417 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
27418 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
27419 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
27420 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
27421 fg_red, fg_green, fg_blue, fg_alpha.
27422 (grub_video_adapter): Removed blit_glyph.
27423 (grub_video_blit_glyph): Removed.
27424
27425 * font/manager.c: Removed file.
27426
27427 * font/font.c: New file.
27428
27429 * font/font_cmd.c: Likewise.
27430
27431 * video/video.c (grub_video_blit_glyph): Removed.
27432
27433 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
27434 (grub_video_vbe_map_rgba): Likewise.
27435 (grub_video_vbe_unmap_color_int): Likewise.
27436 (grub_video_vbe_blit_glyph): Removed.
27437 (grub_video_vbe_adapter): Removed blit_glyph.
27438
27439 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
27440 (get_pixel): Likewise.
27441 (set_pixel): Likewise.
27442
27443 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
27444
27445 * term/gfxterm.c: Adapted to new font engine.
27446
27447 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
27448
27449 * term/i386/pc/vga.c: Likewise.
27450
27451 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
27452
27453 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
27454
27455 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
27456
27457 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
27458
27459 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
27460
27461 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
27462
27463 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
27464
27465 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
27466
27467 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
27468
27469 * util/grub.d/00_header.in: Changed to use new loadfont command.
27470
27471 * util/grub-mkconfig_lib.in: Changed font extension.
27472
27473 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
27474
27475 * util/getroot.c (grub_util_get_grub_dev): Add support for
27476 /dev/md/dNNpNN style partitionable mdraid devices.
27477
27478 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
27479
27480 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
27481 at a time limit of the PXE TFTP API correctly.
27482 (grub_pxefs_close): Likewise.
27483
27484 2008-11-29 Robert Millan <rmh@aybabtu.com>
27485
27486 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
27487 grub_ata_device_initialize() calls.
27488
27489 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
27490
27491 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
27492 iteration failed.
27493 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
27494
27495 2008-11-28 Robert Millan <rmh@aybabtu.com>
27496
27497 Fix build on powerpc-ieee1275. Based on patch created by
27498 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
27499 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
27500 `kern/ieee1275/mmap.c'.
27501 * include/grub/powerpc/ieee1275/memory.h: New file.
27502
27503 Provide grub-install on coreboot.
27504 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
27505 (grub_install_SOURCES): New variable.
27506 * util/i386/pc/grub-install.in: Add a few condition checks to make it
27507 usable on coreboot.
27508
27509 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
27510
27511 * util/grub-fstest.c (grub_term_get_current_input): Change return type
27512 to `grub_term_input_t'.
27513 (grub_term_get_current_output): Change return type to
27514 `grub_term_output_t'.
27515
27516 2008-11-22 Robert Millan <rmh@aybabtu.com>
27517
27518 Fix breakage on coreboot due to declaration mismatch.
27519 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
27520 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
27521 grub_vga_text_cls().
27522
27523 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
27524 comments. Avoid copying one more byte than necessary (just in case).
27525
27526 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
27527 to 0x200000 (avoids trouble with some OFW implementations, and matches
27528 with the one in Yaboot).
27529 Reported by Manoel Abranches
27530
27531 2008-11-20 Robert Millan <rmh@aybabtu.com>
27532
27533 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
27534 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
27535
27536 * util/grub-mkconfig_lib.in (grub_warn): New function.
27537 (convert_system_path_to_grub_path): Use grub_warn() when issuing
27538 warnings, to obtain consistent formatting.
27539 * util/grub.d/00_header.in: Likewise.
27540 * util/update-grub_lib.in: Likewise.
27541
27542 * loader/i386/linux.c (allocate_pages): Fix a warning.
27543 Move comment text to `#error' stanza.
27544
27545 Harmonize ieee1275's grub_available_iterate() with the generic
27546 grub_machine_mmap_iterate() interface (fixes a recently-introduced
27547 build problem on i386-ieee1275):
27548 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
27549 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
27550 parameter `type'. Update all users of this function.
27551 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
27552 `kern/ieee1275/mmap.c'.
27553 * kern/ieee1275/init.c
27554 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
27555 with ...
27556 (grub_machine_mmap_iterate): ... this.
27557 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
27558 return type to `grub_err_t'. Update all implementations of this
27559 function prototype.
27560 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
27561 Likewise.
27562
27563 Add `lsmmap' command (lists firmware-provided memory map):
27564 * commands/lsmmap.c: New file.
27565 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
27566 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
27567 variables.
27568 * conf/powerpc-ieee1275.rmk: Likewise.
27569 * conf/i386-coreboot.rmk: Likewise.
27570 * conf/i386-ieee1275.rmk: Likewise.
27571
27572 2008-11-19 Robert Millan <rmh@aybabtu.com>
27573
27574 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
27575 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
27576 constraints to initrd allocation (based on code from
27577 loader/i386/pc/linux.c). Without them, initrd was allocated too high
27578 for Linux to find it.
27579
27580 2008-11-14 Robert Millan <rmh@aybabtu.com>
27581
27582 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
27583 order to cope with duplicate slashes.
27584
27585 2008-11-14 Robert Millan <rmh@aybabtu.com>
27586
27587 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
27588 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
27589 don't want to mess with lower memory, because it is used in the Linux
27590 loader.
27591
27592 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
27593 an appropriate place in lower memory, between 0x10000 and 0x90000,
27594 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
27595 is in our heap (probably as a result of it being corrupted during
27596 decompression). Add #error instance with comment to explain why this
27597 loader isn't currently usable on PC/BIOS.
27598
27599 2008-11-14 Robert Millan <rmh@aybabtu.com>
27600
27601 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
27602 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
27603
27604 2008-11-12 Robert Millan <rmh@aybabtu.com>
27605
27606 Make loader/i386/linux.c buildable on i386-pc (although disabled).
27607
27608 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
27609 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
27610 from here ...
27611 * include/grub/i386/pc/memory.h: ... to here.
27612
27613 2008-11-12 Robert Millan <rmh@aybabtu.com>
27614
27615 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
27616 split).
27617
27618 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
27619 (grub_console_cur_color, grub_console_real_putchar)
27620 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
27621 (grub_console_setcolorstate, grub_console_setcolor)
27622 (grub_console_getcolor): Move from here ...
27623 * include/grub/i386/vga_common.h: ... to here (new file).
27624
27625 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
27626 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
27627 `<grub/i386/io.h>'.
27628 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
27629 `<grub/i386/vga_common.h>'.
27630
27631 2008-11-12 Robert Millan <rmh@aybabtu.com>
27632
27633 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
27634 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
27635 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
27636 variables.
27637 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
27638 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
27639
27640 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
27641 grub_console_init() with call to grub_vga_text_init().
27642 (grub_machine_fini): Replace call to
27643 grub_console_fini() with call to grub_vga_text_fini() and
27644 grub_at_keyboard_fini().
27645
27646 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
27647 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
27648 (grub_console_setcolorstate, grub_console_setcolor)
27649 (grub_console_getcolor): New function prototypes.
27650
27651 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
27652 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
27653 (grub_vga_text_setcursor): Static-ize.
27654 (grub_vga_text_term): New structure.
27655 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
27656
27657 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
27658 (grub_console_cur_color, grub_console_standard_color)
27659 (grub_console_normal_color, grub_console_highlight_color)
27660 (map_char, grub_console_putchar, grub_console_getcharwidth)
27661 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
27662 (grub_console_getcolor): Move from here ...
27663 * term/i386/vga_common.c: ... to here (same function names).
27664
27665 2008-11-12 Robert Millan <rmh@aybabtu.com>
27666
27667 Use newly-added Multiboot support in coreboot.
27668
27669 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
27670 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
27671
27672 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
27673 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
27674 (codestart): Store the MBI in `startup_multiboot_info' when we're
27675 being loaded using Multiboot.
27676
27677 * kern/i386/coreboot/init.c (grub_machine_init): Move
27678 grub_at_keyboard_init() call to beginning of function (useful for
27679 debugging). Call grub_machine_mmap_init() before attempting to use
27680 grub_machine_mmap_iterate().
27681 (grub_lower_mem, grub_upper_mem): Move from here ...
27682 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
27683 here (new file).
27684
27685 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
27686 function prototype.
27687
27688 2008-11-12 Robert Millan <rmh@aybabtu.com>
27689
27690 Fix a regression introduced by the at_keyboard.mod split. Because
27691 some terminals are default on some platforms and non-default on
27692 others, the first terminal being registered determines which is
27693 going to be default.
27694
27695 * kern/term.c (grub_term_register_input): If this is the first
27696 terminal being registered, set it as the current one.
27697 (grub_term_register_output): Likewise.
27698
27699 * term/efi/console.c (grub_console_init): Do not call
27700 grub_term_set_current_output() or grub_term_set_current_input().
27701 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
27702 * term/i386/pc/console.c (grub_console_init): Likewise.
27703 (grub_console_fini): Do not call grub_term_set_current_input()
27704 (but leave grub_term_set_current_output() to restore text mode).
27705
27706 2008-11-10 Robert Millan <rmh@aybabtu.com>
27707
27708 * util/grub.d/00_header.in: Add backward compatibility check for
27709 versions of terminal.mod that don't understand `terminal_input' or
27710 `terminal_output'.
27711
27712 2008-11-09 Robert Millan <rmh@aybabtu.com>
27713
27714 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
27715 `terminal_input' / `terminal_output', not `terminal'.
27716
27717 2008-11-08 Robert Millan <rmh@aybabtu.com>
27718
27719 * Makefile.in (include_DATA): Fix srcdir=. assumption.
27720 (DISTCLEANFILES): Add `build_env.mk'.
27721
27722 2008-11-08 Robert Millan <rmh@aybabtu.com>
27723
27724 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
27725 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
27726 members. Update all users.
27727 * util/console.c (grub_ncurses_term): Split in ...
27728 (grub_ncurses_term_input): ... this, and ...
27729 (grub_ncurses_term_output): ... this. Update all users.
27730 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
27731
27732 2008-11-08 Robert Millan <rmh@aybabtu.com>
27733
27734 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
27735 (PKGDATA): Add $(pkgdata_SRCDIR).
27736 (pkglib_BUILDDIR): New variable.
27737 (pkgdata_SRCDIR): New variable.
27738 (build_env.mk): New target.
27739 (include_DATA): New variable.
27740 (install-local): Install $(include_DATA) files in $(includedir).
27741
27742 2008-11-07 Pavel Roskin <proski@gnu.org>
27743
27744 * gendistlist.sh: Use C locale for sorting to ensure consistent
27745 output on all systems.
27746
27747 * util/grub.d/00_header.in: Remove incorrect space before
27748 "serial".
27749
27750 2008-11-07 Robert Millan <rmh@aybabtu.com>
27751
27752 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
27753 per specification.
27754 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
27755 * loader/multiboot_loader.c (find_multi_boot2_header): New function
27756 (based on find_multi_boot1_header).
27757 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
27758 using find_multi_boot2_header(), and abort if neither Multiboot or
27759 Multiboot headers were found.
27760
27761 2008-11-07 Robert Millan <rmh@aybabtu.com>
27762
27763 Modularize at_keyboard.mod:
27764
27765 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
27766 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
27767 (at_keyboard_mod_LDFLAGS): New variables.
27768
27769 Actual terminal split:
27770
27771 * include/grub/term.h (struct grub_term): Split in ...
27772 (struct grub_term_input): ... this, and ...
27773 (struct grub_term_output): ... this. Update all users.
27774 (grub_term_set_current): Split in ...
27775 (grub_term_set_current_input): ... this, and ...
27776 (grub_term_set_current_output): ... this.
27777 (grub_term_get_current): Split in ...
27778 (grub_term_get_current_input): ... this, and ...
27779 (grub_term_get_current_output): ... this.
27780 (grub_term_register): Split in ...
27781 (grub_term_register_input): ... this, and ...
27782 (grub_term_register_output): ... this.
27783 (grub_term_unregister): Split in ...
27784 (grub_term_unregister_input): ... this, and ...
27785 (grub_term_unregister_output): ... this.
27786 (grub_term_iterate): Split in ...
27787 (grub_term_iterate_input): ... this, and ...
27788 (grub_term_iterate_output): ... this.
27789
27790 * kern/term.c (grub_term_list): Split in ...
27791 (grub_term_list_input): ... this, and ...
27792 (grub_term_list_output): ... this. Update all users.
27793 (grub_cur_term): Split in ...
27794 (grub_cur_term_input): ... this, and ...
27795 (grub_cur_term_output): ... this. Update all users.
27796 (grub_term_set_current): Split in ...
27797 (grub_term_set_current_input): ... this, and ...
27798 (grub_term_set_current_output): ... this.
27799 (grub_term_get_current): Split in ...
27800 (grub_term_get_current_input): ... this, and ...
27801 (grub_term_get_current_output): ... this.
27802 (grub_term_register): Split in ...
27803 (grub_term_register_input): ... this, and ...
27804 (grub_term_register_output): ... this.
27805 (grub_term_unregister): Split in ...
27806 (grub_term_unregister_input): ... this, and ...
27807 (grub_term_unregister_output): ... this.
27808 (grub_term_iterate): Split in ...
27809 (grub_term_iterate_input): ... this, and ...
27810 (grub_term_iterate_output): ... this.
27811
27812 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
27813 a check for input and one for output (and only attempt to get keys
27814 from user when input works).
27815
27816 * util/grub-probe.c (grub_term_get_current): Split in ...
27817 (grub_term_get_current_input): ... this, and ...
27818 (grub_term_get_current_output): ... this.
27819 * util/grub-fstest.c: Likewise.
27820 * util/i386/pc/grub-setup.c: Likewise.
27821 * util/grub-editenv.c: Likewise.
27822
27823 Portability adjustments:
27824
27825 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
27826 `term/i386/pc/at_keyboard.c'.
27827 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
27828 grub_keyboard_controller_init() (now handled by terminal .init).
27829 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
27830 grub_at_keyboard_init().
27831 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
27832 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
27833 at_keyboard.mod via input terminal interface).
27834 * include/grub/i386/coreboot/console.h: Convert into a stub for
27835 `<grub/i386/pc/console.h>'.
27836
27837 Migrate full terminals to new API:
27838
27839 * term/efi/console.c (grub_console_term): Split into ...
27840 (grub_console_term_input): ... this, and ...
27841 (grub_console_term_output): ... this. Update all users.
27842 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
27843 (grub_ofconsole_init): Split into ...
27844 (grub_ofconsole_init_input): ... this, and ...
27845 (grub_ofconsole_init_output): ... this.
27846 (grub_ofconsole_term): Split into ...
27847 (grub_ofconsole_term_input): ... this, and ...
27848 (grub_ofconsole_term_output): ... this. Update all users.
27849 * term/i386/pc/serial.c (grub_serial_term): Split into ...
27850 (grub_serial_term_input): ... this, and ...
27851 (grub_serial_term_output): ... this. Update all users.
27852 * term/i386/pc/console.c (grub_console_term): Split into ...
27853 (grub_console_term_input): ... this, and ...
27854 (grub_console_term_output): ... this. Update all users.
27855 (grub_console_term_input): Only enable it on PC/BIOS platform.
27856 (grub_console_init): Remove grub_keyboard_controller_init() call.
27857
27858 Migrate input terminals to new API:
27859
27860 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
27861 `i386' and `i386/pc' to enable build on x86_64 (this driver is
27862 i386-specific anyway).
27863 (grub_console_checkkey): Rename to ...
27864 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
27865 users.
27866 (grub_keyboard_controller_orig): New variable.
27867 (grub_console_getkey): Rename to ...
27868 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
27869 users.
27870 (grub_keyboard_controller_init): Static-ize. Save original
27871 controller value so that it can be restored ...
27872 (grub_keyboard_controller_fini): ... here (new function).
27873 (grub_at_keyboard_term): New structure.
27874 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
27875 functions.
27876
27877 Migrate output terminals to new API:
27878
27879 * term/i386/pc/vga.c (grub_vga_term): Change type to
27880 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
27881 members. Update all users.
27882 * term/gfxterm.c (grub_video_term): Change type to
27883 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
27884 members. Update all users.
27885 * include/grub/i386/pc/console.h (grub_console_checkkey)
27886 (grub_console_getkey): Do not export (no longer needed by gfxterm,
27887 etc).
27888
27889 Migrate `terminal' command and userland tools to new API:
27890
27891 * commands/terminal.c (grub_cmd_terminal): Split into ...
27892 (grub_cmd_terminal_input): ... this, and ...
27893 (grub_cmd_terminal_output): ... this.
27894 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
27895 `terminal_input' and `terminal_output'.
27896 * util/grub.d/00_header.in: Adjust `terminal' calls to new
27897 `terminal_input' / `terminal_output' API.
27898 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
27899 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
27900 provided ${GRUB_TERMINAL}, convert it).
27901
27902 2008-11-04 Robert Millan <rmh@aybabtu.com>
27903
27904 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
27905 for FreeBSD.
27906 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
27907
27908 2008-11-03 Bean <bean123ch@gmail.com>
27909
27910 * kern/elf.c (grub_elf32_load): Revert to previous code.
27911 (grub_elf64_load): Likewise.
27912
27913 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
27914
27915 2008-11-01 Robert Millan <rmh@aybabtu.com>
27916
27917 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
27918 (TARGET_CPPFLAGS): Likewise.
27919 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
27920
27921 2008-11-01 Carles Pina i Estany <carles@pina.cat>
27922
27923 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
27924
27925 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
27926
27927 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
27928 addition of objects until the code is not going to be able to fail.
27929
27930 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
27931
27932 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
27933 (add a missing NULL check, and correct them by moving the pointer
27934 operations after the actual check).
27935
27936 2008-10-29 Robert Millan <rmh@aybabtu.com>
27937
27938 * util/i386/pc/grub-install.in: Handle empty string as output from
27939 make_system_path_relative_to_its_root().
27940
27941 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
27942
27943 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
27944 circular metadata worst case scenario. If the metadata is circular
27945 then copy the wrap in place.
27946 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
27947 project lib/format_text/layout.h
27948 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
27949
27950 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
27951
27952 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
27953
27954 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
27955
27956 * util/update-grub_lib.in: Mention filename in warning message.
27957
27958 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
27959
27960 * NEWS: Update for rename of update-grub to grub-mkconfig.
27961
27962 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
27963
27964 * util/update-grub_lib.in: Copy to ...
27965 * util/grub-mkconfig_lib.in: ... this. Update all users.
27966 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
27967 * util/update-grub.in: Rename to ...
27968 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
27969 option. Add `--output' option to allow users to specify the generated
27970 configuration file. Default to stdout.
27971 (update_grub_dir): Rename to ...
27972 (grub_mkconfig_dir): ... this.
27973 (grub_cfg): Default to an empty string.
27974 * conf/common.rmk (update-grub): Rename to ...
27975 (grub-mkconfig): ... this.
27976 (update-grub_lib): Copy to ...
27977 (grub-mkconfig_lib): ... this.
27978 (update-grub_SCRIPTS): Copy to ...
27979 (grub-mkconfig_SCRIPTS): ... this. Update all users.
27980 (update-grub_DATA): Rename to ...
27981 (grub-mkconfig_DATA): ... this.
27982
27983 2008-09-28 Robert Millan <rmh@aybabtu.com>
27984
27985 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
27986 to `modified'. Add the real `created' field.
27987 (grub_iso9660_uuid): Use `modified' rather than `created' for
27988 constructing the UUID.
27989
27990 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
27991
27992 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
27993 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
27994
27995 2008-09-28 Bean <bean123ch@gmail.com>
27996
27997 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
27998 Thanks to Christian Franke for finding this bug.
27999
28000 2008-09-25 Robert Millan <rmh@aybabtu.com>
28001
28002 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
28003 instances of grub_util_get_disk_name() (see previous commit).
28004
28005 2008-09-25 Robert Millan <rmh@aybabtu.com>
28006
28007 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
28008 `util/i386/get_disk_name.c'.
28009 * conf/i386-efi.rmk: Likewise.
28010 * conf/x86_64-efi.rmk: Likewise.
28011 * conf/i386-coreboot.rmk: Likewise.
28012 * conf/i386-ieee1275.rmk: Likewise.
28013 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
28014 `util/ieee1275/get_disk_name.c'.
28015 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
28016 * util/ieee1275/get_disk_name.c: Remove file.
28017 * util/i386/get_disk_name.c: Remove file.
28018 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
28019 "hd%d" for device.map entries, rather than using
28020 grub_util_get_disk_name().
28021
28022 2008-09-24 Carles Pina i Estany <carles@pina.cat>
28023
28024 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
28025 warning.
28026 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
28027
28028 2008-09-24 Carles Pina i Estany <carles@pina.cat>
28029
28030 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
28031 Changed to 0x5100.
28032 (GRUB_TERM_PPAGE): Changed to 0x4900.
28033
28034 2008-09-24 Robert Millan <rmh@aybabtu.com>
28035
28036 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
28037 macros (they were i386-pc specific).
28038 * include/grub/sparc64/ieee1275/console.h: Likewise.
28039 * include/grub/efi/console.h: Likewise.
28040
28041 2008-09-22 Bean <bean123ch@gmail.com>
28042
28043 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
28044 resident and in attribute list.
28045
28046 * include/grub/ntfs.h (BMP_LEN): Removed.
28047
28048 2008-09-22 Bean <bean123ch@gmail.com>
28049
28050 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
28051 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
28052
28053 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
28054 error occurs, as grub_disk_open will call grub_disk_close, which will
28055 call p->close (scsi).
28056
28057 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
28058
28059 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
28060 (AC_PREREQ): Bumped to 2.59.
28061 (AC_TRY_COMPILE): Replace obsolete macro with ...
28062 (AC_COMPILE_IFELSE): ... this.
28063 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
28064 (AC_LINK_IFELSE): ... this.
28065
28066 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
28067
28068 * autogen.sh: Add a call to `gendistlist.sh'.
28069
28070 2008-09-19 Christian Franke <franke@computer.org>
28071
28072 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
28073 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
28074 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
28075 Export __enable_execute_stack() to modules.
28076 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
28077 New function.
28078
28079 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
28080
28081 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
28082 Sort the list.
28083
28084 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
28085
28086 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
28087 #include <grub/util/hostdisk.h>.
28088
28089 2008-09-08 Robert Millan <rmh@aybabtu.com>
28090
28091 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
28092 segments when their filesz is zero (grub_file_read() interprets
28093 zero-size as "read until EOF", which results in memory corruption).
28094 Use `lowest_segment' rather than 0 for calculating the current
28095 segment load address.
28096
28097 2008-09-08 Robert Millan <rmh@aybabtu.com>
28098
28099 * util/hostdisk.c (open_device): Replace a grub_util_info() call
28100 with grub_dprintf("hostdisk", ...), as it was so verbose that it
28101 clobbered useful information.
28102
28103 2008-09-08 Robert Millan <rmh@aybabtu.com>
28104
28105 * include/grub/util/biosdisk.h: Move to ...
28106 * include/grub/util/hostdisk.h: ... here. Update all users.
28107 * util/biosdisk.c: Move to ...
28108 * util/hostdisk.c: ... here. Update all users.
28109
28110 2008-09-07 Robert Millan <rmh@aybabtu.com>
28111
28112 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
28113 variables.
28114 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
28115 and length can be stored directly in the `mbi->mmap_addr' and
28116 `mbi->mmap_length' struct fields.
28117
28118 2008-09-07 Robert Millan <rmh@aybabtu.com>
28119
28120 * conf/i386.rmk: New file. Provides declaration for building
28121 `cpuid.mod'.
28122 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
28123 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
28124 variables.
28125 Include `conf/i386.mk'.
28126 * conf/i386-efi.rmk: Likewise.
28127 * conf/x86_64-efi.rmk: Likewise.
28128 * conf/i386-coreboot.rmk: Likewise.
28129 * conf/i386-ieee1275.rmk: Likewise.
28130
28131 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
28132
28133 Based on patch created by Colin D Bennett <colin@gibibit.com>.
28134 Adds optimization support for BGR based modes.
28135
28136 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
28137 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
28138 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
28139 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
28140 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
28141 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
28142 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
28143 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
28144 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
28145 (grub_video_i386_vbeblit_index_index): Likewise.
28146 (grub_video_i386_vbeblit_replace_directN): Added.
28147 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
28148 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
28149 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
28150 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
28151 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
28152 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
28153 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
28154 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
28155 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
28156 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
28157 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
28158 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
28159 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
28160
28161 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
28162 (grub_video_i386_vbefill_R8G8B8): Likewise.
28163 (grub_video_i386_vbefill_index): Likewise.
28164 (grub_video_i386_vbefill_direct32): Added.
28165 (grub_video_i386_vbefill_direct24): Likewise.
28166 (grub_video_i386_vbefill_direct16): Likewise.
28167 (grub_video_i386_vbefill_direct8): Likewise.
28168
28169 * include/grub/video.h (grub_video_blit_format): Removed
28170 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
28171 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
28172 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
28173 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
28174 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
28175
28176 * video/video.c (grub_video_get_blit_format): Updated to use new
28177 blit formats. Added handling for 16 bit color modes.
28178
28179 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
28180 fillers.
28181 (common_blitter): Updated to use new blitters.
28182
28183 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
28184 Removed.
28185 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
28186 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
28187 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
28188 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
28189 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
28190 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
28191 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
28192 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
28193 (grub_video_i386_vbeblit_index_index): Likewise.
28194 (grub_video_i386_vbeblit_replace_directN): Added.
28195 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
28196 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
28197 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
28198 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
28199 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
28200 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
28201 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
28202 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
28203 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
28204 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
28205 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
28206 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
28207 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
28208
28209 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
28210 (grub_video_i386_vbefill_R8G8B8): Likewise.
28211 (grub_video_i386_vbefill_index): Likewise.
28212 (grub_video_i386_vbefill_direct32): Added.
28213 (grub_video_i386_vbefill_direct24): Likewise.
28214 (grub_video_i386_vbefill_direct16): Likewise.
28215 (grub_video_i386_vbefill_direct8): Likewise.
28216
28217 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
28218 types.
28219
28220 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
28221 types.
28222
28223 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
28224 blitter types.
28225
28226 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
28227 types.
28228
28229 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
28230
28231 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
28232 RAID level 1.
28233
28234 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
28235
28236 * fs/iso9660.c (grub_iso9660_date): New structure.
28237 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
28238 (grub_iso9660_uuid): New function.
28239
28240 2008-09-05 Bean <bean123ch@gmail.com>
28241
28242 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
28243
28244 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
28245 insensitive bit for names in Win32 and Win32 & DOS namespace.
28246
28247 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
28248
28249 * include/grub/types.h (LONG_MAX): Likewise.
28250
28251 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
28252
28253 * util/getroot.c: Include <config.h>.
28254 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
28255 add support for /dev/md/N devices and handle LVM double dash escaping.
28256
28257 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
28258
28259 * config.guess: Update to latest version from config git.
28260 * config.sub: Likewise.
28261
28262 2008-09-03 Robert Millan <rmh@aybabtu.com>
28263
28264 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
28265 `disk->total_sectors'.
28266
28267 2008-09-01 Colin D Bennett <colin@gibibit.com>
28268
28269 * include/grub/normal.h: Fixed incorrect comment for
28270 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
28271
28272 2008-09-01 Colin D Bennett <colin@gibibit.com>
28273
28274 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
28275 values with defines.
28276
28277 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
28278 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
28279 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
28280 (GRUB_VBE_MODEATTR_COLOR): Likewise.
28281 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
28282 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
28283 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
28284 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
28285 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
28286 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
28287 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
28288 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
28289 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
28290 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
28291 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
28292 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
28293 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
28294 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
28295 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
28296
28297 2008-08-31 Robert Millan <rmh@aybabtu.com>
28298
28299 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
28300 declaration.
28301 (grub_multiboot): Fix a few warnings.
28302
28303 2008-08-31 Robert Millan <rmh@aybabtu.com>
28304
28305 * loader/i386/pc/multiboot.c: Update comment not to say that
28306 boot_device support is unimplemented.
28307
28308 2008-08-31 Robert Millan <rmh@aybabtu.com>
28309
28310 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
28311 or memory map support are unimplemented.
28312
28313 2008-08-31 Colin D Bennett <colin@gibibit.com>
28314
28315 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
28316
28317 2008-08-31 Colin D Bennett <colin@gibibit.com>
28318
28319 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
28320 total video memory in 'vbeinfo' output; show color format details for
28321 each video mode.
28322
28323 2008-08-30 Pavel Roskin <proski@gnu.org>
28324
28325 * util/genmoddep.c: Remove for real this time.
28326 * DISTLIST: Remove util/genmoddep.c.
28327
28328 2008-08-30 Robert Millan <rmh@aybabtu.com>
28329
28330 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
28331 as required by Multiboot spec (it was already 4-byte aligned, but
28332 only by chance).
28333
28334 2008-08-29 Pavel Roskin <proski@gnu.org>
28335
28336 * kern/powerpc/ieee1275/crt0.S: Rename to ...
28337 * kern/powerpc/ieee1275/startup.S: ... this.
28338 * conf/powerpc-ieee1275.rmk: Adjust for the above.
28339 * DISTLIST: Likewise.
28340
28341 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
28342 grub/cpu/kernel.h. Add start label for consistency with other
28343 platforms. Add grub_prefix immediately after start. Add jump
28344 to the code after grub_prefix.
28345 * include/grub/powerpc/kernel.h: Provide valid values for
28346 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
28347
28348 2008-08-29 Bean <bean123ch@gmail.com>
28349
28350 * configure.ac: Change host_os to cygwin for mingw.
28351 (asprintf): New check for function.
28352
28353 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
28354 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
28355
28356 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
28357 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
28358 sync, sleep and grub_util_get_disk_size for mingw.
28359
28360 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
28361 to get size in mingw.
28362 (open_device): Use flag O_BINARY if it's defined.
28363 (find_root_device): Add dummy code for mingw.
28364
28365 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
28366 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
28367 (get_scsi_disk_name): Return 0 for mingw.
28368
28369 * util/hostfs.c: #include <grub/util/misc.h>.
28370 (grub_hostfs_open): Use "rb" flag to open file, use
28371 grub_util_get_disk_size to get disk size for mingw.
28372
28373 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
28374 (asprintf): New function if HAVE_ASPRINTF is not set.
28375 (sync): New function for mingw.
28376 (sleep): Likewise.
28377 (grub_util_get_disk_size): Likewise.
28378
28379 2008-08-28 Pavel Roskin <proski@gnu.org>
28380
28381 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
28382 kern/time.c.
28383
28384 2008-08-28 Robert Millan <rmh@aybabtu.com>
28385
28386 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
28387
28388 2008-08-28 Robert Millan <rmh@aybabtu.com>
28389
28390 Change find_grub_drive() syntax so it doesn't prevent it from
28391 detecting NULL names as errors.
28392
28393 * util/biosdisk.c (find_grub_drive): Move free slot search code
28394 from here ...
28395 (find_free_slot): ... to here.
28396 (read_device_map): Use find_free_slot() to search for free slots.
28397
28398 2008-08-27 Marco Gerards <marco@gnu.org>
28399
28400 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
28401 (scsi_mod_SOURCES): New variable.
28402 (scsi_mod_CFLAGS): Likewise
28403 (scsi_mod_LDFLAGS): Likewise.
28404
28405 * disk/scsi.c: New file.
28406
28407 * include/grub/scsi.h: Likewise.
28408
28409 * include/grub/scsicmd.h: Likewise.
28410
28411 * disk/ata.c: Include <grub/scsi.h>.
28412 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
28413 instead.
28414 (grub_ata_iterate): Skip ATAPI devices.
28415 (grub_ata_open): Only handle ATAPI devices.
28416 (struct grub_atapi_read): Removed.
28417 (grub_atapi_readsector): Likewise.
28418 (grub_ata_read): No longer handle ATAPI devices.
28419 (grub_ata_write): Likewise.
28420 (grub_atapi_iterate): New function.
28421 (grub_atapi_read): Likewise.
28422 (grub_atapi_write): Likewise.
28423 (grub_atapi_open): Likewise.
28424 (grub_atapi_close): Likewise.
28425 (grub_atapi_dev): New variable.
28426 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
28427 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
28428
28429 * include/grub/disk.h (enum grub_disk_dev_id): Add
28430 `GRUB_DISK_DEVICE_SCSI_ID'.
28431
28432 2008-08-26 Robert Millan <rmh@aybabtu.com>
28433
28434 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
28435 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
28436 descriptive.
28437
28438 2008-08-23 Bean <bean123ch@gmail.com>
28439
28440 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
28441 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
28442 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
28443 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
28444 dm_nv.mod.
28445 (raid5rec_mod_SOURCES): New macro.
28446 (raid5rec_mod_CFLAGS): Likewise.
28447 (raid5rec_mod_LDFLAGS): Likewise.
28448 (raid6rec_mod_SOURCES): Likewise.
28449 (raid6rec_mod_CFLAGS): Likewise.
28450 (raid6rec_mod_LDFLAGS): Likewise.
28451 (mdraid_mod_SOURCES): Likewise.
28452 (mdraid_mod_CFLAGS): Likewise.
28453 (mdraid_mod_LDFLAGS): Likewise.
28454 (dm_nv_mod_SOURCES): Likewise.
28455 (dm_nv_mod_CFLAGS): Likewise.
28456 (dm_nv_mod_LDFLAGS): Likewise.
28457
28458 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
28459 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
28460 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
28461
28462 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
28463 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
28464
28465 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28466
28467 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
28468
28469 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28470
28471 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28472
28473 * disk/raid5_recover.c: New file.
28474
28475 * disk/raid6_recover.c: Likewise.
28476
28477 * disk/mdraid_linux.c: Likewise.
28478
28479 * disk/dmraid_nvidia.c: Likewise.
28480
28481 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
28482 ULONG_MAX.
28483
28484 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
28485 calculate the size of raid device.
28486 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
28487 different layout of raid5.
28488 (grub_raid_scan_device): Remove code specific to mdraid.
28489 (grub_raid_list): New variable.
28490 (free_array): New function.
28491 (grub_raid_register): Likewise.
28492 (grub_raid_unregister): Likewise.
28493 (grub_raid_rescan): Likewise.
28494 (GRUB_MOD_INIT): Don't iterate device here.
28495 (GRUB_MOD_FINI): Use free_array to release resource.
28496
28497 * include/grub/raid.h: Remove macro and structure specific to mdraid.
28498 (grub_raid5_recover_func_t): New function variable type.
28499 (grub_raid6_recover_func_t): Likewise.
28500 (grub_raid5_recover_func): New variable.
28501 (grub_raid6_recover_func): Likewise.
28502 (grub_raid_register): New function.
28503 (grub_raid_unregister): Likewise.
28504 (grub_raid_rescan): Likewise.
28505 (grub_raid_block_xor): Likewise.
28506
28507 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
28508 (CMD_CRC): New macro.
28509 (part): Removed.
28510 (read_file): Handle device as well as file.
28511 (cmd_crc): New function.
28512 (fstest): Handle multiple disks.
28513 (options): Remove part, raw and long, add root and diskcount.
28514 (usage): Add crc, remove -p, -r, -l, add -r and -c.
28515 (main): Find the first non option entry and ignore subsequent options,
28516 add handling for the new options, support multiple disks.
28517
28518 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
28519
28520 2008-08-23 Bean <bean123ch@gmail.com>
28521
28522 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
28523
28524 * genfslist.sh: Ignore kernel.mod.
28525
28526 * genpartmaplist.sh: Likewise.
28527
28528 2008-08-23 Robert Millan <rmh@aybabtu.com>
28529
28530 * util/getroot.c (find_root_device): Skip anything that starts with
28531 a dot, not just directories. This avoids things like /dev/.tmp.md0.
28532
28533 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
28534
28535 * util/update-grub.in (GRUB_GFXMODE): Export variable.
28536 * util/grub.d/00_header.in: Allow the administrator to change default
28537 gfxmode via ${GRUB_GFXMODE}.
28538
28539 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
28540
28541 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
28542
28543 2008-08-21 Robert Millan <rmh@aybabtu.com>
28544
28545 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
28546 loader.
28547 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
28548 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
28549
28550 2008-08-20 Carles Pina i Estany <carles@pina.cat>
28551
28552 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
28553 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
28554
28555 2008-08-19 Robert Millan <rmh@aybabtu.com>
28556
28557 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
28558 (struct grub_virtual_screen): Remove `cursor_color'.
28559 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
28560 initialization.
28561 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
28562
28563 2008-08-18 Robert Millan <rmh@aybabtu.com>
28564
28565 Unify (identical) linux_normal.c files.
28566 * loader/i386/efi/linux_normal.c: Move from here ...
28567 * loader/linux_normal.c: ... to here. Update all users.
28568 * loader/i386/pc/linux_normal.c: Delete. Update all users.
28569 * loader/i386/ieee1275/linux_normal.c: Likewise.
28570
28571 2008-08-18 Robert Millan <rmh@aybabtu.com>
28572
28573 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
28574 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
28575 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
28576 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
28577 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
28578 New macros.
28579 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
28580 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
28581 (GRUB_LINUX_CL_END_OFFSET): ... to here.
28582 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
28583 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
28584 (GRUB_EFI_CL_END_OFFSET): Rename to ...
28585 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
28586 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
28587 Initialize `params->video_cursor_x' and `params->video_cursor_y'
28588 portably using grub_getxy().
28589 Replace `-EFI' with `-bzImage' in boot message.
28590
28591 2008-08-17 Robert Millan <rmh@aybabtu.com>
28592
28593 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
28594
28595 2008-08-17 Robert Millan <rmh@aybabtu.com>
28596
28597 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
28598
28599 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
28600 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
28601 (grub_machine_mmap_iterate): New function declaration.
28602 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
28603 structure.
28604 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
28605 macros.
28606
28607 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
28608 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
28609 Move e820 parsing from here ...
28610 * kern/i386/pc/mmap.c: New file.
28611 (grub_machine_mmap_iterate): ... to here.
28612
28613 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
28614 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
28615 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
28616 (grub_available_iterate): Redeclare to return `void', and redeclare
28617 its hook to use grub_uint64_t as addr and size parameters, and rename
28618 to ...
28619 (grub_machine_mmap_iterate): ... this. Update all users.
28620
28621 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
28622 to make it more readable. Rename to ...
28623 (grub_machine_mmap_iterate): ... this.
28624
28625 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
28626 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
28627 (grub_multiboot): Allocate an extra region after the payload, and fill
28628 it with a Multiboot memory map. Adjust a.out loader to calculate size
28629 with the extra space.
28630 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
28631 with the extra space.
28632
28633 2008-08-17 Carles Pina i Estany <carles@pina.cat>
28634
28635 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
28636
28637 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
28638
28639 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
28640 mdate-sh to the list `find' searches for.
28641 * DISTLIST: Regenerated.
28642
28643 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
28644
28645 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
28646 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
28647 genmoddep.awk, gensymlist.sh.in.
28648 (DISTDIRS): Add bus, docs, hook, lib.
28649 * DISTLIST: Regenerated.
28650 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
28651
28652 2008-08-16 Robert Millan <rmh@aybabtu.com>
28653
28654 * disk/raid.c (grub_raid_init): Handle/report errors set by
28655 grub_device_iterate().
28656 * disk/lvm.c (grub_lvm_init): Likewise.
28657
28658 2008-08-15 Bean <bean123ch@gmail.com>
28659
28660 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
28661 and datehook.mod.
28662 (datetime_mod_SOURCES): New macro.
28663 (datetime_mod_CFLAGS): Likewise.
28664 (datetime_mod_LDFLAGS): Likewise.
28665 (date_mod_SOURCES): Likewise.
28666 (date_mod_CFLAGS): Likewise.
28667 (date_mod_LDFLAGS): Likewise.
28668 (datehook_mod_SOURCES): Likewise.
28669 (datehook_mod_CFLAGS): Likewise.
28670 (datehook_mod_LDFLAGS): Likewise.
28671
28672 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
28673 and datehook.mod.
28674 (datetime_mod_SOURCES): New macro.
28675 (datetime_mod_CFLAGS): Likewise.
28676 (datetime_mod_LDFLAGS): Likewise.
28677 (date_mod_SOURCES): Likewise.
28678 (date_mod_CFLAGS): Likewise.
28679 (date_mod_LDFLAGS): Likewise.
28680 (datehook_mod_SOURCES): Likewise.
28681 (datehook_mod_CFLAGS): Likewise.
28682 (datehook_mod_LDFLAGS): Likewise.
28683
28684 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
28685 and datehook.mod.
28686 (datetime_mod_SOURCES): New macro.
28687 (datetime_mod_CFLAGS): Likewise.
28688 (datetime_mod_LDFLAGS): Likewise.
28689 (date_mod_SOURCES): Likewise.
28690 (date_mod_CFLAGS): Likewise.
28691 (date_mod_LDFLAGS): Likewise.
28692 (datehook_mod_SOURCES): Likewise.
28693 (datehook_mod_CFLAGS): Likewise.
28694 (datehook_mod_LDFLAGS): Likewise.
28695
28696 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
28697 and datehook.mod.
28698 (datetime_mod_SOURCES): New macro.
28699 (datetime_mod_CFLAGS): Likewise.
28700 (datetime_mod_LDFLAGS): Likewise.
28701 (date_mod_SOURCES): Likewise.
28702 (date_mod_CFLAGS): Likewise.
28703 (date_mod_LDFLAGS): Likewise.
28704 (datehook_mod_SOURCES): Likewise.
28705 (datehook_mod_CFLAGS): Likewise.
28706 (datehook_mod_LDFLAGS): Likewise.
28707
28708 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
28709 and datehook.mod.
28710 (datetime_mod_SOURCES): New macro.
28711 (datetime_mod_CFLAGS): Likewise.
28712 (datetime_mod_LDFLAGS): Likewise.
28713 (date_mod_SOURCES): Likewise.
28714 (date_mod_CFLAGS): Likewise.
28715 (date_mod_LDFLAGS): Likewise.
28716 (datehook_mod_SOURCES): Likewise.
28717 (datehook_mod_CFLAGS): Likewise.
28718 (datehook_mod_LDFLAGS): Likewise.
28719
28720 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
28721
28722 * commands/date.c: New file.
28723
28724 * hook/datehook.c: Likewise.
28725
28726 * include/grub/lib/datetime.h: Likewise.
28727
28728 * include/grub/i386/cmos.h: Likewise.
28729
28730 * lib/datetime.c: Likewise.
28731
28732 * lib/i386/datetime.c: Likewise.
28733
28734 * lib/efi/datetime.c: Likewise.
28735
28736 2008-08-14 Robert Millan <rmh@aybabtu.com>
28737
28738 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
28739 (grub_mkelfimage_SOURCES): New variable.
28740 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
28741
28742 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
28743 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
28744 * conf/powerpc-ieee1275.rmk: Likewise.
28745 * conf/i386-ieee1275.rmk: Likewise.
28746
28747 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
28748 * kern/i386/coreboot/init.c: Likewise.
28749
28750 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
28751 with `<grub/cpu/kernel.h>'.
28752 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
28753 to ...
28754 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
28755 * kern/i386/coreboot/startup.S: Likewise.
28756
28757 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
28758 (GRUB_MOD_GAP): Remove.
28759 * include/grub/powerpc/kernel.h: New file.
28760 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
28761 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
28762 * include/grub/i386/kernel.h: New file.
28763 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
28764 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
28765 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
28766
28767 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
28768 `grub-mkelfimage'.
28769 Use --directory when invoking grub_mkimage.
28770
28771 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
28772 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
28773 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
28774 and GRUB_KERNEL_CPU_PREFIX.
28775
28776 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
28777
28778 * include/grub/err.h (grub_err_printf): New function prototype.
28779 * util/misc.c (grub_err_printf): New function.
28780 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
28781 grub_printf.
28782 * kern/err.c (grub_print_error): Use grub_err_printf.
28783
28784 2008-08-13 Robert Millan <rmh@aybabtu.com>
28785
28786 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
28787
28788 2008-08-13 Robert Millan <rmh@aybabtu.com>
28789
28790 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
28791 boot entry.
28792
28793 2008-08-12 Robert Millan <rmh@aybabtu.com>
28794
28795 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
28796 of the relocation code from here ...
28797 (grub_multiboot): ... to here.
28798 (forward_relocator, backward_relocator): Move from here ...
28799 * kern/i386/loader.S (grub_multiboot_forward_relocator)
28800 (grub_multiboot_backward_relocator): ... to here.
28801 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
28802 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
28803 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
28804 (grub_multiboot_forward_relocator_end)
28805 (grub_multiboot_backward_relocator)
28806 (grub_multiboot_backward_relocator_end): New variables.
28807
28808 2008-08-12 Bean <bean123ch@gmail.com>
28809
28810 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
28811
28812 2008-08-11 Robert Millan <rmh@aybabtu.com>
28813
28814 * kern/i386/linuxbios/startup.S: Move from here ...
28815 * kern/i386/coreboot/startup.S: ... to here.
28816
28817 * kern/i386/linuxbios/init.c: Move from here ...
28818 * kern/i386/coreboot/init.c: ... to here.
28819
28820 * kern/i386/linuxbios/table.c: Move from here ...
28821 * kern/i386/coreboot/mmap.c: ... to here.
28822
28823 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
28824
28825 2008-08-11 Robert Millan <rmh@aybabtu.com>
28826
28827 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
28828 errors. Leave it to the upper layer to handle them.
28829
28830 2008-08-09 Christian Franke <franke@computer.org>
28831
28832 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
28833 * conf/common.rmk: Install `grub-pe2elf' only if requested.
28834 Install `grub.d/10_windows' only on Cygwin.
28835 * configure.ac: Add subst of `target_os'.
28836 Check `target_os' also before setting TARGET_OBJ2ELF.
28837 Add `--enable-grub-pe2elf'.
28838
28839 2008-08-08 Robert Millan <rmh@aybabtu.com>
28840
28841 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
28842 (grub_last_time): Change type to grub_uint64_t.
28843 (grub_disk_open): Migrate code from to using grub_get_time_ms().
28844 (grub_disk_close): Likewise.
28845
28846 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
28847 (run_menu): Migrate code from to using grub_get_time_ms().
28848
28849 * util/misc.c (grub_get_time_ms): New function.
28850
28851 2008-08-08 Marco Gerards <marco@gnu.org>
28852
28853 * disk/ata.c (grub_ata_regget): Change return type to
28854 `grub_uint8_t'.
28855 (grub_ata_regget2): Likewise.
28856 (grub_ata_wait_status): New function.
28857 (grub_ata_wait_busy): Removed function, updated all users to use
28858 `grub_ata_wait_status'.
28859 (grub_ata_wait_drq): Likewise.
28860 (grub_ata_cmd): New function.
28861 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
28862 error handling.
28863 (grub_ata_pio_write): Add error handling.
28864 (grub_atapi_identify): Likewise.
28865 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
28866 handling.
28867 (grub_ata_identify): Use `grub_ata_cmd' and improve error
28868 handling. Actually use the detected registers. Reorder the
28869 detection logic such that it is easier to read.
28870 (grub_ata_pciinit): Do not assign the same ID to each controller.
28871 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
28872 handling.
28873 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
28874
28875 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
28876
28877 2008-08-08 Marco Gerards <marco@gnu.org>
28878
28879 * NEWS: Update.
28880
28881 2008-08-07 Bean <bean123ch@gmail.com>
28882
28883 * include/grub/x86_64/pci.h: New file.
28884
28885 2008-08-07 Christian Franke <franke@computer.org>
28886
28887 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
28888 (TIMER2_GATE): Likewise.
28889 (grub_pit_wait): Add enable/disable of the timer2 gate
28890 bit of port 0x61. This fixes a possible infinite loop.
28891
28892 2008-08-07 Bean <bean123ch@gmail.com>
28893
28894 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
28895 kern/i386/tsc.c and kern/i386/pit.c.
28896
28897 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
28898 x86_64 platform.
28899
28900 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
28901 <grub/i386/tsc.h>.
28902
28903 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
28904
28905 2008-08-07 Bean <bean123ch@gmail.com>
28906
28907 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
28908
28909 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
28910
28911 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
28912 multiple inclusion. Add #include <grub/types.h>.
28913
28914 2008-08-06 Christian Franke <franke@computer.org>
28915
28916 * conf/common.rmk: Build and install `10_windows'.
28917 * util/grub.d/10_windows.in: New script.
28918
28919 2008-08-06 Pavel Roskin <proski@gnu.org>
28920
28921 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
28922
28923 2008-08-06 Robert Millan <rmh@aybabtu.com>
28924
28925 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
28926 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
28927
28928 2008-08-06 Bean <bean123ch@gmail.com>
28929
28930 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
28931 (grub_pxefs_fs_int): Remove dummy definition.
28932 (grub_pxefs_open): Use data->block_size to store the current block
28933 size setting.
28934 (grub_pxefs_read): Use block size stored in data->block_size. As the
28935 value of grub_pxe_blksize can be changed after the file is opened.
28936
28937 2008-08-06 Bean <bean123ch@gmail.com>
28938
28939 * fs/i386/pc/pxe.c (curr_file): new variable.
28940 (grub_pxefs_open): Simply the handling of pxe file system. Don't
28941 require the dummy internal file system anymore.
28942 (grub_pxefs_read): Removed.
28943 (grub_pxefs_close): Likewise.
28944 (grub_pxefs_fs_int): Likewise.
28945 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
28946 connection when we switch file.
28947 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
28948
28949 2008-08-06 Robert Millan <rmh@aybabtu.com>
28950
28951 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
28952 `halt.mod'.
28953 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
28954 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
28955
28956 * kern/i386/halt.c: New file.
28957 * kern/i386/reboot.c: Likewise.
28958 * include/grub/i386/reboot.h: Likewise.
28959 * include/grub/i386/halt.h: Likewise.
28960
28961 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
28962 Include `<grub/cpu/halt.h>'.
28963 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
28964 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
28965
28966 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
28967 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
28968 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
28969 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
28970 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
28971 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
28972 from here ...
28973 * include/grub/i386/at_keyboard.h: ... to here.
28974
28975 2008-08-05 Robert Millan <rmh@aybabtu.com>
28976
28977 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
28978 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
28979 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
28980 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
28981 `kern/generic/millisleep.c'.
28982
28983 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
28984 instead of grub_get_rtc().
28985 (grub_tsc_init): Initialize `tsc_boot_time'.
28986
28987 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
28988 (grub_machine_init): Use grub_tsc_init() rather than
28989 installing an RTC-based handler via grub_install_get_time_ms().
28990
28991 * kern/i386/pit.c: New file.
28992 * include/grub/i386/pit.h: Likewise.
28993
28994 2008-08-05 Bean <bean123ch@gmail.com>
28995
28996 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
28997
28998 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
28999 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
29000 (pxe_mod_SOURCES): New macro.
29001 (pxe_mod_CFLAGS): Likewise.
29002 (pxe_mod_LDFLAGS): Likewise.
29003 (pxecmd_mod_SOURCES): Likewise.
29004 (pxecmd_mod_CFLAGS): Likewise.
29005 (pxecmd_mod_LDFLAGS): Likewise.
29006
29007 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
29008 (grub_pxe_call): Likewise.
29009
29010 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
29011
29012 * commands/i386/pc/pxecmd.c: New file.
29013
29014 * fs/i386/pc/pxe.c: Likewise.
29015
29016 * include/grub/i386/pc/pxe.h: Likewise.
29017
29018 2008-08-05 Bean <bean123ch@gmail.com>
29019
29020 * util/console.c (grub_console_cur_color): New variable.
29021 (grub_console_standard_color): Likewise.
29022 (grub_console_normal_color): Likewise.
29023 (grub_console_highlight_color): Likewise.
29024 (color_map): Likewise.
29025 (use_color): Likewise.
29026 (NUM_COLORS): New macro.
29027 (grub_ncurses_setcolorstate): Handle color properly.
29028 (grub_ncurses_setcolor): Don't change color here, just remember the
29029 settings, color will be set in grub_ncurses_setcolorstate.
29030 (grub_ncurses_getcolor): New function.
29031 (grub_ncurses_init): Initialize color pairs.
29032 (grub_ncurses_term): New member grub_ncurses_getcolor.
29033
29034 2008-08-05 Colin D Bennett <colin@gibibit.com>
29035
29036 High resolution timer support. Implemented for x86 CPUs using TSC.
29037 Extracted generic grub_millisleep() so it's linked in only as needed.
29038 This requires a Pentium compatible CPU; if the RDTSC instruction is
29039 not supported, then it falls back on the generic grub_get_time_ms()
29040 implementation that uses the machine's RTC.
29041
29042 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
29043 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
29044 `kern/generic/millisleep.c'.
29045
29046 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
29047 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
29048
29049 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
29050 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
29051
29052 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
29053
29054 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
29055 `kern/generic/millisleep.c'.
29056
29057 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
29058
29059 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
29060
29061 * kern/generic/rtc_get_time_ms.c: New file.
29062
29063 * kern/generic/millisleep.c: New file.
29064
29065 * kern/misc.c: Don't include
29066 <kern/time.h> anymore.
29067 (grub_millisleep_generic): Removed.
29068
29069 * commands/sleep.c (grub_interruptible_millisleep): Uses
29070 grub_get_time_ms() instead of grub_get_rtc().
29071
29072 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
29073 function.
29074 (grub_cpu_is_cpuid_supported): New inline function.
29075 (grub_cpu_is_tsc_supported): New inline function.
29076 (grub_tsc_init): New function prototype.
29077 (grub_tsc_get_time_ms): New function prototype.
29078
29079 * kern/i386/tsc.c (grub_get_time_ms): New file.
29080
29081 * include/grub/time.h: Include <grub/types.h.
29082 (grub_millisleep_generic): Removed.
29083 (grub_get_time_ms): New prototype.
29084 (grub_install_get_time_ms): New prototype.
29085 (grub_rtc_get_time_ms): New prototype.
29086
29087 * kern/time.c (grub_get_time_ms): New function.
29088 (grub_install_get_time_ms): New function.
29089
29090 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
29091 <grub/time.h> anymore.
29092 (grub_millisleep): Removed.
29093 (grub_machine_init): Call grub_tsc_init.
29094
29095 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
29096 get_time_ms() implementation.
29097
29098 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
29099 (ieee1275_get_time_ms): New function.
29100 (grub_machine_init): Install get_time_ms() implementation.
29101
29102 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
29103 (grub_machine_init): Call grub_tsc_init().
29104 (grub_millisleep): Removed.
29105
29106 * kern/ieee1275/init.c (grub_millisleep): Removed.
29107 (grub_machine_init): Install ieee1275_get_time_ms()
29108 implementation.
29109 (ieee1275_get_time_ms): New function.
29110 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
29111 real work.
29112
29113 2008-08-05 Marco Gerards <marco@gnu.org>
29114
29115 * disk/ata.c: Include <grub/pci.h>.
29116 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
29117 (grub_ata_initialize): Rewritten.
29118 (grub_ata_device_initialize): New function.
29119
29120 2008-08-04 Pavel Roskin <proski@gnu.org>
29121
29122 * kern/main.c: Include grub/mm.h.
29123
29124 2008-08-04 Robert Millan <rmh@aybabtu.com>
29125
29126 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
29127 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
29128 corruption problem).
29129
29130 2008-08-04 Robert Millan <rmh@aybabtu.com>
29131
29132 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
29133 warnings introduced in my last commit.
29134
29135 2008-08-03 Robert Millan <rmh@aybabtu.com>
29136
29137 Make PCI available on all i386 architectures.
29138
29139 * include/grub/i386/pc/pci.h: Move from here ...
29140 * include/grub/i386/pci.h: ... to here.
29141
29142 * include/grub/i386/pc/pci.h: Remove.
29143 * include/grub/i386/efi/pci.h: Remove.
29144 * include/grub/x86_64/efi/pci.h: Remove.
29145
29146 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
29147 `<grub/cpu/pci.h>'.
29148
29149 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
29150 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
29151 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
29152
29153 * conf/i386-ieee1275.rmk: Likewise.
29154
29155 2008-08-03 Robert Millan <rmh@aybabtu.com>
29156
29157 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
29158 (grub_console_setcursor): Make it possible to set cursor off.
29159
29160 2008-08-03 Robert Millan <rmh@aybabtu.com>
29161
29162 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
29163 of modules instead of assuming which platform provides what.
29164 * util/update-grub.in: Likewise.
29165
29166 2008-08-03 Robert Millan <rmh@aybabtu.com>
29167
29168 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
29169 instead of `grub_install_dos_part' to determine whether a drive needs
29170 to be prepended to prefix (`grub_install_dos_part' is not reliable,
29171 because it can be overridden when loading GRUB via Multiboot).
29172
29173 2008-08-02 Robert Millan <rmh@aybabtu.com>
29174
29175 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
29176
29177 2008-08-02 Robert Millan <rmh@aybabtu.com>
29178
29179 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
29180 of informational grub_dprintf() calls.
29181
29182 2008-08-02 Robert Millan <rmh@aybabtu.com>
29183
29184 * disk/memdisk.c (memdisk_size): Don't initialize.
29185 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
29186
29187 * include/grub/i386/pc/kernel.h
29188 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
29189 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
29190 (grub_memdisk_image_size, grub_arch_memdisk_addr)
29191 (grub_arch_memdisk_size): Remove.
29192
29193 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
29194 field (was only used to transfer a constant). Add `type' field to
29195 support multiple module types.
29196 (grub_module_iterate): New function.
29197
29198 * kern/device.c (grub_device_open): Do not hide error messages
29199 when grub_disk_open() fails. Use grub_print_error() instead.
29200
29201 * kern/i386/pc/init.c (grub_arch_modules_addr)
29202 (grub_arch_memdisk_size): Remove functions.
29203 (grub_arch_modules_addr): Return the module address in high memory
29204 (now that it isn't copied anymore).
29205
29206 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
29207 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
29208 decompression routine (grub_total_module_size already includes that
29209 now). Don't copy modules back to low memory.
29210
29211 * kern/main.c: Include `<grub/mm.h>'.
29212 (grub_load_modules): Split out (and use) ...
29213 (grub_module_iterate): ... this function, which iterates through
29214 module objects and runs a hook.
29215 Comment out grub_mm_init_region() call, as it would cause non-ELF
29216 modules to be overwritten.
29217
29218 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
29219 the memdisk image in its own region, make it part of the module list.
29220 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
29221 (main): Parse --memdisk|-m option, and pass user-provided path as
29222 parameter to generate_image().
29223 (add_segments): Pass `memdisk_path' down to load_modules().
29224 (load_modules): Embed memdisk image in module section when requested.
29225 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
29226 `header.type' instead of `header.offset'.
29227
29228 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
29229 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
29230 (memdisk_mod_LDFLAGS): New variables.
29231 * conf/i386-coreboot.rmk: Likewise.
29232 * conf/i386-ieee1275.rmk: Likewise.
29233
29234 2008-08-02 Robert Millan <rmh@aybabtu.com>
29235
29236 * loader/i386/pc/multiboot.c (playground, forward_relocator)
29237 (backward_relocator): New variables. Used to allocate and relocate
29238 the payload, respectively.
29239 (grub_multiboot_load_elf32): Load into heap instead of requested
29240 address, install the appropriate relocator code in each bound of
29241 the payload, and set the entry point such that
29242 grub_multiboot_real_boot() will jump to one of them.
29243
29244 * kern/i386/loader.S (grub_multiboot_payload_size)
29245 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
29246 (grub_multiboot_payload_entry_offset): New variables.
29247 (grub_multiboot_real_boot): Set cpu context to what the relocator
29248 expects, and jump to the relocator instead of the payload.
29249
29250 * include/grub/i386/loader.h (grub_multiboot_payload_size)
29251 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
29252 (grub_multiboot_payload_entry_offset): Export.
29253
29254 2008-08-01 Bean <bean123ch@gmail.com>
29255
29256 * normal/menu_entry.c (editor_getline): Don't return the original
29257 string as result, as it will be released by lexer once it has done
29258 using it.
29259
29260 2008-08-01 Robert Millan <rmh@aybabtu.com>
29261
29262 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
29263 within menuentries, not before them.
29264 util/grub.d/10_hurd.in: Likewise.
29265
29266 2008-08-01 Bean <bean123ch@gmail.com>
29267
29268 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
29269 (bufio_mod_SOURCES): New macro.
29270 (bufio_mod_CFLAGS): Likewise.
29271 (bufio_mod_LDFLAGS): Likewise.
29272
29273 * include/grub/bufio.h: New file.
29274
29275 * io/bufio.c: Likewise.
29276
29277 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
29278 (grub_video_reader_png): Use grub_buffile_open to open file.
29279
29280 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
29281 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
29282
29283 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
29284 (grub_video_reader_tga): Use grub_buffile_open to open file.
29285
29286 * font/manager.c: Include <grub/bufio.h>.
29287 (add_font): Use grub_buffile_open to open file.
29288
29289 2008-07-31 Robert Millan <rmh@aybabtu.com>
29290
29291 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
29292 ELF segments, use a macro for arbitrarily accessing any of them instead
29293 of preparing a pointer that allows access to one at a time.
29294 (grub_multiboot_load_elf64): Likewise.
29295
29296 2008-07-31 Bean <bean123ch@gmail.com>
29297
29298 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
29299 GRUB_KERNEL_MACHINE_DATA_END.
29300
29301 2008-07-30 Robert Millan <rmh@aybabtu.com>
29302
29303 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
29304 Increase from 0x50 to 0x60.
29305 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
29306 use UUIDs to identify the root drive for them. If that's not
29307 possible, abort.
29308 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
29309 check, for cross-disk installs.
29310
29311 2008-07-30 Robert Millan <rmh@aybabtu.com>
29312
29313 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
29314 is non-empty, use it to set the `prefix' environment variable instead
29315 of the usual approach.
29316 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
29317 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
29318 environment variable instead of dummy make_install_device().
29319
29320 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
29321 (start): Insert a data section, with `grub_prefix' variable.
29322 * kern/i386/linuxbios/startup.S: Likewise.
29323
29324 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
29325 New variable reference.
29326 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
29327 New macro. Defines offset of `grub_prefix' within startup.S (relative
29328 to `start').
29329 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
29330 section within startup.S (relative to `start').
29331 * include/grub/i386/coreboot/kernel.h: Likewise.
29332
29333 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
29334 Overwrite grub_prefix with its contents, at the beginning of the
29335 first segment.
29336 (main): Understand -p|--prefix.
29337
29338 2008-07-30 Robert Millan <rmh@aybabtu.com>
29339
29340 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
29341
29342 2008-07-30 Robert Millan <rmh@aybabtu.com>
29343
29344 * term/i386/pc/vga_text.c (grub_console_cls): Use
29345 grub_console_gotoxy() to go back to beginning of the screen.
29346 Found by Patrick Georgi <patrick.georgi@coresystems.de>
29347
29348 2008-07-29 Christian Franke <franke@computer.org>
29349
29350 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
29351 Add conversion of emulated mount points on Cygwin.
29352
29353 2008-07-29 Christian Franke <franke@computer.org>
29354
29355 * util/update-grub.in: Add a check for admin
29356 group on Cygwin.
29357 Remove old `grub.cfg.new' before creation.
29358 Add `-f' to `mv' to handle the different filesystem
29359 semantics of Windows.
29360
29361 2008-07-29 Bean <bean123ch@gmail.com>
29362
29363 * normal/main.c (get_line): Fix buffer overflow bug.
29364
29365 2008-07-28 Robert Millan <rmh@aybabtu.com>
29366
29367 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
29368 (struct grub_apple_header): New struct. Describes the layout of
29369 the partmap header.
29370 (apple_partition_map_iterate): Check the header magic as well as the
29371 partition magic (which was already being checked).
29372
29373 2008-07-28 Pavel Roskin <proski@gnu.org>
29374
29375 * genmk.rb: Add a warning to the beginning of the output that
29376 it's a generated file and should not be edited.
29377
29378 2008-07-28 Robert Millan <rmh@aybabtu.com>
29379
29380 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
29381 with the same number are found, just use issue a warning with
29382 grub_dprintf(), as this error has been reported to be non-fatal.
29383
29384 2008-07-27 Robert Millan <rmh@aybabtu.com>
29385
29386 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
29387 information.
29388
29389 2008-07-27 Bean <bean123ch@gmail.com>
29390
29391 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
29392 (grub_fat_find_dir): Ignore case when comparing filename.
29393
29394 2008-07-27 Bean <bean123ch@gmail.com>
29395
29396 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
29397 smallino, as it's more descriptive, and i8count can be confused with
29398 the other field count.
29399 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
29400 inode type.
29401
29402 2008-07-27 Bean <bean123ch@gmail.com>
29403
29404 * commands/crc.c: New file.
29405
29406 * lib/crc.c: Likewise.
29407
29408 * include/grub/lib/crc.h: Likewise.
29409
29410 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
29411
29412 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
29413 (hexdump): Move this function to ...
29414
29415 * lib/hexdump.c: ... here.
29416
29417 * include/grub/hexdump.h: Renamed to ...
29418
29419 * include/grub/lib/hexdump.h: ... this.
29420
29421 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
29422
29423 * util/grub-editenv.c: Likewise.
29424
29425 * include/envblk.h: Renamed to ...
29426
29427 * include/lib/envblk.h: ... this.
29428
29429 * util/envblk.c: Renamed to ...
29430
29431 * lib/envblk.c: ... this.
29432
29433 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
29434 lib/hexdump.c.
29435 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
29436 (pkglib_MODULES): Add crc.mod.
29437 (hexdump_mod_SOURCES): Add lib/hexdump.c.
29438 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
29439 (crc_mod_SOURCES): New macro.
29440 (crc_mod_CFLAGS): Likewise.
29441 (crc_mod_LDFLAGS): Likewise.
29442
29443 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
29444
29445 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
29446
29447 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
29448
29449 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29450
29451 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
29452
29453 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
29454
29455 * commands/help.c: Include <grub/term.h>.
29456 (TERM_WIDTH): Removed. Updated all users.
29457
29458 2008-07-27 Pavel Roskin <proski@gnu.org>
29459
29460 * util/getroot.c (find_root_device): Rephrase a comment to avoid
29461 spurious warnings about a comment within a comment.
29462
29463 2008-07-25 Robert Millan <rmh@aybabtu.com>
29464
29465 * util/getroot.c (find_root_device): Skip devices that match
29466 /dev/dm-[0-9]. This lets the real device be found for any type of
29467 abstraction (LVM, EVMS, RAID..).
29468 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
29469 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
29470 device is found first, find_root_device() will now skip it.
29471
29472 2008-07-24 Pavel Roskin <proski@gnu.org>
29473
29474 * include/grub/types.h: Use __builtin_bswap32() and
29475 __builtin_bswap64() with gcc 4.3 and newer.
29476
29477 2008-07-24 Christian Franke <franke@computer.org>
29478
29479 * util/i386/pc/grub-install.in: If `--debug' is specified,
29480 pass `--verbose' to grub-setup.
29481 Abort script if make_system_path_relative_to_its_root() fails.
29482
29483 2008-07-24 Bean <bean123ch@gmail.com>
29484
29485 * configure.ac: Fixed a bug caused by the previous cygwin patch,
29486 variable `target_platform' should be `platform'.
29487
29488 2008-07-24 Bean <bean123ch@gmail.com>
29489
29490 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
29491 (grub_png_init_fixed_block): New function.
29492 (grub_png_decode_image_data): Handle fixed huffman code compression.
29493
29494 2008-07-24 Bean <bean123ch@gmail.com>
29495
29496 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
29497 (grub_pe2elf_SOURCES): New macro.
29498 (CLEANFILES): Add grub-pe2elf.
29499
29500 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
29501 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
29502 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
29503 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
29504 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
29505 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
29506 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
29507 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
29508 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
29509 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
29510 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
29511 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
29512 (GRUB_PE32_DT_FUNCTION): Likewise.
29513 (GRUB_PE32_REL_I386_DIR32): Likewise.
29514 (GRUB_PE32_REL_I386_REL32): Likewise.
29515 (grub_pe32_symbol): New structure.
29516 (grub_pe32_reloc): Likewise.
29517
29518 * util/grub-pe2elf.c: New file.
29519
29520 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
29521 start symbol in non pc platform.
29522
29523 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
29524
29525 The following patches are from Christian Franke.
29526
29527 * include/grub/dl.h: Remove .previous, gas supports this only
29528 for ELF format.
29529
29530 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
29531 Remove .type, gas supports this only for ELF format.
29532
29533 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
29534 nullbytes in symbol table. This fixes an infinite loop if table is
29535 zero filled.
29536
29537 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
29538 TARGET_IMG_LDFLAGS and EXEEXT.
29539
29540 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
29541 TARGET_IMG_LDFLAGS_AC.
29542 (grub_CHECK_STACK_ARG_PROBE): New function.
29543
29544 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
29545
29546 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
29547
29548 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
29549 to set TARGET_IMG_LD* accordingly.
29550 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
29551 Add call to grub_CHECK_STACK_ARG_PROBE.
29552 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
29553
29554 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
29555
29556 * genmk.rb: Add EXEEXT to CLEANFILES.
29557
29558 2008-07-23 Robert Millan <rmh@aybabtu.com>
29559
29560 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
29561 define the codes for arrows and lines used for the menu).
29562 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
29563 as well.
29564
29565 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
29566 fonts, because the latter are too slow.
29567
29568 2008-07-21 Bean <bean123ch@gmail.com>
29569
29570 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
29571 a20. Run keyboard test last, as it will cause macbook to halt.
29572
29573 2008-07-18 Pavel Roskin <proski@gnu.org>
29574
29575 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
29576 load foreign architecture modules correctly anyway. Keep
29577 support for loading host architecture modules, whether we
29578 compile them or not.
29579
29580 2008-07-17 Pavel Roskin <proski@gnu.org>
29581
29582 * configure.ac: Use -m32 or -m64 regardless of whether we had to
29583 change target_cpu. The compiler default can mismatch target_cpu
29584 in any case.
29585
29586 * disk/efi/efidisk.c: Fix format warnings on x86_64.
29587 * kern/efi/efi.c: Likewise.
29588
29589 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
29590 target compiler is functional.
29591 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
29592 are set up.
29593
29594 * configure.ac: Default to efi platform for x86_64-apple. Allow
29595 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
29596 adjustments from the rest, only do them if target is not
29597 explicitly given. Merge other adjustments with the final sanity
29598 check. Remove an extraneous check for supported CPU. Be
29599 specific which CPU and which platform is not supported.
29600
29601 * configure.ac: Default to pc platform for x86_64.
29602
29603 2008-07-17 Robert Millan <rmh@aybabtu.com>
29604
29605 Partial LinuxBIOS -> Coreboot rename.
29606
29607 * conf/i386-linuxbios.rmk: Renamed to ...
29608 * conf/i386-coreboot.rmk: ... this.
29609 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
29610 * configure.ac: Accept "coreboot" as input platform (but maintain
29611 compatibility with "linuxbios").
29612 * include/grub/i386/linuxbios: Renamed to ...
29613 * include/grub/i386/coreboot: ... this.
29614
29615 2008-07-17 Bean <bean123ch@gmail.com>
29616
29617 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
29618 (appleldr_mod_SOURCE): New variable.
29619 (appleldr_mod_CFLAGS): Likewise.
29620 (appleldr_mod_LDFLAGS): Likewise.
29621 (pci_mod_SOURCES): Likewise.
29622 (pci_mod_CFLAGS): Likewise.
29623 (pci_mod_LDFLAGS): Likewise.
29624 (lspci_mod_SOURCES): Likewise.
29625 (lspci_mod_CFLAGS): Likewise.
29626 (lspci_mod_LDFLAGS): Likewise.
29627
29628 * conf/x86_64-efi.rmk: New file.
29629
29630 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
29631 macro.
29632 (grub_efidisk_write): Likewise.
29633
29634 * include/efi/api.h (efi_call_0): New macro.
29635 (efi_call_1): Likewise.
29636 (efi_call_2): Likewise.
29637 (efi_call_3): Likewise.
29638 (efi_call_4): Likewise.
29639 (efi_call_5): Likewise.
29640 (efi_call_6): Likewise.
29641
29642 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
29643 grub_rescue_cmd_chainloader.
29644
29645 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
29646 (grub_pe32_optional_header): Change some fields based on i386 or
29647 x86_64 platform.
29648 (GRUB_PE32_PE32_MAGIC): Likewise.
29649
29650 * include/grub/efi/uga_draw.h: New file.
29651
29652 * include/grub/elf.h (STN_ABS): New constant.
29653 (R_X86_64_NONE): Relocation constant for x86_64.
29654 (R_X86_64_64): Likewise.
29655 (R_X86_64_PC32): Likewise.
29656 (R_X86_64_GOT32): Likewise.
29657 (R_X86_64_PLT32): Likewise.
29658 (R_X86_64_COPY): Likewise.
29659 (R_X86_64_GLOB_DAT): Likewise.
29660 (R_X86_64_JUMP_SLOT): Likewise.
29661 (R_X86_64_RELATIVE): Likewise.
29662 (R_X86_64_GOTPCREL): Likewise.
29663 (R_X86_64_32): Likewise.
29664 (R_X86_64_32S): Likewise.
29665 (R_X86_64_16): Likewise.
29666 (R_X86_64_PC16): Likewise.
29667 (R_X86_64_8): Likewise.
29668 (R_X86_64_PC8): Likewise.
29669
29670 * include/grub/i386/efi/pci.h: New file.
29671
29672 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
29673 Change it value based on platform.
29674 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
29675 (GRUB_E820_RAM): Likewise.
29676 (GRUB_E820_RESERVED): Likewise.
29677 (GRUB_E820_ACPI): Likewise.
29678 (GRUB_E820_NVS): Likewise.
29679 (GRUB_E820_EXEC_CODE): Likewise.
29680 (GRUB_E820_MAX_ENTRY): Likewise.
29681 (grub_e820_mmap): New structure.
29682 (linux_kernel_header): Change the efi field according to different
29683 kernel version, also field from linux_kernel_header.
29684
29685 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
29686
29687 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
29688 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
29689 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
29690 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
29691 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
29692 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
29693 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
29694 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
29695 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
29696 (GRUB_PCI_ADDR_IO_MASK): Likewise.
29697
29698 * include/grub/x86_64/efi/kernel.h: New file.
29699
29700 * include/grub/x86_64/efi/loader.h: Likewise.
29701
29702 * include/grub/x86_64/efi/machine.h: Likewise.
29703
29704 * include/grub/x86_64/efi/pci.h: Likewise.
29705
29706 * include/grub/x86_64/efi/time.h: Likewise.
29707
29708 * include/grub/x86_64/linux.h: Likewise.
29709
29710 * include/grub/x86_64/setjmp.h: Likewise.
29711
29712 * include/grub/x86_64/time.h: Likewise.
29713
29714 * include/grub/x86_64/types.h: Likewise.
29715
29716 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
29717 GRUB_TARGET_SIZEOF_VOID_P.
29718
29719 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
29720 (grub_efi_locate_handle): Likewise.
29721 (grub_efi_open_protocol): Likewise.
29722 (grub_efi_set_text_mode): Likewise.
29723 (grub_efi_stall): Likewise.
29724 (grub_exit): Likewise.
29725 (grub_reboot): Likewise.
29726 (grub_halt): Likewise.
29727 (grub_efi_exit_boot_services): Likewise.
29728 (grub_get_rtc): Likewise.
29729
29730 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
29731 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
29732 (grub_efi_allocate_pages): Wrap efi calls.
29733 (grub_efi_free_pages): Wrap efi calls.
29734 (grub_efi_get_memory_map): Wrap efi calls.
29735
29736 * kern/x86_64/dl.c: New file.
29737
29738 * kern/x86_64/efi/callwrap.S: Likewise.
29739
29740 * kern/x86_64/efi/startup.S: Likewise.
29741
29742 * loader/efi/appleloader.c: Likewise.
29743
29744 * loader/efi/chainloader.c (cmdline): New variable.
29745 (grub_chainloader_unload): Wrap efi calls.
29746 (grub_chainloader_boot): Likewise.
29747 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
29748 command line.
29749
29750 * loader/efi/chainloader_normal.c (chainloader_command):
29751 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
29752 command line.
29753
29754 * loader/i386/efi/linux.c (allocate_pages): Change allocation
29755 method.
29756 (grub_e820_add_region): New function.
29757 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
29758 booting.
29759 (grub_find_video_card): New function.
29760 (grub_linux_setup_video): New function.
29761 (grub_rescue_cmd_linux): Probe for video information.
29762
29763 * normal/x86_64/setjmp.S: New file.
29764
29765 * term/efi/console.c (map_char): New function.
29766 (grub_console_putchar): Map unicode char.
29767 (grub_console_checkkey): Wrap efi calls.
29768 (grub_console_getkey): Likewise.
29769 (grub_console_getwh): Likewise.
29770 (grub_console_gotoxy): Likewise.
29771 (grub_console_cls): Likewise.
29772 (grub_console_setcolorstate): Likewise.
29773 (grub_console_setcursor): Likewise.
29774
29775 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
29776
29777 2008-07-16 Pavel Roskin <proski@gnu.org>
29778
29779 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
29780 format strings.
29781
29782 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
29783 pointer, not an integer. This fixes a warning and prevents
29784 precision loss on 64-bit systems.
29785 (relocate_addresses): Remove unneeded cast.
29786
29787 2008-07-15 Pavel Roskin <proski@gnu.org>
29788
29789 * kern/i386/ieee1275/init.c: Include grub/cache.h.
29790
29791 * term/ieee1275/ofconsole.c: Disable code unused on i386.
29792
29793 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
29794 Fix comparison between signed and unsigned.
29795
29796 * include/grub/i386/ieee1275/console.h: Declare
29797 grub_console_init() and grub_console_fini().
29798
29799 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
29800 It's empty and unused.
29801
29802 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
29803 beginning to avoid warnings with some compilers.
29804
29805 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
29806 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
29807
29808 2008-07-14 Pavel Roskin <proski@gnu.org>
29809
29810 * kern/env.c (grub_register_variable_hook): Don't copy empty
29811 string, it leaks memory. Pass "" to grub_env_set(), it should
29812 handle constant strings.
29813
29814 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
29815 * commands/cmp.c (grub_cmd_cmp): Likewise.
29816 * kern/dl.c (grub_dl_flush_cache): Likewise.
29817 (grub_dl_load_core): Likewise.
29818 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
29819 (grub_elf64_load_phdrs): Likewise.
29820
29821 2008-07-13 Pavel Roskin <proski@gnu.org>
29822
29823 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
29824 between signed and unsigned.
29825 (LzmaEnc_Finish): Fix warning about an unused parameter.
29826
29827 2008-07-13 Bean <bean123ch@gmail.com>
29828
29829 * Makefile.in (enable_lzo): New rule.
29830
29831 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
29832
29833 * configure.ac (ENABLE_LZO): New option --enable-lzo.
29834
29835 * boot/i386/pc/lnxboot.S: #include <config.h>.
29836
29837 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
29838 its value according to the compression algorithm used, lzo or lzma.
29839
29840 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
29841 compression algorithm according to configure macro.
29842
29843 * kern/i386/pc/startup.S (codestart): Likewise.
29844
29845 * kern/i386/pc/lzma_decode.S: New file.
29846
29847 * include/grub/lib/LzFind.h: Likewise.
29848
29849 * include/grub/lib/LzHash.h: Likewise.
29850
29851 * include/grub/lib/LzmaDec.h: Likewise.
29852
29853 * include/grub/lib/LzmaEnc.h: Likewise.
29854
29855 * include/grub/lib/LzmaTypes.h: Likewise.
29856
29857 * lib/LzFind.c: Likewise.
29858
29859 * lib/LzmaDec.c: Likewise.
29860
29861 * lib/LzmaEnc.c: Likewise.
29862
29863 2008-07-13 Bean <bean123ch@gmail.com>
29864
29865 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
29866 (grub_ext4_extent_header): New structure.
29867 (grub_ext4_extent): Likewise.
29868 (grub_ext4_extent_idx): Likewise.
29869 (grub_ext4_find_leaf): New function.
29870 (grub_ext2_read_block): Handle extents.
29871
29872 2008-07-12 Robert Millan <rmh@aybabtu.com>
29873
29874 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
29875
29876 2008-07-11 Robert Millan <rmh@aybabtu.com>
29877
29878 * util/grub.d/40_custom.in: New file. Example on how to add custom
29879 entries to /etc/grub.d.
29880 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
29881 40_custom (implicitly, by merging all the grub.d rules).
29882
29883 2008-07-11 Pavel Roskin <proski@gnu.org>
29884
29885 * commands/read.c (grub_getline): Fix invalid memory access.
29886 Don't add newline to the variable value.
29887
29888 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
29889 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
29890 (serial_hw_get_port): Check validity of the port number.
29891 (grub_cmd_serial): Check return value of serial_hw_get_port().
29892
29893 2008-07-07 Pavel Roskin <proski@gnu.org>
29894
29895 * boot/i386/pc/diskboot.S (notification_string): Replace
29896 "Loading kernel" with just "loading". This is shorter, less
29897 confusing and saves a few bytes for possible future changes.
29898
29899 2008-07-05 Pavel Roskin <proski@gnu.org>
29900
29901 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
29902 size for ATAPI devices, they are undefined. Output sector
29903 number in decimal form.
29904
29905 * disk/ata.c: Use named constants for status bits.
29906
29907 2008-07-04 Pavel Roskin <proski@gnu.org>
29908
29909 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
29910 grub_addr_t before casting it to the void pointer to fix a
29911 warning. Non-addressable regions are discarded earlier.
29912 (grub_arch_modules_addr): Cast _end to grub_addr_t.
29913 * kern/i386/linuxbios/table.c: Include grub/misc.h.
29914 (check_signature): Don't shadow table_header.
29915 (grub_linuxbios_table_iterate): Cast numeric constants to
29916 grub_linuxbios_table_header_t.
29917 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
29918 grub_stop().
29919
29920 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
29921 prevent warnings.
29922
29923 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
29924 pointer, which can cause warnings. Support 64-bit addresses.
29925
29926 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
29927 of sizeof(long). This fixes PowerPC image generation on x86_64.
29928
29929 2008-07-04 Robert Millan <rmh@aybabtu.com>
29930
29931 This fixes a performance issue when pc & gpt partmap iterators
29932 didn't abort iteration even after our hook found what it was
29933 looking for (often causing expensive probes of non-existent drives).
29934
29935 Some callers relied on previous buggy behaviour, since they would
29936 raise an error when their own hooks caused early abortion of its
29937 iteration.
29938
29939 * kern/device.c (grub_device_open): Improve error message.
29940 * disk/lvm.c (grub_lvm_open): Likewise.
29941 * disk/raid.c (grub_raid_open): Likewise.
29942
29943 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
29944 when hook requests it, independently of grub_errno.
29945 (pc_partition_map_probe): Do not fail when find_func() caused
29946 early abortion of pc_partition_map_iterate().
29947
29948 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
29949 when hook requests it, independently of grub_errno.
29950 (gpt_partition_map_probe): Do not fail when find_func() caused
29951 early abortion of gpt_partition_map_iterate().
29952
29953 * kern/partition.c (grub_partition_iterate): Abort parent iteration
29954 when hook requests it, independently of grub_errno. Do not fail when
29955 part_map_iterate_hook() caused early abortion of p->iterate().
29956
29957 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
29958 when grub_partition_iterate() returned with non-zero.
29959
29960 2008-07-03 Pavel Roskin <proski@gnu.org>
29961
29962 * disk/ata.c (grub_ata_pio_write): Check status before writing,
29963 like we do in grub_ata_pio_read().
29964 (grub_ata_readwrite): Always write individual sectors. Fix the
29965 sector count for the remainder.
29966 (grub_ata_write): Enable writing to ATA devices. Correctly
29967 report error for ATAPI devices.
29968
29969 2008-07-02 Pavel Roskin <proski@gnu.org>
29970
29971 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
29972 warning.
29973
29974 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
29975 for every read sector, we already increment it for the whole
29976 batch. This fixes reading more than 256 sectors at once.
29977
29978 * util/grub-editenv.c (cmd_info): Cast argument to long
29979 explicitly. ptrdiff_t reduces to int on i386.
29980
29981 * util/grub-editenv.c (main): Be specific which parameter is
29982 missing.
29983
29984 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
29985 (memdisk): Make memdisk_orig_addr a pointer.
29986
29987 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
29988 for file offsets, use grub_off_t instead. Fix printf format
29989 warnings.
29990
29991 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
29992 there. Real unexpected warnings should not drown in the noise
29993 about known problems.
29994
29995 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
29996 grub_disk_addr_t for memory addresses.
29997
29998 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
29999 explicitly to fix a warning.
30000
30001 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
30002
30003 * Makefile.in (MODULE_LDFLAGS): New variable.
30004 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
30005 the linker accepts --build-id=none.
30006 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
30007 MODULE_LDFLAGS.
30008 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
30009
30010 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
30011 those in Linux XFS code. Provide a way to access 64-bit parent
30012 inode.
30013 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
30014 the end of struct grub_xfs_dir_header.
30015
30016 2008-07-02 Bean <bean123ch@gmail.com>
30017
30018 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
30019 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
30020 and GRUB_IEEE1275_FLAG_NO_ANSI.
30021
30022 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
30023 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
30024 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
30025
30026 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
30027 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
30028
30029 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
30030 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
30031
30032 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
30033 esc sequence on non ANSI terminal.
30034 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
30035
30036 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
30037 beginning of file.
30038
30039 2008-07-02 Bean <bean123ch@gmail.com>
30040
30041 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
30042 (grub_editenv_SOURCES): New variable.
30043 (pkglib_MODULES): Add loadenv.mod.
30044 (loadenv_mod_SOURCES): New variable.
30045 (loadenv_mod_CFLAGS): Likewise.
30046 (loadenv_mod_LDFLAGS): Likewise.
30047
30048 * include/grub/envblk.h: New file.
30049
30050 * util/envblk.c: New file.
30051
30052 * util/grub-editenv.c: New file.
30053
30054 * commands/loadenv.c: New file.
30055
30056 2008-07-01 Pavel Roskin <proski@gnu.org>
30057
30058 * include/multiboot2.h (struct multiboot_tag_module): Use char,
30059 not unsigned char. This fixes warnings and is consistent with
30060 other tags.
30061
30062 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
30063
30064 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
30065
30066 * term/tparm.c (analyze): Always set *popcount.
30067
30068 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
30069 cast to fix a warning.
30070
30071 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
30072 cast to suppress a warning.
30073
30074 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
30075 grub_fshelp_read_file() expects.
30076
30077 * fs/fat.c: Fix UUID calculation on big-endian systems. We
30078 write uuid as a 32-bit value in CPU byte order, so declare and
30079 use it as such.
30080
30081 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
30082 long if the format specifier expects it.
30083 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
30084 * partmap/pc.c (pc_partition_map_iterate): Likewise.
30085 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
30086 long to fix a warning.
30087 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
30088 grub_dprintf() arguments to fix warnings.
30089
30090 2008-06-30 Pavel Roskin <proski@gnu.org>
30091
30092 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
30093 install_bsd_part immediately before core.img is embedded or
30094 modified on disk. This fixes core.img verification if core.img
30095 cannot be embedded.
30096
30097 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
30098 core_path to calculate the blocklist.
30099 Patch from Javier Martín <lordhabbit@gmail.com>
30100
30101 2008-06-29 Robert Millan <rmh@aybabtu.com>
30102
30103 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
30104 block to disk block.
30105 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
30106 Patch from Niels Böhm <bitbucket@arcor.de>
30107
30108 2008-06-29 Robert Millan <rmh@aybabtu.com>
30109
30110 * util/update-grub_lib.in (font_path): Search for fonts in
30111 /boot/grub first, which is more likely to be readable (we aren't
30112 deciding where fonts live, just looking for them).
30113
30114 2008-06-26 Pavel Roskin <proski@gnu.org>
30115
30116 * util/biosdisk.c (read_device_map): Don't leave dead map
30117 entries for devices failing stat() check.
30118
30119 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
30120 core_path_dev for the core.img path on the target device.
30121
30122 2008-06-26 Robert Millan <rmh@aybabtu.com>
30123
30124 * disk/fs_uuid.c: New file.
30125 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
30126 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
30127 (fs_uuid_mod_LDFLAGS): New variables.
30128 * include/grub/disk.h (grub_disk_dev_id): Add
30129 `GRUB_DISK_DEVICE_UUID_ID'.
30130 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
30131 implement iterate().
30132
30133 2008-06-26 Robert Millan <rmh@aybabtu.com>
30134
30135 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
30136 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
30137 Linux image includes no initrd.
30138
30139 2008-06-21 Javier Martín <lordhabbit@gmail.com>
30140
30141 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
30142 call to resolve the core image location that effectively appended the
30143 name twice.
30144
30145 2008-06-21 Robert Millan <rmh@aybabtu.com>
30146
30147 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
30148 call from here ...
30149
30150 * util/grub.d/10_hurd.in: ... to here ...
30151 * util/grub.d/10_linux.in: ... and here.
30152
30153 2008-06-19 Robert Millan <rmh@aybabtu.com>
30154
30155 * kern/main.c (grub_main): Export `prefix' variable immediately
30156 after it has been set by grub_machine_set_prefix().
30157
30158 2008-06-19 Robert Millan <rmh@aybabtu.com>
30159
30160 * commands/search.c (search_label, search_fs_uuid, search_file): Print
30161 search result when not saving to variable, not the other way around.
30162 When saving to variable, abort iteration as soon as a match is found.
30163
30164 2008-06-19 Robert Millan <rmh@aybabtu.com>
30165
30166 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
30167 check for partition that provides /boot/grub. Its logic is flawed,
30168 as it prevents prepare_grub_to_access_device() from being called
30169 multiple times.
30170
30171 2008-06-19 Robert Millan <rmh@aybabtu.com>
30172
30173 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
30174 "insmod" command directly when abstraction modules are needed,
30175 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
30176 since it had already been processed).
30177
30178 2008-06-19 Pavel Roskin <proski@gnu.org>
30179
30180 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
30181 changed. This is needed in case GRUB_LIBDIR changes.
30182 * conf/i386-ieee1275.rmk: Likewise.
30183 * conf/i386-linuxbios.rmk: Likewise.
30184 * conf/i386-pc.rmk: Likewise.
30185 * conf/powerpc-ieee1275.rmk: Likewise.
30186
30187 2008-06-18 Pavel Roskin <proski@gnu.org>
30188
30189 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
30190 kernel_elf_symlist.c to symlist.c for consistency with other
30191 architectures. Update all users.
30192 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
30193
30194 2008-06-18 Robert Millan <rmh@aybabtu.com>
30195
30196 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
30197 it in prefix.
30198
30199 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
30200 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
30201 a RAID device, run setup() for all members independently on whether
30202 LVM abstraction is being used.
30203 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
30204 If grub-mkimage has set `*install_dos_part == -2', don't override this
30205 value.
30206 Perform *install_dos_part adjustments independently on whether
30207 we're embedding or not.
30208 Clarify error message when image is too big for embedding.
30209 Remove duplicate *install_dos_part stanza.
30210
30211 2008-06-17 Robert Millan <rmh@aybabtu.com>
30212
30213 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
30214 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
30215 variables.
30216 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
30217 values in grub_ofconsole_normal_color and
30218 grub_ofconsole_highlight_color (they're not directly related to
30219 background and foreground).
30220 (grub_ofconsole_setcolorstate): Extract background and foreground
30221 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
30222
30223 2008-06-17 Robert Millan <rmh@aybabtu.com>
30224
30225 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
30226 /boot/grub for the check in last commit, not /boot (they could be
30227 different partitions).
30228
30229 2008-06-16 Robert Millan <rmh@aybabtu.com>
30230
30231 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
30232 asked to setup access for the same partition that provides /boot,
30233 don't bother using UUIDs since our root already has the value we
30234 want.
30235
30236 2008-06-16 Robert Millan <rmh@aybabtu.com>
30237
30238 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
30239 I2O devices.
30240 Patch from Sven Mueller <sven@debian.org>.
30241
30242 2008-06-16 Robert Millan <rmh@aybabtu.com>
30243
30244 * util/update-grub.in: Check for $EUID instead of $UID.
30245 Reported by Vincent Zweije.
30246
30247 2008-06-16 Bean <bean123ch@gmail.com>
30248
30249 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
30250 (grub_ext2_read_block): Likewise.
30251 (grub_ext2_read_inode): Likewise.
30252 (grub_ext2_mount): Likewise.
30253 (grub_ext2_close): Likewise.
30254 (grub_ext3_get_journal): Removed.
30255
30256 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
30257 (grub_reiserfs_read_symlink): Likewise.
30258 (grub_reiserfs_mount): Likewise.
30259 (grub_reiserfs_open): Likewise.
30260 (grub_reiserfs_read): Likewise.
30261 (grub_reiserfs_close): Likewise.
30262 (grub_reiserfs_get_journal): Removed.
30263
30264 * fs/fshelp.c (grub_fshelp_read): Removed.
30265 (grub_fshelp_map_block): Likewise.
30266
30267 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
30268 (grub_fshelp_journal): Likewise.
30269 (grub_fshelp_read): Likewise.
30270 (grub_fshelp_map_block): Likewise.
30271
30272 2008-06-16 Pavel Roskin <proski@gnu.org>
30273
30274 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
30275 floating point anymore.
30276 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
30277
30278 2008-06-15 Pavel Roskin <proski@gnu.org>
30279
30280 * commands/ls.c (grub_ls_list_files): Use integer calculations
30281 for human readable format, avoid floating point use.
30282 * kern/misc.c (grub_ftoa): Remove.
30283 (grub_vsprintf): Remove floating point support.
30284
30285 2008-06-15 Robert Millan <rmh@aybabtu.com>
30286
30287 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
30288 devices.
30289 Reported by Max Vozeler.
30290
30291 2008-06-15 Robert Millan <rmh@aybabtu.com>
30292
30293 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
30294 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
30295 skipped later.
30296 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
30297 the beginning of the prefix.
30298
30299 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
30300 It is assumed that if we have a memdisk, grub-mkimage has set
30301 grub_prefix to include the "(memdisk)" drive in it.
30302
30303 2008-06-15 Robert Millan <rmh@aybabtu.com>
30304
30305 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
30306 Initialize keyboard controller after registering the terminal, so that
30307 grub_printf() can be called from grub_keyboard_controller_init().
30308
30309 2008-06-15 Robert Millan <rmh@aybabtu.com>
30310
30311 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
30312 extent-btree which is written as big endian on disk.
30313 Reported by Alain Greppin <al@chilibi.org>.
30314
30315 2008-06-14 Robert Millan <rmh@aybabtu.com>
30316
30317 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
30318 * util/i386/pc/grub-install.in (modules): Likewise.
30319
30320 2008-06-13 Pavel Roskin <proski@gnu.org>
30321
30322 * commands/ls.c (grub_ls_list_files): Fix format warnings.
30323
30324 2008-06-13 Bean <bean123ch@gmail.com>
30325
30326 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
30327
30328 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
30329
30330 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
30331 to indicate sparse block.
30332
30333 2008-06-12 Pavel Roskin <proski@gnu.org>
30334
30335 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
30336 number, grub_fshelp_read() does it for us.
30337
30338 * fs/fshelp.c (grub_fshelp_read): New function. Implement
30339 linear disk read with journal translation.
30340 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
30341 * include/grub/fshelp.h: Declare grub_fshelp_read().
30342
30343 2008-06-09 Pavel Roskin <proski@gnu.org>
30344
30345 * fs/minix.c (grub_minix_mount): Handle error reading
30346 superblock.
30347
30348 2008-06-08 Robert Millan <rmh@aybabtu.com>
30349
30350 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
30351 don't append the RAID prefix afterwards.
30352 Reported by Clint Adams.
30353
30354 2008-06-08 Robert Millan <rmh@aybabtu.com>
30355
30356 Based on description from Pavel:
30357 * kern/disk.c (grub_disk_check_range): Rename to ...
30358 (grub_disk_adjust_range): ... this. Add a comment explaining the
30359 tasks performed by this function.
30360
30361 2008-06-08 Robert Millan <rmh@aybabtu.com>
30362
30363 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
30364 `num_serial' (for consistency with other variables).
30365 (struct grub_ntfs_data): Add `uuid' member.
30366 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
30367 (grub_ntfs_uuid): New function.
30368 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
30369
30370 2008-06-07 Pavel Roskin <proski@gnu.org>
30371
30372 * util/biosdisk.c (open_device): Revert last change to the
30373 function, it broke installation. The sector needs to be
30374 different dependent on which device is opened.
30375
30376 2008-06-06 Robert Millan <rmh@aybabtu.com>
30377
30378 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
30379 rest of GRUB, and breakage doesn't happen if its value were modified.
30380
30381 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
30382 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
30383 a constant (same value).
30384 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
30385 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
30386
30387 2008-06-06 Robert Millan <rmh@aybabtu.com>
30388
30389 * util/biosdisk.c (open_device): Do not modify sector offset when
30390 accessing a partition. kern/disk.c already handles this for us.
30391
30392 2008-06-06 Robert Millan <rmh@aybabtu.com>
30393
30394 * util/grub-emu.c (grub_machine_init): Move code in this function from
30395 here ...
30396 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
30397 segfault in case grub_printf() is called).
30398
30399 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
30400 grub_probe. Update all users not to explicitly add it again.
30401 (grub_device): New variable; contains corresponding device for grubdir.
30402 (fs_module, partmap_module, devabstraction_module): Pass
30403 `--device ${grub_device}' to grub_probe to avoid traversing /dev
30404 every time.
30405
30406 2008-06-05 Robert Millan <rmh@aybabtu.com>
30407
30408 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
30409 is found, print it (same layout as with labels).
30410
30411 2008-06-04 Robert Millan <rmh@aybabtu.com>
30412
30413 * util/biosdisk.c (get_drive): Rename to ...
30414 (find_grub_drive): ... this. Update all users.
30415
30416 (get_os_disk): Rename to ...
30417 (convert_system_partition_to_system_disk): ... this. Update all users.
30418
30419 (find_drive): Rename to ...
30420 (find_system_device): ... this. Update all users.
30421
30422 2008-06-04 Robert Millan <rmh@aybabtu.com>
30423
30424 * util/biosdisk.c (get_os_disk): Handle IDA devices.
30425 * util/grub-mkdevicemap.c (get_mmc_disk_name)
30426 (make_device_map): Likewise.
30427
30428 2008-06-01 Robert Millan <rmh@aybabtu.com>
30429
30430 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
30431 before dereferencing it.
30432
30433 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
30434 union with fat12/fat16-specific ones. Add some new fields, including
30435 `num_serial' for both versions.
30436 (struct grub_fat_data): Add `uuid' member.
30437 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
30438 names. Initialize `data->uuid' using `num_serial'.
30439 (grub_fat_uuid): New function.
30440 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
30441
30442 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
30443 (grub_reiserfs_uuid): New function.
30444 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
30445 member.
30446
30447 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
30448 (grub_xfs_uuid): New function.
30449 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
30450
30451 2008-06-01 Robert Millan <rmh@aybabtu.com>
30452
30453 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
30454 code that is backward compatible with pre-uuid search command.
30455
30456 2008-05-31 Robert Millan <rmh@aybabtu.com>
30457
30458 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
30459 floppies after everything else, to ensure floppy drive isn't accessed
30460 unnecessarily (patch from Bean).
30461
30462 2008-05-31 Robert Millan <rmh@aybabtu.com>
30463
30464 * commands/search.c (search_label, search_fs_uuid, search_file): Do
30465 not print device names when we were asked to set a variable.
30466
30467 2008-05-31 Robert Millan <rmh@aybabtu.com>
30468
30469 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
30470 using "cursor-on" and "cursor-off" commands (understood at least by
30471 the Open Firmware flavour on OLPC).
30472
30473 2008-05-31 Michael Gorven <michael@gorven.za.net>
30474
30475 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
30476 on and off sequences.
30477
30478 2008-05-31 Robert Millan <rmh@aybabtu.com>
30479
30480 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
30481 * util/update-grub.in: Likewise.
30482
30483 2008-05-30 Pavel Roskin <proski@gnu.org>
30484
30485 * util/biosdisk.c (linux_find_partition): Simplify logic and
30486 make the code more universal. Keep special processing for
30487 devfs, but use a simple rule for all other devices. If the
30488 device ends with a number, append 'p' and the partition number.
30489 Otherwise, append only the partition number.
30490
30491 2008-05-30 Robert Millan <rmh@aybabtu.com>
30492
30493 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
30494 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
30495 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
30496 the `root' parameter to Linux.
30497
30498 2008-05-30 Robert Millan <rmh@aybabtu.com>
30499
30500 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
30501 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
30502 --fs_uuid with --fs-uuid.
30503 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
30504 all filesystems support them).
30505
30506 2008-05-30 Robert Millan <rmh@aybabtu.com>
30507
30508 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
30509 grub_printf() flags, since we're printing in units of 2 bytes.
30510
30511 2008-05-30 Robert Millan <rmh@aybabtu.com>
30512
30513 * util/grub.d/00_header.in: Remove obsolete comment referencing
30514 convert_system_path_to_grub_path().
30515 * util/update-grub.in: Likewise.
30516 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
30517 (convert_system_path_to_grub_path): Add a warning message explaining
30518 that this function is deprecated. Rely on is_path_readable_by_grub()
30519 for the readability checks.
30520 (font_path): Use is_path_readable_by_grub() for the readability
30521 check rather than convert_system_path_to_grub_path().
30522
30523 2008-05-30 Robert Millan <rmh@aybabtu.com>
30524
30525 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
30526 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
30527 converting it first.
30528 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
30529 grub.cfg for access to font file, and afterwards call it again to set
30530 the root device.
30531
30532 2008-05-30 Robert Millan <rmh@aybabtu.com>
30533
30534 * commands/search.c (options): Add --fs_uuid option.
30535 (search_fs_uuid): New function.
30536 (grub_cmd_search): Fix --set argument passing.
30537 Use search_fs_uuid() when requested via --fs_uuid.
30538 (grub_search_init): Update help message.
30539 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
30540 and redeclare it as an array of 16-bit words.
30541 (grub_ext2_uuid): New function.
30542 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
30543 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
30544 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
30545 (GRUB_DEVICE_BOOT_UUID): New variables.
30546 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
30547 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
30548 whenever possible.
30549 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
30550 just assume `root' variable has the right value.
30551 * util/grub.d/10_linux.in: Likewise.
30552 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
30553 via PRINT_FS_UUID.
30554 (main): Recognise `-t fs_uuid' argument.
30555
30556 2008-05-30 Robert Millan <rmh@aybabtu.com>
30557
30558 * util/biosdisk.c (map): Redefine structure to hold information
30559 about GRUB drive name.
30560 (get_drive): Reimplement without assuming (and verifying) BIOS-like
30561 drive names.
30562 (call_hook): Remove.
30563 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
30564 member. Assume drive has partitions.
30565 (grub_util_biosdisk_open): Access device names via `.device' struct
30566 member.
30567 (open_device): Likewise.
30568 (find_drive): Likewise.
30569 (read_device_map): Adjust map[] usage to match the new struct
30570 definition. Don't check for duplicates (still possible, but not cheap
30571 anymore).
30572 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
30573 (make_device_name): Remove assumption of BIOS-like drive names.
30574
30575 2008-05-30 Pavel Roskin <proski@gnu.org>
30576
30577 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
30578 compiling execute.c doesn't need grub_script.tab.h anymore.
30579 (normal/command.c_DEPENDENCIES): Likewise.
30580 (normal/function.c_DEPENDENCIES): Likewise.
30581 * conf/i386-ieee1275.rmk: Likewise.
30582 * conf/i386-linuxbios.rmk: Likewise.
30583 * conf/i386-pc.rmk: Likewise.
30584 * conf/powerpc-ieee1275.rmk: Likewise.
30585 * conf/sparc64-ieee1275.rmk: Likewise.
30586
30587 2008-05-29 Pavel Roskin <proski@gnu.org>
30588
30589 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
30590 when scanning metadata for volume group name.
30591
30592 * include/grub/script.h: Don't include grub_script.tab.h. It's
30593 a generated file, which may only be included from the files with
30594 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
30595 use union YYSTYPE, as the later allows forward declaration.
30596 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
30597
30598 2008-05-29 Robert Millan <rmh@aybabtu.com>
30599
30600 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
30601 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
30602 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
30603 (grub_console_checkkey): Add grub_dprintf() call to report unknown
30604 scan codes.
30605
30606 2008-05-29 Robert Millan <rmh@aybabtu.com>
30607
30608 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
30609 control key combinations.
30610
30611 2008-05-29 Robert Millan <rmh@aybabtu.com>
30612
30613 * util/powerpc/ieee1275/grub-install.in: Move from here ...
30614 * util/ieee1275/grub-install.in: ... to here.
30615 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
30616 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
30617 (grub_install_SOURCES): Likewise.
30618
30619 2008-05-29 Robert Millan <rmh@aybabtu.com>
30620
30621 * fs/affs.c: Update copyright year.
30622 * fs/ext2.c: Likewise.
30623 * fs/fshelp.c: Likewise.
30624 * fs/hfsplus.c: Likewise.
30625 * fs/ntfs.c: Likewise.
30626 * fs/xfs.c: Likewise.
30627 * include/grub/fshelp.h: Likewise.
30628 * util/grub-mkdevicemap.c: Likewise.
30629
30630 2008-05-28 Robert Millan <rmh@aybabtu.com>
30631
30632 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
30633 might need to be fatfs to support some firmware implementations
30634 (e.g. OFW or EFI).
30635
30636 2008-05-28 Robert Millan <rmh@aybabtu.com>
30637
30638 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
30639 devices.
30640 * util/grub-mkdevicemap.c (get_mmc_disk_name)
30641 (make_device_map): Likewise.
30642
30643 2008-05-20 Bean <bean123ch@gmail.com>
30644
30645 * fs/fshelp.c (grub_fshelp_map_block): New function.
30646 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
30647 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
30648
30649 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
30650 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
30651 (grub_fshelp_journal): New structure.
30652 (grub_fshelp_map_block): New function prototype.
30653 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
30654 (grub_fshelp_map_block): Likewise.
30655
30656 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
30657 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
30658 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
30659 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
30660 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
30661 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
30662 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
30663 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
30664 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
30665 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
30666 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
30667 (grub_ext2_sblock): New members for journal support.
30668 (grub_ext3_journal_header): New structure.
30669 (grub_ext3_journal_revoke_header): Likewise.
30670 (grub_ext3_journal_block_tag): Likewise.
30671 (grub_ext3_journal_sblock): Likewise.
30672 (grub_fshelp_node): New members logfile and journal.
30673 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
30674 grub_fshelp_map_block to get real block number.
30675 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
30676 number.
30677 (grub_ext2_read_inode): Likewise.
30678 (grub_ext3_get_journal): New function.
30679 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
30680 (grub_ext2_close): Release memory used by journal.
30681
30682 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
30683 (REISERFS_MAGIC_DESC_BLOCK): New macro.
30684 (grub_reiserfs_transaction_header): Renamed to
30685 grub_reiserfs_description_block, replace field data with real_blocks.
30686 (grub_reiserfs_commit_block): New structure.
30687 (grub_reiserfs_data): New member journal.
30688 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
30689 number.
30690 (grub_reiserfs_read_symlink): Likewise.
30691 (grub_reiserfs_iterate_dir): Likewise.
30692 (grub_reiserfs_open): Likewise.
30693 (grub_reiserfs_read): Likewise.
30694 (grub_reiserfs_get_journal): New function.
30695 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
30696 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
30697 using grub_reiserfs_get_journal.
30698 (grub_reiserfs_close): Release memory used by journal.
30699
30700 * fs/affs.c (grub_affs_read_block): Change block type to
30701 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
30702
30703 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
30704
30705 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
30706
30707 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
30708
30709 * fs/udf.c (grub_udf_read_block): Change block type to
30710 grub_disk_addr_t. Use type cast to avoid warning.
30711
30712 * fs/xfs.c (grub_xfs_read_block): Likewise.
30713
30714 2008-05-16 Christian Franke <franke@computer.org>
30715
30716 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
30717 to ensure that break with ESC will always work.
30718 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
30719 Remove ESC from keyboard queue.
30720
30721 2008-05-16 Christian Franke <franke@computer.org>
30722
30723 * util/biosdisk.c: [__CYGWIN__] Add includes.
30724 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
30725 (get_os_disk): Move variable declarations to OS specific
30726 parts to avoid warning.
30727 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
30728 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
30729 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
30730 Cygwin.
30731 * util/getroot.c: [__CYGWIN__] Add includes.
30732 (strip_extra_slashes): Fix "/" case.
30733 [__CYGWIN__] (get_win32_path): New function.
30734 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
30735 [__CYGWIN__] (find_root_device): Disable.
30736 [__CYGWIN__] (get_bootsec_serial): New function.
30737 [__CYGWIN__] (find_cygwin_root_device): Likewise.
30738 [__linux__] (grub_guess_root_device): Add early returns to simplify
30739 structure.
30740 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
30741 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
30742 check for Linux only.
30743
30744 2008-05-15 Bean <bean123ch@gmail.com>
30745
30746 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
30747 keyboard hang problem in apple's intel mac.
30748
30749 2008-05-09 Robert Millan <rmh@aybabtu.com>
30750
30751 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
30752 devices.
30753 * util/grub-mkdevicemap.c (get_virtio_disk_name)
30754 (make_device_map): Likewise.
30755 Reported by Aurelien Jarno <aurel32@debian.org>
30756
30757 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
30758
30759 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
30760 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
30761 (make_device_map): Output entries for xvd type disks.
30762
30763 2008-05-07 Robert Millan <rmh@aybabtu.com>
30764
30765 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
30766 devices.
30767 * util/grub-mkdevicemap.c (get_cciss_disk_name)
30768 (make_device_map): Likewise.
30769 Reported by Roland Dreier <rdreier@cisco.com>
30770
30771 2008-05-07 Robert Millan <rmh@aybabtu.com>
30772
30773 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
30774 grub_strstr() call. Correct a few mistakes in failure path handling.
30775
30776 2008-05-06 Robert Millan <rmh@aybabtu.com>
30777
30778 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
30779 Do not print a trailing slash (therefore, the root directory is an
30780 empty string).
30781 (convert_system_path_to_grub_path): Do not remove trailing slash
30782 from make_system_path_relative_to_its_root() output.
30783
30784 * util/i386/pc/grub-install.in: Add trailing slash to output from
30785 make_system_path_relative_to_its_root().
30786
30787 2008-05-06 Robert Millan <rmh@aybabtu.com>
30788
30789 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
30790 ensures that output lines aren't intermangled with those sent to
30791 stderr (via grub_util_info()).
30792 * util/grub-probe.c (grub_refresh): Likewise.
30793 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
30794
30795 2008-05-05 Christian Franke <franke@computer.org>
30796
30797 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
30798 Add Cygwin device names.
30799 (get_ide_disk_name) [__CYGWIN__]: Likewise.
30800 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
30801 (check_device): Return error instead of success on empty name.
30802 (make_device_map): Move label inside linux specific code to
30803 prevent compiler warning.
30804
30805 2008-04-30 Robert Millan <rmh@aybabtu.com>
30806
30807 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
30808 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
30809 first boot option.
30810 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
30811
30812 2008-04-29 Robert Millan <rmh@aybabtu.com>
30813
30814 * docs/grub.cfg: New file (example GRUB configuration).
30815
30816 2008-04-26 Robert Millan <rmh@aybabtu.com>
30817
30818 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
30819 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
30820 and `disk/ieee1275/nand.c'.
30821
30822 2008-04-25 Bean <bean123ch@gmail.com>
30823
30824 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
30825 i386-linuxbios.
30826
30827 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
30828 change the buffer size to 4096 for cdrom device.
30829
30830 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
30831 and nand.mod.
30832 (_linux_mod_SOURCES): New variable.
30833 (_linux_mod_CFLAGS): Likewise.
30834 (_linux_mod_LDFLAGS): Likewise.
30835 (linux_mod_SOURCES): Likewise.
30836 (linux_mod_CFLAGS): Likewise.
30837 (linux_mod_LDFLAGS): Likewise.
30838 (nand_mod_SOURCES): Likewise.
30839 (nand_mod_CFLAGS): Likewise.
30840 (nand_mod_LDFLAGS): Likewise.
30841
30842 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
30843 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
30844 type property. (nand device in olpc don't have this property)
30845
30846 * include/grub/disk.h (grub_disk_dev_id): New macro
30847 GRUB_DISK_DEVICE_NAND_ID.
30848
30849 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
30850 function prototype.
30851 (grub_rescue_cmd_initrd): Likewise.
30852
30853 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
30854 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
30855 ofw_cif_handler and ofw_idt, adjust padding number.
30856
30857 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
30858 GRUB_MACHINE_IEEE1275 is defined.
30859
30860 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
30861 Use NESTED_FUNC_ATTR attribute on the hook parameter.
30862
30863 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
30864 on nested function heap_init.
30865 (grub_upper_mem): New variable for i386-ieee1275.
30866 (grub_get_extended_memory): New function for i386-ieee1275.
30867 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
30868
30869 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
30870 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
30871 property.
30872
30873 * loader/i386/ieee1275/linux.c: New file.
30874
30875 * loader/i386/ieee1275/linux_normal.c: New file.
30876
30877 * disk/ieee1275/nand.c: New file.
30878
30879 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
30880
30881 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
30882 value.
30883 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
30884
30885 2008-04-18 Robert Millan <rmh@aybabtu.com>
30886
30887 Restructures early code path on ieee1275 to unify grub_main() as
30888 the first C function that is executed in every platform.
30889
30890 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
30891 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
30892 cmain().
30893 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
30894 * kern/ieee1275/cmain.c (cmain): Rename to ...
30895 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
30896 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
30897 at the beginning.
30898
30899 2008-04-18 Robert Millan <rmh@aybabtu.com>
30900
30901 * util/update-grub.in: Fix syntax error when setting
30902 `GRUB_PRELOAD_MODULES'.
30903 Reported by Stephane Chazelas <stephane@artesyncp.com>
30904
30905 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
30906
30907 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
30908 section into account, newer toolchains generate unique build ids
30909 * configure.ac: remove the test for --build-id=none acceptance,
30910 we want build ids to be preserved
30911 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
30912 far from other sections don't cause the raw binary images grow
30913 size
30914
30915 2008-04-15 Robert Millan <rmh@aybabtu.com>
30916
30917 * disk/lvm.c: Update copyright year.
30918 * kern/misc.c: Likewise.
30919
30920 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
30921
30922 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
30923 there is no memory left for physical volume name.
30924
30925 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
30926
30927 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
30928 volume name mapping to support bigger than 9 character names properly.
30929
30930 2008-04-13 Robert Millan <rmh@aybabtu.com>
30931
30932 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
30933 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
30934
30935 2008-04-13 Christian Franke <franke@computer.org>
30936
30937 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
30938 to create a floppy emulation boot CD when non emulation mode
30939 does not work.
30940 Enable Joliet CD filesystem extension.
30941
30942 2008-04-13 Robert Millan <rmh@aybabtu.com>
30943
30944 * kern/misc.c (grub_strncat): Fix off-by-one error.
30945 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
30946
30947 * kern/env.c (grub_env_context_close): Clear current context, not
30948 previous one.
30949 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
30950
30951 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
30952
30953 2008-04-13 Robert Millan <rmh@aybabtu.com>
30954
30955 Improve robustness when handling LVM.
30956
30957 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
30958 (and leave `*p' unmodified).
30959 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
30960 through it.
30961 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
30962 iterating through it.
30963 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
30964 through it.
30965 (grub_lvm_scan_device): Check the return value (and fail gracefully
30966 when due) on each grub_lvm_getvalue() or grub_strstr() call.
30967 Don't assume `vg->pvs != NULL' when iterating through it.
30968
30969 2008-04-13 Robert Millan <rmh@aybabtu.com>
30970
30971 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
30972 * genmk.rb (partmap): New variable.
30973 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
30974 (#{partmap}): New target rule.
30975 * genpartmaplist.sh: New file.
30976 * Makefile.in (pkglib_DATA): Add partmap.lst.
30977 (partmap.lst): New target rule.
30978 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
30979 modules (including all partition maps), instead of preloading them.
30980
30981 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
30982
30983 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
30984 `linux-boot-prober' (if installed) to detect other operating
30985 systems which are installed on the computer and add them to
30986 the boot menu.
30987 * conf/common.rmk: Build and install 30_os-prober.
30988
30989 2008-04-12 Robert Millan <rmh@aybabtu.com>
30990
30991 * kern/powerpc/ieee1275/init.c: Move from here ...
30992 * kern/ieee1275/init.c: ... to here. Update all users.
30993
30994 * kern/powerpc/ieee1275/cmain.c: Move from here ...
30995 * kern/ieee1275/cmain.c: ... to here. Update all users.
30996
30997 * kern/powerpc/ieee1275/openfw.c: Move from here ...
30998 * kern/ieee1275/openfw.c: ... to here. Update all users.
30999
31000 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
31001 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
31002
31003 2008-04-10 Pavel Roskin <proski@gnu.org>
31004
31005 * configure.ac: Always use "_cv_" in cache variables for
31006 compatibility with Autoconf 2.62.
31007
31008 2008-04-07 Robert Millan <rmh@aybabtu.com>
31009
31010 Revert grub/machine/init.h addition by Pavel (since it breaks on
31011 i386-ieee1275 and others):
31012 * util/i386/pc/misc.c: Remove grub/machine/init.h.
31013 * util/powerpc/ieee1275/misc.c: Likewise.
31014
31015 2008-04-07 Robert Millan <rmh@aybabtu.com>
31016
31017 * util/grub-probe.c (probe): Improve error message.
31018
31019 2008-04-07 Robert Millan <rmh@aybabtu.com>
31020
31021 * util/biosdisk.c (read_device_map): Skip devices that don't exist
31022 (this prevents the presence of a bogus entry from ruining the whole
31023 thing).
31024
31025 2008-04-06 Pavel Roskin <proski@gnu.org>
31026
31027 * util/biosdisk.c: Include grub/util/biosdisk.h.
31028 * util/grub-fstest.c (execute_command): Make static.
31029 * util/grub-mkdevicemap.c (check_device): Likewise.
31030 * util/i386/pc/misc.c: Include grub/machine/init.h.
31031 * util/powerpc/ieee1275/misc.c: Likewise.
31032 * util/lvm.c: Include grub/util/lvm.h.
31033 * util/misc.c: Include grub/kernel.h, grub/misc.h and
31034 grub/cache.h.
31035 * util/raid.c: Include grub/util/raid.h.
31036 (grub_util_getdiskname): Make static.
31037
31038 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
31039 grub_hostfs_fini(), as they are called from grub_init_all() and
31040 grub_fini_all() respectively. This fixes an infinite loop in
31041 grub-fstest due to double registration of hostfs.
31042 Reported by Christian Franke <Christian.Franke@t-online.de>
31043
31044 2008-04-05 Pavel Roskin <proski@gnu.org>
31045
31046 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
31047 all 8 functions. Otherwise, probe function 0 only.
31048
31049 2008-04-04 Pavel Roskin <proski@gnu.org>
31050
31051 * commands/lspci.c (grub_lspci_iter): Print the bus number
31052 correctly.
31053
31054 * commands/lspci.c (grub_pci_classes): Fix typos.
31055 (grub_lspci_iter): Don't print func twice. Print vendor ID
31056 before device ID, as it's normally done.
31057
31058 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
31059 Fix signedness warnings.
31060 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
31061 Likewise.
31062 * util/ieee1275/get_disk_name.c: Include config.h so that
31063 _GNU_SOURCE is defined and getline() is declared. Mark an
31064 unused argument as such. Fix a signedness warning.
31065
31066 2008-04-02 Pavel Roskin <proski@gnu.org>
31067
31068 * genkernsyms.sh.in: Use more robust assignments for CC and
31069 srcdir. Quote srcdir.
31070 * gensymlist.sh.in: Likewise. Assert at the compile time that
31071 the symbol table is not empty.
31072
31073 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
31074 * fs/cpio.c (grub_cpio_read): Likewise.
31075
31076 2008-04-01 Pavel Roskin <proski@gnu.org>
31077
31078 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
31079 * disk/host.c (grub_host_open): Likewise.
31080 * disk/loopback.c (grub_loopback_open): Likewise.
31081 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
31082 disk->id as in disk/host.c, not a multi-character constant.
31083
31084 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
31085 later is obsolete, potentially dangerous and sets a bad example.
31086 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
31087 * util/misc.c (grub_util_get_image_size): Likewise.
31088
31089 * disk/loopback.c (options): Improve help for "--partitions".
31090
31091 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
31092 options to align them with the short options, e.g. "echo -e".
31093
31094 2008-03-31 Bean <bean123ch@gmail.com>
31095
31096 * video/reader/png.c (grub_png_data): New member is_16bit and
31097 image_data.
31098 (grub_png_decode_image_header): Detect 16 bit png image.
31099 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
31100 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
31101 (grub_video_reader_png): Release memory occupied by image_data.
31102
31103 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
31104 4096 bytes.
31105 (grub_nfs_mount): Skip the test for sector per cluster.
31106
31107 * include/grub/ntfs.h (MAX_SPC): Removed.
31108
31109 2008-03-31 Bean <bean123ch@gmail.com>
31110
31111 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
31112 (grub_probe_SOURCES): Add fs/afs.c.
31113 (grub_fstest_SOURCES): Likewise.
31114 (afs_mod_SOURCES): New variable.
31115 (afs_mod_CFLAGS): Likewise.
31116 (afs_mod_LDFLAGS): Likewise.
31117
31118 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
31119 (grub_emu_SOURCES): Likewise.
31120
31121 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
31122
31123 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31124
31125 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
31126
31127 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31128
31129 * fs/afs.c: New file.
31130
31131 2008-03-30 Pavel Roskin <proski@gnu.org>
31132
31133 * disk/host.c: Include grub/misc.h to fix a warning.
31134 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
31135 warnings about implicit declarations.
31136
31137 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
31138 variable.
31139 * include/grub/i386/loader.h: Change declaration of
31140 grub_linux_boot() to match what grub_loader_set() expects.
31141 * util/getroot.c (grub_guess_root_device): Return const char* to
31142 fix a warning.
31143 * util/grub-probe.c (probe): Fix a warning about uninitialized
31144 abstraction_name variable.
31145 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
31146 second argument as unused to fix a warning.
31147
31148 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
31149 missing grub_error() call.
31150
31151 * util/update-grub_lib.in: Define datarootdir, since Autoconf
31152 2.60 and newer uses it to define datadir.
31153
31154 * commands/sleep.c: Fix warning about implicit declaration.
31155 * disk/memdisk.c: Likewise.
31156 * loader/aout.c: Likewise.
31157 * loader/i386/bsd_normal.c: Likewise.
31158 * util/grub-probe.c: Likewise.
31159
31160 * commands/i386/cpuid.c (has_longmode): Make static.
31161 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
31162 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
31163
31164 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
31165 GDT. This is more robust, as %ds can change.
31166 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
31167 calling real_to_prot().
31168 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
31169
31170 2008-03-28 Pavel Roskin <proski@gnu.org>
31171
31172 * kern/i386/pc/startup.S: Assert that uncompressed functions
31173 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
31174 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
31175 code, as they push parts of the code (error handlers) beyond
31176 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
31177 code as correctness and size.
31178
31179 2008-03-28 Pavel Roskin <proski@gnu.org>
31180
31181 * kern/i386/pc/startup.S
31182 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
31183 data block address to the real mode, keep offset minimal. This
31184 works around a bug in AWARD BIOS on old Athlon systems, which
31185 makes CD detection hang.
31186
31187 2008-03-26 Pavel Roskin <proski@gnu.org>
31188
31189 * normal/color.c (grub_parse_color_name_pair): Make `name' a
31190 const.
31191 * include/grub/normal.h: Add grub_parse_color_name_pair()
31192 declaration.
31193
31194 2008-03-24 Bean <bean123ch@gmail.com>
31195
31196 * disk/i386/pc/biosdisk.c (cd_start): Removed.
31197 (cd_count): Removed.
31198 (cd_drive): New variable.
31199 (grub_biosdisk_get_drive): Don't check for (cdN) device.
31200 (grub_biosdisk_call_hook): Likewise.
31201 (grub_biosdisk_iterate): Change cdrom detection method.
31202 (grub_biosdisk_open): Replace cd_start with cd_drive.
31203 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
31204 detect cdrom device.
31205
31206 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
31207 Removed.
31208 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
31209 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
31210 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
31211 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
31212 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
31213 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
31214 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
31215 (grub_biosdisk_cdrp): New structure.
31216 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
31217
31218 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
31219
31220 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
31221 device.
31222
31223 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
31224 New function.
31225
31226 2008-03-20 Robert Millan <rmh@aybabtu.com>
31227
31228 Remove 2 TiB limit in ata.mod.
31229 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
31230 (grub_ata_dumpinfo): Print sector count with 0x%llx.
31231 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
31232 grub_uint64_t instead of grub_uint32_t.
31233
31234 2008-03-05 Bean <bean123ch@gmail.com>
31235
31236 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
31237 (grub_multiboot): Set boot device.
31238
31239 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
31240
31241 2008-03-02 Bean <bean123ch@gmail.com>
31242
31243 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
31244 symlink_buffer.
31245
31246 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
31247
31248 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
31249 texinfo.tex.
31250
31251 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
31252 modified.
31253
31254 * docs/fdl.texi: New file.
31255
31256 * docs/mdate-sh: New file. Copied from gnulib.
31257 * docs/texinfo.tex: Likewise.
31258
31259 * config.guess: Updated from gnulib.
31260 * install-sh: Likewise.
31261
31262 2008-02-28 Robert Millan <rmh@aybabtu.com>
31263
31264 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
31265 (aout_mod_SOURCES): New variable.
31266 (aout_mod_CFLAGS): Likewise.
31267 (aout_mod_LDFLAGS): Likewise.
31268
31269 * conf/i386-ieee1275.rmk: Likewise.
31270
31271 2008-02-28 Robert Millan <rmh@aybabtu.com>
31272
31273 * util/update-grub.in: Reorganise terminal validity check. Accept
31274 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
31275 Based on suggestion by Franklin PIAT.
31276
31277 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
31278
31279 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
31280 function.
31281 * util/getroot.c (grub_util_check_block_device): New function that
31282 returns the given argument if it is a block device and returns NULL else.
31283 * util/grub-probe.c (argument_is_device): New variable.
31284 (probe): Promote device_name from a variable to an argument. Receive
31285 device_name from grub_util_check_block_device() if path is NULL and from
31286 grub_guess_root_device() else. Do not free() device_name anymore.
31287 (options): Introduce new parameter '-d, --device'.
31288 (main): Add description of the new parameter to the help screen.
31289 Rename path variable to argument. Set argument_is_device if the '-d'
31290 option is given. Pass argument to probe() depending on
31291 argument_is_device.
31292
31293 2008-02-24 Bean <bean123ch@gmail.com>
31294
31295 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
31296 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
31297 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
31298 (GRUB_ISO9660_VOLDESC_PART): Likewise.
31299 (GRUB_ISO9660_VOLDESC_END): Likewise.
31300 (grub_iso9660_primary_voldesc): New member escape.
31301 (grub_iso9660_data): New member joliet.
31302 (grub_iso9660_convert_string): New function.
31303 (grub_iso9660_mount): Detect joliet extension.
31304 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
31305 (grub_iso9660_iso9660_label): Likewise.
31306
31307 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
31308 (grub_setup_SOURCES): Add fs/udf.c.
31309 (grub_fstest_SOURCES): Likewise.
31310 (udf_mod_SOURCES): New variable.
31311 (udf_mod_CFLAGS): Likewise.
31312 (udf_mod_LDFLAGS): Likewise.
31313
31314 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
31315 (grub_emu_SOURCES): Likewise.
31316
31317 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
31318
31319 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31320
31321 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
31322
31323 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31324
31325 * fs/udf.c: New file.
31326
31327 2008-02-24 Robert Millan <rmh@aybabtu.com>
31328
31329 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
31330 (normal/lexer.c_DEPENDENCIES): New variables.
31331 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
31332 (normal/lexer.c_DEPENDENCIES): Likewise.
31333 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
31334 (normal/lexer.c_DEPENDENCIES): Likewise.
31335 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
31336 (normal/lexer.c_DEPENDENCIES): Likewise.
31337 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
31338 (normal/lexer.c_DEPENDENCIES): Likewise.
31339 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
31340 (normal/lexer.c_DEPENDENCIES): Likewise.
31341
31342 2008-02-23 Robert Millan <rmh@aybabtu.com>
31343
31344 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
31345 since they were intended to be in hex. This didn't break previously
31346 because of a bug in gpt_partition_map_iterate() (see below).
31347
31348 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
31349 when checking the validity of GPT header.
31350 Remove `partno', since it always provides the same information as `i'.
31351
31352 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
31353
31354 * include/grub/efi/time.h: Fix a wrong comment.
31355
31356 2008-02-19 Pavel Roskin <proski@gnu.org>
31357
31358 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
31359 message.
31360
31361 2008-02-19 Bean <bean123ch@gmail.com>
31362
31363 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
31364 (aout_mod_SOURCES): New variable.
31365 (aout_mod_CFLAGS): Likewise.
31366 (aout_mod_LDFLAGS): Likewise.
31367 (_bsd_mod_SOURCES): New variable.
31368 (_bsd_mod_CFLAGS): Likewise.
31369 (_bsd_mod_LDFLAGS): Likewise.
31370 (bsd_mod_SOURCES): New variable.
31371 (bsd_mod_CFLAGS): Likewise.
31372 (bsd_mod_LDFLAGS): Likewise.
31373
31374 * include/grub/aout.h: New file.
31375
31376 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
31377
31378 * include/grub/i386/bsd.h: New file.
31379
31380 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
31381 to make it public.
31382
31383 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
31384 function is called, so that it's possible to change it inside the hook.
31385 (grub_elf64_load): Likewise.
31386 (grub_elf_file): Don't close the file if elf header is not found.
31387 (grub_elf_close): Close the file if grub_elf_file fails (The new
31388 grub_elf_file won't close it).
31389 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
31390 (grub_elf64_size): Likewise.
31391
31392 * kern/i386/loader.S (grub_unix_real_boot): New function.
31393
31394 * loader/aout.c: New file.
31395
31396 * loader/i386/bsd.c: New file.
31397
31398 * loader/i386/bsd_normal.c: New file.
31399
31400 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
31401
31402 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
31403 can test other formats.
31404
31405 2008-02-19 Robert Millan <rmh@aybabtu.com>
31406
31407 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
31408 (grub_gpt_partition_type_empty): Redefine with macro from
31409 `<grub/gpt_partition.h>'.
31410 (gpt_partition_map_iterate): Adjust partition type comparison.
31411
31412 Export `entry' as partmap-specific `part.data' struct.
31413 (grub_gpt_header, grub_gpt_partentry): Move from here ...
31414
31415 * include/grub/gpt_partition.h (grub_gpt_header)
31416 (grub_gpt_partentry): ... to here (new file).
31417
31418 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
31419
31420 (grub_gpt_partition_type_bios_boot): New const variable, defined
31421 with macro from `<grub/gpt_partition.h>'.
31422
31423 (setup): Replace `first_start' with `embed_region', which keeps
31424 track of the embed region (and is partmap-agnostic).
31425
31426 Replace find_first_partition_start() with find_usable_region(),
31427 which finds a usable region for embedding using partmap-specific
31428 knowledge (supports PC/MSDOS and GPT).
31429
31430 Fix all assumptions that the embed region start at sector 1, using
31431 `embed_region.start' from now on. Similarly, use `embed_region.end'
31432 rather than `first_start' to calculate available size.
31433
31434 In grub_util_info() message, replace "into after the MBR" with an
31435 indication of the specific sector our embed region starts at.
31436
31437 2008-02-19 Robert Millan <rmh@aybabtu.com>
31438
31439 * DISTLIST: Replace `commands/ieee1275/halt.c' and
31440 `commands/ieee1275/reboot.c' with `commands/halt.c' and
31441 `commands/reboot.c'.
31442 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
31443 (halt_mod_SOURCES): Likewise.
31444 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
31445 (halt_mod_SOURCES): Likewise.
31446
31447 2008-02-17 Christian Franke <franke@computer.org>
31448
31449 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
31450
31451 2008-02-17 Robert Millan <rmh@aybabtu.com>
31452
31453 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
31454 set `first_start' to 0 for non-PC/MSDOS partition maps.
31455
31456 2008-02-16 Robert Millan <rmh@aybabtu.com>
31457
31458 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
31459 do not assume partition map is PC/MSDOS before performing checks that
31460 are specific to that layout.
31461
31462 2008-02-13 Robert Millan <rmh@aybabtu.com>
31463
31464 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
31465 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
31466 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
31467
31468 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
31469
31470 * configure.ac: Only a cosmetic change on the handling of
31471 -fno-stack-protector.
31472
31473 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
31474
31475 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
31476 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
31477 reboot.c.
31478 (grub_install_SOURCES): Add halt.mod and reboot.mod.
31479 (halt_mod_SOURCES): New variable.
31480 (halt_mod_CFLAGS): Likewise.
31481 (halt_mod_LDFLAGS): Likewise.
31482 (reboot_mod_SOURCES): Likewise.
31483 (reboot_mod_CFLAGS): Likewise.
31484 (reboot_mod_LDFLAGS): Likewise.
31485
31486 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
31487 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
31488 reboot.c.
31489 (halt_mod_SOURCES): Likewise.
31490 (reboot_mod_SOURCES): Likewise.
31491
31492 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
31493 commands/i386/pc/reboot.c by commands/reboot.c.
31494 (reboot_mod_SOURCES): Likewise.
31495
31496 * commands/i386/pc/reboot.c: merge this file ...
31497
31498 * commands/ieee1275/reboot.c: ... and this file ...
31499
31500 * commands/reboot.c: ... to this file.
31501 Add some precompiler directive to include the correct header for
31502 each machine.
31503
31504 * commands/ieee1275/halt.c: move this file ...
31505
31506 * commands/halt.c: ... to here.
31507 Add some precompiler directive to include the correct header for
31508 each machine.
31509
31510 * include/grub/efi/efi.h (grub_reboot): New function declaration.
31511 (grub_halt): Likewise.
31512
31513 * kern/efi/efi.c (grub_reboot): New function.
31514 (grub_halt): Likewise.
31515
31516 2008-02-12 Robert Millan <rmh@aybabtu.com>
31517
31518 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
31519 /dev (like it is done for /dev/mapper). This doesn't provide support
31520 for EVMS, but at least it is now easy to identify the problem when it
31521 arises.
31522
31523 2008-02-11 Robert Millan <rmh@aybabtu.com>
31524
31525 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
31526 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
31527 comparing it with -1, not 0.
31528
31529 2008-02-10 Robert Millan <rmh@aybabtu.com>
31530
31531 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
31532 `disk/lvm.c'.
31533 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31534 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
31535
31536 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
31537 `disk/lvm.c' to the end of the list.
31538 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
31539 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
31540
31541 2008-02-10 Robert Millan <rmh@aybabtu.com>
31542
31543 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
31544 grub_print_error() instead. This will let user know why we're entering
31545 rescue mode.
31546 Based on suggestions from Sam Morris.
31547
31548 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
31549
31550 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
31551 on remaining N args, instead of "--" arg N times.
31552
31553 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
31554
31555 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
31556 (fill_with_default_glyph): Changed to use unknown_glyph for fill
31557 pattern for unknown glyphs.
31558
31559 2008-02-09 Robert Millan <rmh@aybabtu.com>
31560
31561 * configure.ac: Probe for `help2man'.
31562 * Makefile.in (builddir): New variable.
31563 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
31564 or otherwise add a few flags/options to it.
31565 (install-local): For every executable utility or script that is
31566 installed, invoke $(HELP2MAN) to install a manpage based on --help
31567 output.
31568
31569 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
31570 that it doesn't prevent --help from working in build tree.
31571
31572 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
31573 with `bug-grub@gnu.org'.
31574 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
31575 * util/update-grub.in (usage): New function.
31576 Implement proper argument check, with support for --help and --version
31577 (as well as existing -y).
31578
31579 2008-02-09 Christian Franke <franke@computer.org>
31580
31581 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
31582 avoid overwriting previous output.
31583 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
31584
31585 2008-02-09 Robert Millan <rmh@aybabtu.com>
31586
31587 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
31588 drawing the menu.
31589
31590 2008-02-09 Robert Millan <rmh@aybabtu.com>
31591
31592 * commands/sleep.c: New file.
31593 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
31594 (sleep_mod_SOURCES): New variable.
31595 (sleep_mod_CFLAGS): Likewise.
31596 (sleep_mod_LDFLAGS): Likewise.
31597
31598 2008-02-09 Robert Millan <rmh@aybabtu.com>
31599
31600 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
31601 situations in which we can deduce the RAID size and the superblock
31602 doesn't match it.
31603
31604 2008-02-09 Robert Millan <rmh@aybabtu.com>
31605
31606 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
31607 and return a grub_diskmemberlist_t composed of LVM physical volumes.
31608 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
31609
31610 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
31611 and return a grub_diskmemberlist_t composed of physical array members.
31612 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
31613
31614 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
31615 prototype.
31616 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
31617 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
31618 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
31619
31620 * util/grub-probe.c (probe): Move partmap probing code from here ...
31621 (probe_partmap): ... to here.
31622 (probe): Use probe_partmap() once for the disk we're probing, and
31623 additionally, when such disk contains a memberlist() struct member,
31624 once for each disk that is contained in the structure returned by
31625 memberlist().
31626
31627 2008-02-09 Robert Millan <rmh@aybabtu.com>
31628
31629 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
31630 environment variable to 'all' in order to obtain debug output from
31631 non-util/ code.
31632 * util/i386/pc/grub-setup.c (main): Likewise.
31633
31634 2008-02-08 Robert Millan <rmh@aybabtu.com>
31635
31636 * disk/raid.c (grub_raid_scan_device): Check for
31637 `array->device[sb.this_disk.number]' rather than for
31638 `array->device[sb.this_disk.number]->name', since the latter is not
31639 guaranteed to be accessible.
31640
31641 2008-02-08 Robert Millan <rmh@aybabtu.com>
31642
31643 * disk/raid.c: Update copyright.
31644 * fs/cpio.c: Likewise.
31645 * include/grub/raid.h: Likewise.
31646 * loader/i386/pc/multiboot.c: Likewise.
31647 * util/hostfs.c: Likewise.
31648
31649 2008-02-08 Robert Millan <rmh@aybabtu.com>
31650
31651 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
31652 to a grub_disk_t array.
31653 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
31654 `device[x]'.
31655 (grub_raid_scan_device): Replace `device[x].name' accesses with
31656 `device[x]->name'. Simplify initialization of `array->device[x]'.
31657
31658 2008-02-08 Robert Millan <rmh@aybabtu.com>
31659
31660 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
31661 grub_dprintf() calls.
31662 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
31663 error message.
31664
31665 2008-02-07 Christian Franke <franke@computer.org>
31666
31667 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
31668 instead of fseek and ftell to support large files.
31669 (grub_hostfs_read): Likewise.
31670
31671 2008-02-07 Robert Millan <rmh@aybabtu.com>
31672
31673 Patch from Jeroen Dekkers.
31674 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
31675 failure, since successfully reading all array members might not be
31676 required.
31677
31678 2008-02-06 Robert Millan <rmh@aybabtu.com>
31679
31680 * util/grub-probe.c (probe): Simplify partmap probing (with the
31681 assumption that the first word up to the underscore equals to
31682 the module name).
31683
31684 2008-02-06 Christian Franke <franke@computer.org>
31685
31686 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
31687 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
31688 last block of a cpio or tar stream.
31689 Check for "TRAILER!!!" instead of any empty data
31690 block to detect last block of a cpio stream.
31691 (grub_cpio_dir): Fix constness of variable np.
31692 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
31693 cpio or tar trailer is detected. This fixes a crash
31694 on open of a non existing file.
31695
31696 2008-02-05 Bean <bean123ch@gmail.com>
31697
31698 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
31699 address of entry.
31700 (grub_multiboot_load_elf64): Likewise.
31701 (grub_multiboot): Initialize mbi structure.
31702
31703 * util/grub-fstest.c: Don't include unused header file script.h.
31704
31705 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
31706 of file.
31707 (grub_fstest_SOURCES): Likewise.
31708
31709 2008-02-05 Robert Millan <rmh@aybabtu.com>
31710
31711 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
31712 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
31713 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
31714 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
31715
31716 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
31717 (translation_table): Replace hardcoded values with macros
31718 provided by `<grub/term.h>'.
31719
31720 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
31721 (keyboard_map): Correct/add a few values, with macros provided
31722 by `<grub/term.h>'.
31723 (keyboard_map_shift): Zero values that don't differ from their
31724 `keyboard_map' equivalents.
31725 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
31726 Discard the second scan code that is always sent by Caps lock.
31727 Only use `keyboard_map_shift' when it provides a non-zero value,
31728 otherwise fallback to `keyboard_map'.
31729
31730 2008-02-04 Bean <bean123ch@gmail.com>
31731
31732 * Makefile.in (enable_grub_fstest): New variable.
31733
31734 * conf/common.rmk (grub_fstest_init.lst): New rule.
31735 (grub_fstest_init.h): Likewise.
31736 (grub_fstest_init.c): Likewise.
31737 (util/grub-fstest.c_DEPENDENCIES): New variable.
31738 (grub_fstest_SOURCES): Likewise.
31739
31740 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
31741
31742 * util/grub-fstest.c: New file.
31743
31744 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
31745
31746 Make grub-setup handle a separate root device.
31747
31748 * util/i386/pc/grub-setup.c (setup): Always open the root device,
31749 so that the root device can be compared with the destination
31750 device.
31751 When embedding the core image, if the root and destination devices
31752 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
31753 0xFF.
31754 When not embedding, set ROOT_DRIVE to 0xFF.
31755
31756 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
31757
31758 Add support for having a grub directory in a different drive. This
31759 is still only the data handling part.
31760
31761 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
31762 (codestart): Save %dh in GRUB_ROOT_DRIVE.
31763 (grub_root_drive): New variable.
31764
31765 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
31766 instead of GRUB_BOOT_DRIVE to construct a device name. Set
31767 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
31768 as it was.
31769
31770 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
31771
31772 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
31773 macro.
31774 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
31775
31776 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
31777 is bogus, because PXE booting does not specify any drive
31778 correctly.
31779
31780 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
31781 am not sure if this is really correct.
31782
31783 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
31784 is always identical to the boot drive when booting from a CD.
31785
31786 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
31787 longer.
31788 (root_drive): New variable.
31789 (real_start): Unconditionally set %dh to ROOT_DRIVE.
31790 (setup_sectors): Push %dx right after popping it, because %dh will
31791 be modified later.
31792 (copy_buffer): Restore %dx.
31793
31794 2008-02-03 Robert Millan <rmh@aybabtu.com>
31795
31796 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
31797 use `cdboot.img' for cdrom images.
31798
31799 2008-02-03 Robert Millan <rmh@aybabtu.com>
31800
31801 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
31802 only setup gfxterm when `font' command has succeeded.
31803
31804 2008-02-03 Robert Millan <rmh@aybabtu.com>
31805
31806 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
31807 (grub_rescue_cmd_multiboot_loader)
31808 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
31809
31810 2008-02-03 Pavel Roskin <proski@gnu.org>
31811
31812 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
31813 %edx and %esi from stack only after grub_gate_a20() is called.
31814 grub_gate_a20() clobbers %edx.
31815
31816 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
31817
31818 * configure.ac (AC_INIT): Bumped to 1.96.
31819
31820 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
31821 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
31822 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
31823 video/readers/png.c.
31824
31825 2008-02-03 Bean <bean123ch@gmail.com>
31826
31827 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
31828 (cdboot_img_SOURCES): New variable.
31829 (cdboot_img_ASFLAGS): New variable.
31830 (cdboot_img_LDFLAGS): New variable.
31831
31832 * boot/i386/pc/cdboot.S: New file.
31833
31834 * disk/i386/pc/biosdisk.c (cd_start): New variable.
31835 (cd_count): Likewise.
31836 (grub_biosdisk_get_drive): Add support for cd device.
31837 (grub_biosdisk_call_hook): Likewise.
31838 (grub_biosdisk_iterate): Likewise.
31839 (grub_biosdisk_open): Likewise.
31840 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
31841 (grub_biosdisk_rw): Support reading from cd device.
31842 (GRUB_MOD_INIT): Iterate cd devices.
31843
31844 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
31845 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
31846 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
31847
31848 * kern/i386/pc/init.c (make_install_device): Check for cd device.
31849
31850 2008-02-02 Robert Millan <rmh@aybabtu.com>
31851
31852 * commands/read.c: New file.
31853 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
31854 (read_mod_SOURCES): New variable.
31855 (read_mod_CFLAGS): Likewise.
31856 (read_mod_LDFLAGS): Likewise.
31857
31858 2008-02-02 Robert Millan <rmh@aybabtu.com>
31859
31860 * normal/main.c (grub_normal_execute): Check for `menu->size' when
31861 determining whether menu has to be displayed.
31862
31863 2008-02-02 Marco Gerards <marco@gnu.org>
31864
31865 * bus/pci.c: New file.
31866
31867 * include/grub/pci.h: Likewise.
31868
31869 * include/grub/i386/pc/pci.h: Likewise.
31870
31871 * commands/lspci.c: Likewise.
31872
31873 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
31874 `lspci.mod'.
31875 (pci_mod_SOURCES): New variable.
31876 (pci_mod_CFLAGS): Likewise.
31877 (pci_mod_LDFLAGS): Likewise.
31878 (lspci_mod_SOURCES): Likewise.
31879 (lspci_mod_CFLAGS): Likewise.
31880 (lspci_mod_LDFLAGS): Likewise.
31881
31882 2008-02-02 Bean <bean123ch@gmail.com>
31883
31884 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
31885 (grub_ufs_get_file_block): Fix indirect block calculation problem.
31886
31887 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
31888 (grub_xfs_btree_node): New structure.
31889 (grub_xfs_btree_root): New structure.
31890 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
31891 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
31892 (GRUB_XFS_EXTENT_BLOCK): Likewise.
31893 (GRUB_XFS_EXTENT_SIZE): Likewise.
31894 (grub_xfs_read_block): Support btree format type.
31895 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
31896 Use directory block as basic unit.
31897
31898 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
31899
31900 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
31901 __attribute__ ((__regparm__ (1))).
31902
31903 2008-02-01 Robert Millan <rmh@aybabtu.com>
31904
31905 Correct a mistake in previous commit.
31906
31907 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
31908 top.
31909 (normal/command.c_DEPENDENCIES): New variable.
31910
31911 2008-02-01 Robert Millan <rmh@aybabtu.com>
31912
31913 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
31914 top.
31915 (normal/command.c_DEPENDENCIES): New variable.
31916 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
31917 * conf/i386-ieee1275.rmk: Likewise.
31918 * conf/i386-linuxbios.rmk: Likewise.
31919 * conf/i386-pc.rmk: Likewise.
31920 * conf/sparc64-ieee1275.rmk: Likewise.
31921 * conf/powerpc-ieee1275.rmk: Likewise.
31922 (grub_emu_SOURCES): Add `fs/fshelp.c'.
31923
31924 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
31925
31926 2008-02-01 Robert Millan <rmh@aybabtu.com>
31927
31928 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
31929 call at beginning of function.
31930
31931 2008-01-31 Pavel Roskin <proski@gnu.org>
31932
31933 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
31934 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
31935 (grub_mkrescue_SOURCES): Likewise.
31936 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
31937
31938 2008-01-30 Robert Millan <rmh@aybabtu.com>
31939
31940 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
31941 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
31942 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
31943 (grub_probe_SOURCES): ... to here.
31944
31945 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
31946 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
31947 * conf/i386-ieee1275.rmk: Likewise.
31948 * conf/i386-linuxbios.rmk: Likewise.
31949 * conf/powerpc-ieee1275.rmk: Likewise.
31950
31951 2008-01-30 Tristan Gingold <gingold@free.fr>
31952
31953 * kern/rescue.c: Silently accept empty lines.
31954
31955 2008-01-29 Bean <bean123ch@gmail.com>
31956
31957 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
31958 (real_code_2): Code cleanup and change comment style.
31959 (move_memory): Avoid using 32-bit address mode.
31960
31961 2008-01-29 Bean <bean123ch@gmail.com>
31962
31963 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
31964 (png_mod_SOURCES): New variable.
31965 (png_mod_CFLAGS): Likewise.
31966 (png_mod_LDFLAGS): Likewise.
31967
31968 * video/readers/png.c: New file.
31969
31970 2008-01-28 Robert Millan <rmh@aybabtu.com>
31971
31972 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
31973 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
31974 `ifndef GRUB_MOD_GAP' hack.
31975 * util/elf/grub-mkimage.c (add_segments): Likewise.
31976
31977 2008-01-27 Robert Millan <rmh@aybabtu.com>
31978
31979 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
31980 `GRUB_MOD_GAP' for platforms in which it's not defined.
31981 * util/elf/grub-mkimage.c (add_segments): Likewise.
31982
31983 2008-01-27 Robert Millan <rmh@aybabtu.com>
31984
31985 Get grub-emu to build again (including parallel builds).
31986
31987 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
31988 Split into ...
31989 (util/grub-emu.c_DEPENDENCIES): ... this, ...
31990 (normal/execute.c_DEPENDENCIES): ... this, ...
31991 (grub-emu_DEPENDENCIES): ... and this.
31992
31993 * conf/i386-efi.rmk: Likewise.
31994 * conf/i386-linuxbios.rmk: Likewise.
31995 * conf/i386-ieee1275.rmk: Likewise.
31996 * conf/powerpc-ieee1275.rmk: Likewise.
31997 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
31998
31999 2008-01-27 Robert Millan <rmh@aybabtu.com>
32000
32001 * NEWS: Add a few items.
32002
32003 2008-01-27 Robert Millan <rmh@aybabtu.com>
32004
32005 Fix parallel builds with grub-emu. Based on earlier commit for
32006 grub-probe and grub-setup.
32007
32008 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
32009 (util/grub-emu.c_DEPENDENCIES): ... this.
32010 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
32011 (util/grub-emu.c_DEPENDENCIES): ... this.
32012 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
32013 (util/grub-emu.c_DEPENDENCIES): ... this.
32014 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
32015 (util/grub-emu.c_DEPENDENCIES): ... this.
32016 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
32017 (util/grub-emu.c_DEPENDENCIES): ... this.
32018
32019 2008-01-27 Pavel Roskin <proski@gnu.org>
32020
32021 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
32022 to create a gap between _end and the modules added to the image
32023 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
32024 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
32025 * util/elf/grub-mkimage.c (add_segments): Likewise.
32026
32027 2008-01-26 Pavel Roskin <proski@gnu.org>
32028
32029 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
32030 just return an error.
32031
32032 2008-01-26 Bean <bean123ch@gmail.com>
32033
32034 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
32035 (grub_reiserfs_get_item): Save offset of the next item.
32036 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
32037
32038 2008-01-25 Robert Millan <rmh@aybabtu.com>
32039
32040 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
32041 make all filesystem sources appear together (possibly fixing omissions
32042 while at it).
32043 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
32044 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32045 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
32046 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32047
32048 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
32049 add `kern/file.c'.
32050 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
32051 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
32052 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
32053 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
32054
32055 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
32056 (probe): Add a sanity check to make sure of our ability to read
32057 requested files when probing for filesystem type.
32058
32059 * genmk.rb: Update copyright year (2007).
32060
32061 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
32062 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
32063 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
32064 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
32065 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
32066 : Remove function prototypes.
32067
32068 2008-01-25 Robert Millan <rmh@aybabtu.com>
32069
32070 Revert my previous commits (based on wrong assumption of how grub_errno
32071 works).
32072
32073 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
32074 * kern/file.c (grub_file_open): Likewise.
32075
32076 2008-01-24 Pavel Roskin <proski@gnu.org>
32077
32078 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
32079 that hang if GRUB tries to setup colors.
32080 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
32081 colors for firmwares that don't support it.
32082 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
32083 Recognize Open Hack'Ware, set flags to work around its
32084 limitations.
32085
32086 2008-01-24 Robert Millan <rmh@aybabtu.com>
32087
32088 * kern/file.c (grub_file_open): Do not account previous failures of
32089 unrelated functions when grub_errno is checked for.
32090 Reported by Oleg Strikov.
32091
32092 2008-01-24 Bean <bean123ch@gmail.com>
32093
32094 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
32095 (grub_ufs_sblock): New member volume name.
32096 (grub_ufs_find_file): Fix string copy bug.
32097 (grub_ufs_label): Implement this function properly.
32098
32099 * fs/hfs.c (grub_hfs_cnid_type): New enum.
32100 (grub_hfs_iterate_records): Use the correct file number for extents
32101 and catalog file. Fix problem in next index calculation.
32102 (grub_hfs_find_node): Replace recursive function call with loop.
32103 (grub_hfs_iterate_dir): Replace recursive function call with loop.
32104
32105 2008-01-23 Robert Millan <rmh@aybabtu.com>
32106
32107 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
32108 `<grub/symbol.h>' and `<grub/multiboot.h>'.
32109 (grub_multiboot2_real_boot): New function prototype.
32110
32111 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
32112 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
32113
32114 * kern/i386/ieee1275/init.c (grub_os_area_addr)
32115 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
32116
32117 2008-01-23 Robert Millan <rmh@aybabtu.com>
32118
32119 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
32120 #ifdef'ed out grub_printf().
32121
32122 2008-01-23 Robert Millan <rmh@aybabtu.com>
32123
32124 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
32125 grub_dprintf calls, since they make "debug=all" mode unusable.
32126 (grub_console_checkkey): Likewise.
32127
32128 2008-01-23 Robert Millan <rmh@aybabtu.com>
32129
32130 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
32131 `term/i386/pc/at_keyboard.c'.
32132 (pkglib_MODULES): Add `serial.mod'.
32133 (serial_mod_SOURCES): New variable.
32134 (serial_mod_CFLAGS): Likewise.
32135 (serial_mod_LDFLAGS): Likewise.
32136
32137 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
32138 `<grub/powerpc/ieee1275/console.h>'.
32139 (grub_keyboard_controller_init): New function prototype.
32140 (grub_console_checkkey): Likewise.
32141 (grub_console_getkey): Likewise.
32142
32143 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
32144 keyboard on i386.
32145
32146 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
32147 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
32148
32149 2008-01-23 Robert Millan <rmh@aybabtu.com>
32150
32151 * kern/i386/pc/init.c (make_install_device): When memdisk image is
32152 present, "(memdisk)/boot/grub" becomes the default prefix.
32153
32154 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
32155 a memdisk tarball with all the modules. Add --overlay=DIR option that
32156 allows users to overlay additional files into the image.
32157
32158 2008-01-23 Robert Millan <rmh@aybabtu.com>
32159
32160 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
32161 and `machine/memory.h'.
32162 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
32163 (_multiboot_mod_SOURCES): New variable.
32164 (_multiboot_mod_CFLAGS): Likewise.
32165 (_multiboot_mod_LDFLAGS): Likewise.
32166 (multiboot_mod_SOURCES): Likewise.
32167 (multiboot_mod_CFLAGS): Likewise.
32168 (multiboot_mod_LDFLAGS): Likewise.
32169
32170 * include/grub/i386/ieee1275/loader.h: New file.
32171
32172 * include/grub/i386/ieee1275/machine.h: Likewise.
32173
32174 * include/grub/i386/ieee1275/memory.h: Likewise.
32175
32176 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
32177 variable declaration.
32178 (grub_os_area_size): Likewise.
32179
32180 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
32181 (grub_lower_mem, grub_upper_mem): New variables.
32182 (grub_stop_floppy): New function (just to make
32183 grub_multiboot2_real_boot() happy).
32184
32185 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
32186 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
32187 (grub_stop): New function.
32188 Include `"../realmode.S"' and `"../loader.S"'.
32189
32190 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
32191 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
32192
32193 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
32194 rely on grub_multiboot2_real_boot() for final boot.
32195
32196 2008-01-22 Robert Millan <rmh@aybabtu.com>
32197
32198 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
32199 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
32200 device that doesn't look like an SD card.
32201 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
32202 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
32203 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
32204 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
32205 found.
32206
32207 2008-01-22 Robert Millan <rmh@aybabtu.com>
32208
32209 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
32210 avoid claiming over our own code.
32211
32212 2008-01-22 Bean <bean123ch@gmail.com>
32213
32214 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
32215 (jpeg_mod_SOURCES): New variable.
32216 (jpeg_mod_CFLAGS): Likewise.
32217 (jpeg_mod_LDFLAGS): Likewise.
32218
32219 * video/readers/jpeg.c : New file.
32220
32221 2008-01-22 Bean <bean123ch@gmail.com>
32222
32223 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
32224 there are no more items.
32225
32226 2008-01-21 Robert Millan <rmh@aybabtu.com>
32227
32228 * kern/mm.c (grub_mm_init_region): Improve debug message.
32229
32230 2008-01-21 Robert Millan <rmh@aybabtu.com>
32231
32232 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
32233 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
32234 address.
32235 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
32236 a C macro.
32237 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
32238 Indicates start of upper memory.
32239 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
32240 (generate_image): Abort when image size is big enough to corrupt
32241 upper memory.
32242
32243 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
32244 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
32245 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
32246 instead of hardcoding 0xA0000.
32247 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
32248 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
32249 instead of hardcoding 0xA0000.
32250
32251 2008-01-21 Robert Millan <rmh@aybabtu.com>
32252
32253 * disk/memdisk.c (memdisk_size): New variable.
32254 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
32255 `memdisk_size'.
32256 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
32257 image to dynamic memory.
32258 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
32259 `memdisk_size'. Free memdisk block.
32260
32261 2008-01-21 Robert Millan <rmh@aybabtu.com>
32262
32263 Fix detection of very small filesystems (like tar).
32264
32265 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
32266 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
32267 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
32268 a problem with this disk).
32269
32270 2008-01-21 Robert Millan <rmh@aybabtu.com>
32271
32272 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
32273 on grub_biosdisk_rw_standard() error.
32274
32275 2008-01-21 Robert Millan <rmh@aybabtu.com>
32276
32277 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
32278 recent changes.
32279 * kern/elf.c: Likewise.
32280 * kern/ieee1275/ieee1275.c: Likewise.
32281 * kern/powerpc/ieee1275/openfw.c: Likewise.
32282 * term/ieee1275/ofconsole.c: Likewise.
32283
32284 2008-01-21 Robert Millan <rmh@aybabtu.com>
32285
32286 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
32287
32288 * include/grub/kernel.h (grub_arch_memdisk_addr)
32289 (grub_arch_memdisk_size): Moved from here ...
32290
32291 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
32292 (grub_arch_memdisk_size): ... to here.
32293
32294 2008-01-21 Robert Millan <rmh@aybabtu.com>
32295
32296 Mostly based on bugfix from Bean.
32297
32298 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
32299 attribute with hook() parameter.
32300 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
32301 declaration.
32302 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
32303 attribute with hook() parameter.
32304 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
32305 declaration.
32306
32307 2008-01-21 Robert Millan <rmh@aybabtu.com>
32308
32309 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
32310 (pkglib_MODULES): Add `memdisk.mod'.
32311 (memdisk_mod_SOURCES): New variable.
32312 (memdisk_mod_CFLAGS): Likewise.
32313 (memdisk_mod_LDFLAGS): Likewise.
32314
32315 * disk/memdisk.c: New file.
32316
32317 * include/grub/disk.h (grub_disk_dev_id): Add
32318 `GRUB_DISK_DEVICE_MEMDISK_ID'.
32319
32320 * include/grub/i386/pc/kernel.h
32321 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
32322 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
32323 (grub_kernel_image_size): New variable declaration.
32324 (grub_total_module_size): Likewise.
32325 (grub_memdisk_image_size): Likewise.
32326
32327 * include/grub/i386/pc/memory.h
32328 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
32329
32330 * include/grub/kernel.h: Include `<grub/symbol.h>'.
32331 (grub_arch_memdisk_addr): New variable declaration.
32332 (grub_arch_memdisk_size): Likewise.
32333
32334 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
32335 (grub_arch_memdisk_size): Likewise.
32336
32337 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
32338 (codestart): Replace hardcoded `0x100000' with
32339 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
32340
32341 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
32342 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
32343 not NULL, append the contents of the file it refers to, at the end of
32344 the compressed kernel image. Initialize `grub_memdisk_image_size'
32345 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
32346 (options): Add "memdisk"|'m' option.
32347 (main): Parse --memdisk|-m option, and pass user-provided path as
32348 parameter to generate_image().
32349
32350 2008-01-20 Robert Millan <rmh@aybabtu.com>
32351
32352 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
32353 grub_dprintf() calls from here ...
32354 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
32355
32356 2008-01-20 Robert Millan <rmh@aybabtu.com>
32357
32358 Fix detection of "real mode" when /options/real-mode? doesn't exist.
32359
32360 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
32361 declaration.
32362 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
32363 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
32364 `GRUB_IEEE1275_FLAG_REAL_MODE'.
32365 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
32366 property).
32367 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
32368 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
32369
32370 2008-01-19 Robert Millan <rmh@aybabtu.com>
32371
32372 Get rid of confusing function (superseded by
32373 `grub_ieee1275_get_integer_property')
32374 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
32375 prototype.
32376 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
32377 function.
32378 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
32379 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
32380 in native endianness from grub_ieee1275_get_integer_property().
32381
32382 2008-01-19 Robert Millan <rmh@aybabtu.com>
32383
32384 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
32385 command after "shut-down", since implementations differ on which
32386 the command for halt is.
32387
32388 2008-01-19 Robert Millan <rmh@aybabtu.com>
32389
32390 * include/grub/i386/linuxbios/console.h: Add header protection.
32391 (grub_keyboard_controller_init): New function prototype.
32392 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
32393 (KEYBOARD_COMMAND_READ): Likewise.
32394 (KEYBOARD_COMMAND_WRITE): Likewise.
32395 (KEYBOARD_SCANCODE_SET1): Likewise.
32396 (grub_keyboard_controller_write): New function.
32397 (grub_keyboard_controller_read): Likewise.
32398 (grub_keyboard_controller_init): Likewise.
32399
32400 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
32401 (grub_console_init): On coreboot/LinuxBIOS, call
32402 grub_keyboard_controller_init().
32403
32404 2008-01-19 Robert Millan <rmh@aybabtu.com>
32405
32406 PowerPC changes provided by Pavel Roskin.
32407
32408 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
32409 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
32410 don't rely on cmain() doing it.
32411 * kern/i386/ieee1275/startup.S (_start): Store %eax in
32412 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
32413
32414 2008-01-16 Robert Millan <rmh@aybabtu.com>
32415
32416 * include/grub/i386/linuxbios/memory.h
32417 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
32418 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
32419 receive `table_header' as argument. Instead, probe for it in the
32420 known memory ranges where it can be present.
32421 (grub_available_iterate): Do not pass a fixed `table_header' address
32422 to grub_linuxbios_table_iterate().
32423
32424 2008-01-15 Robert Millan <rmh@aybabtu.com>
32425
32426 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
32427 * conf/i386-ieee1275.rmk: New file.
32428 * include/grub/i386/ieee1275/console.h: Likewise.
32429 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
32430 * include/grub/i386/ieee1275/kernel.h: Likewise.
32431 * include/grub/i386/ieee1275/time.h: Likewise.
32432 * kern/i386/ieee1275/init.c: Likewise.
32433 * kern/i386/ieee1275/startup.S: Likewise.
32434
32435 2008-01-15 Robert Millan <rmh@aybabtu.com>
32436
32437 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
32438 when pointers are 32-bit (but still do set it to one when they are
32439 64-bit).
32440
32441 2008-01-15 Robert Millan <rmh@aybabtu.com>
32442
32443 * include/grub/ieee1275/ieee1275.h
32444 (grub_ieee1275_get_integer_property): New function prototype.
32445
32446 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
32447 (grub_ieee1275_get_integer_property): New function. Wraps around
32448 grub_ieee1275_get_property() to handle endianness.
32449
32450 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
32451 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
32452 where appropriate.
32453 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
32454 (grub_map): Likewise.
32455 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
32456
32457 2008-01-15 Bean <bean123ch@gmail.com>
32458
32459 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
32460 (grub_script_execute_cmdline): Reset grub_errno.
32461
32462 * normal/main.c (read_config_file): Reset grub_errno.
32463
32464 * normal/parse.y (script_init): New.
32465 (script): Move function and menuentry here.
32466 (delimiter): New.
32467 (command): Add delimiter at the end of command.
32468 (commands): Adjust to match the new command.
32469 (commandblock): Remove grub_script_lexer_record_start.
32470 (menuentry): Add grub_script_lexer_record_start, use the new commands.
32471 (if): Use the new commands.
32472
32473 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
32474
32475 2008-01-15 Robert Millan <rmh@aybabtu.com>
32476
32477 * normal/menu.c (run_menu): Move timeout message from here ...
32478 (print_timeout): ... to here.
32479 (run_menu): Use print_timeout() once during initial draw to print
32480 the whole message, and again in every clock tick to update only
32481 the number of seconds.
32482
32483 2008-01-15 Robert Millan <rmh@aybabtu.com>
32484
32485 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
32486 actual size of `available' from grub_ieee1275_get_property(), and
32487 restrict parsing to that bound.
32488
32489 2008-01-15 Christian Franke <franke@computer.org>
32490
32491 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
32492 (argp_program_version): Remove variable.
32493 (argp_program_bug_address): Likewise.
32494 (options): Convert from struct argp_option to struct option.
32495 (struct arguments): Remove.
32496 (parse_opt): Remove.
32497 (usage): New function.
32498 (main): Replace struct args members by simple variables.
32499 Replace argp_parse() by getopt_long().
32500 Add switch to evaluate options.
32501 Add missing "(...)" around root_dev in prefix string.
32502
32503 2008-01-14 Robert Millan <rmh@aybabtu.com>
32504
32505 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
32506 for grub_ieee1275_exit(), in order to improve portability.
32507
32508 2008-01-14 Robert Millan <rmh@aybabtu.com>
32509
32510 * util/grub.d/10_linux.in (prefix): Define.
32511 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
32512
32513 2008-01-13 Pavel Roskin <proski@gnu.org>
32514
32515 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
32516 grub_errno if no errors have been detected.
32517
32518 2008-01-12 Robert Millan <rmh@aybabtu.com>
32519
32520 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
32521 (grub_util_get_dev_abstraction): New function prototype.
32522
32523 * util/getroot.c: Include `<grub/util/getroot.h>'
32524 (grub_util_get_grub_dev): Move detection of abstraction type to ...
32525 (grub_util_get_dev_abstraction): ... here (new function).
32526
32527 * util/grub-probe.c: Convert PRINT_* to an enum. Add
32528 `PRINT_ABSTRACTION'.
32529 (probe): Probe for abstraction type when requested.
32530 (main): Understand `--target=abstraction'.
32531
32532 * util/i386/efi/grub-install.in: Add abstraction module to core
32533 image when it is found to be necessary.
32534 * util/i386/pc/grub-install.in: Likewise.
32535 * util/powerpc/ieee1275/grub-install.in: Likewise.
32536
32537 * util/update-grub_lib.in (font_path): Return system path without
32538 converting to GRUB path.
32539 * util/update-grub.in: Convert system path returned by font_path()
32540 to a GRUB path. Use `grub-probe -t abstraction' to determine what
32541 abstraction module is needed for loading fonts (if any). Export
32542 that as `GRUB_PRELOAD_MODULES'.
32543 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
32544 insmod commands).
32545
32546 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
32547
32548 Remove some unused code from reiserfs.
32549
32550 * fs/reiserfs.c (struct grub_reiserfs_key)
32551 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
32552 (struct grub_reiserfs_node_body): Removed.
32553 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
32554 Likewise.
32555 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
32556 Likewise.
32557 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
32558 Likewise.
32559 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
32560 Likewise.
32561 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
32562 Likewise.
32563 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
32564 Likewise.
32565 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
32566 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
32567 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
32568
32569 2008-01-10 Robert Millan <rmh@aybabtu.com>
32570
32571 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
32572 Determines if a file is garbage left by packaging systems, etc.
32573 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
32574 for processing /etc/grub.d scripts.
32575 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
32576 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
32577 as a condition for processing Linux images.
32578
32579 2008-01-10 Pavel Roskin <proski@gnu.org>
32580
32581 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
32582 to compile reiserfs.c on PowerPC.
32583
32584 2008-01-10 Robert Millan <rmh@aybabtu.com>
32585
32586 * kern/device.c (grub_device_iterate): Do not abort device iteration
32587 when one of the devices cannot be opened.
32588 * kern/disk.c (grub_disk_open): Do not account previous failures of
32589 unrelated functions when grub_errno is checked for.
32590
32591 2008-01-08 Robert Millan <rmh@aybabtu.com>
32592
32593 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
32594 `! grub_linux_is_bzimage', change order of address comparison to make
32595 it more intuitive, and improve "too big zImage" error message.
32596
32597 2008-01-08 Robert Millan <rmh@aybabtu.com>
32598
32599 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
32600 `$(update-grub_DATA)'.
32601 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
32602 targets.
32603
32604 2008-01-07 Robert Millan <rmh@aybabtu.com>
32605
32606 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
32607 which instruction is modified by grub-setup during installation
32608 (since it wasn't obvious by only looking at this file).
32609
32610 2008-01-07 Robert Millan <rmh@aybabtu.com>
32611
32612 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
32613 listing actual TODO items.
32614
32615 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
32616
32617 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
32618 correctly.
32619 (grub_reiserfs_get_key_offset): Likewise.
32620 (grub_reiserfs_set_key_offset): Likewise.
32621 (grub_reiserfs_set_key_type): Likewise.
32622 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
32623
32624 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
32625 better to remove the bitfield version completely.
32626
32627 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
32628
32629 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
32630 allocated from the heap, due to the fshelp implementation.
32631 (grub_reiserfs_dir): Free NODE, due to the same reason.
32632
32633 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
32634
32635 Mostly from Vincent Pelletier:
32636
32637 * fs/reiserfs.c: New file.
32638
32639 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
32640 (reiserfs_mod_SOURCES): New variable.
32641 (reiserfs_mod_CFLAGS): Likewise.
32642 (reiserfs_mod_LDFLAGS): Likewise.
32643
32644 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
32645 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
32646 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
32647 normal/color.c.
32648
32649 2008-01-06 Robert Millan <rmh@aybabtu.com>
32650
32651 * normal/color.c: Remove `<grub/env.h>'.
32652
32653 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
32654
32655 * include/grub/normal.h: Include <grub/env.h>.
32656
32657 2008-01-05 Robert Millan <rmh@aybabtu.com>
32658
32659 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
32660 usage example with `(hd0,1)'.
32661 Reported by Samuel Thibault.
32662
32663 2008-01-05 Robert Millan <rmh@aybabtu.com>
32664
32665 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
32666 (grub_linux_boot_zimage): Rename to ...
32667 (grub_linux_boot): ... this.
32668 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
32669 (grub_linux_boot_zimage): Conditionalize zImage copy.
32670
32671 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
32672 (grub_linux_boot_bzimage): Remove prototype.
32673 (grub_linux_boot_zimage): Rename to ...
32674 (grub_linux_boot): ... this.
32675
32676 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
32677 (grub_linux_boot): Remove function.
32678
32679 2008-01-05 Robert Millan <rmh@aybabtu.com>
32680
32681 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
32682 (grub_env_write_color_highlight): Likewise.
32683 (grub_wait_after_message): Likewise.
32684
32685 * normal/color.c: New file.
32686
32687 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
32688 (normal_mod_DEPENDENCIES): Likewise.
32689
32690 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
32691 (normal_mod_DEPENDENCIES): Likewise.
32692
32693 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
32694 (normal_mod_DEPENDENCIES): Likewise.
32695
32696 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
32697 (normal_mod_DEPENDENCIES): Likewise.
32698
32699 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
32700 for waiting after a message is printed.
32701 * normal/main.c (read_config_file): Likewise.
32702 (grub_normal_init): Register grub_env_write_color_normal() and
32703 grub_env_write_color_highlight() hooks. Mark `color_normal' and
32704 `color_highlight' variables as global.
32705
32706 * normal/menu.c (grub_wait_after_message): New function.
32707 (grub_color_menu_normal): New variable. Replaces ...
32708 (GRUB_COLOR_MENU_NORMAL): ... this macro.
32709 (grub_color_menu_highlight): New variable. Replaces ...
32710 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
32711 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
32712 `GRUB_TERM_COLOR_STANDARD'.
32713 (print_message): Use `grub_setcolorstate' to reload colors. Rename
32714 `normal_code' and `highlight_code' to `old_color_normal' and
32715 `old_color_highlight', respectively.
32716 (grub_menu_init_page): Update colors when drawing the menu, based on
32717 `menu_color_normal' and `menu_color_highlight' variables.
32718 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
32719 a message is printed.
32720
32721 2008-01-05 Robert Millan <rmh@aybabtu.com>
32722
32723 * kern/env.c (grub_env_context_open): Propagate hooks for global
32724 variables to new context.
32725
32726 * kern/main.c (grub_set_root_dev): Export `root' variable.
32727
32728 2008-01-05 Robert Millan <rmh@aybabtu.com>
32729
32730 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
32731 discs unconditionally, since udev and others have options to provide
32732 them.
32733
32734 2008-01-05 Robert Millan <rmh@aybabtu.com>
32735
32736 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
32737
32738 2008-01-04 Christian Franke <franke@computer.org>
32739
32740 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
32741 of eisa_mmap.
32742
32743 2008-01-03 Pavel Roskin <proski@gnu.org>
32744
32745 * kern/i386/linuxbios/init.c: Put "void" to all function
32746 declarations with no arguments.
32747 * kern/powerpc/ieee1275/init.c: Likewise.
32748 * term/i386/pc/at_keyboard.c: Likewise.
32749 * term/i386/pc/vga_text.c: Likewise.
32750 * util/grub-mkdevicemap.c: Likewise.
32751
32752 2008-01-02 Robert Millan <rmh@aybabtu.com>
32753
32754 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
32755 message when loaded image is out of bounds.
32756 (grub_multiboot_load_elf64): Likewise.
32757
32758 2008-01-02 Pavel Roskin <proski@gnu.org>
32759
32760 * util/grub.d/10_linux.in: Try version without ".old" when
32761 looking for initrd. It's better to use initrd from the newer
32762 kernel of the same version than no initrd at all.
32763
32764 2008-01-01 Robert Millan <rmh@aybabtu.com>
32765
32766 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
32767
32768 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
32769
32770 * include/grub/video.h: Added grub_video_unmap_color and
32771 grub_video_get_active_render_target.
32772 (grub_video_adapter): Added unmap_color and get_active_render_target.
32773
32774 * video/video.c: Added grub_video_unmap_color and
32775 grub_video_get_active_render_target.
32776 (grub_video_get_info): Changed method to accept NULL pointer as an
32777 argument to allow detection of active video adapter.
32778
32779 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
32780 grub_video_vbe_unmap_color_int.
32781 Added grub_video_vbe_unmap_color and
32782 grub_video_vbe_get_active_render_target.
32783 (grub_video_vbe_adapter): Added unmap_color and
32784 get_active_render_target.
32785
32786 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
32787 with grub_video_vbe_unmap_color_int.
32788
32789 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
32790 (DEFAULT_NORMAL_COLOR): Likewise.
32791 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
32792 (DEFAULT_FG_COLOR): Removed.
32793 (DEFAULT_BG_COLOR): Likewise.
32794 (DEFAULT_CURSOR_COLOR): Changed value.
32795 (grub_virtual_screen): Added standard_color_setting,
32796 normal_color_setting, highlight_color_setting and term_color.
32797 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
32798 (bitmap_width): Added.
32799 (bitmap_height): Likewise.
32800 (bitmap): Likewise.
32801 (set_term_color): Likewise.
32802 (grub_virtual_screen_setup): Changed to use new terminal coloring
32803 settings.
32804 (grub_gfxterm_init): Added init for bitmap.
32805 (grub_gfxterm_fini): Added destroy for bitmap.
32806 (redraw_screen_rect): Updated to use background bitmap and new
32807 terminal coloring.
32808 (scroll_up): Added optimization for case when there is no bitmap.
32809 (grub_gfxterm_cls): Fixed to use correct background color.
32810 (grub_virtual_screen_setcolorstate): Changed to use new terminal
32811 coloring.
32812 (grub_virtual_screen_setcolor): Likewise.
32813 (grub_virtual_screen_getcolor): Added.
32814 (grub_gfxterm_background_image_cmd): Likewise.
32815 (grub_video_term): Added setcolor and getcolor.
32816 (MOD_INIT): Added registration of background_image command.
32817 (MOD_TERM): Added unregistration for background_image command.
32818
32819 2007-12-30 Pavel Roskin <proski@gnu.org>
32820
32821 * loader/multiboot_loader.c: Fix multiboot command
32822 unregistration. Fix all typos in the word "multiboot".
32823
32824 2007-12-29 Pavel Roskin <proski@gnu.org>
32825
32826 * util/grub.d/10_linux.in: Refactor search for initrd. Add
32827 support for initrd names used in Fedora.
32828
32829 2007-12-26 Bean <bean123ch@gmail.com>
32830
32831 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
32832 (cpio_mod_SOURCES): New variable.
32833 (cpio_mod_CFLAGS): Likewise.
32834 (cpio_mod_LDFLAGS): Likewise.
32835
32836 * fs/cpio.c: New file.
32837
32838 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
32839
32840 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
32841
32842 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
32843
32844 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32845
32846 2007-12-25 Robert Millan <rmh@aybabtu.com>
32847
32848 * include/grub/term.h (struct grub_term): Add `getcolor' function.
32849 (grub_getcolor): New function.
32850
32851 * kern/term.c (grub_getcolor): New function.
32852 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
32853 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
32854 (print_entry): Set normal and highlight colors to
32855 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
32856 respectively, before printing and restore them to old
32857 values afterwards.
32858 (grub_menu_init_page): Likewise. Fill an additional colored space
32859 that would otherwise be left blank.
32860
32861 * term/efi/console.c (grub_console_getcolor): New function.
32862 (struct grub_console_term.getcolor): New variable.
32863 * term/i386/pc/console.c (grub_console_getcolor): New function.
32864 (struct grub_console_term.getcolor): New variable.
32865 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
32866 (struct grub_console_term.getcolor): New variable.
32867
32868 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
32869 (struct grub_console_term.setcolor): Remove variable.
32870 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
32871 (struct grub_console_term.setcolor): Remove variable.
32872 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
32873 (struct grub_console_term.setcolor): Remove variable.
32874 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
32875 (struct grub_console_term.setcolor): Remove variable.
32876
32877 2007-12-25 Robert Millan <rmh@aybabtu.com>
32878
32879 * configure.ac: Search for possible unifont.hex locations, and
32880 define UNIFONT_HEX if found.
32881
32882 * Makefile.in (UNIFONT_HEX): Define variable.
32883 (DATA): Rename to ...
32884 (PKGLIB): ... this. Update all users.
32885 (PKGDATA): New variable.
32886 (pkgdata_IMAGES): Rename to ...
32887 (pkglib_IMAGES): ... this. Update all users.
32888 (pkgdata_MODULES): Rename to ...
32889 (pkglib_MODULES): ... this. Update all users.
32890 (pkgdata_PROGRAMS): Rename to ...
32891 (pkglib_PROGRAMS): ... this. Update all users.
32892 (pkgdata_DATA): Rename to ...
32893 (pkglib_DATA): ... this. Update all users.
32894 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
32895 (unicode.pff, ascii.pff): New rules.
32896 (all-local): Add `$(PKGDATA)' dependency.
32897 (install-local): Process `$(PKGDATA)'.
32898
32899 * util/update-grub_lib.in (font_path): Search for *.pff files in
32900 a few more locations, including `${pkgdata}'.
32901
32902 2007-12-23 Robert Millan <rmh@aybabtu.com>
32903
32904 Patch from Bean <bean123ch@gmail.com>:
32905 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
32906 `size'.
32907
32908 2007-12-21 Bean <bean123ch@gmail.com>
32909
32910 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
32911 (ntfscomp_mod_SOURCES): New variable.
32912 (ntfscomp_mod_CFLAGS): Likewise.
32913 (ntfscomp_mod_LDFLAGS): Likewise.
32914
32915 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
32916 (grub_probe_SOURCES): Likewise.
32917 (grub_emu_SOURCES): Likewise.
32918
32919 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
32920 (grub_emu_SOURCES): Likewise.
32921
32922 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
32923 (grub_emu_SOURCES): Likewise.
32924
32925 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
32926 (grub_emu_SOURCES): Likewise.
32927
32928 * fs/ntfs.c (grub_ntfscomp_func): New variable.
32929 (read_run_list): Renamed to grub_ntfs_read_run_list.
32930 (decomp_nextvcn): Moved to ntfscomp.c.
32931 (decomp_getch): Likewise.
32932 (decomp_get16): Likewise.
32933 (decomp_block): Likewise.
32934 (read_block): Likewise.
32935 (read_data): Partially moved to ntfscomp.c.
32936 (fixup): Change unsigned to grub_uint16_t.
32937 (read_mft): Change unsigned long to grub_uint32_t.
32938 (read_attr): Likewise.
32939 (read_data): Likewise.
32940 (read_run_data): Likewise.
32941 (read_run_list): Likewise.
32942 (read_mft): Likewise.
32943
32944 * fs/ntfscomp.c: New file.
32945
32946 * include/grub/ntfs.h: New file.
32947
32948 2007-12-16 Robert Millan <rmh@aybabtu.com>
32949
32950 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
32951 IDE disk check, since Linux is known to support 20 IDE disks.
32952 Reported by Colin Watson.
32953
32954 2007-12-15 Bean <bean123ch@gmail.com>
32955
32956 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
32957 (lnxboot_img_SOURCES): New variable.
32958 (lnxboot_img_ASFLAGS): Likewise.
32959 (lnxboot_img_LDFLAGS): Likewise.
32960
32961 * boot/i386/pc/lnxboot.S: New file.
32962
32963 2007-11-24 Pavel Roskin <proski@gnu.org>
32964
32965 * configure.ac: Test if '--build-id=none' is supported by the
32966 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
32967 objcopy to generate incorrect binary files (binutils
32968 2.17.50.0.18-1 as shipped by Fedora 8).
32969 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
32970 linking, so that build ID doesn't break the test.
32971
32972 2007-11-24 Pavel Roskin <proski@gnu.org>
32973
32974 * include/grub/i386/time.h: use "void" in the argument list
32975 of grub_cpu_idle().
32976 * include/grub/powerpc/time.h: Likewise.
32977 * include/grub/sparc64/time.h: Likewise.
32978
32979 2007-11-18 Christian Franke <franke@computer.org>
32980
32981 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
32982 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
32983 This fixes the problem that function keys did not work in grub-emu.
32984
32985 2007-11-18 Christian Franke <franke@computer.org>
32986
32987 * disk/host.c (grub_host_open): Remove attribute unused from
32988 name parameter. Add check for "host". This fixes the problem
32989 that grub-emu does not find partitions.
32990
32991 2007-11-18 Christian Franke <franke@computer.org>
32992
32993 * util/hostfs.c (is_dir): New function.
32994 (grub_hostfs_dir): Handle missing dirent.d_type case.
32995 (grub_hostfs_read): Add missing fseek().
32996 (grub_hostfs_label): Clear label pointer. This fixes a crash
32997 of grub-emu on "ls (host)".
32998
32999 2007-11-18 Christian Franke <franke@computer.org>
33000
33001 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
33002 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
33003 to 64 bit boundary by default.
33004
33005 2007-11-18 Bean <bean123ch@gmail.com>
33006
33007 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
33008 (hexdump_mod_SOURCES): New variable.
33009 (hexdump_mod_CFLAGS): Likewise.
33010 (hexdump_mod_LDFLAGS): Likewise.
33011
33012 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
33013
33014 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
33015
33016 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
33017
33018 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
33019
33020 * include/grub/hexdump.h: New file.
33021
33022 * commands/hexdump.c: New file.
33023
33024 2007-11-10 Robert Millan <rmh@aybabtu.com>
33025
33026 * commands/i386/pc/play.c (beep_off): Switch order of arguments
33027 in grub_outb() calls.
33028 (beep_on): Likewise.
33029
33030 2007-11-10 Christian Franke <franke@computer.org>
33031
33032 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
33033 (grub_menu_run): Likewise.
33034
33035 2007-11-10 Robert Millan <rmh@aybabtu.com>
33036
33037 * include/grub/i386/efi/machine.h: New file.
33038 * include/grub/i386/linuxbios/machine.h: Likewise.
33039 * include/grub/i386/pc/machine.h: Likewise.
33040 * include/grub/powerpc/ieee1275/machine.h: Likewise.
33041 * include/grub/sparc64/ieee1275/machine.h: Likewise.
33042
33043 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
33044 (serial_hw_io_addr): New variable.
33045 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
33046 instead of `(unsigned short *) 0x400'.
33047
33048 2007-11-10 Bean <bean123ch@gmail.com>
33049
33050 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
33051
33052 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
33053
33054 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
33055 (vga_mod_SOURCES): Added.
33056 (vga_mod_CFLAGS): Likewise.
33057 (vga_mod_LDFLAGS): Likewise.
33058
33059 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
33060 grub_outb() calls.
33061 (set_map_mask): Likewise.
33062 (set_read_map): Likewise.
33063 (set_read_address): Likewise.
33064 (vga_font): Removed variable.
33065 (get_vga_glyph): Removed function.
33066 (invalidate_char): Likewise.
33067 (write_char): Changed to use grub_font_get_glyph() for font
33068 information.
33069 (grub_vga_putchar): Likewise.
33070 (grub_vga_getcharwidth): Likewise.
33071
33072 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
33073
33074 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
33075 flags.
33076 (pxeboot_img_LDFLAGS): Likewise.
33077 (diskboot_img_LDFLAGS): Likewise.
33078 (kernel_img_LDFLAGS): Likewise.
33079
33080 2007-11-06 Robert Millan <rmh@aybabtu.com>
33081
33082 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
33083 in grub_outb() calls.
33084 (serial_hw_init): Likewise.
33085
33086 2007-11-05 Robert Millan <rmh@aybabtu.com>
33087
33088 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
33089 spaces. Skip non-regular files.
33090
33091 2007-11-05 Robert Millan <rmh@aybabtu.com>
33092
33093 * kern/disk.c (grub_disk_firmware_fini)
33094 (grub_disk_firmware_is_tainted): New variables.
33095
33096 * include/grub/disk.h (grub_disk_firmware_fini)
33097 (grub_disk_firmware_is_tainted): Likewise.
33098
33099 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
33100 (grub_disk_biosdisk_fini): ... to here.
33101 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
33102 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
33103 is set. Register grub_disk_biosdisk_fini() in
33104 `grub_disk_firmware_fini'.
33105
33106 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
33107 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
33108 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
33109 to finish existing firmware disk interface.
33110
33111 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
33112 (ata_mod_SOURCES): New variable.
33113 (ata_mod_CFLAGS): Likewise.
33114 (ata_mod_LDFLAGS): Likewise.
33115
33116 2007-11-05 Robert Millan <rmh@aybabtu.com>
33117
33118 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
33119 (grub_ata_wait): Reimplement using grub_millisleep().
33120
33121 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
33122 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
33123
33124 2007-11-03 Marco Gerards <marco@gnu.org>
33125
33126 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
33127 (CRTC_ADDR_PORT): New macro.
33128 (CRTC_DATA_PORT): Likewise.
33129 (CRTC_CURSOR): Likewise.
33130 (CRTC_CURSOR_ADDR_HIGH): Likewise.
33131 (CRTC_CURSOR_ADDR_LOW): Likewise.
33132 (update_cursor): New function.
33133 (grub_console_real_putchar): Call `update_cursor'.
33134 (grub_console_gotoxy): Likewise.
33135 (grub_console_cls): Set the default color when clearing the
33136 screen.
33137 (grub_console_setcursor): Implemented.
33138
33139 2007-11-03 Marco Gerards <marco@gnu.org>
33140
33141 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
33142 become activate.
33143 (grub_ata_pio_write): Likewise.
33144
33145 (grub_atapi_identify): Wait after issuing an ATA command.
33146 (grub_atapi_packet): Likewise.
33147 (grub_ata_identify): Likewise.
33148 (grub_ata_readwrite): Likewise.
33149
33150 2007-11-03 Marco Gerards <marco@gnu.org>
33151
33152 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
33153 (grub_ata_pio_write): Likewise.
33154 (grub_ata_readwrite): Use `grub_error', instead of
33155 returning `grub_errno'.
33156
33157 2007-11-03 Marco Gerards <marco@gnu.org>
33158
33159 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
33160 grub_ata_pio_write once for every single sector, instead of for
33161 multiple sectors.
33162
33163 2007-10-31 Robert Millan <rmh@aybabtu.com>
33164
33165 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
33166
33167 * conf/i386-linuxbios.rmk: New file.
33168
33169 * kern/i386/pc/hardware.c: Likewise.
33170 * term/i386/pc/at_keyboard.c: Likewise.
33171 * term/i386/pc/vga_text.c: Likewise.
33172
33173 * include/grub/i386/linuxbios/boot.h: Likewise.
33174 * include/grub/i386/linuxbios/console.h: Likewise.
33175 * include/grub/i386/linuxbios/init.h: Likewise.
33176 * include/grub/i386/linuxbios/kernel.h: Likewise.
33177 * include/grub/i386/linuxbios/loader.h: Likewise.
33178 * include/grub/i386/linuxbios/memory.h: Likewise.
33179 * include/grub/i386/linuxbios/serial.h: Likewise.
33180 * include/grub/i386/linuxbios/time.h: Likewise.
33181
33182 * kern/i386/linuxbios/init.c: Likewise.
33183 * kern/i386/linuxbios/startup.S: Likewise.
33184 * kern/i386/linuxbios/table.c: Likewise.
33185
33186 2007-10-31 Marco Gerards <marco@gnu.org>
33187
33188 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
33189 (ata_mod_SOURCES): New variable.
33190 (ata_mod_CFLAGS): Likewise.
33191 (ata_mod_LDFLAGS): Likewise.
33192
33193 * disk/ata.c: New file.
33194
33195 * include/grub/disk.h (grub_disk_dev_id): Add
33196 `GRUB_DISK_DEV_ATA_ID'.
33197
33198 2007-10-31 Robert Millan <rmh@aybabtu.com>
33199
33200 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
33201 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
33202
33203 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
33204 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
33205
33206 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
33207 `<grub/types.h>'.
33208
33209 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
33210
33211 2007-10-27 Robert Millan <rmh@aybabtu.com>
33212
33213 * include/grub/types.h (ULONG_MAX): Define macro.
33214
33215 2007-10-22 Robert Millan <rmh@aybabtu.com>
33216
33217 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
33218 `"../realmode.S"'.
33219 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
33220
33221 2007-10-22 Robert Millan <rmh@aybabtu.com>
33222
33223 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
33224 (pkgdata_MODULES): Add `biosdisk.mod'.
33225 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
33226 variables.
33227
33228 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
33229 (grub_biosdisk_init): Replace with ...
33230 (GRUB_MOD_INIT(biosdisk)): ... this.
33231 (grub_biosdisk_fini): Replace with ...
33232 (GRUB_MOD_FINI(biosdisk)): ... this.
33233
33234 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
33235 (grub_machine_init): Remove call to grub_biosdisk_init().
33236 (grub_machine_fini): Remove call to grub_machine_fini().
33237
33238 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
33239
33240 2007-10-22 Robert Millan <rmh@aybabtu.com>
33241
33242 * include/grub/time.h: New file.
33243 * include/grub/i386/time.h: Likewise.
33244 * include/grub/powerpc/time.h: Likewise.
33245 * include/grub/sparc64/time.h: Likewise.
33246
33247 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
33248 instances to ...
33249 (KERNEL_MACHINE_TIME_HEADER): ... this.
33250 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
33251 instances to ...
33252 (KERNEL_MACHINE_TIME_HEADER): ... this.
33253 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
33254 instances to ...
33255 (KERNEL_MACHINE_TIME_HEADER): ... this.
33256
33257 * kern/i386/efi/init.c: Include `<grub/time.h>'.
33258 (grub_millisleep): New function.
33259 * kern/i386/pc/init.c: Include `<grub/time.h>'.
33260 (grub_millisleep): New function.
33261 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
33262 Remove `grub/machine/time.h' include.
33263 (grub_millisleep): New function.
33264 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
33265 Remove `grub/machine/time.h' include.
33266 (grub_millisleep): New function.
33267
33268 * include/grub/misc.h (grub_div_roundup): New function.
33269
33270 * kern/misc.c: Include `<grub/time.h>'.
33271 (grub_millisleep_generic): New function.
33272
33273 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
33274 Add `time.h'.
33275 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
33276 Add `time.h'.
33277 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
33278 `machine/time.h'. Add `time.h'.
33279 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
33280
33281 2007-10-21 Robert Millan <rmh@aybabtu.com>
33282
33283 * include/grub/misc.h (grub_max): New function.
33284
33285 2007-10-21 Robert Millan <rmh@aybabtu.com>
33286
33287 * util/misc.c (grub_util_info): Call fflush() before returning.
33288
33289 2007-10-20 Robert Millan <rmh@aybabtu.com>
33290
33291 * genmk.rb (Image): Copy `extra_flags' from here ...
33292 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
33293
33294 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
33295 to `argc' and `args' arguments.
33296
33297 2007-10-17 Robert Millan <rmh@aybabtu.com>
33298
33299 * kern/i386/loader.S: New file.
33300
33301 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
33302 * kern/i386/loader.S (grub_linux_prot_size)... to here.
33303 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
33304 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
33305 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
33306 * kern/i386/loader.S (grub_linux_real_addr)... to here.
33307 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
33308 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
33309 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
33310 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
33311 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
33312 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
33313 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
33314 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
33315
33316 * kern/i386/realmode.S: New file.
33317
33318 * kern/i386/pc/startup.S (protstack): Moved from here ...
33319 * kern/i386/realmode.S (protstack)... to here.
33320 * kern/i386/pc/startup.S (gdt): Moved from here ...
33321 * kern/i386/realmode.S (gdt)... to here.
33322 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
33323 * kern/i386/realmode.S (prot_to_real)... to here.
33324
33325 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
33326 `kern/i386/realmode.S'.
33327
33328 2007-10-17 Robert Millan <rmh@aybabtu.com>
33329
33330 * include/grub/i386/loader.h: New file.
33331
33332 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
33333 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
33334 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
33335 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
33336 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
33337 * include/grub/i386/loader.h (grub_linux_prot_size)
33338 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
33339 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
33340 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
33341 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
33342
33343 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
33344
33345 2007-10-15 Robert Millan <rmh@aybabtu.com>
33346
33347 * normal/misc.c (grub_normal_print_device_info): Do not probe for
33348 filesystem when dev->disk is unset.
33349 Do probe for filesystem even when dev->disk->has_partitions is set.
33350 In case a filesystem is found, always report it.
33351 In case it isn't, if dev->disk->has_partitions is set, report that
33352 a partition table was found instead of reporting that no filesystem
33353 could be identified.
33354
33355 2007-10-12 Robert Millan <rmh@aybabtu.com>
33356
33357 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
33358 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
33359
33360 * include/grub/types.h (grub_host_to_target16): New macro.
33361 (grub_host_to_target32): Likewise.
33362 (grub_host_to_target64): Likewise.
33363 (grub_target_to_host16): Likewise.
33364 (grub_target_to_host32): Likewise.
33365 (grub_target_to_host64): Likewise.
33366
33367 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
33368 Renamed from to ...
33369 (GRUB_MOD_ALIGN): ...this. Update all users.
33370
33371 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
33372 grub_host_to_target32.
33373 Replace grub_be_to_cpu32 with grub_target_to_host32.
33374 (load_modules): Likewise.
33375 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
33376 Replace grub_be_to_cpu32 with grub_target_to_host32.
33377 Replace grub_cpu_to_be16 with grub_host_to_target16.
33378 Replace grub_cpu_to_be32 grub_host_to_target32.
33379
33380 2007-10-12 Robert Millan <rmh@aybabtu.com>
33381
33382 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
33383 * util/elf/grub-mkimage.c: ... here.
33384
33385 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
33386 `util/powerpc/ieee1275/grub-mkimage.c'.
33387
33388 2007-10-07 Robert Millan <rmh@aybabtu.com>
33389
33390 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
33391 and make it easier to figure out.
33392 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
33393 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
33394 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
33395 leave us with less than HEAP_MIN_SIZE total heap.
33396 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
33397
33398 2007-10-03 Robert Millan <rmh@aybabtu.com>
33399
33400 * include/grub/i386/io.h: New file.
33401 * commands/i386/pc/play.c (inb): Removed.
33402 (outb): Removed.
33403 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
33404 with grub_outb().
33405 * term/i386/pc/serial.c (inb): Removed.
33406 (outb): Removed.
33407 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
33408 with grub_outb().
33409 * term/i386/pc/vga.c (inb): Removed.
33410 (outb): Removed.
33411 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
33412 with grub_outb().
33413
33414 2007-10-02 Robert Millan <rmh@aybabtu.com>
33415
33416 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
33417 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33418 Reported by Marcin Kurek.
33419
33420 2007-09-07 Robert Millan <rmh@aybabtu.com>
33421
33422 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
33423 SmartFirmware version updates (as released by Sven Luther), and avoid
33424 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
33425 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
33426 known broken.
33427
33428 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
33429
33430 From Hitoshi Ozeki:
33431 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
33432 when merging two regions.
33433
33434 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
33435
33436 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
33437 * normal/completion.c (grub_normal_do_completion): Likewise.
33438 Reported by Hitoshi Ozeki.
33439
33440 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
33441
33442 Do not use devices at boot in chainloading.
33443
33444 * loader/i386/pc/chainloader.c (boot_drive): New variable.
33445 (boot_part_addr): Likewise.
33446 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
33447 with BOOT_DRIVE and BOOT_PART_ADDR.
33448 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
33449 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
33450
33451 2007-08-29 Robert Millan <rmh@aybabtu.com>
33452
33453 Patch from Simon Peter <dn.tlp@gmx.net>:
33454 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
33455 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
33456 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
33457 util/i386/pc/grub-setup.c_DEPENDENCIES.
33458 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
33459 util/grub-probe.c_DEPENDENCIES.
33460 * conf/powerpc-ieee1275.rmk: Likewise.
33461
33462 2007-08-28 Robert Millan <rmh@aybabtu.com>
33463
33464 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
33465 to tell grub-mkdevicemap how to name devices.
33466 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
33467 feature).
33468
33469 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
33470 util/i386/get_disk_name.c.
33471 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
33472 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
33473 util/ieee1275/get_disk_name.c.
33474
33475 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
33476
33477 * DISTLIST: Add util/i386/get_disk_name.c and
33478 util/ieee1275/get_disk_name.c.
33479
33480 * util/grub-mkdevicemap.c: Replace device naming logic with
33481 grub_util_get_disk_name() calls.
33482
33483 2007-08-20 Robert Millan <rmh@aybabtu.com>
33484
33485 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
33486 (so that it works for both plural and singular quantities).
33487
33488 2007-08-05 Robert Millan <rmh@aybabtu.com>
33489
33490 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
33491 so that [xz] isn't taken into account when determining order.
33492
33493 2007-08-02 Marco Gerards <marco@gnu.org>
33494
33495 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
33496 `include/multiboot2.h', `include/grub/elfload.h',
33497 `include/multiboot.h', `include/grub/multiboot.h',
33498 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
33499 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
33500 `kern/elf.c', `loader/multiboot_loader.c',
33501 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
33502 `loader/i386/pc/multiboot2.c',
33503 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
33504 `util/i386/pc/grub-mkrescue.in'. Remove
33505 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
33506 `include/grub/i386/pc/util/biosdisk.h' and
33507 `include/grub/powerpc/ieee1275/multiboot.h'.
33508
33509 2007-08-02 Bean <bean123ch@gmail.com>
33510
33511 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
33512 (ntfs_mod_SOURCES): New variable.
33513 (ntfs_mod_CFLAGS): Likewise.
33514 (ntfs_mod_LDFLAGS): Likewise.
33515
33516 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
33517 (grub_probe_SOURCES): Likewise.
33518 (grub_emu_SOURCES): Likewise.
33519
33520 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
33521 (grub_emu_SOURCES): Likewise.
33522
33523 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
33524 (grub_emu_SOURCES): Likewise.
33525
33526 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
33527
33528 * fs/ntfs.c: New file.
33529
33530 2007-08-02 Bean <bean123ch@gmail.com>
33531
33532 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
33533
33534 * file.h (grub_file): Likewise.
33535
33536 * fshelp.h (grub_fshelp_read_file): Likewise.
33537
33538 * util/i386/pc/grub-setup.c (setup): Likewise.
33539 (save_first_sector): Likewise.
33540 (save_blocklists): Likewise.
33541
33542 * fs/affs.c (grub_affs_read_file): Likewise.
33543
33544 * fs/ext2.c (grub_ext2_read_file): Likewise.
33545
33546 * fs/fat.c (grub_fat_read_data): Likewise.
33547
33548 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
33549
33550 * fs/hfs.c (grub_hfs_read_file): Likewise.
33551
33552 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
33553
33554 * fs/jfs.c (grub_jfs_read_file): Likewise.
33555
33556 * fs/minix.c (grub_minix_read_file): Likewise.
33557
33558 * fs/sfs.c (grub_sfs_read_file): Likewise.
33559
33560 * fs/ufs.c (grub_ufs_read_file): Likewise.
33561
33562 * fs/xfs.c (grub_xfs_read_file): Likewise.
33563
33564 * command/blocklist.c (read_blocklist): Likewise.
33565 (print_blocklist): Likewise.
33566
33567 2007-08-02 Marco Gerards <marco@gnu.org>
33568
33569 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
33570 `util/hostfs.c'.
33571
33572 * disk/host.c: New file.
33573
33574 * util/hostfs.c: Likewise.
33575
33576 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
33577 return `GRUB_ERR_BAD_FS'.
33578 * fs/sfs.c (grub_sfs_mount): Likewise.
33579 * fs/xfs.c (grub_xfs_mount): Likewise.
33580
33581 * include/grub/disk.h (enum grub_disk_dev_id): Add
33582 `GRUB_DISK_DEVICE_HOST_ID'.
33583
33584 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
33585
33586 2007-07-24 Jerone Young <jerone@gmail.com>
33587
33588 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
33589 modules for compilation.
33590 * conf/powerpc-ieee1275.rmk: Likewise.
33591
33592 * include/multiboot.h: Move multiboot definitions to one file. Rename
33593 many definitions to not get grub specific.
33594 * include/multiboot2.h: Create header with multiboot 2 definitions.
33595 * include/grub/multiboot.h: Header for grub specific function
33596 prototypes and definitions.
33597 * include/grub/multiboot2.h: Likewise.
33598 * include/grub/multiboot_loader.h: Likewise.
33599 * include/grub/i386/pc/multiboot.h: Removed.
33600 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
33601
33602 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
33603 and 2 to allow for one multiboot and module commands.
33604 * loader/multiboot2.c: Add multiboot2 functionality.
33605 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
33606 and definition names.
33607 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
33608 2 functions.
33609 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
33610 ieee1275 specific multiboot2 code.
33611
33612 * kern/i386/pc/startup.S: Change headers and definition names for
33613 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
33614
33615 2007-07-22 Robert Millan <rmh@aybabtu.com>
33616
33617 * geninitheader.sh: Process file specified in first parameter rather
33618 than hardcoding grub_modules_init.lst.
33619 * geninit.sh: Likewise. Also, construct header name dynamically rather
33620 than hardcoding grub_modules_init.h.
33621
33622 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
33623 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
33624 grub_probe_init.[ch] and grub_setup_init.[ch].
33625
33626 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
33627 grub_modules_init.h with grub_emu_init.h.
33628 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
33629 grub_probe_init.[ch] files.
33630 * conf/i386-efi.rmk: Likewise.
33631 * conf/i386-pc.rmk: Likewise.
33632 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
33633 grub_setup_init.[ch] files.
33634
33635 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
33636 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
33637 to initialize modules rather than a list of hardcoded functions.
33638 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
33639 grub_init_all() to initialize modules rather than a list of hardcoded
33640 functions.
33641
33642 2007-07-22 Robert Millan <rmh@aybabtu.com>
33643
33644 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
33645 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
33646
33647 2007-07-22 Robert Millan <rmh@aybabtu.com>
33648
33649 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
33650 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
33651 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
33652 flag when running on SmartFirmware.
33653 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
33654 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
33655 was set.
33656
33657 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
33658 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
33659 rather than decreasing it.
33660
33661 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
33662 there's not enough space to do it, fail in the same way as when it
33663 can't be done because there are no partitions.
33664
33665 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
33666 when nvsetenv failed.
33667
33668 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
33669
33670 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
33671 because this rule is automatically generated.
33672 (grub-mkrescue): Removed for the same reason as above.
33673
33674 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
33675
33676 Migrate to GNU General Public License Version 3.
33677
33678 * COPYING: Replaced with the plain text version of GPLv3.
33679
33680 * config.guess: Updated from gnulib.
33681 * config.sub: Likewise.
33682
33683 * geninit.sh: Output a GPLv3 copyright notice.
33684 * geninitheader.sh: Likewise.
33685 * genmodsrc.sh: Likewise.
33686 * gensymlist.sh.in: Likewise.
33687
33688 * boot/i386/pc/boot.S: Upgraded to GPLv3.
33689 * boot/i386/pc/diskboot.S: Likewise.
33690 * boot/i386/pc/pxeboot.S: Likewise.
33691 * commands/blocklist.c: Likewise.
33692 * commands/boot.c: Likewise.
33693 * commands/cat.c: Likewise.
33694 * commands/cmp.c: Likewise.
33695 * commands/configfile.c: Likewise.
33696 * commands/echo.c: Likewise.
33697 * commands/help.c: Likewise.
33698 * commands/ls.c: Likewise.
33699 * commands/search.c: Likewise.
33700 * commands/terminal.c: Likewise.
33701 * commands/test.c: Likewise.
33702 * commands/videotest.c: Likewise.
33703 * commands/i386/cpuid.c: Likewise.
33704 * commands/i386/pc/halt.c: Likewise.
33705 * commands/i386/pc/play.c: Likewise.
33706 * commands/i386/pc/reboot.c: Likewise.
33707 * commands/i386/pc/vbeinfo.c: Likewise.
33708 * commands/i386/pc/vbetest.c: Likewise.
33709 * commands/ieee1275/halt.c: Likewise.
33710 * commands/ieee1275/reboot.c: Likewise.
33711 * commands/ieee1275/suspend.c: Likewise.
33712 * disk/loopback.c: Likewise.
33713 * disk/lvm.c: Likewise.
33714 * disk/raid.c: Likewise.
33715 * disk/efi/efidisk.c: Likewise.
33716 * disk/i386/pc/biosdisk.c: Likewise.
33717 * disk/ieee1275/ofdisk.c: Likewise.
33718 * font/manager.c: Likewise.
33719 * fs/affs.c: Likewise.
33720 * fs/ext2.c: Likewise.
33721 * fs/fat.c: Likewise.
33722 * fs/fshelp.c: Likewise.
33723 * fs/hfs.c: Likewise.
33724 * fs/hfsplus.c: Likewise.
33725 * fs/iso9660.c: Likewise.
33726 * fs/jfs.c: Likewise.
33727 * fs/minix.c: Likewise.
33728 * fs/sfs.c: Likewise.
33729 * fs/ufs.c: Likewise.
33730 * fs/xfs.c: Likewise.
33731 * hello/hello.c: Likewise.
33732 * include/grub/acorn_filecore.h: Likewise.
33733 * include/grub/arg.h: Likewise.
33734 * include/grub/bitmap.h: Likewise.
33735 * include/grub/boot.h: Likewise.
33736 * include/grub/cache.h: Likewise.
33737 * include/grub/device.h: Likewise.
33738 * include/grub/disk.h: Likewise.
33739 * include/grub/dl.h: Likewise.
33740 * include/grub/elfload.h: Likewise.
33741 * include/grub/env.h: Likewise.
33742 * include/grub/err.h: Likewise.
33743 * include/grub/file.h: Likewise.
33744 * include/grub/font.h: Likewise.
33745 * include/grub/fs.h: Likewise.
33746 * include/grub/fshelp.h: Likewise.
33747 * include/grub/gzio.h: Likewise.
33748 * include/grub/hfs.h: Likewise.
33749 * include/grub/kernel.h: Likewise.
33750 * include/grub/loader.h: Likewise.
33751 * include/grub/lvm.h: Likewise.
33752 * include/grub/misc.h: Likewise.
33753 * include/grub/mm.h: Likewise.
33754 * include/grub/net.h: Likewise.
33755 * include/grub/normal.h: Likewise.
33756 * include/grub/parser.h: Likewise.
33757 * include/grub/partition.h: Likewise.
33758 * include/grub/pc_partition.h: Likewise.
33759 * include/grub/raid.h: Likewise.
33760 * include/grub/rescue.h: Likewise.
33761 * include/grub/script.h: Likewise.
33762 * include/grub/setjmp.h: Likewise.
33763 * include/grub/symbol.h: Likewise.
33764 * include/grub/term.h: Likewise.
33765 * include/grub/terminfo.h: Likewise.
33766 * include/grub/tparm.h: Likewise.
33767 * include/grub/types.h: Likewise.
33768 * include/grub/video.h: Likewise.
33769 * include/grub/efi/api.h: Likewise.
33770 * include/grub/efi/chainloader.h: Likewise.
33771 * include/grub/efi/console.h: Likewise.
33772 * include/grub/efi/console_control.h: Likewise.
33773 * include/grub/efi/disk.h: Likewise.
33774 * include/grub/efi/efi.h: Likewise.
33775 * include/grub/efi/pe32.h: Likewise.
33776 * include/grub/efi/time.h: Likewise.
33777 * include/grub/i386/linux.h: Likewise.
33778 * include/grub/i386/setjmp.h: Likewise.
33779 * include/grub/i386/types.h: Likewise.
33780 * include/grub/i386/efi/kernel.h: Likewise.
33781 * include/grub/i386/efi/loader.h: Likewise.
33782 * include/grub/i386/efi/time.h: Likewise.
33783 * include/grub/i386/pc/biosdisk.h: Likewise.
33784 * include/grub/i386/pc/boot.h: Likewise.
33785 * include/grub/i386/pc/chainloader.h: Likewise.
33786 * include/grub/i386/pc/console.h: Likewise.
33787 * include/grub/i386/pc/init.h: Likewise.
33788 * include/grub/i386/pc/kernel.h: Likewise.
33789 * include/grub/i386/pc/loader.h: Likewise.
33790 * include/grub/i386/pc/memory.h: Likewise.
33791 * include/grub/i386/pc/multiboot.h: Likewise.
33792 * include/grub/i386/pc/serial.h: Likewise.
33793 * include/grub/i386/pc/time.h: Likewise.
33794 * include/grub/i386/pc/vbe.h: Likewise.
33795 * include/grub/i386/pc/vbeblit.h: Likewise.
33796 * include/grub/i386/pc/vbefill.h: Likewise.
33797 * include/grub/i386/pc/vbeutil.h: Likewise.
33798 * include/grub/i386/pc/vga.h: Likewise.
33799 * include/grub/ieee1275/ieee1275.h: Likewise.
33800 * include/grub/ieee1275/ofdisk.h: Likewise.
33801 * include/grub/powerpc/libgcc.h: Likewise.
33802 * include/grub/powerpc/setjmp.h: Likewise.
33803 * include/grub/powerpc/types.h: Likewise.
33804 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
33805 * include/grub/powerpc/ieee1275/console.h: Likewise.
33806 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
33807 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
33808 * include/grub/powerpc/ieee1275/loader.h: Likewise.
33809 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
33810 * include/grub/powerpc/ieee1275/time.h: Likewise.
33811 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
33812 * include/grub/sparc64/libgcc.h: Likewise.
33813 * include/grub/sparc64/setjmp.h: Likewise.
33814 * include/grub/sparc64/types.h: Likewise.
33815 * include/grub/sparc64/ieee1275/console.h: Likewise.
33816 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
33817 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
33818 * include/grub/sparc64/ieee1275/time.h: Likewise.
33819 * include/grub/util/biosdisk.h: Likewise.
33820 * include/grub/util/getroot.h: Likewise.
33821 * include/grub/util/lvm.h: Likewise.
33822 * include/grub/util/misc.h: Likewise.
33823 * include/grub/util/raid.h: Likewise.
33824 * include/grub/util/resolve.h: Likewise.
33825 * io/gzio.c: Likewise.
33826 * kern/device.c: Likewise.
33827 * kern/disk.c: Likewise.
33828 * kern/dl.c: Likewise.
33829 * kern/elf.c: Likewise.
33830 * kern/env.c: Likewise.
33831 * kern/err.c: Likewise.
33832 * kern/file.c: Likewise.
33833 * kern/fs.c: Likewise.
33834 * kern/loader.c: Likewise.
33835 * kern/main.c: Likewise.
33836 * kern/misc.c: Likewise.
33837 * kern/mm.c: Likewise.
33838 * kern/parser.c: Likewise.
33839 * kern/partition.c: Likewise.
33840 * kern/rescue.c: Likewise.
33841 * kern/term.c: Likewise.
33842 * kern/efi/efi.c: Likewise.
33843 * kern/efi/init.c: Likewise.
33844 * kern/efi/mm.c: Likewise.
33845 * kern/i386/dl.c: Likewise.
33846 * kern/i386/efi/init.c: Likewise.
33847 * kern/i386/efi/startup.S: Likewise.
33848 * kern/i386/pc/init.c: Likewise.
33849 * kern/i386/pc/lzo1x.S: Likewise.
33850 * kern/i386/pc/startup.S: Likewise.
33851 * kern/ieee1275/ieee1275.c: Likewise.
33852 * kern/powerpc/cache.S: Likewise.
33853 * kern/powerpc/dl.c: Likewise.
33854 * kern/powerpc/ieee1275/cmain.c: Likewise.
33855 * kern/powerpc/ieee1275/crt0.S: Likewise.
33856 * kern/powerpc/ieee1275/init.c: Likewise.
33857 * kern/powerpc/ieee1275/openfw.c: Likewise.
33858 * kern/sparc64/cache.S: Likewise.
33859 * kern/sparc64/dl.c: Likewise.
33860 * kern/sparc64/ieee1275/init.c: Likewise.
33861 * kern/sparc64/ieee1275/openfw.c: Likewise.
33862 * loader/efi/chainloader.c: Likewise.
33863 * loader/efi/chainloader_normal.c: Likewise.
33864 * loader/i386/efi/linux.c: Likewise.
33865 * loader/i386/efi/linux_normal.c: Likewise.
33866 * loader/i386/pc/chainloader.c: Likewise.
33867 * loader/i386/pc/chainloader_normal.c: Likewise.
33868 * loader/i386/pc/linux.c: Likewise.
33869 * loader/i386/pc/linux_normal.c: Likewise.
33870 * loader/i386/pc/multiboot.c: Likewise.
33871 * loader/i386/pc/multiboot_normal.c: Likewise.
33872 * loader/powerpc/ieee1275/linux.c: Likewise.
33873 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
33874 * normal/arg.c: Likewise.
33875 * normal/cmdline.c: Likewise.
33876 * normal/command.c: Likewise.
33877 * normal/completion.c: Likewise.
33878 * normal/execute.c: Likewise.
33879 * normal/function.c: Likewise.
33880 * normal/lexer.c: Likewise.
33881 * normal/main.c: Likewise.
33882 * normal/menu.c: Likewise.
33883 * normal/menu_entry.c: Likewise.
33884 * normal/misc.c: Likewise.
33885 * normal/parser.y: Likewise.
33886 * normal/script.c: Likewise.
33887 * normal/i386/setjmp.S: Likewise.
33888 * normal/powerpc/setjmp.S: Likewise.
33889 * normal/sparc64/setjmp.S: Likewise.
33890 * partmap/acorn.c: Likewise.
33891 * partmap/amiga.c: Likewise.
33892 * partmap/apple.c: Likewise.
33893 * partmap/gpt.c: Likewise.
33894 * partmap/pc.c: Likewise.
33895 * partmap/sun.c: Likewise.
33896 * term/gfxterm.c: Likewise.
33897 * term/terminfo.c: Likewise.
33898 * term/efi/console.c: Likewise.
33899 * term/i386/pc/console.c: Likewise.
33900 * term/i386/pc/serial.c: Likewise.
33901 * term/i386/pc/vesafb.c: Likewise.
33902 * term/i386/pc/vga.c: Likewise.
33903 * term/ieee1275/ofconsole.c: Likewise.
33904 * util/biosdisk.c: Likewise.
33905 * util/console.c: Likewise.
33906 * util/genmoddep.c: Likewise.
33907 * util/getroot.c: Likewise.
33908 * util/grub-emu.c: Likewise.
33909 * util/grub-mkdevicemap.c: Likewise.
33910 * util/grub-probe.c: Likewise.
33911 * util/lvm.c: Likewise.
33912 * util/misc.c: Likewise.
33913 * util/raid.c: Likewise.
33914 * util/resolve.c: Likewise.
33915 * util/update-grub.in: Likewise.
33916 * util/update-grub_lib.in: Likewise.
33917 * util/grub.d/00_header.in: Likewise.
33918 * util/grub.d/10_hurd.in: Likewise.
33919 * util/grub.d/10_linux.in: Likewise.
33920 * util/i386/efi/grub-install.in: Likewise.
33921 * util/i386/efi/grub-mkimage.c: Likewise.
33922 * util/i386/pc/grub-install.in: Likewise.
33923 * util/i386/pc/grub-mkimage.c: Likewise.
33924 * util/i386/pc/grub-mkrescue.in: Likewise.
33925 * util/i386/pc/grub-setup.c: Likewise.
33926 * util/i386/pc/misc.c: Likewise.
33927 * util/powerpc/ieee1275/grub-install.in: Likewise.
33928 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
33929 * util/powerpc/ieee1275/misc.c: Likewise.
33930 * video/bitmap.c: Likewise.
33931 * video/video.c: Likewise.
33932 * video/i386/pc/vbe.c: Likewise.
33933 * video/i386/pc/vbeblit.c: Likewise.
33934 * video/i386/pc/vbefill.c: Likewise.
33935 * video/i386/pc/vbeutil.c: Likewise.
33936 * video/readers/tga.c: Likewise.
33937
33938 2007-07-02 Robert Millan <rmh@aybabtu.com>
33939
33940 * conf/i386-efi.rmk: Replace obsolete reference to
33941 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
33942 with util/getroot.c.
33943 * conf/powerpc-ieee1275.rmk: Likewise.
33944 * conf/sparc64-ieee1275.rmk: Likewise.
33945
33946 * util/grub-emu.c (main): Fix unchecked pointer handling.
33947
33948 2007-07-02 Robert Millan <rmh@aybabtu.com>
33949
33950 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
33951 invocation to fail, in order to support partition-less media.
33952
33953 * util/i386/pc/grub-install.in: Likewise.
33954
33955 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
33956 which fs or partmap modules are needed (akin to its sister scripts).
33957
33958 Also use grub-probe to get rid of unportable /proc/mounts check.
33959
33960 Print the same informational message that the other scripts do, before
33961 exiting.
33962
33963 2007-06-23 Robert Millan <rmh@aybabtu.com>
33964
33965 * util/update-grub_lib.in (font_path): New function. Determine whether
33966 a font file can be found and, if so, echo the GRUB path to it.
33967
33968 * util/update-grub.in: Handle multiple terminals depending on user
33969 input, platform availability and font file presence. Propagate
33970 variables of our findings to /etc/grub.d/ children.
33971
33972 * util/grub.d/00_header.in: Handle multiple terminals, based on
33973 environment setup by update-grub.
33974
33975 2007-06-23 Robert Millan <rmh@aybabtu.com>
33976
33977 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
33978
33979 2007-06-21 Robert Millan <rmh@aybabtu.com>
33980
33981 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
33982 indicate end of data section in kernel image.
33983 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
33984 GRUB_KERNEL_MACHINE_DATA_END.
33985
33986 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
33987 space for it.
33988 * kern/i386/efi/startup.S: Likewise.
33989
33990 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
33991 during image generation. Implement --prefix option to override this
33992 patch.
33993 * util/i386/efi/grub-mkimage.c: Likewise.
33994
33995 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
33996 code to make path relative to its root into a separate function.
33997
33998 * util/i386/pc/grub-install.in: Use newly provided
33999 make_system_path_relative_to_its_root() to convert ${grubdir}, then
34000 pass the result to grub-install --prefix.
34001
34002 2007-06-13 Robert Millan <rmh@aybabtu.com>
34003
34004 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
34005 DEFAULT_DEVICE_MAP.
34006 * util/grub-emu.c: Use above definitions from misc.h instead of
34007 defining them.
34008 * util/grub-mkdevicemap.c: Likewise.
34009 * util/i386/pc/grub-setup.c: Likewise.
34010 * util/grub-probe.c: Likewise.
34011 (probe): Abort with grub_util_error() when either
34012 grub_guess_root_device or grub_util_get_grub_dev fails.
34013
34014 2007-06-12 Robert Millan <rmh@aybabtu.com>
34015
34016 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
34017 "pager" assignment.
34018 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
34019 "pcdata".
34020 * util/grub-probe.c (probe): Likewise for "drive_name".
34021
34022 2007-06-11 Robert Millan <rmh@aybabtu.com>
34023
34024 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
34025 not just the cdrom one.
34026
34027 2007-06-11 Robert Millan <rmh@aybabtu.com>
34028
34029 * util/i386/pc/grub-mkrescue.in: Add "set -e".
34030 Add --pkglibdir=DIR option to override pkglibdir.
34031 Mention --image-type=TYPE in help output.
34032 Fix --grub-mkimage (it was a no-op).
34033 Abort gracefully when no parameter is given.
34034
34035 2007-06-11 Robert Millan <rmh@aybabtu.com>
34036
34037 * util/i386/pc/grub-mkrescue.in: New file.
34038 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
34039 * Makefile.in: Handle bin_SCRIPTS.
34040
34041 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
34042
34043 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
34044 list of video modes.
34045
34046 2007-06-06 Robert Millan <rmh@aybabtu.com>
34047
34048 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
34049 file doesn't exist, or if it is in a filesystem grub can't read.
34050
34051 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
34052 not abort if GRUB_DRIVE could not be defined. Rearrange generated
34053 header comment to fit in 80 columns when the variables are resolved.
34054
34055 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
34056 could be identified by update-grub. Remove redundant check for
34057 unifont.pff existence (since convert_system_path_to_grub_path now
34058 handles that).
34059
34060 2007-06-04 Robert Millan <rmh@aybabtu.com>
34061
34062 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
34063
34064 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
34065
34066 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
34067
34068 2007-06-04 Robert Millan <rmh@aybabtu.com>
34069
34070 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
34071
34072 * include/grub/partition.h: Declare grub_apple_partition_map_init and
34073 grub_apple_partition_map_fini.
34074
34075 * util/biosdisk.c
34076 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
34077 to access >2 TiB disks).
34078
34079 Print disk->total_sectors with %llu instead of %lu, since this
34080 variable is always 64-bit (prevents wrong disk size from being displayed
34081 on either >2 TiB disk or big-endian CPU).
34082
34083 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
34084 into a generic case that supports all (sane) partition maps.
34085
34086 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
34087 breaks big-endian.
34088
34089 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
34090 and grub_apple_partition_map_fini() after that.
34091
34092 2007-06-01 Robert Millan <rmh@aybabtu.com>
34093
34094 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
34095
34096 * util/grub.d/00_header.in: Only enable gfxterm when
34097 convert_system_path_to_grub_path() succeeds.
34098
34099 2007-05-20 Robert Millan <rmh@aybabtu.com>
34100
34101 * util/update-grub_lib.in: New file.
34102 * DISTLIST: Add update-grub_lib.in.
34103 * conf/common.rmk: Generate update-grub_lib and install it in
34104 $(lib_DATA).
34105 * Makefile.in: Add install routine for $(lib_DATA).
34106
34107 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
34108 function provided by update-grub_lib to support arbitrary paths of
34109 unifont.pff.
34110 * util/update-grub.in: Use convert_system_path_to_grub_path() to
34111 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
34112
34113 2007-05-19 Robert Millan <rmh@aybabtu.com>
34114
34115 * commands/i386/cpuid.c: New module.
34116 * DISTLIST: Add it.
34117 * conf/i386-efi.rmk: Enable cpuid.mod.
34118 * conf/i386-pc.rmk: Likewise.
34119
34120 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
34121
34122 * kern/disk.c (grub_disk_read): Check return value of
34123 grub_realloc().
34124
34125 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
34126
34127 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
34128 arrays.
34129 * disk/raid.c (grub_raid_open): Likewise.
34130
34131 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
34132
34133 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
34134 stack instead of on the heap.
34135
34136 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
34137 before doing a read on it.
34138
34139 * configure.ac: Only use -fno-stack-protector for the target
34140 environment.
34141
34142 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
34143
34144 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
34145 __attribute_ ((unused)) to mode_type argument.
34146
34147 * util/getroot.c (grub_guess_root_device): Fix #endif.
34148
34149 * kern/misc.c (memcmp): Fix prototype.
34150
34151 * include/grub/partition.h [GRUB_UTIL]
34152 (grub_gpt_partition_map_init): Add prototype.
34153 (grub_gpt_partition_map_fini): Likewise.
34154
34155 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
34156 at the right place.
34157
34158 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
34159 (grub_fat_read_data): Likewise.
34160 (grub_fat_find_dir): Likewise.
34161
34162 * font/manager.c (find_glyph): Make table a const.
34163 (grub_font_get_glyph): Remove bitmap from if statement.
34164
34165 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
34166
34167 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
34168 code, first search for device in /dev/mapper, then in /dev.
34169 (grub_util_get_grub_dev): New function.
34170 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
34171 prototype.
34172 * util/grub-probe.c (probe): Remove check for RAID, call
34173 grub_util_get_grub_dev() instead of
34174 grub_util_biosdisk_get_grub_dev().
34175 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
34176 grub_util_biosdisk_get_grub_dev().
34177 * util/i386/pc/grub-setup.c (main): Likewise.
34178
34179 2007-05-16 Robert Millan <rmh@aybabtu.com>
34180
34181 * DISTLIST: Update for the latest changes.
34182 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
34183 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
34184 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
34185 grub/util/biosdisk.h.
34186 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
34187 grub/util/biosdisk.h.
34188
34189 2007-05-16 Robert Millan <rmh@aybabtu.com>
34190
34191 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
34192
34193 2007-05-16 Robert Millan <rmh@aybabtu.com>
34194
34195 * util/i386/efi/grub-install.in: New.
34196 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
34197 newly added grub-install.
34198 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
34199 include.
34200 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
34201 grub/util/biosdisk.h.
34202 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
34203 grub/util/biosdisk.h.
34204
34205 2007-05-16 Robert Millan <rmh@aybabtu.com>
34206
34207 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
34208 * include/grub/util/biosdisk.h: ... here.
34209 * util/i386/pc/biosdisk.c: Moved to ...
34210 * util/biosdisk.c: ... here.
34211 * util/i386/pc/getroot.c: Moved to ...
34212 * util/getroot.c: ... here.
34213 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
34214 * util/grub-mkdevicemap.c: ... here.
34215 * util/i386/pc/grub-probe.c: Moved to ...
34216 * util/grub-probe.c: ... here.
34217
34218 2007-05-15 Robert Millan <rmh@aybabtu.com>
34219
34220 * util/update-grub.in: Remove duplicated line in grub.cfg header
34221 message.
34222
34223 2007-05-13 Robert Millan <rmh@aybabtu.com>
34224
34225 * util/update-grub.in: Fix a few assumptions about the devices holding
34226 /, /boot and /boot/grub being the same.
34227 * util/grub.d/00_header.in: Likewise.
34228 * util/grub.d/10_hurd.in: Likewise.
34229 * util/grub.d/10_linux.in: Likewise.
34230
34231 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
34232 patterns. Use that to define the `.old' suffix as older than `'.
34233
34234 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
34235
34236 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
34237 the grub.cfg header message.
34238
34239 2007-05-11 Robert Millan <rmh@aybabtu.com>
34240
34241 * util/update-grub.in: Create device.map if it doesn't already exist,
34242 before attempting to run grub-probe.
34243 Check for grub-probe and grub-mkdevicemap with the same code
34244 grub-install is using.
34245 Remove test mode.
34246
34247 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
34248
34249 * Makefile.in: Add the datarootdir autoconf variable.
34250
34251 2007-05-09 Robert Millan <rmh@aybabtu.com>
34252
34253 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
34254 fail gracefully if dev->disk->partition == NULL.
34255
34256 2007-05-07 Robert Millan <rmh@aybabtu.com>
34257
34258 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
34259 determine partition map module.
34260 * util/i386/pc/grub-install.in: Use this feature to decide which
34261 partition module to load, instead of hardcoding pc and gpt.
34262
34263 2007-05-07 Robert Millan <rmh@aybabtu.com>
34264
34265 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
34266 source directory differs from build directory.
34267
34268 2007-05-05 Robert Millan <rmh@aybabtu.com>
34269
34270 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
34271 initialisation.
34272
34273 2007-05-05 Robert Millan <rmh@aybabtu.com>
34274
34275 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
34276
34277 2007-05-05 Robert Millan <rmh@aybabtu.com>
34278
34279 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
34280 command-line arguments via ${GRUB_CMDLINE_LINUX}.
34281
34282 2007-05-05 Robert Millan <rmh@aybabtu.com>
34283
34284 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
34285 (grub_probe_SOURCES): Likewise.
34286 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
34287 GPT and initialize dos_part and bsd_part accordingly.
34288 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
34289 install_bsd_part.
34290 (main): Activate gpt module for use during partition identification,
34291 and deactivate it afterwards.
34292 * util/i386/pc/grub-install.in: Add gpt module to core.img.
34293 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
34294 partition identification, and deactivate it afterwards.
34295
34296 2007-05-05 Robert Millan <rmh@aybabtu.com>
34297
34298 * term/i386/pc/console.c (grub_console_fini): Call
34299 grub_term_set_current() before grub_term_unregister().
34300
34301 2007-05-04 Robert Millan <rmh@aybabtu.com>
34302
34303 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
34304 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
34305 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
34306 and update-grub_DATA.
34307 * conf/common.rmk: Build and install update-grub components.
34308 * conf/common.mk: Regenerate.
34309 * util/update-grub.in: New. Core of update-grub.
34310 * util/grub.d/00_header.in: New. Generates grub.cfg header.
34311 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
34312 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
34313 * util/grub.d/README: New. Document grub.d directory layout.
34314
34315 2007-05-01 Robert Millan <rmh@aybabtu.com>
34316
34317 * util/grub-emu.c: Move initialization functions
34318 grub_util_biosdisk_init() and grub_init_all() before
34319 grub_util_biosdisk_get_grub_dev(), which relies on them.
34320
34321 2007-04-19 Robert Millan <rmh@aybabtu.com>
34322
34323 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
34324 it is used later.
34325
34326 2007-04-18 Jerone Young <jerone@gmail.com>
34327
34328 * kernel/elf.c: Add missing parenthesis for conditional statement
34329 stanza.
34330
34331 2007-04-10 Jerone Young <jerone@gmail.com>
34332
34333 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
34334 continue on and look for device node with real device name.
34335
34336 2007-04-10 Jerone Young <jerone@gmail.com>
34337
34338 * configure.ac: Add argument for autoconf to use transformation
34339 ability.
34340 * Makefile.in: Add autoconf package transformation code.
34341 * util/i386/pc/grub-install.in: Likewise.
34342 * util/powerpc/ieee1275/grub-install.in: Likewise.
34343
34344 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
34345
34346 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
34347 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
34348 (EXT2_REVISION): Likewise.
34349 (EXT2_INODE_SIZE): Likewise.
34350 (struct grub_ext2_block_group): Added a missing member
34351 "used_dirs".
34352 (grub_ext2_read_inode): Divide by the inode size in a superblock
34353 instead of 128 to obtain INODES_PER_BLOCK.
34354 Use the macro EXT2_INODE_SIZE instead of directly using
34355 SBLOCK->INODE_SIZE.
34356
34357 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
34358
34359 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
34360 superblock instead of the structure size to compute an
34361 offset. This fixes the problem that GRUB could not read a
34362 filesystem when inode size is different from 128-byte.
34363
34364 2007-03-05 Marco Gerards <marco@gnu.org>
34365
34366 * normal/main.c (read_config_file): When "menu" is not set, create
34367 an initial context.
34368
34369 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
34370
34371 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
34372 (HEAP_LIMIT): New macro.
34373 (grub_claim_heap): Claim memory up to `heaplimit'.
34374
34375 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
34376
34377 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
34378 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
34379 (_start): Likewise.
34380 (grub_arch_modules_addr): Return address after `_end'.
34381 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
34382 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
34383 (add_segments): Calculate `_end' from phdr size and location.
34384 (ALIGN_UP): Moved to ...
34385 * include/grub/misc.h: here.
34386 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
34387 New macro.
34388 (GRUB_IEEE1275_MODULE_BASE): Removed.
34389
34390 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
34391
34392 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
34393 loop boundary.
34394
34395 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
34396
34397 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
34398 All users updated.
34399 (grub_elf64_load_hook_t): Likewise.
34400 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
34401 debug output.
34402
34403 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
34404
34405 * kern/mm.c: Update copyright.
34406 (grub_mm_debug): Correct syntax error.
34407 (grub_mm_dump_free): New function.
34408 (grub_debug_free): Call `grub_free'.
34409 * include/grub/mm.h: Update copyright.
34410 (grub_mm_dump_free): Add declaration.
34411
34412 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
34413
34414 * include/grub/ieee1275/ieee1275.h: Update copyright.
34415 * kern/powerpc/ieee1275/init.c: Likewise.
34416 * kern/powerpc/ieee1275/openfw.c: Likewise.
34417
34418 * loader/powerpc/ieee1275/linux.c: Likewise.
34419 * include/grub/elfload.h: Likewise.
34420 * kern/elf.c: Likewise.
34421 (grub_elf32_load): Pass `base' and `size' parameters. Update all
34422 callers.
34423 (grub_elf64_load): Likewise.
34424 (grub_elf32_load_segment): Move to a nested function.
34425 (grub_elf64_load_segment): Likewise.
34426
34427 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
34428
34429 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
34430 prototype.
34431 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
34432 (grub_heap_len): Likewise.
34433 (HEAP_SIZE): New macro.
34434 (grub_claim_heap): New function.
34435 (grub_machine_init): Don't claim heap directly. Call
34436 `grub_claim_heap'.
34437 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
34438 (grub_available_iterate): New function.
34439
34440 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
34441
34442 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
34443 * configure.ac: Use it for testing the HOST and TARGET compilers.
34444
34445 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
34446
34447 * Makefile.in (enable_grub_emu): New variable.
34448 * configure.ac (--enable-grub-emu): New option.
34449 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
34450 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
34451 * conf/i386-pc.rmk: Likewise.
34452 * conf/powerpc-ieee1275.rmk: Likewise.
34453 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
34454
34455 2006-12-12 Marco Gerards <marco@gnu.org>
34456
34457 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
34458
34459 * kern/env.c (grub_env_unset): Don't free the member `value' when
34460 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
34461 pointer.
34462
34463 * normal/main.c (current_menu): Removed.
34464 (free_menu): Unset the `menu' environment variable.
34465 (grub_normal_menu_addentry): Make use of the environment variable
34466 `menu', instead of using the global `current_menu'. Allocate
34467 memory for the sourcecode of this entry.
34468 (read_config_file): New argument `nested', changed all callers.
34469 Only in the case of a new context, initialize a new menu. Set the
34470 `menu' environment variable.
34471 (grub_normal_execute): Don't set and unset the environment
34472 variable `menu' here anymore. Only free the menu when leaving the
34473 context.
34474
34475 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
34476 leak.
34477
34478 2006-12-11 Marco Gerards <marco@gnu.org>
34479
34480 * normal/menu_entry.c (run): Fix off by one bug so the last line
34481 is executed. Move the loader check to outside the loop.
34482
34483 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
34484
34485 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
34486
34487 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
34488
34489 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
34490 the number of sectors. Reported by Andrey Shuvikov
34491 <mr_hyro@yahoo.com>.
34492
34493 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
34494
34495 * kern/disk.c (grub_disk_read): When there is a read error, always
34496 try to read only the necessary data.
34497
34498 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
34499 disk/raid.c.
34500 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
34501 prototype.
34502 [GRUB_UTIL] (grub_raid_fini): Likewise.
34503 [GRUB_UTIL] (grub_lvm_init): Likewise.
34504 [GRUB_UTIL] (grub_lvm_fini): Likewise.
34505 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
34506 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
34507 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
34508 and grub_raid_fini().
34509
34510 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
34511
34512 * include/grub/types.h (__unused): Rename to UNUSED.
34513 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
34514 (grub_elf64_size): Likewise.
34515
34516 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
34517
34518 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
34519 grub_error_push and grub_error_pop in the error-handling path.
34520 (grub_elf32_load_segment): Only call grub_file_read with non-zero
34521 length.
34522
34523 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
34524
34525 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
34526 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
34527 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34528 (kernel_elf_SOURCES): Likewise.
34529 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
34530 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
34531 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
34532 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
34533 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
34534 (elf_mod_SOURCES): New variable.
34535 (elf_mod_CFLAGS): Likewise.
34536 (elf_mod_LDFLAGS): Likewise.
34537 * include/grub/types.h (__unused): New macro.
34538 * include/grub/elfload.h: New file.
34539 * kern/elf.c: Likewise.
34540 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
34541 (ELF32_LOADMASK): New macro.
34542 (ELF64_LOADMASK): Likewise.
34543 (vmlinux): Removed.
34544 (grub_linux_load32): New function.
34545 (grub_linux_load64): Likewise.
34546 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
34547 Use grub_elf_t instead of grub_file_t.
34548
34549 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
34550
34551 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
34552 `catch_result' to struct set_color_args.
34553
34554 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
34555
34556 * normal/menu.c: Include grub/script.h.
34557 * normal/menu_entry.c: Likewise.
34558 * include/grub/normal.h: Do not include grub/script.h.
34559
34560 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
34561
34562 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
34563
34564 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
34565
34566 * kern/disk.c (grub_disk_open): Print debug messages when opening a
34567 disk.
34568 (grub_disk_close): Print debug messages when closing a disk.
34569 (grub_disk_read): Print debug messages when disk read fails.
34570 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
34571 filesystem type.
34572 * kern/partition.c: Include misc.h.
34573 (grub_partition_iterate): Print debug messages when detecting
34574 partition type.
34575
34576 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
34577
34578 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
34579 is negative.
34580 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
34581
34582 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
34583
34584 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
34585 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
34586
34587 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
34588
34589 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
34590 instead of sizeof(lv). Patch by Michael Guntsche.
34591
34592 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
34593
34594 * disk/lvm.c: Rename VGS to VG_LIST.
34595 (grub_lvm_iterate): Change VGS->LV to VG-LV.
34596 (grub_lvm_open): Likewise.
34597 Thanks to Michael Guntsche for finding this bug.
34598
34599 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
34600
34601 * configure.ac (AC_INIT): Bumped to 1.95.
34602
34603 2006-10-14 Robert Millan <rmh@aybabtu.com>
34604
34605 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
34606 with "/dev/.static/dev/md".
34607
34608 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
34609
34610 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
34611 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
34612 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
34613 DRIVE_NAME are always freed.
34614
34615 * util/i386/pc/biosdisk.c (make_device_name): Add one into
34616 DOS_PART, as a DOS partition is counted from one instead of zero
34617 now. Reported by Robert Millan.
34618
34619 2006-10-14 Robert Millan <rmh@aybabtu.com>
34620
34621 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
34622 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
34623 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
34624 string returned by grub_guess_root_device.
34625 * util/i386/pc/grub-setup.c: Likewise.
34626 * util/i386/pc/grub-probefs.c: Likewise.
34627
34628 * util/i386/pc/grub-probefs.c: Rename to ...
34629 * util/i386/pc/grub-probe.c: ... this.
34630 * DISTLIST: Remove grub-probefs, add grub-probe.
34631 * conf/i386-efi.rmk: Likewise.
34632 * conf/i386-pc.rmk: Likewise.
34633 * util/i386/pc/grub-install.in: Likewise.
34634
34635 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
34636 choose which information we want to print.
34637
34638 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
34639
34640 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
34641 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
34642 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
34643 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
34644 video/readers/tga.c and video/i386/pc/vbeutil.c.
34645
34646 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
34647
34648 Added support for RAID and LVM.
34649
34650 * disk/lvm.c: New file.
34651 * disk/raid.c: Likewise.
34652 * include/grub/lvm.h: Likewise.
34653 * include/grub/raid.h: Likewise.
34654 * include/grub/util/lvm.h: Likewise.
34655 * include/grub/util/raid.h: Likewise.
34656 * util/lvm.c: Likewise.
34657 * util/raid.c: Likewise.
34658
34659 * include/grub/disk.h (grub_disk_dev_id): Add
34660 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
34661 (grub_disk_get_size): New prototype.
34662 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
34663 returns a partition.
34664 (grub_disk_get_size): New function.
34665
34666 * kern/i386/pc/init.c (make_install_device): Copy the prefix
34667 verbatim if grub_install_dos_part is -2.
34668
34669 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
34670 and LVM devices.
34671
34672 * util/i386/pc/grub-setup.c (setup): New argument
34673 MUST_EMBED. Force embedding of GRUB when the argument is
34674 true. Close FILE before returning.
34675 (main): Add support for RAID and LVM.
34676
34677 * conf/common.rmk: Add RAID and LVM modules.
34678 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
34679 util/lvm.c.
34680 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
34681
34682 * kern/misc.c (grub_strstr): New function.
34683 * include/grub/misc.h (grub_strstr): New prototype.
34684
34685 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
34686
34687 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
34688
34689 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
34690
34691 * kern/misc.c (grub_strtoull): Guess the base only if not
34692 specified.
34693
34694 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
34695
34696 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
34697 PowerMac support.
34698
34699 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
34700
34701 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
34702
34703 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
34704 Remove `flags' argument. All callers changed.
34705 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
34706 (IEEE1275_IHANDLE_INVALID): New variable.
34707 (IEEE1275_CELL_INVALID): New variable.
34708 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
34709 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
34710 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
34711 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
34712 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
34713 codes from Open Firmware. All callers updated.
34714 (grub_ieee1275_next_property): Directly return Open Firmware return
34715 code.
34716 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
34717 Standardize error checking from `grub_ieee1275_get_property'.
34718 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
34719 `devalias' to `aliases'. Correct comments. Consolidate error paths.
34720
34721 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
34722
34723 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
34724 `instance_to_package_args' to `instance_to_path_args'.
34725
34726 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
34727 `grub_ieee1275_chosen'.
34728
34729 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
34730 `grub_ieee1275_interpret'.
34731
34732 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
34733
34734 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
34735
34736 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
34737
34738 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
34739 (__cmpdi): Likewise.
34740
34741 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
34742 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
34743 `grub_ssize_t'.
34744
34745 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
34746
34747 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
34748 to type `grub_ssize_t'.
34749 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
34750
34751 2006-09-22 Marco Gerards <marco@gnu.org>
34752
34753 * normal/script.c (grub_script_create_cmdmenu): Skip leading
34754 newlines.
34755
34756 2006-09-22 Marco Gerards <marco@gnu.org>
34757
34758 * commands/echo.c: New file.
34759
34760 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
34761
34762 * conf/common.rmk (echo_mod_SOURCES): New variable.
34763 (echo_mod_CFLAGS): Likewise.
34764 (echo_mod_LDFLAGS): Likewise.
34765
34766 2006-09-22 Marco Gerards <marco@gnu.org>
34767
34768 * normal/main.c (get_line): Malloc memory instead of using
34769 preallocated memory. Removed the arguments `cmdline' and
34770 `max_len'. Updated all callers.
34771
34772 2006-09-22 Marco Gerards <marco@gnu.org>
34773
34774 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
34775 (normal_mod_DEPENDENCIES): Likewise.
34776
34777 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
34778 (normal_mod_DEPENDENCIES): Likewise.
34779
34780 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
34781
34782 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
34783
34784 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
34785 programs.
34786 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
34787 (normal_mod_DEPENDENCIES): Likewise.
34788 * conf/i386-pc.mk: Regenerate.
34789 * conf/i386-efi.mk: Likewise
34790 * conf/common.mk: Likewise.
34791 * conf/powerpc-ieee1275.mk: Likewise.
34792 * conf/sparc64-ieee1275.mk: Likewise.
34793
34794 2006-09-22 Robert Millan <rmh@aybabtu.com>
34795
34796 Sync with i386 version.
34797 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
34798 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
34799
34800 2006-09-21 Robert Millan <rmh@aybabtu.com>
34801
34802 Import from GRUB Legacy (lib/device.c):
34803 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
34804 (init_device_map) [__linux__]: Add support for I2O devices.
34805
34806 2006-09-14 Marco Gerards <marco@gnu.org>
34807
34808 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
34809 `-melf_i386'.
34810
34811 2006-09-14 Robert Millan <rmh@aybabtu.com>
34812
34813 * util/i386/pc/grub-install.in: Skip menu.lst when removing
34814 /boot/grub/*.lst.
34815
34816 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
34817
34818 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
34819 before adding it to device.map.
34820
34821 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
34822
34823 * genmk.rb: Let GCC generate dependencies the first time it
34824 compiles a file; using the -MD option.
34825 * conf/common.mk: Regenerate.
34826 * conf/i386-pc.mk: Likewise.
34827 * conf/i386-efi.mk: Likewise.
34828 * conf/powerpc-ieee1275.mk: Likewise.
34829 * conf/sparc64-ieee1275.mk: Likewise.
34830
34831 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
34832
34833 Move the prototypes of grub_setjmp and grub_longjmp to
34834 cpu/setjmp.h, so that each architecture may specify different
34835 attributes.
34836
34837 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
34838 (grub_longjmp): Likewise.
34839 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
34840 (grub_longjmp): Likewise.
34841 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
34842 (grub_longjmp): Likewise.
34843
34844 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
34845 [!GRUB_UTIL] (grub_longjmp): Removed.
34846
34847 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
34848
34849 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
34850 "color!" method does not return any value.
34851
34852 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
34853
34854 * include/grub/bitmap.h: New file.
34855
34856 * include/grub/i386/pc/vbeutil.h: Likewise.
34857
34858 * video/bitmap.c: Likewise.
34859
34860 * video/readers/tga.c: Likewise.
34861
34862 * video/i386/pc/vbeutil.c: Likewise.
34863
34864 * commands/videotest.c: Code cleanup and updated to reflect to new
34865 video API.
34866
34867 * term/gfxterm.c: Likewise.
34868
34869 * video/video.c: Likewise.
34870
34871 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
34872 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
34873 (bitmap_mod_SOURCES): New entry.
34874 (bitmap_mod_CFLAGS): Likewise.
34875 (bitmap_mod_LDFLAGS): Likewise.
34876 (tga_mod_SOURCES): Likewise.
34877 (tga_mod_CFLAGS): Likewise.
34878 (tga_mod_LDFLAGS): Likewise.
34879
34880 * include/grub/video.h (grub_video_blit_operators): New enum type.
34881 (grub_video_render_target): Changed as forward declaration and moved
34882 actual definition to be video driver specific.
34883 (grub_video_adapter.blit_bitmap): Added blitting operator.
34884 (grub_video_adapter.blit_render_target): Likewise.
34885 (grub_video_blit_bitmap): Likewise.
34886 (grub_video_blit_render_target): Likewise.
34887
34888 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
34889 driver specific render target definition.
34890 (grub_video_vbe_map_rgba): Added driver internal helper.
34891 (grub_video_vbe_unmap_color): Updated to use
34892 grub_video_i386_vbeblit_info.
34893 (grub_video_vbe_get_video_ptr): Likewise.
34894
34895 * include/grub/i386/pc/vbeblit.h
34896 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
34897 grub_video_i386_vbeblit_info.
34898 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
34899 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
34900 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
34901 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
34902 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
34903 (grub_video_i386_vbeblit_index_index): Likewise.
34904 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
34905 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
34906 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
34907 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
34908 operator.
34909 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
34910 operator.
34911
34912 * video/i386/pc/vbeblit.c: Updated to reflect changes on
34913 include/grub/i386/pc/vbeblit.h.
34914
34915 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
34916 Updated to use grub_video_i386_vbeblit_info.
34917 (grub_video_i386_vbefill_R8G8B8): Likewise.
34918 (grub_video_i386_vbefill_index): Likewise.
34919 (grub_video_i386_vbefill): Added generic filler.
34920
34921 * video/i386/pc/vbefill.c: Updated to reflect changes on
34922 include/grub/i386/pc/vbefill.h.
34923
34924 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
34925 grub_video_i386_vbeblit_info.
34926 (grub_video_vbe_unmap_color): Likewise.
34927 (grub_video_vbe_blit_glyph): Likewise.
34928 (grub_video_vbe_scroll): Likewise.
34929 (grub_video_vbe_draw_pixel): Removed function.
34930 (grub_video_vbe_get_pixel): Likewise.
34931 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
34932 updated code to use it.
34933 (common_blitter): Added common blitter for render target and bitmap.
34934 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
34935 (grub_video_vbe_blit_render_target): Likewise.
34936
34937 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
34938
34939 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
34940 is in text mode if there is no console control protocol instance
34941 available.
34942
34943 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
34944
34945 * include/grub/video.h: Code cleanup.
34946
34947 * include/grub/i386/pc/vbe.h: Likewise.
34948
34949 * video/i386/pc/vbe.c: Likewise.
34950
34951 * video/i386/pc/vbeblit.c: Likewise.
34952
34953 * video/i386/pc/vbefill.c: Likewise.
34954
34955 * video/video.c: Likewise. Also added more comments.
34956
34957 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
34958
34959 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
34960 (struct grub_biosdisk_dap): Likewise.
34961
34962 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
34963 linkage settings for all functions.
34964
34965 2006-07-12 Marco Gerards <marco@gnu.org>
34966
34967 * configure.ac (--enable-mm-debug): Fix typo.
34968
34969 * genkernsyms.sh.in: Use proper quoting for `CC'.
34970
34971 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
34972
34973 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
34974 (normal_mod_ASFLAGS): Remove "-m32".
34975
34976 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
34977
34978 * util/misc.c: Include config.h.
34979 [!HAVE_MEMALIGN]: Do not include malloc.h.
34980 (grub_memalign): Use posix_memalign, if present. Then, use
34981 memalign, if present. Otherwise, emit an error.
34982
34983 * util/grub-emu.c: Do not include malloc.h.
34984
34985 * include/grub/util/misc.h: Include unistd.h. This is required for
34986 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
34987 D. Eades III <hde@foobar-qux.org>.
34988
34989 * configure.ac (AC_GNU_SOURCE): Added.
34990 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
34991 type.
34992
34993 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
34994
34995 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
34996 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
34997
34998 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
34999
35000 * include/grub/types.h (grub_host_addr_t): Rename to
35001 grub_target_addr_t.
35002 (grub_host_off_t): Rename to grub_target_off_t.
35003 (grub_host_size_t): Rename to grub_target_size_t.
35004 (grub_host_ssize_t): Rename to grub_target_ssize_t.
35005 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
35006
35007 * include/grub/kernel.h (struct grub_module_header): Change type
35008 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
35009 (grub_module_info): Likewise.
35010
35011 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
35012
35013 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
35014 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
35015 Velazquez <jesus.velazquez@gmail.com>.
35016
35017 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
35018
35019 Count partitions from 1 instead of 0 in the string representation
35020 of partitions. Still use 0-based internally.
35021
35022 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
35023 (sun_partition_map_iterate): Use grub_partition_t instead of
35024 struct grub_partition *. Cast DESC->START_CYLINDER to
35025 grub_uint64_t after converting the endian.
35026 (sun_partition_map_probe): Subtract 1 for PARTNUM.
35027 (sun_partition_map_get_name): Add 1 to P->INDEX.
35028
35029 * partmap/pc.c (grub_partition_parse): Subtract 1 for
35030 PCDATA->DOS_PART.
35031 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
35032
35033 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
35034 zero instead of one.
35035 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
35036 (gpt_partition_map_get_name): Add 1 into P->INDEX.
35037
35038 * partmap/apple.c (apple_partition_map_iterate): Change the type
35039 of POS to unsigned.
35040 (apple_partition_map_probe): Subtract 1 for PARTNUM.
35041 (apple_partition_map_get_name): Add 1 into P->INDEX.
35042
35043 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
35044 of POS to unsigned.
35045 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
35046 calculate the offset of a partition.
35047 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
35048 (amiga_partition_map_get_name): Add 1 into P->INDEX.
35049
35050 * partmap/acorn.c (acorn_partition_map_find): Change the type of
35051 SECTOR to grub_disk_addr_t.
35052 (acorn_partition_map_iterate): Likewise.
35053 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
35054 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
35055 top.
35056 (acorn_partition_map_get_name): Add 1 into P->INDEX.
35057
35058 * kern/i386/pc/init.c (make_install_device): Add 1 into
35059 GRUB_INSTALL_DOS_PART.
35060
35061 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
35062 conditional.
35063
35064 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
35065
35066 Clean up the code to support 64-bit addressing in disks and
35067 files. This change is not enough for filesystems yet.
35068
35069 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
35070 type of "start" to grub_uint64_t.
35071 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
35072 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
35073 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
35074 convert addresses.
35075
35076 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
35077 to grub_disk_addr_t.
35078
35079 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
35080 string.
35081
35082 * partmap/pc.c (pc_partition_map_iterate): Likewise.
35083
35084 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
35085 to char *.
35086
35087 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
35088
35089 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
35090
35091 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
35092
35093 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
35094 to grub_off_t, to detect an error from grub_file_seek.
35095 (grub_multiboot_load_elf32): Likewise.
35096
35097 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
35098 maximum unsigned long value when an overflow is detected.
35099 (grub_strtoull): New function.
35100 (grub_divmod64): Likewise.
35101 (grub_lltoa): use grub_divmod64.
35102
35103 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
35104 grub_disk_addr_t.
35105 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
35106 the pointer to next character. Use grub_strtoull instead of
35107 grub_strtoul.
35108 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
35109 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
35110 respectively.
35111
35112 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
35113 return value is signed.
35114 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
35115 test if OFFSET is less than zero, as OFFSET is unsigned now.
35116
35117 * kern/disk.c (struct grub_disk_cache): Change the type of
35118 "sector" to grub_disk_addr_t.
35119 (grub_disk_cache_get_index): Change the type of SECTOR to
35120 grub_disk_addr_t. Calculate the hash with SECTOR casted to
35121 unsigned after shifting.
35122 (grub_disk_cache_invalidate): Change the type of SECTOR to
35123 grub_disk_addr_t.
35124 (grub_disk_cache_unlock): Likewise.
35125 (grub_disk_cache_store): Likewise.
35126 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
35127 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
35128 grub_disk_addr_t and grub_uint64_t, respectively.
35129 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
35130 body, as the value of OFFSET is tweaked by
35131 grub_disk_check_range. Change the types of START_SECTOR, LEN and
35132 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
35133 respectively.
35134 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
35135 body, as the value of OFFSET is tweaked by
35136 grub_disk_check_range. Change the types of LEN and N to
35137 grub_size_t.
35138
35139 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
35140 and "saved_offset" to grub_off_t.
35141 (test_header): Cast BUF to char *.
35142 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
35143 to char *.
35144 (grub_gzio_read): Change the types of OFFSET and SIZE to
35145 grub_off_t and grub_size_t, respectively.
35146
35147 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
35148 Removed.
35149 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
35150 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
35151 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
35152 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
35153 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
35154
35155 * include/grub/types.h (grub_off_t): Unconditionally set to
35156 grub_uint64_t.
35157 (grub_disk_addr_t): Changed to grub_uint64_t.
35158
35159 * include/grub/partition.h (struct grub_partition): Change the
35160 types of "start", "len" and "offset" to grub_disk_addr_t,
35161 grub_uint64_t and grub_disk_addr_t, respectively.
35162 (grub_partition_get_start): Return grub_disk_addr_t.
35163 (grub_partition_get_len): Return grub_uint64_t.
35164
35165 * include/grub/misc.h (grub_strtoull): New prototype.
35166 (grub_divmod64): Likewise.
35167
35168 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
35169 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
35170 grub_off_t, respectively.
35171 All callers and references changed.
35172
35173 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
35174 grub_size_t in "read".
35175 All callers and references changed.
35176
35177 * include/grub/file.h (struct grub_file): Change the types of
35178 "offset" and "size" to grub_off_t and grub_off_t,
35179 respectively. Change the type of SECTOR to grub_disk_addr_t in
35180 "read_hook".
35181 (grub_file_read): Change the type of LEN to grub_size_t.
35182 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
35183 grub_off_t.
35184 (grub_file_size): Return grub_off_t.
35185 (grub_file_tell): Likewise.
35186 All callers and references changed.
35187
35188 * include/grub/disk.h (struct grub_disk_dev): Change the types of
35189 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
35190 "write".
35191 (struct grub_disk): Change the type of "total_sectors" to
35192 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
35193 "read_hook".
35194 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
35195 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
35196 (grub_disk_write): Likewise.
35197 All callers and references changed.
35198
35199 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
35200 char * for grub_strncmp to silence gcc.
35201 (grub_iso9660_mount): Likewise.
35202 (grub_iso9660_mount): Likewise.
35203 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
35204 return statement.
35205 (grub_iso9660_iterate_dir): Likewise.
35206 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
35207
35208 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
35209 LEN to grub_disk_addr_t and grub_size_t, respectively.
35210
35211 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
35212
35213 * fs/jfs.c (grub_jfs_read_file): Likewise.
35214
35215 * fs/minix.c (grub_jfs_read_file): Likewise.
35216
35217 * fs/sfs.c (grub_jfs_read_file): Likewise.
35218
35219 * fs/ufs.c (grub_jfs_read_file): Likewise.
35220
35221 * fs/xfs.c (grub_jfs_read_file): Likewise.
35222
35223 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
35224 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
35225 respectively.
35226
35227 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
35228 BLKNR to -1 instead of returning GRUB_ERRNO.
35229 (grub_ext2_read_file): Change the types of SECTOR and
35230 LEN to grub_disk_addr_t and grub_size_t, respectively.
35231
35232 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
35233 LEN to grub_disk_addr_t and grub_size_t, respectively.
35234
35235 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
35236 grub_file_read.
35237
35238 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
35239 string. Do not cast SECTOR explicitly.
35240
35241 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
35242 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
35243 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
35244 grub_disk_addr_t and grub_size_t, respectively. If the sector is
35245 over 2TB and LBA mode is not supported, raise an error.
35246 (get_safe_sectors): New function.
35247 (grub_biosdisk_read): Use get_safe_sectors.
35248 (grub_biosdisk_write): Likewise.
35249
35250 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
35251 (grub_efidisk_write): Likewise.
35252
35253 * disk/loopback.c (delete_loopback): Cosmetic changes.
35254 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
35255 correctly.
35256 (grub_loopback_open): Likewise.
35257 (grub_loopback_read): Likewise. Also, change the type of POS to
35258 grub_off_t, and fix the usage of grub_memset.
35259
35260 * commands/i386/pc/play.c: Include grub/machine/time.h.
35261
35262 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
35263 print FILE->SIZE.
35264
35265 * commands/configfile.c: Include grub/env.h.
35266
35267 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
35268 GRUB_ERRNO directly instead. Change the type of POS to
35269 grub_off_t. Follow the coding standard.
35270
35271 * commands/blocklist.c: Include grub/partition.h.
35272 (grub_cmd_blocklist): Return an error if the underlying device is
35273 not a disk. Take the starting sector of a partition into account,
35274 if a partition is used.
35275
35276 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
35277 a length field.
35278 (lba_mode): Support 64-bit addresses.
35279 (chs_mode): Likewise.
35280 (copy_buffer): Adapted to the new offsets of a length field and a
35281 segment field.
35282 (blocklist_default_start): Allocate 64-bit space.
35283
35284 * boot/i386/pc/boot.S (force_lba): Removed.
35285 (boot_drive): Moved to under KERNEL_SECTOR.
35286 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
35287 space.
35288 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
35289 is useless.
35290 (lba_mode): Refactored to support a 64-bit address. More size
35291 optimization.
35292 (setup_sectors): Likewise.
35293
35294 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
35295
35296 * DISTLIST: Added include/grub/i386/linux.h. Removed
35297 include/grub/i386/pc/linux.h
35298
35299 * configure.ac (AC_INIT): Bumped to 1.94.
35300
35301 * config.guess: Updated from gnulib.
35302 * config.sub: Likewise.
35303 * install-sh: Likewise.
35304 * mkinstalldirs: Likewise.
35305
35306 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
35307
35308 * conf/common.rmk (grub_modules_init.lst): Depended on
35309 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
35310 MODSRCFILES.
35311
35312 * genmk.rb (PModule::rule): Reverted the previous change.
35313
35314 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
35315
35316 * conf/common.rmk (grub_modules_init.lst): Depends on
35317 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
35318 that the target does not exist before producing.
35319 (grub_modules_init.h): Remove the target before generating.
35320 (grub_emu_init.c): Likewise.
35321
35322 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
35323
35324 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
35325
35326 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
35327 for the target-specific tests. Make sure that we also have the
35328 up-to-date target variables for those tests.
35329
35330 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
35331
35332 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
35333 (PModule::rule): Likewise.
35334
35335 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
35336
35337 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
35338 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
35339 target-specific flags should be prefixed.
35340 (PModule::rule): Likewise.
35341
35342 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
35343
35344 * configure.ac (CMP): Check if cmp is available explicitly.
35345
35346 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
35347
35348 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
35349 (target_cpu): New variable.
35350 (pkglibdir): Use target_cpu instead of host_cpu.
35351
35352 * util/i386/pc/grub-install.in (host_cpu): Removed.
35353 (target_cpu): New variable.
35354 (pkglibdir): Use target_cpu instead of host_cpu.
35355
35356 * util/genmoddep.c: Removed.
35357
35358 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
35359 instead of GRUB_HOST_SIZEOF_VOID_P.
35360 * kern/dl.c: Likewise.
35361
35362 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
35363 ...
35364 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
35365 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
35366 (GRUB_TARGET_SIZEOF_LONG): ... this.
35367 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
35368 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
35369 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
35370 to ...
35371 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
35372 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
35373 (GRUB_TARGET_SIZEOF_LONG): ... this.
35374 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
35375 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
35376 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
35377 to ...
35378 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
35379 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
35380 (GRUB_TARGET_SIZEOF_LONG): ... this.
35381 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
35382 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
35383
35384 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
35385 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
35386 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
35387 instead of GRUB_HOST_SIZEOF_LONG.
35388 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
35389 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
35390 GRUB_CPU_WORDS_BIGENDIAN.
35391 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
35392 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
35393 grub_host_ssize_t.
35394
35395 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
35396 (genmoddep_SOURCES): Likewise.
35397 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
35398 (genmoddep_SOURCES): Likewise.
35399 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
35400 (genmoddep_SOURCES): Likewise.
35401 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
35402 Likewise.
35403 (genmoddep_SOURCES): Likewise.
35404
35405 * genmoddep.awk: New file.
35406
35407 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
35408 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
35409 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
35410 (PModule::rule): Likewise.
35411 (Program::rule): Likewise.
35412 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
35413 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
35414 respectively.
35415
35416 * configure.ac: Rewritten intensively to use host and target
35417 instead of build and host, respectively.
35418
35419 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
35420 (host_cpu): Removed.
35421 (target_cpu): New variable.
35422 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
35423 (BUILD_CC): Removed.
35424 (BUILD_CFLAGS): Likewise.
35425 (BUILD_CPPFLAGS): Likewise.
35426 (TARGET_CC): New variable.
35427 (TARGET_CFLAGS): Likewise.
35428 (TARGET_CPPFLAGS): Likewise.
35429 (TARGET_LDFLAGS): Likewise.
35430 (AWK): Likewise.
35431 (include): Use target_cpu instead of host_cpu.
35432 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
35433
35434 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
35435
35436 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
35437
35438 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
35439 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
35440 field 'false' to 'exec_on_false'.
35441 (grub_script_create_cmdif): Renamed argument names to reflect above
35442 changes.
35443
35444 * normal/execute.c (grub_script_execute_cmdif): Likewise.
35445
35446 * normal/script.c (grub_script_create_cmdif): Likewise.
35447
35448 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
35449
35450 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
35451 top.
35452 (grub_hfsplus_btree_recptr): Likewise.
35453 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
35454 FILEBLOCK both to pass a block number and store next block
35455 number.
35456 (grub_hfsplus_read_block): Rewritten heavily to support an extent
35457 overflow file correctly. Specify errors appropriately, because
35458 fshelp expects that GRUB_ERRNO is set when fails. Reuse
35459 grub_hfsplus_btree_recptr to get the pointer to a found key.
35460 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
35461 is found.
35462
35463 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
35464 linux.mod.
35465 (_linux_mod_SOURCES): New variable.
35466 (_linux_mod_CFLAGS): Likewise.
35467 (_linux_mod_LDFLAGS): Likewise.
35468 (linux_mod_SOURCES): Likewise.
35469 (linux_mod_CFLAGS): Likewise.
35470 (linux_mod_LDFLAGS): Likewise.
35471
35472 * DISTLIST: Added loader/i386/efi/linux.c,
35473 loader/i386/efi/linux_normal.c and
35474 include/grub/i386/efi/loader.h.
35475
35476 * loader/i386/efi/linux.c: New file.
35477 * loader/i386/efi/linux_normal.c: Likewise.
35478 * include/grub/i386/efi/loader.h: Likewise.
35479
35480 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
35481
35482 * commands/blocklist.c: New file.
35483
35484 * DISTLIST: Added commands/blocklist.c.
35485
35486 * term/efi/console.c (grub_console_highlight_color): Use a lighter
35487 color for the background, and a darker color for the foreground.
35488 (grub_console_checkkey): Return READ_KEY.
35489 (grub_console_cls): Set the background to
35490 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
35491
35492 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
35493
35494 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
35495 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
35496
35497 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
35498 prototype.
35499
35500 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
35501 BG. The spec is wrong again.
35502
35503 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
35504 prototype.
35505 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
35506
35507 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
35508 commands/blocklist.c.
35509 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35510
35511 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
35512 (blocklist_mod_SOURCES): New variable.
35513 (blocklist_mod_CFLAGS): Likewise.
35514 (blocklist_mod_LDFLAGS): Likewise.
35515
35516 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
35517
35518 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
35519 duplication.
35520 (lba_mode): Use %eax more intensively to reduce the code size.
35521
35522 2006-05-20 Marco Gerards <marco@gnu.org>
35523
35524 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
35525
35526 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
35527 for `menuentry'.
35528 (script): Accept leading newlines.
35529 (newlines): New rule to describe 0 or more newlines.
35530 (commands): Accept `command' with trailing newline. Fixed the
35531 order in which arguments were passed to `grub_script_add_cmd'.
35532 Accept commands separated by newlines.
35533 (function): Changed to accept newlines.
35534 (menuentry) Rewritten.
35535
35536 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
35537 front of the list, instead of to the end.
35538
35539 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
35540
35541 * util/i386/pc/grub-install.in (bindir): New variable.
35542 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
35543 Shaver <lbgwjl@gmail.com>.
35544
35545 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
35546
35547 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
35548 grub/machine/linux.h
35549 * loader/i386/pc/linux.c: Likewise.
35550
35551 * include/grub/i386/pc/linux.h: Moved to ...
35552 * include/grub/i386/linux.h: ... here.
35553
35554 * include/grub/i386/linux.h (struct linux_kernel_params): New
35555 struct.
35556
35557 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
35558
35559 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
35560 checking.
35561 (grub_video_vbe_blit_glyph): Likewise.
35562 (grub_video_vbe_blit_bitmap): Likewise.
35563 (grub_video_vbe_blit_render_target): Likewise.
35564
35565 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
35566
35567 * configure.ac (--with-platform): Properly quote the square
35568 brackets.
35569
35570 2006-05-08 Marco Gerards <marco@gnu.org>
35571
35572 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
35573 this...
35574 (kernel_elf_HEADERS): ...to this. Updated all users.
35575 (grubof_symlist.c): Renamed from this...
35576 (kernel_elf_symlist.c): ...to this. Updated all users.
35577 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
35578 (grubof_SOURCES): Renamed from this...
35579 (kernel_elf_SOURCES): ...to this.
35580 (grubof_HEADERS): Renamed from this...
35581 (kernel_elf_HEADERS): ...to this.
35582 (grubof_CFLAGS): Renamed from this...
35583 (kernel_elf_CFLAGS): ...to this.
35584 (grubof_ASFLAGS): Renamed from this...
35585 (kernel_elf_ASFLAGS): ...to this.
35586 (grubof_LDFLAGS): Renamed from this...
35587 (kernel_elf_LDFLAGS): ...to this.
35588
35589 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
35590 this...
35591 (kernel_elf_HEADERS): ...to this. Updated all users.
35592 (grubof_symlist.c): Renamed from this...
35593 (kernel_elf_symlist.c): ...to this. Updated all users.
35594 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
35595 (grubof_SOURCES): Renamed from this...
35596 (kernel_elf_SOURCES): ...to this.
35597 (grubof_HEADERS): Renamed from this...
35598 (kernel_elf_HEADERS): ...to this.
35599 (grubof_CFLAGS): Renamed from this...
35600 (kernel_elf_CFLAGS): ...to this.
35601 (grubof_ASFLAGS): Renamed from this...
35602 (kernel_elf_ASFLAGS): ...to this.
35603 (grubof_LDFLAGS): Renamed from this...
35604 (kernel_elf_LDFLAGS): ...to this.
35605
35606 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
35607 `kernel.elf' instead of `grubof'.
35608
35609 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
35610
35611 Add --with-platform to configure. Use pkglibdir instead of
35612 pkgdatadir. This is reported by Roger Leigh.
35613
35614 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
35615 (host_vendor): Likewise.
35616 (host_os): Likewise.
35617 (pkgdatadir): Likewise.
35618 (platform): New variable.
35619 (pkglibdir): Likewise.
35620 Use PKGLIBDIR instead of PKGDATADIR.
35621
35622 * util/i386/pc/grub-install.in (datadir): Removed.
35623 (host_vendor): Likewise.
35624 (host_os): Likewise.
35625 (pkgdatadir): Likewise.
35626 (platform): New variable.
35627 (pkglibdir): Likewise.
35628 Use PKGLIBDIR instead of PKGDATADIR.
35629
35630 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
35631 instead of GRUB_DATADIR.
35632 (main): Likewise.
35633 * util/i386/pc/grub-mkimage.c (usage): Likewise.
35634 (main): Likewise.
35635 * util/i386/efi/grub-mkimage.c (usage): Likewise.
35636 (main): Likewise.
35637
35638 * configure.ac (--with-platform): New option.
35639 Use PLATFORM instead of HOST_VENDOR to specify a platform.
35640
35641 * Makefile.in: Include a makefile based on PLATFORM instead of
35642 HOST_VENDOR.
35643 (pkgdatadir): Not appended by the machine type.
35644 (pkglibdir): Appended by the machine type.
35645 (host_vendor): Removed.
35646 (platform): New variable.
35647 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
35648 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
35649 (uninstall): Likewise.
35650
35651 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
35652
35653 Use the environment context in the menu. Remove the commands
35654 "default" and "timeout", and use variables instead.
35655
35656 * normal/menu.c: Include grub/env.h.
35657 (print_entry): Cast TITLE to silence gcc.
35658 (get_timeout): New function.
35659 (set_timeout): Likewise.
35660 (get_entry_number): Likewise.
35661 (run_menu): Use a default entry, a fallback entry and a timeout
35662 in the environment variables "default", "fallback" and
35663 "timeout". Also, tweak the default entry if it is not within the
35664 current menu entries.
35665 (grub_menu_run): Use a fallback entry in the environment variable
35666 "fallback".
35667
35668 * normal/main.c (read_config_file): Do not initialize
35669 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
35670 NEWMENU->TIMEOUT.
35671 (grub_normal_execute): Use a data slot to store the menu.
35672
35673 * include/grub/normal.h (struct grub_menu): Removed default_entry,
35674 fallback_entry and timeout.
35675 (struct grub_menu_list): Removed.
35676 (grub_menu_list_t): Likewise.
35677 (struct grub_context): Likewise.
35678 (grub_context_t): Likewise.
35679 (grub_context_get): Likewise.
35680 (grub_context_get_current_menu): Likewise.
35681 (grub_context_push_menu): Likewise.
35682 (grub_context_pop_menu): Likewise.
35683 (grub_default_init): Likewise.
35684 (grub_default_fini): Likewise.
35685 (grub_timeout_init): Likewise.
35686 (grub_timeout_fini): Likewise.
35687
35688 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
35689 and timeout.mod.
35690 (normal_mod_SOURCES): Removed normal/context.c.
35691
35692 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
35693 commands/default.c, commands/timeout.c and normal/context.c.
35694 (normal_mod_SOURCES): Removed normal/context.c.
35695
35696 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
35697 commands/timeout.c and normal/context.c.
35698 (normal_mod_SOURCES): Removed normal/context.c.
35699
35700 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
35701 commands/default.c, commands/timeout.c and normal/context.c.
35702 (normal_mod_SOURCES): Removed normal/context.c.
35703
35704 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
35705 timeout.mod.
35706 (default_mod_SOURCES): Removed.
35707 (default_mod_CFLAGS): Likewise.
35708 (default_mod_LDFLAGS): Likewise.
35709 (timeout_mod_SOURCES): Removed.
35710 (timeout_mod_CFLAGS): Likewise.
35711 (timeout_mod_LDFLAGS): Likewise.
35712
35713 * DISTLIST: Removed commands/default.c, commands/timeout.c and
35714 normal/context.c.
35715
35716 * commands/default.c: Removed.
35717 * commands/timeout.c: Likewise.
35718 * normal/context.c: Likewise.
35719
35720 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
35721
35722 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
35723
35724 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
35725
35726 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
35727 "next" to "prev" for readability.
35728 (struct grub_env_sorted_var): New struct.
35729 (grub_env_context): Renamed to ...
35730 (initial_context): ... this.
35731 (grub_env_var_context): Renamed to ...
35732 (current_context): ... this.
35733 (grub_env_find): Look only at CURRENT_CONTEXT.
35734 (grub_env_context_open): Rewritten to copy exported variables from
35735 previous context.
35736 (grub_env_context_close): Rewritten according to the new
35737 scheme. Also, add an assertion to prevent the initial context from
35738 removed.
35739 (grub_env_insert): Removed the code for the sorted list.
35740 (grub_env_remove): Likewise.
35741 (grub_env_export): Simply mark the variable with
35742 GRUB_ENV_VAR_GLOBAL.
35743 (grub_env_set): A cosmetic change for naming consistency.
35744 (grub_env_get): Likewise.
35745 (grub_env_unset): Likewise.
35746 (grub_env_iterate): Rewritten to sort variables within this
35747 function.
35748 (grub_register_variable_hook): Fixed for naming consistency. Call
35749 grub_env_find again, only if NAME is not found at the first time.
35750 (mangle_data_slot_name): New function.
35751 (grub_env_set_data_slot): Likewise.
35752 (grub_env_get_data_slot): Likewise.
35753 (grub_env_unset_data_slot): Likewise.
35754
35755 * include/grub/env.h (grub_env_var_type): New enum.
35756 (GRUB_ENV_VAR_LOCAL): New constant.
35757 (GRUB_ENV_VAR_GLOBAL): Likewise.
35758 (GRUB_ENV_VAR_DATA): Likewise.
35759 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
35760 "type".
35761 (grub_env_set): Replace VAR with NAME for consistency.
35762 (grub_register_variable_hook): Likewise.
35763 (grub_env_export): Specify the name of the argument.
35764 (grub_env_set_data_slot): New prototype.
35765 (grub_env_get_data_slot): Likewise.
35766 (grub_env_unset_data_slot): Likewise.
35767
35768 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
35769
35770 Extend the loader so that GRUB can accept a loader which comes
35771 back to GRUB when a loaded image exits. Also, this change adds
35772 support for a chainloader on EFI.
35773
35774 * term/efi/console.c: Include grub/misc.h.
35775 (grub_console_checkkey): Display a scan code on the top for
35776 debugging. This will be removed once the EFI port gets stable.
35777 Correct the scan code mapping.
35778
35779 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
35780 allocate memory from larger regions, in order to reduce the number
35781 of allocated regions. Otherwise, the MacOSX loader panics.
35782 (filter_memory_map): Avoid less than 1MB for compatibility with
35783 other loaders.
35784 (add_memory_regions): Allocate from the tail of a region, if
35785 possible, to avoid allocating a region near to 1MB, for the MacOSX
35786 loader.
35787
35788 * kern/efi/init.c (grub_efi_set_prefix): Specify
35789 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
35790
35791 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
35792 argument IMAGE_HANDLE and specify it to get a loaded image.
35793 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
35794 grub_efi_get_loaded_image.
35795 (grub_efi_get_filename): Divide the length by the size of
35796 grub_efi_char16_t.
35797 (grub_efi_get_device_path): New function.
35798 (grub_efi_print_device_path): Print End Device Path nodes. Divide
35799 the length by the size of grub_efi_char16_t for a file path device
35800 path node.
35801
35802 * kern/loader.c (grub_loader_noreturn): New variable.
35803 (grub_loader_set): Accept a new argument NORETURN. Set
35804 GRUB_LOADER_NORETURN to NORETURN.
35805 All callers changed.
35806 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
35807 grub_machine_fini.
35808
35809 * include/grub/efi/efi.h (grub_efi_get_device_path): New
35810 prototype.
35811 (grub_efi_get_loaded_image): Take an argument to specify an image
35812 handle.
35813
35814 * include/grub/loader.h (grub_loader_set): Added one more argument
35815 NORETURN.
35816
35817 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
35818 instead of grub_efi_open_protocol.
35819 (grub_efidisk_get_device_name): Likewise.
35820 (grub_efidisk_close): Print a newline.
35821 (grub_efidisk_get_device_handle): Fixed to use
35822 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
35823 GRUB_EFI_DEVICE_PATH_TYPE.
35824
35825 * disk/efi/efidisk.c (device_path_guid): Moved to ...
35826 * kern/efi/efi.c (device_path_guid): ... here.
35827
35828 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
35829 chain.mod.
35830 (kernel_mod_HEADERS): Added efi/disk.h.
35831 (_chain_mod_SOURCES): New variable.
35832 (_chain_mod_CFLAGS): Likewise.
35833 (_chain_mod_LDFLAGS): Likewise.
35834 (chain_mod_SOURCES): Likewise.
35835 (chain_mod_CFLAGS): Likewise.
35836 (chain_mod_LDFLAGS): Likewise.
35837
35838 * DISTLIST: Added include/grub/efi/chainloader.h,
35839 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
35840
35841 * include/grub/efi/chainloader.h: New file.
35842 * loader/efi/chainloader.c: Likewise.
35843 * loader/efi/chainloader_normal.c: Likewise.
35844
35845 2006-04-30 Marco Gerards <marco@gnu.org>
35846
35847 * commands/configfile.c (grub_cmd_source): New function.
35848 (GRUB_MOD_INIT): Register the commands `source' and `.'.
35849 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
35850
35851 2006-04-30 Marco Gerards <marco@gnu.org>
35852
35853 * normal/execute.c (grub_script_execute_cmd): Change the return
35854 type to `grub_err_t'. Correctly return the error.
35855 (grub_script_execute_cmdline): In case a command line is not a
35856 command or a function, try to interpret it as an assignment.
35857
35858 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
35859
35860 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
35861 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
35862 skip a node whose name is obviously invalid as UTF-16,
35863 i.e. contains a NUL character. Stop the iteration when the last
35864 directory entry is found. Instead of using the return value of
35865 grub_hfsplus_btree_iterate_node, store the value in RET and use
35866 it, because the iterator can be stopped by the last directory
35867 entry.
35868
35869 2006-04-30 Marco Gerards <marco@gnu.org>
35870
35871 * include/grub/env.h (grub_env_export): New prototype. Reported
35872 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
35873
35874 2006-04-30 Marco Gerards <marco@gnu.org>
35875
35876 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
35877 size of the extents in a catalog file record.
35878
35879 2006-04-29 Marco Gerards <marco@gnu.org>
35880
35881 * commands/configfile.c (grub_cmd_configfile): Execute the
35882 configfile within its own context.
35883
35884 * include/grub/env.h (grub_env_context_open): New prototype.
35885 (grub_env_context_close): Likewise.
35886
35887 * kern/env.c (grub_env): Removed.
35888 (grub_env_sorted): Likewise.
35889 (grub_env_context): New variable.
35890 (grub_env_var_context): Likewise.
35891 (grub_env_find): Search both the active context and the global
35892 context.
35893 (grub_env_context_open): New function.
35894 (grub_env_context_close): Likewise.
35895 (grub_env_insert): Likewise.
35896 (grub_env_remove): Likewise.
35897 (grub_env_export): Likewise.
35898 (grub_env_set): Changed to use helper functions to avoid code
35899 duplication.
35900 (grub_env_iterate): Rewritten so both the current context and the
35901 global context are being used.
35902
35903 * normal/command.c (export_command): New function.
35904 (grub_command_init): Register the `export' function.
35905
35906 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
35907
35908 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
35909 explicitly to suppress gcc's warnings.
35910 * fs/fat.c (grub_fat_find_dir): Likewise.
35911 (grub_fat_label): Likewise.
35912 * fs/xfs.c (grub_xfs_read_inode): Likewise.
35913 (grub_xfs_mount): Likewise.
35914 (grub_xfs_label): Likewise.
35915 * fs/affs.c (grub_affs_mount): Likewise.
35916 (grub_affs_label): Likewise.
35917 (grub_affs_iterate_dir): Likewise.
35918 * fs/sfs.c (grub_sfs_mount): Likewise.
35919 (grub_sfs_iterate_dir): Likewise.
35920 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
35921 * fs/hfs.c (grub_hfs_mount): Likewise.
35922 (grub_hfs_cmp_catkeys): Likewise.
35923 (grub_hfs_find_dir): Likewise.
35924 (grub_hfs_dir): Likewise.
35925 (grub_hfs_label): Likewise.
35926 * fs/jfs.c (grub_jfs_mount): Likewise.
35927 (grub_jfs_opendir): Likewise.
35928 (grub_jfs_getent): Likewise.
35929 (grub_jfs_lookup_symlink): Likewise.
35930 (grub_jfs_label): Likewise.
35931 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
35932 (grub_hfsplus_iterate_dir): Likewise.
35933 (grub_hfsplus_btree_iterate_node): Made static.
35934
35935 * util/grub-emu.c (prefix): New variable.
35936 (grub_machine_set_prefix): New function.
35937 (main): Do not set the environment variable "prefix" here. Only
35938 set PREFIX, which is used later by grub_machine_set_prefix.
35939
35940 * include/grub/video.h: Do not include grub/symbol.h.
35941 (grub_video_register): Not exported. This symbol is not defined in
35942 the kernel.
35943 (grub_video_unregister): Likewise.
35944 (grub_video_iterate): Likewise.
35945 (grub_video_setup): Likewise.
35946 (grub_video_restore): Likewise.
35947 (grub_video_get_info): Likewise.
35948 (grub_video_get_blit_format): Likewise.
35949 (grub_video_set_palette): Likewise.
35950 (grub_video_get_palette): Likewise.
35951 (grub_video_set_viewport): Likewise.
35952 (grub_video_get_viewport): Likewise.
35953 (grub_video_map_color): Likewise.
35954 (grub_video_map_rgb): Likewise.
35955 (grub_video_map_rgba): Likewise.
35956 (grub_video_fill_rect): Likewise.
35957 (grub_video_blit_glyph): Likewise.
35958 (grub_video_blit_bitmap): Likewise.
35959 (grub_video_blit_render_target): Likewise.
35960 (grub_video_scroll): Likewise.
35961 (grub_video_swap_buffers): Likewise.
35962 (grub_video_create_render_target): Likewise.
35963 (grub_video_delete_render_target): Likewise.
35964 (grub_video_set_active_render_target): Likewise.
35965
35966 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
35967 Undefined.
35968 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
35969
35970 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
35971 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
35972 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
35973 instead of $(srcdir)/genkernsyms.sh.
35974
35975 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
35976 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
35977 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
35978 instead of $(srcdir)/genkernsyms.sh.
35979
35980 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
35981 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
35982 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
35983 instead of $(srcdir)/genkernsyms.sh.
35984
35985 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
35986 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
35987 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
35988 instead of $(srcdir)/genkernsyms.sh.
35989
35990 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
35991 genkernsyms.sh.
35992
35993 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
35994 genkernsyms.sh.
35995 (gensymlist.sh): New target.
35996 (genkernsyms.sh): Likewise.
35997
35998 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
35999 genkernsyms.sh.in and gensymlist.sh.in.
36000
36001 * genkernsyms.sh: Removed.
36002 * gensymlist.sh: Likewise.
36003
36004 * genkernsyms.sh.in: New file.
36005 * gensymlist.sh.in: Likewise.
36006
36007 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
36008
36009 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
36010 clobber "prefix", since we may have already set it manually.
36011
36012 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
36013
36014 * kern/misc.c (abort): New alias for grub_abort.
36015
36016 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
36017
36018 A new machine-specific function "grub_machine_set_prefix" is
36019 defined. This is called after loading modules, so that a prefix
36020 initialization can use modules. Also, this change adds an
36021 intensive debugging feature for the memory manager via the
36022 configure option "--enable-mm-debug".
36023
36024 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
36025 PART.LEN.
36026
36027 * kern/sparc64/ieee1275/init.c (abort): Removed.
36028 (grub_stop): Likewise.
36029 (grub_exit): New function.
36030 (grub_set_prefix): Renamed to ...
36031 (grub_machine_set_prefix): ... this.
36032 (grub_machine_init): Do not call grub_set_prefix.
36033
36034 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
36035 (grub_machine_set_prefix): ... this.
36036 (grub_machine_init): Do not call grub_set_prefix.
36037
36038 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
36039 (grub_machine_init): Do not set the prefix here.
36040
36041 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
36042
36043 * kern/efi/init.c: Include grub/mm.h.
36044 (grub_efi_set_prefix): New function.
36045
36046 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
36047 (grub_efi_get_filename): New function.
36048 (grub_print_device_path): Renamed to ...
36049 (grub_efi_print_device_path): ... this.
36050
36051 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
36052 [MM_DEBUG] (grub_realloc): Likewise.
36053 [MM_DEBUG] (grub_free): Likewise.
36054 [MM_DEBUG] (grub_memalign): Likewise.
36055 [MM_DEBUG] (grub_mm_debug): New variable.
36056 [MM_DEBUG] (grub_debug_malloc): New function.
36057 [MM_DEBUG] (grub_debug_free): New function.
36058 [MM_DEBUG] (grub_debug_realloc): New function.
36059 [MM_DEBUG] (grub_debug_memalign): New function.
36060
36061 * kern/misc.c (grub_abort): Print a newline to distinguish
36062 the message.
36063
36064 * kern/main.c (grub_main): Call grub_machine_set_prefix and
36065 grub_set_root_dev after loading modules. This is necessary when
36066 setting a prefix depends on modules.
36067
36068 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
36069 (grub_efi_print_device_path): ... this.
36070 (grub_efi_get_filename): New prototype.
36071 (grub_efi_set_prefix): Likewise.
36072
36073 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
36074 and grub/disk.h.
36075 (grub_efidisk_get_device_handle): New prototype.
36076 (grub_efidisk_get_device_name): Likewise.
36077
36078 * include/grub/mm.h: Include config.h.
36079 (MM_DEBUG): Removed.
36080 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
36081 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
36082 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
36083 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
36084 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
36085 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
36086 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
36087 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
36088 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
36089
36090 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
36091
36092 * disk/efi/efidisk.c: Include grub/partition.h.
36093 (iterate_child_devices): New function.
36094 (add_device): First, compare only last device path nodes, so that
36095 devices are sorted by the types.
36096 (grub_efidisk_get_device_handle): New function.
36097 (grub_efidisk_get_device_name): Likewise.
36098
36099 * configure.ac (--enable-mm-debug): New option to enable the
36100 memory manager debugging feature. This makes the binary much
36101 bigger, so is disabled by default.
36102
36103 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
36104
36105 Use grub_abort instead of grub_stop, and grub_exit must be
36106 define in each architecture now. Also, this change adds support
36107 for EFI disks.
36108
36109 * util/i386/pc/grub-probefs.c: Include grub/term.h.
36110 (grub_getkey): New function.
36111 (grub_term_get_current): Likewise.
36112
36113 * util/i386/pc/grub-setup.c: Include grub/term.h.
36114 (grub_getkey): New function.
36115 (grub_term_get_current): Likewise.
36116
36117 * util/misc.c (grub_stop): Renamed to ...
36118 (grub_exit): ... this.
36119
36120 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
36121 (grub_exit): ... this.
36122 (grub_machine_init): Use grub_abort instead of abort.
36123 (grub_stop): Removed.
36124
36125 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
36126 abort.
36127
36128 * kern/i386/pc/startup.S (grub_exit): New function.
36129 (cold_reboot): New label.
36130
36131 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
36132 (grub_efi_init): Call grub_efidisk_init.
36133 (grub_efi_fini): Call grub_efidisk_fini.
36134
36135 * kern/efi/efi.c: Include grub/mm.h.
36136 (grub_efi_console_control_guid): Renamed to ...
36137 (console_control_guid): ... this.
36138 (grub_efi_loaded_image_guid): Renamed to ...
36139 (loaded_image_guid): ... this.
36140 (grub_efi_locate_handle): New function.
36141 (grub_efi_open_protocol): Likewise.
36142 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
36143 GRUB_EFI_CONSOLE_CONTROL_GUID.
36144 (grub_efi_exit): Removed.
36145 (grub_stop): Likewise.
36146 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
36147 (grub_exit): New function.
36148 (grub_print_device_path): Likewise.
36149
36150 * kern/rescue.c (grub_rescue_cmd_exit): New function.
36151 (grub_enter_rescue_mode): Register "exit".
36152
36153 * kern/misc.c (grub_real_dprintf): A cosmetic change.
36154 (grub_abort): New function.
36155
36156 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
36157
36158 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
36159
36160 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
36161
36162 * include/grub/efi/efi.h (grub_efi_exit): Removed.
36163 (grub_print_device_path): New prototype.
36164 (grub_efi_locate_handle): Likewise.
36165 (grub_efi_open_protocol): Likewise.
36166
36167 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
36168 * disk/efi/efidisk.c: Likewise.
36169
36170 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
36171
36172 * include/grub/efi/console_control.h
36173 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
36174
36175 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
36176 last 8 bytes as an array.
36177 (GRUB_EFI_DISK_IO_GUID): New macro.
36178 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
36179 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
36180 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
36181 grub_uint8_t.
36182 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
36183 (struct grub_efi_device_path): Rename the member "sub_type" to
36184 "subtype".
36185 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
36186 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
36187 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
36188 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
36189 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
36190 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
36191 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
36192 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
36193 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
36194 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
36195 (struct grub_efi_pci_device_path): New structure.
36196 (grub_efi_pci_device_path_t): New type.
36197 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
36198 (struct grub_efi_pccard_device_path): New structure.
36199 (grub_efi_pccard_device_path_t): New type.
36200 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
36201 (struct grub_efi_memory_mapped_device_path): New structure.
36202 (grub_efi_memory_mapped_device_path_t): New type.
36203 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
36204 (struct grub_efi_vendor_device_path): New structure.
36205 (grub_efi_vendor_device_path_t): New type.
36206 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
36207 (struct grub_efi_controller_device_path): New structure.
36208 (grub_efi_controller_device_path_t): New type.
36209 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
36210 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
36211 (struct grub_efi_acpi_device_path): New structure.
36212 (grub_efi_acpi_device_path_t): New type.
36213 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
36214 (struct grub_efi_expanded_acpi_device_path): New structure.
36215 (grub_efi_expanded_acpi_device_path_t): New type.
36216 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
36217 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
36218 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
36219 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
36220 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
36221 (struct grub_efi_atapi_device_path): New structure.
36222 (grub_efi_atapi_device_path_t): New type.
36223 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
36224 (struct grub_efi_fibre_channel_device_path): New structure.
36225 (grub_efi_fibre_channel_device_path_t): New type.
36226 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
36227 (struct grub_efi_1394_device_path): New structure.
36228 (grub_efi_1394_device_path_t): New type.
36229 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
36230 (struct grub_efi_usb_device_path): New structure.
36231 (grub_efi_usb_device_path_t): New type.
36232 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
36233 (struct grub_efi_usb_class_device_path): New structure.
36234 (grub_efi_usb_class_device_path_t): New type.
36235 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
36236 (struct grub_efi_i2o_device_path): New structure.
36237 (grub_efi_i2o_device_path_t): New type.
36238 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
36239 (struct grub_efi_mac_address_device_path): New structure.
36240 (grub_efi_mac_address_device_path_t): New type.
36241 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
36242 (struct grub_efi_ipv4_device_path): New structure.
36243 (grub_efi_ipv4_device_path_t): New type.
36244 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
36245 (struct grub_efi_ipv6_device_path): New structure.
36246 (grub_efi_ipv6_device_path_t): New type.
36247 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
36248 (struct grub_efi_infiniband_device_path): New structure.
36249 (grub_efi_infiniband_device_path_t): New type.
36250 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
36251 (struct grub_efi_uart_device_path): New structure.
36252 (grub_efi_uart_device_path_t): New type.
36253 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
36254 (struct grub_efi_vendor_messaging_device_path): New structure.
36255 (grub_efi_vendor_messaging_device_path_t): New type.
36256 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
36257 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
36258 (struct grub_efi_hard_drive_device_path): New structure.
36259 (grub_efi_hard_drive_device_path_t): New type.
36260 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
36261 (struct grub_efi_cdrom_device_path): New structure.
36262 (grub_efi_cdrom_device_path_t): New type.
36263 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
36264 (struct grub_efi_vendor_media_device_path): New structure.
36265 (grub_efi_vendor_media_device_path_t): New type.
36266 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
36267 (struct grub_efi_file_path_device_path): New structure.
36268 (grub_efi_file_path_device_path_t): New type.
36269 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
36270 (struct grub_efi_protocol_device_path): New structure.
36271 (grub_efi_protocol_device_path_t): New type.
36272 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
36273 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
36274 (struct grub_efi_bios_device_path): New structure.
36275 (grub_efi_bios_device_path_t): New type.
36276 (struct grub_efi_disk_io): New structure.
36277 (grub_efi_disk_io_t): New type.
36278 (struct grub_efi_block_io_media): New structure.
36279 (grub_efi_block_io_media_t): New type.
36280 (struct grub_efi_block_io): New structure.
36281 (grub_efi_block_io_t): New type.
36282
36283 * include/grub/misc.h (grub_stop): Removed.
36284 (grub_exit): New prototype.
36285 (grub_abort): Likewise.
36286
36287 * include/grub/disk.h (enum grub_disk_dev_id): Added
36288 GRUB_DISK_DEVICE_EFIDISK_ID.
36289
36290 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
36291 disk/efi/efidisk.c.
36292 (kernel_syms.lst): Remove the target if an error occurs.
36293
36294 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
36295
36296 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
36297 as it was simply too buggy.
36298
36299 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
36300
36301 * kern/misc.c (grub_lltoa): New function.
36302 (grub_vsprintf): Added support for the long long suffix,
36303 i.e. "ll".
36304
36305 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
36306
36307 * Makefile.in (LDFLAGS): Add variable.
36308 (LD): Remove variable.
36309 * configure.ac: Add -m32 to LDFLAGS.
36310 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
36311 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
36312 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
36313 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
36314 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
36315 variables.
36316 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
36317 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
36318 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
36319
36320 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
36321
36322 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
36323 length for unknown glyph.
36324
36325 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
36326
36327 Add support for pre-loaded modules into the EFI port.
36328
36329 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
36330 completely. Accept one more argument DIR. The caller has changed.
36331
36332 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
36333
36334 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
36335 (grub_efi_loaded_image_guid): New variable.
36336 (grub_efi_get_loaded_image): New function.
36337 (grub_arch_modules_addr): Likewise.
36338
36339 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
36340 prototype.
36341
36342 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
36343 (struct grub_efi_loaded_image): New structure.
36344 (grub_efi_loaded_image_t): New type.
36345
36346 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
36347
36348 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
36349 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
36350 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
36351
36352 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
36353
36354 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
36355
36356 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
36357
36358 * DISTLIST: Added include/grub/efi/console.h,
36359 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
36360 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
36361
36362 * include/grub/efi/console.h: New file.
36363 * include/grub/efi/time.h: Likewise.
36364 * include/grub/i386/efi/kernel.h: Likewise.
36365 * kern/efi/init.c: Likewise.
36366 * kern/efi/mm.c: Likewise.
36367 * term/efi/console.c: Likewise.
36368
36369 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
36370 (grub_stop): Removed.
36371 (grub_get_rtc): Likewise.
36372 (grub_machine_init): Simply call grub_efi_init.
36373 (grub_machine_fini): Call grub_efi_fini.
36374
36375 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
36376 (grub_efi_output_string): Removed.
36377 (grub_efi_stall): New function.
36378 (grub_stop): Likewise.
36379 (grub_get_rtc): Likewise.
36380
36381 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
36382 (grub_efi_stall): New prototype.
36383 (grub_efi_allocate_pages): Likewise.
36384 (grub_efi_free_pages): Likewise.
36385 (grub_efi_get_memory_map): Likewise.
36386 (grub_efi_mm_init): Likewise.
36387 (grub_efi_mm_fini): Likewise.
36388 (grub_efi_init): Likewise.
36389 (grub_efi_fini): Likewise.
36390
36391 * include/grub/i386/efi/time.h: Do not include
36392 grub/symbol.h. Include grub/efi/time.h.
36393 (GRUB_TICKS_PER_SECOND): Removed.
36394 (grub_get_rtc): Likewise.
36395
36396 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
36397 Added padding. The EFI spec is buggy.
36398 (GRUB_EFI_BLACK): New macro.
36399 (GRUB_EFI_BLUE): Likewise.
36400 (GRUB_EFI_GREEN): Likewise.
36401 (GRUB_EFI_CYAN): Likewise.
36402 (GRUB_EFI_RED): Likewise.
36403 (GRUB_EFI_MAGENTA): Likewise.
36404 (GRUB_EFI_BROWN): Likewise.
36405 (GRUB_EFI_LIGHTGRAY): Likewise.
36406 (GRUB_EFI_BRIGHT): Likewise.
36407 (GRUB_EFI_DARKGRAY): Likewise.
36408 (GRUB_EFI_LIGHTBLUE): Likewise.
36409 (GRUB_EFI_LIGHTGREEN): Likewise.
36410 (GRUB_EFI_LIGHTCYAN): Likewise.
36411 (GRUB_EFI_LIGHTRED): Likewise.
36412 (GRUB_EFI_LIGHTMAGENTA): Likewise.
36413 (GRUB_EFI_YELLOW): Likewise.
36414 (GRUB_EFI_WHITE): Likewise.
36415 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
36416 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
36417 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
36418 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
36419 (GRUB_EFI_BACKGROUND_RED): Likewise.
36420 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
36421 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
36422 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
36423 (GRUB_EFI_TEXT_ATTR): Likewise.
36424
36425 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
36426 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
36427 (kernel_mod_HEADERS): Added efi/time.h.
36428
36429 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
36430
36431 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
36432 include/grub/efi/api.h, include/grub/efi/console_control.h,
36433 include/grub/efi/efi.h, include/grub/efi/pe32.h,
36434 include/grub/i386/efi/time.h, kern/efi/efi.c,
36435 kern/i386/efi/init.c, kern/i386/efi/startup.S,
36436 and util/i386/efi/grub-mkimage.c.
36437
36438 * Makefile.in (RMKFILES): Added i386-efi.rmk.
36439
36440 * genmk.rb (PModule#rule): Do not export symbols if
36441 #{prefix}_EXPORTS is set to "no".
36442
36443 * conf/i386-efi.mk: New file.
36444 * conf/i386-efi.rmk: Likewise.
36445 * include/grub/efi/api.h: Likewise.
36446 * include/grub/efi/console_control.h: Likewise.
36447 * include/grub/efi/efi.h: Likewise.
36448 * include/grub/efi/pe32.h: Likewise.
36449 * include/grub/i386/efi/time.h: Likewise.
36450 * kern/efi/efi.c: Likewise.
36451 * kern/i386/efi/init.c: Likewise.
36452 * kern/i386/efi/startup.S: Likewise.
36453 * util/i386/efi/grub-mkimage.c: Likewise.
36454
36455 2006-04-17 Marco Gerards <marco@gnu.org>
36456
36457 * include/grub/script.h: Include <grub/parser.h> and
36458 "grub_script.tab.h".
36459 (struct grub_lexer_param): New struct.
36460 (struct grub_parser_param): Likewise.
36461 (grub_script_create_arglist): Pass the state in an argument.
36462 (grub_script_add_arglist): Likewise.
36463 (grub_script_create_cmdline): Likewise.
36464 (grub_script_create_cmdblock): Likewise.
36465 (grub_script_create_cmdif): Likewise.
36466 (grub_script_create_cmdmenu): Likewise.
36467 (grub_script_add_cmd): Likewise.
36468 (grub_script_arg_add): Likewise.
36469 (grub_script_lexer_ref): Likewise.
36470 (grub_script_lexer_deref): Likewise.
36471 (grub_script_lexer_record_start): Likewise.
36472 (grub_script_lexer_record_stop): Likewise.
36473 (grub_script_mem_record): Likewise.
36474 (grub_script_mem_record_stop): Likewise.
36475 (grub_script_malloc): Likewise.
36476 (grub_script_yylex): Likewise.
36477 (grub_script_yyparse): Likewise.
36478 (grub_script_yyerror): Likewise.
36479 (grub_script_yylex): Likewise.
36480 (grub_script_lexer_init): Return the state.
36481
36482 * normal/lexer.c (grub_script_lexer_state): Removed variable.
36483 (grub_script_lexer_done): Likewise.
36484 (grub_script_lexer_getline): Likewise.
36485 (grub_script_lexer_refs): Likewise.
36486 (script): Likewise.
36487 (newscript): Likewise.
36488 (record): Likewise.
36489 (recording): Likewise.
36490 (recordpos): Likewise.
36491 (recordlen): Likewise.
36492 (grub_script_lexer_init): Return the state instead of setting
36493 global variables.
36494 (grub_script_lexer_ref): Use the newly added argument for state
36495 instead of globals.
36496 (grub_script_lexer_deref): Likewise.
36497 (grub_script_lexer_record_start): Likewise.
36498 (grub_script_lexer_record_stop): Likewise.
36499 (recordchar): Likewise.
36500 (nextchar): Likewise.
36501 (grub_script_yylex2): Likewise.
36502 (grub_script_yylex): Likewise.
36503 (grub_script_yyerror): Likewise.
36504
36505 * normal/parser.y (func_mem): Removed variable.
36506 (menu_entry): Likewise.
36507 (err): Likewise.
36508 (%lex-param): New parser option.
36509 (%parse-param): Likewise.
36510 (script): Always return the AST.
36511 (argument): Pass the state around.
36512 (arguments): Likewise.
36513 (grubcmd): Likewise.
36514 (commands): Likewise.
36515 (function): Likewise.
36516 (menuentry): Likewise.
36517 (if_statement): Likewise.
36518 (if): Likewise.
36519
36520 * normal/script.c (grub_script_memused): Removed variable.
36521 (grub_script_parsed): Likewise.
36522 (grub_script_malloc): Added a state argument. Use that instead of
36523 global variables.
36524 (grub_script_mem_record): Likewise.
36525 (grub_script_mem_record_stop): Likewise.
36526 (grub_script_arg_add): Likewise.
36527 (grub_script_add_arglist): Likewise.
36528 (grub_script_create_cmdline): Likewise.
36529 (grub_script_create_cmdif): Likewise.
36530 (grub_script_create_cmdmenu): Likewise.
36531 (grub_script_add_cmd): Likewise.
36532 (grub_script_parse): Setup the state before calling the parser.
36533
36534 2006-04-16 Marco Gerards <marco@gnu.org>
36535
36536 * normal/command.c (grub_command_init): Remove the title command.
36537
36538 * normal/lexer.c (grub_script_yylex): Renamed from this...
36539 (grub_script_yylex2): ... to this.
36540 (grub_script_yylex): New function. Temporary
36541 introduced to filter some tokens.
36542 (grub_script_yyerror): Print a newline.
36543
36544 * normal/main.c (read_config_file): Output information about the
36545 lines that contain errors. Wait for a key after all lines have
36546 been processed. Don't return an empty menu.
36547
36548 * normal/parser.y (func_mem): Don't initialize.
36549 (menu_entry): Likewise.
36550 (err): New variable.
36551 (script): Don't return anything when an error was encountered.
36552 (ws, returns): Removed rules.
36553 (argument): Disabled concatenated variable support.
36554 (arguments): Remove explicit separators.
36555 (grubcmd): Likewise.
36556 (function): Likewise.
36557 (menuentry): Likewise.
36558 (if): Likewise.
36559 (commands): Likewise. Add error handling.
36560
36561 * normal/script.c (grub_script_create_cmdline): If
36562 `grub_script_parsed' is 0, assume the parser encountered an error.
36563
36564 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
36565
36566 * configure.ac: Add support for EFI. Fix the typo
36567 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
36568
36569 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
36570
36571 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
36572 foreign multibyte characters should be shown correctly.
36573
36574 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
36575
36576 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
36577 calculation.
36578 (read_config_file): Made it to close file before returning.
36579
36580 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
36581
36582 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
36583 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
36584 video/i386/pc/vbefill.c.
36585
36586 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
36587 video/i386/pc/vbefill.c.
36588
36589 * include/grub/video.h (grub_video_blit_format): New enum.
36590 (grub_video_mode_info): Added new member blit_format.
36591 (grub_video_get_blit_format): New function prototype.
36592
36593 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
36594 function prototype.
36595 (grub_video_vbe_map_rgb): Likewise.
36596 (grub_video_vbe_unmap_color): Likewise.
36597
36598 * include/grub/i386/pc/vbeblit.h: New file.
36599
36600 * include/grub/i386/pc/vbefill.h: New file.
36601
36602 * video/video.c (grub_video_get_blit_format): New function.
36603 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
36604 (grub_video_vbe_map_rgb): Likewise.
36605 (grub_video_vbe_unmap_color): Likewise.
36606
36607 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
36608 optimized fills.
36609 (grub_video_vbe_blit_render_target): Changed to use more optimized
36610 blits.
36611 (grub_video_vbe_setup): Added detection for optimized settings.
36612 (grub_video_vbe_create_render_target): Likewise.
36613
36614 * video/i386/pc/vbeblit.c: New file.
36615
36616 * video/i386/pc/vbefill.c: New file.
36617
36618 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
36619
36620 * font/manager.c (grub_font_get_glyph): Removed font fixup from
36621 here...
36622
36623 * util/unifont2pff.rb: ... and moved it to here. Improved argument
36624 parsing to support both hex and dec ranges. If filename was missing
36625 show usage information.
36626
36627 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
36628
36629 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
36630 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
36631
36632 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
36633 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
36634 (video_mod_SOURCES): Added.
36635 (video_mod_CFLAGS): Likewise.
36636 (video_mod_LDFLAGS): Likewise.
36637 (gfxterm_mod_SOURCES): Likewise.
36638 (gfxterm_mod_CFLAGS): Likewise.
36639 (gfxterm_mod_LDFLAGS): Likewise.
36640 (videotest_mod_SOURCES): Likewise.
36641 (videotest_mod_CFLAGS): Likewise.
36642 (videotest_mod_LDFLAGS): Likewise.
36643 (vesafb_mod_SOURCES): Removed.
36644 (vesafb_mod_CFLAGS): Likewise.
36645 (vesafb_mod_LDFLAGS): Likewise.
36646 (vga_mod_SOURCES): Likewise.
36647 (vga_mod_CFLAGS): Likewise.
36648 (vga_mod_LDFLAGS): Likewise.
36649
36650 * commands/videotest.c: New file.
36651
36652 * font/manager.c (fill_with_default_glyph): Modified to use
36653 grub_font_glyph.
36654 (grub_font_get_glyph): Likewise.
36655 (fontmanager): Renamed from this...
36656 (font_manager): ... to this.
36657
36658 * include/grub/font.h (grub_font_glyph): Added new structure.
36659 (grub_font_get_glyph): Modified to use grub_font_glyph.
36660
36661 * include/grub/misc.h (grub_abs): Added as inline function.
36662
36663 * include/grub/video.h: New file.
36664
36665 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
36666 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
36667 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
36668 (grub_vbe_get_controller_info): Renamed from this...
36669 (grub_vbe_bios_get_controller_info): ... to this.
36670 (grub_vbe_get_mode_info): Renamed from this...
36671 (grub_vbe_bios_get_mode_info): ... to this.
36672 (grub_vbe_set_mode): Renamed from this...
36673 (grub_vbe_bios_set_mode): ... to this.
36674 (grub_vbe_get_mode): Renamed from this...
36675 (grub_vbe_bios_get_mode): ... to this.
36676 (grub_vbe_set_memory_window): Renamed from this...
36677 (grub_vbe_bios_set_memory_window): ... to this.
36678 (grub_vbe_get_memory_window): Renamed from this...
36679 (grub_vbe_bios_get_memory_window): ... to this.
36680 (grub_vbe_set_scanline_length): Renamed from this...
36681 (grub_vbe_set_scanline_length): ... to this.
36682 (grub_vbe_get_scanline_length): Renamed from this...
36683 (grub_vbe_bios_get_scanline_length): ... to this.
36684 (grub_vbe_set_display_start): Renamed from this...
36685 (grub_vbe_bios_set_display_start): ... to this.
36686 (grub_vbe_get_display_start): Renamed from this...
36687 (grub_vbe_bios_get_display_start): ... to this.
36688 (grub_vbe_set_palette_data): Renamed from this...
36689 (grub_vbe_bios_set_palette_data): ... to this.
36690 (grub_vbe_set_pixel_rgb): Removed.
36691 (grub_vbe_set_pixel_index): Likewise.
36692
36693 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
36694 from this...
36695 (grub_vbe_bios_get_controller_info): ... to this.
36696 (grub_vbe_get_mode_info): Renamed from this...
36697 (grub_vbe_bios_get_mode_info): ... to this.
36698 (grub_vbe_set_mode): Renamed from this...
36699 (grub_vbe_bios_set_mode): ... to this.
36700 (grub_vbe_get_mode): Renamed from this...
36701 (grub_vbe_bios_get_mode): ... to this.
36702 (grub_vbe_set_memory_window): Renamed from this...
36703 (grub_vbe_bios_set_memory_window): ... to this.
36704 (grub_vbe_get_memory_window): Renamed from this...
36705 (grub_vbe_bios_get_memory_window): ... to this.
36706 (grub_vbe_set_scanline_length): Renamed from this...
36707 (grub_vbe_set_scanline_length): ... to this.
36708 (grub_vbe_get_scanline_length): Renamed from this...
36709 (grub_vbe_bios_get_scanline_length): ... to this.
36710 (grub_vbe_set_display_start): Renamed from this...
36711 (grub_vbe_bios_set_display_start): ... to this.
36712 (grub_vbe_get_display_start): Renamed from this...
36713 (grub_vbe_bios_get_display_start): ... to this.
36714 (grub_vbe_set_palette_data): Renamed from this...
36715 (grub_vbe_bios_set_palette_data): ... to this.
36716 (grub_vbe_bios_get_controller_info): Fixed problem with registers
36717 getting corrupted after calling it. Added more pushes and pops.
36718 (grub_vbe_bios_set_mode): Likewise.
36719 (grub_vbe_bios_get_mode): Likewise.
36720 (grub_vbe_bios_get_memory_window): Likewise.
36721 (grub_vbe_bios_set_scanline_length): Likewise.
36722 (grub_vbe_bios_get_scanline_length): Likewise.
36723 (grub_vbe_bios_get_display_start): Likewise.
36724 (grub_vbe_bios_set_palette_data): Likewise.
36725
36726 * normal/cmdline.c (cl_set_pos): Refresh the screen.
36727 (cl_insert): Likewise.
36728 (cl_delete): Likewise.
36729
36730 * term/gfxterm.c: New file.
36731
36732 * term/i386/pc/vesafb.c: Removed file.
36733
36734 * video/video.c: New file.
36735
36736 * video/i386/pc/vbe.c (real2pm): Added new function.
36737 (grub_video_vbe_draw_pixel): Likewise.
36738 (grub_video_vbe_get_video_ptr): Likewise.
36739 (grub_video_vbe_get_pixel): Likewise
36740 (grub_video_vbe_init): Likewise.
36741 (grub_video_vbe_fini): Likewise.
36742 (grub_video_vbe_setup): Likewise.
36743 (grub_video_vbe_get_info): Likewise.
36744 (grub_video_vbe_set_palette): Likewise.
36745 (grub_video_vbe_get_palette): Likewise.
36746 (grub_video_vbe_set_viewport): Likewise.
36747 (grub_video_vbe_get_viewport): Likewise.
36748 (grub_video_vbe_map_color): Likewise.
36749 (grub_video_vbe_map_rgb): Likewise.
36750 (grub_video_vbe_map_rgba): Likewise.
36751 (grub_video_vbe_unmap_color): Likewise.
36752 (grub_video_vbe_fill_rect): Likewise.
36753 (grub_video_vbe_blit_glyph): Likewise.
36754 (grub_video_vbe_blit_bitmap): Likewise.
36755 (grub_video_vbe_blit_render_target): Likewise.
36756 (grub_video_vbe_scroll): Likewise.
36757 (grub_video_vbe_swap_buffers): Likewise.
36758 (grub_video_vbe_create_render_target): Likewise.
36759 (grub_video_vbe_delete_render_target): Likewise.
36760 (grub_video_vbe_set_active_render_target): Likewise.
36761 (grub_vbe_set_pixel_rgb): Remove function.
36762 (grub_vbe_set_pixel_index): Likewise.
36763 (index_color_mode): Remove static variable.
36764 (active_mode): Likewise.
36765 (framebuffer): Likewise.
36766 (bytes_per_scan_line): Likewise.
36767 (grub_video_vbe_adapter): Added new static variable.
36768 (framebuffer): Likewise.
36769 (render_target): Likewise.
36770 (initial_mode): Likewise.
36771 (mode_in_use): Likewise.
36772 (mode_list): Likewise.
36773
36774 2006-03-10 Marco Gerards <marco@gnu.org>
36775
36776 * configure.ac (AC_INIT): Bumped to 1.93.
36777
36778 * DISTLIST: Added `include/grub/hfs.h'.
36779
36780 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
36781
36782 * boot/i386/pc/boot.S (general_error): Before looping, try INT
36783 18H, which might help the BIOS falling back to next boot media.
36784
36785 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
36786
36787 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
36788 Poe Chen <poe.poechen@gmail.com>.
36789
36790 2006-01-17 Marco Gerards <marco@gnu.org>
36791
36792 * include/grub/normal.h: Include <grub/script.h>.
36793 (grub_command_list): Removed struct.
36794 (grub_command_list_t): Removed type.
36795 (grub_menu_entry): Remove members `num' and `command_list'. Add
36796 members `commands' and `sourcecode'.
36797 * include/grub/script.h: Add inclusion guards.
36798 (grub_script_cmd_menuentry): New struct.
36799 (grub_script_execute_menuentry): New prototype.
36800 (grub_script_lexer_record_start): Likewise.
36801 (grub_script_lexer_record_stop): Likewise.
36802 * normal/execute.c (grub_script_execute_menuentry): New function.
36803 * normal/lexer.c (record, recording, recordpos, recordlen): New
36804 variables.
36805 (grub_script_lexer_record_start): New function.
36806 (grub_script_lexer_record_stop): Likewise.
36807 (recordchar): Likewise.
36808 (nextchar): Likewise.
36809 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
36810 2048 as the buffer size. Add the tokens `menuentry' and `@'.
36811 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
36812 (current_menu): New variable.
36813 (free_menu): Mainly rewritten.
36814 (grub_normal_menu_addentry): New function.
36815 (read_config_file): Rewritten.
36816 * normal/menu.c (run_menu_entry): Mainly rewritten.
36817 * normal/menu_entry.c (make_screen): Rewritten the code to insert
36818 the menu entry.
36819 (run): Mainly rewritten.
36820 * normal/parser.y (menu_entry): New variable.
36821 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
36822 (menuentry): New rule.
36823 (command): Add `menuentry'.
36824 (if_statement): Allow additional returns before `fi'.
36825 * normal/script.c (grub_script_create_cmdmenu): New function.
36826
36827 2006-01-03 Marco Gerards <marco@gnu.org>
36828
36829 * INSTALL: GNU Bison is required.
36830 * configure.ac: Rewritten the test to detect Bison.
36831 * Makefile.in (YACC): New variable. Reported by Xun Sun
36832 <xun.sun.cn@gmail.com>.
36833
36834 2006-01-03 Marco Gerards <marco@gnu.org>
36835
36836 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
36837 the HFS+ filesystem to filesystem blocks.
36838 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
36839 GCC warning is silenced.
36840
36841 2006-01-03 Marco Gerards <marco@gnu.org>
36842
36843 * partmap/apple.c (apple_partition_map_iterate): Convert the data
36844 read from disk from big endian to host byte order.
36845
36846 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
36847
36848 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
36849 documentation.
36850 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
36851 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
36852 embedded HFS+ filesystem.
36853 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
36854 (grub_hfs_sblock): Move from here...
36855 * include/grub/hfs.h: To here... New file.
36856 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
36857 documentation.
36858 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
36859 New macros.
36860 (grub_hfsplus_volheader): Change type of member `magic' to
36861 `grub_uint16_t'.
36862 (grub_hfsplus_data): Add new member `embedded_offset'.
36863 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
36864 returned block.
36865 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
36866 Calculate the offset.
36867
36868 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
36869
36870 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
36871 Removed.
36872 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
36873
36874 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
36875
36876 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
36877 ENV->NAME is NULL after allocating ENV->VALUE.
36878
36879 2005-12-25 Marco Gerards <marco@gnu.org>
36880
36881 * kern/env.c (grub_env_set): Rewritten the error handling code.
36882
36883 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
36884
36885 * geninit.sh: Made more robust, and more portable.
36886
36887 2005-12-25 Marco Gerards <marco@gnu.org>
36888
36889 Add support for Apple HFS+ filesystems.
36890
36891 * fs/hfsplus.c: New file.
36892
36893 * DISTLIST: Added `fs/hfsplus.c'.
36894
36895 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
36896 (hfsplus_mod_SOURCES): New variable.
36897 (hfsplus_mod_CFLAGS): Likewise.
36898 (hfsplus_mod_LDFLAGS): Likewise.
36899 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
36900 (grub_setup_SOURCES): Likewise.
36901 (grub_mkdevicemap_SOURCES): Likewise.
36902 (grub_emu_SOURCES): Likewise.
36903 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36904
36905 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
36906
36907 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
36908
36909 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
36910
36911 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
36912 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
36913 include/grub/parser.h, include/grub/script.h, kern/parser.c,
36914 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
36915 normal/lexer.c, normal/parser.y, normal/script.c, and
36916 partmap/gpt.c.
36917 Removed kern/sparc64/cache.c.
36918
36919 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
36920 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
36921 grub_emu_init.c.
36922
36923 * configure.ac (AC_INIT): Bumped to 1.92.
36924
36925 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
36926
36927 * kern/err.c (grub_error_push): Added new function to support error
36928 stacks.
36929 (grub_error_pop): Likewise.
36930 (grub_error_stack_items): New local variable to support error stacks.
36931 (grub_error_stack_pos): Likewise.
36932 (grub_error_stack_assert): Likewise.
36933 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
36934 stack depth.
36935 (grub_print_error): Added support to print errors from error stack.
36936
36937 * include/grub/err.h (grub_error_push): Added function prototype.
36938 (grub_error_pop): Likewise.
36939
36940 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
36941
36942 * configure.ac: Accept `powerpc64' as host_cpu.
36943 (amd64): Rename to `biarch32'.
36944
36945 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
36946 non-cacheline-aligned addresses.
36947
36948 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
36949 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
36950 if `size' is non-zero.
36951
36952 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
36953
36954 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
36955 and `cd' to make sure the filename is not prefixed with a
36956 directory name.
36957 (pkgdata_MODULES): Add `gpt.mod'.
36958 (gpt_mod_SOURCES): New variable.
36959 (gpt_mod_CFLAGS): Likewise.
36960 (gpt_mod_LDFLAGS): Likewise.
36961
36962 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
36963
36964 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
36965 New macro.
36966
36967 * partmap/gpt.c: New file.
36968
36969 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
36970 GPT partition map is detected.
36971
36972 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
36973
36974 * commands/i386/pc/play.c: New file.
36975 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
36976 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
36977 macros.
36978
36979 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
36980
36981 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
36982 ((unused))' to silence gcc warning.
36983
36984 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
36985
36986 * configure.ac: Correct `AC_PROG_YACC' test.
36987
36988 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
36989
36990 * util/powerpc/ieee1275/grub-install.in: Run the mount point
36991 check before installing files.
36992
36993 2005-11-22 Mike Small <smallm@panix.com>
36994
36995 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
36996 number regex so multidigit numbers are recognized correctly.
36997
36998 2005-11-22 Mike Small <smallm@panix.com>
36999
37000 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
37001 debugging message before attempting to claim memory.
37002 (grub_rescue_cmd_initrd): Add a claim debugging message and try
37003 multiple addresses in case of failure.
37004
37005 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
37006
37007 * term/tparm.c (get_space): Remove empty `if' statement.
37008
37009 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
37010
37011 * kern/parser.c (check_varstate): Rename `state' to 's'.
37012
37013 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
37014
37015 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
37016 variable definitions to the beginning of each function. Sort stack
37017 variables by size.
37018 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
37019 `buf' argument to `char *'.
37020
37021 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
37022
37023 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
37024 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
37025 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
37026 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
37027 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
37028 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
37029 configfile.mod, search.mod, gzio.mod and test.mod.
37030 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
37031 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
37032 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
37033 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
37034 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
37035 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
37036 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
37037 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
37038 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
37039 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
37040 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
37041 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
37042 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
37043 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
37044 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
37045 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
37046 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
37047 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
37048 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
37049 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
37050 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
37051 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
37052 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
37053
37054 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
37055 `grep --include'.
37056 (pkgdata_MODULES): Add test.mod.
37057
37058 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
37059
37060 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
37061 appending to variables with "+=".
37062 (PModule): Use full pathname to generate *.lst filenames.
37063
37064 * Makefile.in: Fixed list rules moved from genmk.rb.
37065 (.DELETE_ON_ERROR): New special target.
37066 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
37067
37068 * conf/i386-pc.rmk: Include conf/common.mk.
37069 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
37070 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
37071 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
37072 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
37073 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
37074 configfile.mod, search.mod, gzio.mod and test.mod.
37075 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
37076 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
37077 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
37078 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
37079 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
37080 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
37081 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
37082 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
37083 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
37084 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
37085 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
37086 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
37087 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
37088 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
37089 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
37090 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
37091 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
37092 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
37093 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
37094 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
37095 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
37096 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
37097 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
37098 here...
37099 * conf/common.rmk: ... to here. New file.
37100
37101 * conf/common.mk: New file.
37102
37103 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
37104
37105 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
37106 (grub_script.tab.c): ... here.
37107
37108 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
37109 (grub_script.tab.c): ... here.
37110
37111 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
37112 (grub_script.tab.c): ... here.
37113
37114 * normal/command.c (grub_command_find): Fixed a memory leak of
37115 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
37116
37117 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
37118
37119 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
37120 "@" which marks the start of a comment on ARM.
37121 (VARIABLE): Likewise.
37122
37123 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
37124
37125 Add support for Linux/ADFS partition tables.
37126
37127 * partmap/acorn.c: New file.
37128
37129 * include/grub/acorn_filecore.h: Likewise.
37130
37131 * DISTLIST: Added `partmap/acorn.c' and
37132 `include/grub/acorn_filecore.h'.
37133
37134 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
37135 `partmap/acorn.c'.
37136 (pkgdata_MODULES): Add `acorn.mod'.
37137 (acorn_mod_SOURCES): New variable.
37138 (acorn_mod_CFLAGS): Likewise.
37139
37140 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
37141 `partmap/acorn.c'.
37142 (pkgdata_MODULES): Add `acorn.mod'.
37143 (acorn_mod_SOURCES): New variable.
37144 (acorn_mod_CFLAGS): Likewise.
37145
37146 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
37147 (pkgdata_MODULES): Add `acorn.mod'.
37148 (acorn_mod_SOURCES): New variable.
37149 (acorn_mod_CFLAGS): Likewise.
37150 (acorn_mod_LDFLAGS): Likewise.
37151
37152 * include/types.h (grub_disk_addr_t): New typedef.
37153
37154 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
37155
37156 * geninit.sh: New file.
37157
37158 * geninitheader.sh: Likewise.
37159
37160 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
37161 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
37162 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
37163 * commands/configfile.c (grub_configfile_init)
37164 (grub_configfile_fini): Likewise.
37165 * commands/default.c (grub_default_init, grub_default_fini):
37166 Likewise.
37167 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
37168 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
37169 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
37170 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
37171 Likewise.
37172 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
37173 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
37174 Likewise.
37175 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
37176 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
37177 Likewise.
37178 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
37179 Likewise.
37180 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
37181 Likewise.
37182 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
37183 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
37184 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
37185 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
37186 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
37187 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
37188 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
37189 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
37190 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
37191 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
37192 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
37193 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
37194 * partmap/amiga.c (grub_amiga_partition_map_init)
37195 (grub_amiga_partition_map_fini): Likewise.
37196 * partmap/apple.c (grub_apple_partition_map_init)
37197 (grub_apple_partition_map_fini): Likewise.
37198 * partmap/pc.c (grub_pc_partition_map_init)
37199 (grub_pc_partition_map_fini): Likewise.
37200 * partmap/sun.c (grub_sun_partition_map_init,
37201 grub_sun_partition_map_fini): Likewise.
37202 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
37203 Likewise.
37204
37205 * util/grub-emu.c: Include <grub_modules_init.h>.
37206 (main): Don't initialize and de-initialize any modules directly,
37207 use `grub_init_all' and `grub_fini_all' instead.
37208
37209 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
37210 `grub_vesafb_mod_init'.
37211 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
37212 all users.
37213 * term/i386/pc/vga.c (grub_vga_init): Renamed to
37214 `grub_vga_mod_init'. Updated all users.
37215 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
37216
37217 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
37218 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
37219 rules.
37220
37221 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
37222 Generate a function to initialize the module in utilities.
37223 Updated all callers.
37224 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
37225 initialize the module in utilities. Updated all callers.
37226
37227 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
37228
37229 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
37230 escape sequence and a literal ^L to clear the screen.
37231
37232 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
37233 when returning from Open Firmware.
37234
37235 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
37236
37237 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
37238 (grub_ofconsole_height): Likewise.
37239 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
37240 manually insert a '\n'.
37241 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
37242 `grub_ofconsole_height'. Return early if these are already set.
37243
37244 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
37245
37246 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
37247 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
37248 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
37249 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
37250 and `normal/script.c'.
37251 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
37252 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
37253 (test_mod_SOURCES): New variable.
37254 (test_mod_CFLAGS): Likewise.
37255 (test_mod_LDFLAGS): Likewise.
37256 (pkgdata_MODULES): Add `test.mod'.
37257 (grub_script.tab.c): New rule.
37258 (grub_script.tab.h): Likewise.
37259
37260 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
37261
37262 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
37263 `commands/test.c', `normal/execute.c', `normal/lexer.c',
37264 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
37265 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
37266 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
37267 (test_mod_SOURCES): New variable.
37268 (test_mod_CFLAGS): Likewise.
37269 (pkgdata_MODULES): Add `test.mod'.
37270 (grub_script.tab.c): New rule.
37271 (grub_script.tab.h): Likewise.
37272
37273 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
37274
37275 Add initial scripting support.
37276
37277 * commands/test.c: New file.
37278 * include/grub/script.h: Likewise.
37279 * normal/execute.c: Likewise.
37280 * normal/function.c: Likewise.
37281 * normal/lexer.c: Likewise.
37282 * normal/parser.y: Likewise.
37283 * normal/script.c: Likewise.
37284
37285 * configure.ac: Add `AC_PROG_YACC' test.
37286
37287 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
37288 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
37289 `normal/function.c' and `normal/script.c'.
37290 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
37291 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
37292 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
37293 variables.
37294 (pkgdata_MODULES): Add `test.mod'.
37295 (grub_script.tab.c): New rule.
37296 (grub_script.tab.h): Likewise.
37297
37298 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
37299
37300 * include/grub/normal.h (grub_test_init): New prototype.
37301 (grub_test_fini): Likewise.
37302
37303 * normal/command.c: Include <grub/script.h>.
37304 (grub_command_execute): Rewritten.
37305
37306 * util/grub-emu.c (main): Call `grub_test_init' and
37307 `grub_test_fini'.
37308
37309 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
37310
37311 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
37312 to 0.
37313 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
37314 there are no pending characters.
37315
37316 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
37317
37318 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
37319 `grub_strndup' to drop device arguments. Replace unnecessary
37320 `grub_strndup' with `grub_strdup'.
37321
37322 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
37323
37324 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
37325 `debug' environment variable has been set.
37326
37327 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
37328
37329 * Makefile.in (install-local): Use $(DATA).
37330 (uninstall): Likewise.
37331 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
37332 (sbin_UTILITIES): ... to here.
37333 (sbin_SCRIPTS): New variable.
37334 (grub_install_SOURCES): New variable.
37335 * util/powerpc/ieee1275/grub-install.in: New file.
37336 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
37337 variable.
37338 (add_segments): Call `grub_util_get_path'.
37339
37340 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
37341
37342 From Timothy Baldwin:
37343 * commands/ls.c (grub_ls_list_files): Close FILE with
37344 grub_file_close.
37345 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
37346
37347 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
37348
37349 * include/grub/parser.h: New file.
37350
37351 * kern/parser.c: Likewise.
37352
37353 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
37354 (grub_setup_SOURCES): Likewise.
37355 (grub_probefs_SOURCES): Likewise.
37356 (grub_emu_SOURCES): Likewise.
37357 (kernel_img_HEADERS): Add `parser.h'.
37358
37359 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
37360 (grub_emu_SOURCES): Add `kern/parser.c'.
37361 (grubof_SOURCES): Likewise.
37362
37363 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
37364 (grubof_SOURCES): Add `kern/parser.c'.
37365
37366 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
37367
37368 * kern/misc.c (grub_split_cmdline): Removed function.
37369
37370 * kern/rescue.c: Include <grub/parser.h>.
37371 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
37372 of `grub_split_cmdline'.
37373
37374 * normal/command.c: Include <grub/parser.h>.
37375 (grub_command_execute): Use `grub_parser_split_cmdline' instead
37376 of `grub_split_cmdline'.
37377
37378 * normal/completion.c: Include <grub/parser.h>.
37379 (cmdline_state): New variable.
37380 (iterate_dir): End the filename with a quote depending on the
37381 command line state.
37382 (get_state): new function.
37383 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
37384 split the arguments and determine the current argument. When the
37385 argument string is not quoted, escape all spaces.
37386
37387 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
37388
37389 * normal/sparc64/setjmp.S: New file.
37390
37391 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
37392
37393 * include/grub/sparc64/libgcc.h: New file.
37394 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
37395 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
37396 normal/sparc64/setjmp.c.
37397
37398 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
37399
37400 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
37401 * kern/sparc64/cache.S: New file.
37402 * kern/sparc64/cache.c: Removed.
37403 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
37404 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
37405 -mtune=ultrasparc.
37406 (COMMON_LDFLAGS): Add -melf64_sparc.
37407 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
37408 (grubof_SOURCES): Use cache.S instead of cache.c.
37409 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
37410 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
37411 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
37412 commented though.
37413 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
37414 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
37415 (linux_mod_CFLAGS): Commented out.
37416 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
37417 out because module isn't built.
37418 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
37419 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
37420 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
37421 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
37422 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
37423 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
37424 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
37425 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
37426 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
37427 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
37428 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
37429 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
37430 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
37431 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
37432
37433 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
37434
37435 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
37436 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
37437 longer, because HFS should not be used on PC.
37438
37439 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
37440
37441 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
37442 consistently within the loop.
37443
37444 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
37445
37446 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
37447 directory can not be read.
37448
37449 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
37450
37451 * configure.ac (AC_INIT): Increase the version number to 1.91.
37452
37453 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
37454 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
37455 term/i386/pc/serial.c.
37456
37457 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
37458
37459 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
37460 file size must be permitted.
37461
37462 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
37463 between %ah and %al.
37464
37465 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
37466
37467 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
37468 grub_uint64_t.
37469 Call the hook with a NUL-terminated filename.
37470 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
37471 grub_cpu_to_be32.
37472
37473 * kern/term.c (cursor_state): New variable.
37474 (grub_term_set_current): Reset the cursor state on a new
37475 terminal.
37476 (grub_setcursor): Rewritten to use CURSOR_STATE.
37477 (grub_getcursor): New function.
37478
37479 * include/grub/term.h (grub_getcursor): New prototype.
37480
37481 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
37482 integers on ARM. Reported by Timothy Baldwin
37483 <T.E.Baldwin99@members.leeds.ac.uk>.
37484
37485 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
37486
37487 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
37488 allocated.
37489 (grub_sfs_dir): Likewise.
37490
37491 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
37492
37493 Add support for the SFS filesystem.
37494
37495 * fs/sfs.c: New file.
37496
37497 * DISTLIST: Added `fs/sfs.c'.
37498
37499 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
37500 (grub_probefs_SOURCES): Likewise.
37501 (grub_emu_SOURCES): Likewise.
37502 (pkgdata_MODULES): Add `sfs.mod'.
37503 (sfs_mod_SOURCES): New variable.
37504 (sfs_mod_CFLAGS): Likewise.
37505 (sfs_mod_LDFLAGS): Likewise.
37506
37507 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
37508 (pkgdata_MODULES): Add `sfs.mod'.
37509 (sfs_mod_SOURCES): New variable.
37510 (sfs_mod_CFLAGS): Likewise.
37511
37512 * util/grub-emu.c (main): Call `grub_sfs_init' and
37513 `grub_sfs_fini'.
37514
37515 * include/grub/fs.h (grub_sfs_init): New prototype.
37516 (grub_sfs_fini): Likewise.
37517
37518 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
37519
37520 Add support for the AFFS filesystem.
37521
37522 * fs/affs.c: New file.
37523
37524 * DISTLIST: Added `fs/affs.c'.
37525
37526 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
37527 (grub_probefs_SOURCES): Likewise.
37528 (grub_emu_SOURCES): Likewise.
37529 (pkgdata_MODULES): Add `affs.mod'.
37530 (affs_mod_SOURCES): New variable.
37531 (affs_mod_CFLAGS): Likewise.
37532 (affs_mod_LDFLAGS): Likewise.
37533
37534 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
37535 (pkgdata_MODULES): Add `affs.mod'.
37536 (affs_mod_SOURCES): New variable.
37537 (affs_mod_CFLAGS): Likewise.
37538
37539 * util/grub-emu.c (main): Call `grub_affs_init' and
37540 `grub_affs_fini'.
37541
37542 * include/grub/fs.h (grub_affs_init): New prototype.
37543 (grub_affs_fini): Likewise.
37544
37545 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
37546
37547 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
37548
37549 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
37550
37551 * configure.ac: Accept `x86_64' as host_cpu. In that case add
37552 `-m32' to CFLAGS.
37553
37554 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
37555 linking.
37556
37557 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
37558 (COMMON_LDFLAGS): New variable.
37559 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
37560 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
37561 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
37562 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
37563 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
37564 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
37565 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
37566 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
37567 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
37568 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
37569 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
37570 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
37571 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
37572 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
37573 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
37574 variables.
37575 (normal_mod_ASFLAGS): Add `-m32'.
37576
37577 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
37578 (grub_host_size_t, grub_host_ssize_t): New types.
37579 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
37580 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
37581 `GRUB_HOST_SIZEOF_VOID_P'.
37582
37583 * include/grub/kernel.h (struct grub_module_header): Type of
37584 member offset changed to `grub_host_off_t'. Type of member size
37585 changed to `grub_host_size_t'.
37586 (struct grub_module_info): Type of member offset changed to
37587 `grub_host_off_t'. Type of member size changed to
37588 `grub_host_size_t'.
37589
37590 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
37591
37592 Make GRUB's kernel compliant to Multiboot Specification.
37593
37594 * kern/i386/pc/startup.S (multiboot_header): New label.
37595 (multiboot_entry): Likewise.
37596 (multiboot_trampoline): Likewise.
37597
37598 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
37599 Increased to 0x4A0.
37600
37601 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
37602 put parentheses after a question mark.
37603 [!GRUB_UTIL] (my_mod): New variable.
37604
37605 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
37606
37607 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
37608
37609 Adds support for the XFS filesystem. Btrees are not supported
37610 yet.
37611
37612 * fs/xfs.c: New file.
37613
37614 * DISTLIST: Added `fs/xfs.c'.
37615
37616 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
37617 (grub_probefs_SOURCES): Likewise.
37618 (grub_emu_SOURCES): Likewise.
37619 (pkgdata_MODULES): Add `xfs.mod'.
37620 (xfs_mod_SOURCES): New variable.
37621 (xfs_mod_CFLAGS): Likewise.
37622
37623 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
37624 (pkgdata_MODULES): Add `xfs.mod'.
37625 (xfs_mod_SOURCES): New variable.
37626 (xfs_mod_CFLAGS): Likewise.
37627
37628 * util/grub-emu.c (main): Call `grub_xfs_init' and
37629 `grub_xfs_fini'.
37630
37631 * include/grub/fs.h (grub_xfs_init): New prototype.
37632 (grub_xfs_fini): Likewise.
37633
37634
37635 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
37636
37637 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
37638 color modes, allow greater than 16 colors to be configured as
37639 a default palette.
37640
37641 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
37642
37643 * normal/completion.c (complete_arguments): Add the qualifier
37644 const into OPTIONS.
37645
37646 From Omniflux <omniflux+lists@omniflux.com>:
37647 * include/grub/terminfo.h: New file.
37648 * include/grub/tparm.h: Likewise.
37649 * include/grub/i386/pc/serial.h: Likewise.
37650 * term/terminfo.c: Likewise.
37651 * term/tparm.c: Likewise.
37652 * term/i386/pc/serial.c: Likewise.
37653 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
37654 serial.mod.
37655 (terminfo_mod_SOURCES): New variable.
37656 (terminfo_mod_CFLAGS): Likewise.
37657 (serial_mod_SOURCES): Likewise.
37658 (serial_mod_CFLAGS): Likewise.
37659
37660 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
37661
37662 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
37663 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
37664 and kern/powerpc/ieee1275/cmain.c, respectively.
37665
37666 * boot/powerpc/ieee1275/crt0.S: Moved to ...
37667 * kern/powerpc/ieee1275/crt0.S: ... here.
37668
37669 * boot/powerpc/ieee1275/cmain.c: Moved to ...
37670 * kern/powerpc/ieee1275/cmain.c: ... here.
37671
37672 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
37673 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
37674 instead of boot/powerpc/ieee1275/crt0.S and
37675 boot/powerpc/ieee1275/cmain.c, respectively.
37676
37677 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
37678 sectors. It was not used anyway.
37679
37680 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
37681
37682 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
37683 `unused parameter' warning.
37684
37685 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
37686
37687 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
37688 function.
37689 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
37690 getcharwidth.
37691
37692 2005-08-28 Marco Gerards <metgerards@student.han.nl>
37693
37694 * include/grub/normal.h (enum grub_completion_type): Added
37695 `GRUB_COMPLETION_TYPE_ARGUMENT'.
37696
37697 * normal/cmdline.c (print_completion): Handle
37698 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
37699 * normal/menu_entry.c (store_completion): Likewise.
37700
37701 * normal/completion.c (complete_arguments): New function.
37702 (grub_normal_do_completion): Call `complete_arguments' when the
37703 current words start with a dash.
37704
37705 2005-08-27 Marco Gerards <metgerards@student.han.nl>
37706
37707 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
37708 `gzio.mod' instead of `io.mod').
37709
37710 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
37711
37712 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
37713 (DISTDIRS): Added io and video.
37714 Rewrite the search routine to make an output consistently.
37715
37716 * DISTLIST: Added conf/sparc64-ieee1275.mk,
37717 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
37718 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
37719 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
37720 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
37721 util/powerpc/ieee1275/misc.c.
37722
37723 * include/grub/gzio.h: New file.
37724 * io/gzio.c: Likewise.
37725
37726 * kern/file.c (grub_file_close): Call grub_device_close only if
37727 FILE->DEVICE is not NULL.
37728
37729 * include/grub/mm.h [!NULL] (NULL): New macro.
37730
37731 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
37732
37733 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
37734 (pkgdata_MODULES): Added gzio.mod.
37735 (gzio_mod_SOURCES): New variable.
37736 (gzio_mod_CFLAGS): Likewise.
37737
37738 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
37739 (pkgdata_MODULES): Added gzio.mod.
37740 (gzio_mod_SOURCES): New variable.
37741 (gzio_mod_CFLAGS): Likewise.
37742
37743 * commands/cat.c: Include grub/gzio.h.
37744 (grub_cmd_cat): Use grub_gzfile_open instead of
37745 grub_file_open.
37746
37747 * commands/cmp.c: Include grub/gzio.h.
37748 (grub_cmd_cmp): Use grub_gzfile_open instead of
37749 grub_file_open.
37750
37751 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
37752 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
37753 grub_file_open.
37754 (grub_rescue_cmd_module): Likewise.
37755
37756 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
37757
37758 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
37759 kern/sparc64/ieee1275/init.c because it contains _start.
37760 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
37761
37762 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
37763
37764 * configure.ac: Add support for sparc64 host with ieee1275
37765 firmware.
37766 * configure: Generated from configure.ac.
37767 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
37768 instead of int.
37769 (grub_ofdisk_read): Likewise.
37770 (grub_ofdisk_open): Use %p to print pointer values, and cast the
37771 pointers as (void *) to remove a warning.
37772 (grub_ofdisk_close): Likewise.
37773 (grub_ofdisk_read): Likewise.
37774 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
37775 returns, so make it return void to remove a warning.
37776 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
37777 Corresponding prototype change.
37778 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
37779 values, and cast the pointers as (void *) to remove a warning.
37780 (grub_mm_dump): Likewise.
37781 * conf/sparc64-ieee1275.mk: New file.
37782 * conf/sparc64-ieee1275.rmk: Likewise.
37783 * include/grub/sparc64/setjmp.h: Likewise.
37784 * include/grub/sparc64/types.h: Likewise.
37785 * include/grub/sparc64/ieee1275/console.h: Likewise.
37786 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
37787 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
37788 * include/grub/sparc64/ieee1275/time.h: Likewise.
37789 * kern/sparc64/cache.c: Likewise.
37790 * kern/sparc64/dl.c: Likewise.
37791 * kern/sparc64/ieee1275/init.c: Likewise.
37792 * kern/sparc64/ieee1275/openfw.c: Likewise.
37793
37794 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
37795
37796 * util/console.c (grub_ncurses_putchar): If C is greater than
37797 0x7f, set C to a question mark.
37798 (grub_ncurses_getcharwidth): New function.
37799 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
37800 getcharwidth.
37801
37802 * normal/menu.c (print_entry): Made aware of Unicode. First,
37803 convert TITLE to UCS-4, and predict the cursor position by
37804 grub_getcharwidth.
37805
37806 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
37807 const to SRC.
37808 * kern/misc.c (grub_utf16_to_utf8): Likewise.
37809
37810 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
37811
37812 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
37813 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
37814 grub_strcat.
37815
37816 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
37817 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
37818 grub_strcpy and grub_strlen. Take it into account that a space
37819 character is inserted as a delimiter.
37820
37821 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
37822
37823 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
37824 invalid magic in the error.
37825
37826 * commands/search.c: New file.
37827
37828 * util/grub-emu.c (main): Call grub_search_init and
37829 grub_search_fini.
37830
37831 * kern/rescue.c (grub_rescue_print_disks): Removed.
37832 (grub_rescue_print_devices): New function.
37833 (grub_rescue_cmd_ls): Use grub_device_iterate with
37834 grub_rescue_print_devices instead of grub_disk_dev_iterate with
37835 grub_rescue_print_disks.
37836
37837 * kern/partition.c (grub_partition_iterate): Return the result of
37838 PARTMAP->ITERATE instead of GRUB_ERRNO.
37839
37840 * kern/device.c: Include grub/partition.h.
37841 (grub_device_iterate): New function.
37842
37843 * include/grub/partition.h (grub_partition_iterate): Return int
37844 instead of grub_err_t.
37845
37846 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
37847 prototype.
37848 [GRUB_UTIL] (grub_search_fini): Likewise.
37849
37850 * include/grub/device.h (grub_device_iterate): New prototype.
37851
37852 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
37853 commands/search.c.
37854 (pkgdata_MODULES): Added search.mod.
37855 (search_mod_SOURCES): New variable.
37856 (search_mod_CFLAGS): Likewise.
37857
37858 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
37859 (pkgdata_MODULES): Added search.mod.
37860 (search_mod_SOURCES): New variable.
37861 (search_mod_CFLAGS): Likewise.
37862
37863 * commands/ls.c (grub_ls_list_disks): Renamed to ...
37864 (grub_ls_list_devices): ... this, and use grub_device_iterate.
37865 All callers changed.
37866
37867 * DISTLIST: Added commands/search.c.
37868
37869 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
37870
37871 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
37872 conversion.
37873 (grub_getcharwidth): New function.
37874
37875 * kern/misc.c (grub_utf8_to_ucs4): New function.
37876
37877 * include/grub/term.h (struct grub_term): Added a new member
37878 "getcharwidth".
37879 (grub_getcharwidth): New prototype.
37880
37881 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
37882
37883 * term/i386/pc/console.c (map_char): New function. Segregated from
37884 grub_console_putchar.
37885 (grub_console_putchar): Use map_char.
37886 (grub_console_getcharwidth): New function.
37887 (grub_console_term): Specified grub_console_getcharwidth as
37888 getcharwidth.
37889
37890 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
37891 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
37892
37893 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
37894 GRUB_ERRNO.
37895 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
37896 on grub_strtoul completely.
37897 (write_char): Declare local variables in the beginning of the
37898 function.
37899 (grub_vesafb_getcharwidth): New function.
37900 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
37901 getcharwidth.
37902
37903 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
37904
37905 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
37906 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
37907 commands/i386/pc/vbetest.c.
37908
37909 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
37910 call grub_vbe_get_controller_info again, because the returned
37911 information is volatile.
37912 (grub_vbe_set_video_mode): Mostly rewritten.
37913 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
37914 grub_vbe_status_t correctly.
37915 (grub_vbe_get_video_mode_info): Likewise.
37916 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
37917 several if statements.
37918
37919 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
37920 * commands/i386/pc/vbeinfo.c: ... this.
37921
37922 * commands/i386/pc/vbe_test.c: Renamed to ...
37923 * commands/i386/pc/vbetest.c: ... this.
37924
37925 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
37926 ...
37927 (grub_cmd_vbeinfo): ... this. Save video modes before
37928 iterating. Skip a video mode, if it is not available, not enough
37929 information is given or it is monochrome. Show the memory
37930 model. Leave the interpretation of MODEVAR to grub_strtoul
37931 completely.
37932 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
37933 (GRUB_MOD_FINI): Likewise.
37934
37935 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
37936 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
37937 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
37938 duplicated grub_env_get. Leave the interpretation of MODEVAR to
37939 grub_strtoul completely.
37940 (real2pm): Removed.
37941 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
37942 (GRUB_MOD_FINI): Likewise.
37943
37944 * normal/misc.c: Include grub/mm.h.
37945
37946 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
37947 vbe_list_modes with vbetest.mod and vbeinfo.mod.
37948 (vbe_list_modes_mod_SOURCES): Removed.
37949 (vbe_list_modes_mod_CFLAGS): Likewise.
37950 (vbe_test_mod_SOURCES): Likewise.
37951 (vbe_test_mod_CFLAGS): Likewise.
37952 (vbeinfo_mod_SOURCES): New variable.
37953 (vbeinfo_mod_CFLAGS): Likewise.
37954 (vbetest_mod_SOURCES): Likewise.
37955 (vbetest_mod_CFLAGS): Likewise.
37956
37957 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
37958
37959 * normal/misc.c: New file.
37960
37961 * DISTLIST: Added normal/misc.c.
37962
37963 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
37964 DISK to HOOK. Call HOOK with DISK.
37965 * partmap/apple.c (apple_partition_map_iterate): Likewise.
37966 * partmap/pc.c (pc_partition_map_iterate): Likewise.
37967 * partmap/sun.c (sun_partition_map_iterate): Likewise.
37968
37969 * normal/menu_entry.c (struct screen): Added a new member
37970 "completion_shown".
37971 (completion_buffer): New global variable.
37972 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
37973 (store_completion): New function.
37974 (complete): Likewise.
37975 (clear_completions): Likewise.
37976 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
37977 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
37978 a tab, call complete.
37979
37980 * normal/completion.c (disk_dev): Removed.
37981 (print_simple_completion): Likewise.
37982 (print_partition_completion): Likewise.
37983 (print_func): New global variable.
37984 (add_completion): Do not take the arguments WHAT or PRINT any
37985 longer. Added a new argument TYPE. Instead of printing directly,
37986 call PRINT_FUNC if not NULL.
37987 All callers changed.
37988 (complete_device): Use a local variable DEV instead of
37989 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
37990 (grub_normal_do_completion): Take a new argument HOOK. Do not
37991 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
37992 empty string, return NULL instead.
37993 All callers changed.
37994
37995 * normal/cmdline.c (print_completion): New function.
37996
37997 * kern/partition.c (grub_partition_iterate): Add an argument DISK
37998 to HOOK.
37999 All callers changed.
38000
38001 * kern/disk.c (grub_print_partinfo): Removed.
38002
38003 * include/grub/partition.h (struct grub_partition_map): Add a new
38004 argument DISK into HOOK of ITERATE.
38005 (grub_partition_iterate): Add a new argument DISK to HOOK.
38006
38007 * include/grub/normal.h (enum grub_completion_type): New enum.
38008 (grub_completion_type_t): New type.
38009 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
38010 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
38011 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
38012 (GRUB_COMPLETION_TYPE_FILE): Likewise.
38013 (grub_normal_do_completion): Added a new argument HOOK.
38014 (grub_normal_print_device_info): New prototype.
38015
38016 * include/grub/disk.h (grub_print_partinfo): Removed.
38017
38018 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
38019 (normal_mod_SOURCES): Likewise.
38020 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38021 (normal_mod_SOURCES): Likewise.
38022
38023 * commands/ls.c (grub_ls_list_disks): Use
38024 grub_normal_print_device_info instead of grub_print_partinfo. Free
38025 PNAME.
38026 (grub_ls_list_files): Use grub_normal_print_device_info instead of
38027 duplicating the code.
38028
38029 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
38030
38031 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
38032 follow GCS more precisely.
38033 * commands/i386/pc/vbe_test.c: Likewise.
38034 * include/grub/i386/pc/vbe.h: Likewise.
38035 * term/i386/pc/vesafb.c: Likewise.
38036 * video/i386/pc/vbe.c: Likewise.
38037
38038 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
38039
38040 * DISTLIST: Added term/i386/pc/vesafb.c
38041 DISTLIST: Added video/i386/pc/vbe.c
38042 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
38043 DISTLIST: Added commands/i386/pc/vbe_test.c.
38044 * commands/i386/pc/vbe_list_modes.c: New file.
38045 * commands/i386/pc/vbe_test.c: Likewise.
38046 * term/i386/pc/vesafb.c: Likewise.
38047 * video/i386/pc/vbe.c: Likewise.
38048 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
38049 (grub_vbe_probe) Added prototype.
38050 (grub_vbe_set_video_mode) Likewise.
38051 (grub_vbe_get_video_mode) Likewise.
38052 (grub_vbe_get_video_mode_info) Likewise.
38053 (grub_vbe_set_pixel_rgb) Likewise.
38054 (grub_vbe_set_pixel_index) Likewise.
38055 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
38056 (pkgdata_MODULES): Added vesafb.mod.
38057 (pkgdata_MODULES): Added vbe_list_modes.mod.
38058 (pkgdata_MODULES): Added vbe_test.mod.
38059 (vbe_mod_SOURCES): Added.
38060 (vbe_mod_CFLAGS): Likewise.
38061 (vesafb_mod_SOURCES): Likewise.
38062 (vesafb_mod_CFLAGS): Likewise.
38063 (vbe_list_modes_mod_SOURCES): Likewise.
38064 (vbe_list_modes_mod_CFLAGS): Likewise.
38065 (vbe_test_mod_SOURCES): Likewise.
38066 (vbe_test_mod_CFLAGS): Likewise.
38067
38068 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
38069
38070 * normal/command.c (grub_command_execute): If INTERACTIVE is
38071 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
38072 CMDLINE. Disable the pager if INTERACTIVE is true.
38073 All callers are changed.
38074
38075 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
38076 before reading a config file.
38077 * normal/main.c (read_config_file): Even if a command is not
38078 found, register it if it is within an entry.
38079
38080 * util/grub-emu.c: Include sys/types.h and unistd.h.
38081 (options): Added --hold.
38082 (struct arguments): Added a new member "hold".
38083 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
38084 missing.
38085 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
38086 cleared by a debugger, if it is not zero.
38087
38088 * include/grub/normal.h (grub_command_execute): Add an argument
38089 INTERACTIVE.
38090
38091 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
38092
38093 * DISTLIST: Added include/grub/i386/pc/vbe.h.
38094
38095 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
38096
38097 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
38098 program with another one, because the old one didn't detect a bug
38099 in gcc-3.4. Always use regparm 2, because the new test is still
38100 not enough for gcc-4.0. Someone must investigate a simple test
38101 case which detects a bug in gcc-4.0.
38102
38103 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
38104
38105 * DISTLIST: Added normal/completion.c.
38106
38107 * normal/completion.c: New file.
38108
38109 * term/i386/pc/console.c (grub_console_getwh): New function.
38110 (grub_console_term): Assign grub_console_getwh to getwh.
38111
38112 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
38113 function is defined in normal/completion.c as
38114 grub_normal_do_completion.
38115 (grub_cmdline_get): Use grub_normal_do_completion instead of
38116 grub_tab_complete.
38117
38118 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
38119 returns non-zero, otherwise return 0.
38120 (grub_partition_iterate): First, probe the partition map. Then,
38121 call ITERATE only for this partition map.
38122
38123 * kern/misc.c (grub_strncmp): Rewritten.
38124
38125 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
38126 returns non-zero. Otherwise return 0.
38127
38128 * include/grub/partition.h (grub_partition_map_iterate): Return
38129 int instead of void.
38130
38131 * include/grub/normal.h (grub_normal_do_completion): New prototype.
38132
38133 * include/grub/misc.h (grub_strncmp): Change the type of N to
38134 grub_size_t.
38135
38136 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
38137 of void.
38138
38139 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
38140 unsigned explicitly before comparing it with I.
38141
38142 * kern/main.c (grub_env_write_root): Add the attribute unused into
38143 VAR.
38144
38145 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
38146 normal/completion.c.
38147 (normal_mod_SOURCES): Likewise.
38148 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
38149 (normal_mod_SOURCES): Likewise.
38150
38151 * normal/command.c (grub_iterate_commands): If ITERATE returns
38152 non-zero, return one immediately.
38153
38154 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
38155
38156 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
38157 * kern/i386/pc/startup.S: Updated Global Descriptor table's
38158 descriptions.
38159 (grub_vbe_get_controller_info): New function.
38160 (grub_vbe_get_mode_info): Likewise.
38161 (grub_vbe_set_mode): Likewise.
38162 (grub_vbe_get_mode): Likewise.
38163 (grub_vbe_set_memory_window): Likewise.
38164 (grub_vbe_get_memory_window): Likewise.
38165 (grub_vbe_set_scanline_length): Likewise.
38166 (grub_vbe_get_scanline_length): Likewise.
38167 (grub_vbe_set_display_start): Likewise.
38168 (grub_vbe_get_display_start): Likewise.
38169 (grub_vbe_set_palette_data): Likewise.
38170 * include/grub/i386/pc/vbe.h: New file.
38171
38172 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
38173
38174 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
38175 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
38176 * DISTLIST: Likewise.
38177 * kern/ieee1275/of.c: Moved to ...
38178 * kern/ieee1275/ieee1275.c: ... here.
38179
38180 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
38181
38182 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
38183 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
38184 Pass 0 as `end' parameter to grub_strtoul().
38185
38186 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
38187
38188 * include/grub/powerpc/ieee1275/console.h: Do not include
38189 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
38190 ifdef.
38191 (grub_console_cur_color): Remove i386-specific prototype.
38192 (grub_console_real_putchar): Likewise.
38193 (grub_console_checkkey): Likewise.
38194 (grub_console_getkey): Likewise.
38195 (grub_console_getxy): Likewise.
38196 (grub_console_gotoxy): Likewise.
38197 (grub_console_cls): Likewise.
38198 (grub_console_setcursor): Likewise.
38199 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
38200 Include <grub/machine/console.h>.
38201 * term/ieee1275/ofconsole.c: Likewise.
38202
38203 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
38204
38205 * Makefile.in (LIBLZO): New variable.
38206
38207 * configure.ac: Check for LZO version 2.
38208
38209 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
38210 lzo/lzo1x.h instead of lzo1x.h.
38211
38212 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
38213 of -llzo.
38214
38215 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
38216 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
38217
38218 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
38219 copying the data from PARTITION to P.
38220
38221 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
38222
38223 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
38224 negative, unload the module.
38225
38226 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
38227 map is "pc_partition_map" but not "pc".
38228 (usage): Fix the description. The options are --boot-image and
38229 --core-image but not --boot-file or --core-file.
38230 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
38231 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
38232 DEFAULT_DIRECTORY.
38233
38234 * util/i386/pc/grub-install.in: Do not specify --boot-file or
38235 --core-file. Specify INSTALL_DEVICE as an argument.
38236
38237 * util/console.c: Include config.h.
38238 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
38239 [HAVE_NCURSES_H]: Include ncurses.h.
38240 [HAVE_CURSES_H]: Include curses.h.
38241 [!A_NORMAL] (A_NORMAL): Defined as zero.
38242 [!A_STANDOUT] (A_STANDOUT): Likewise.
38243
38244 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
38245 -lncurses.
38246 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
38247
38248 * configure.ac: Check for curses libraries and headers.
38249
38250 * Makefile.in (LIBCURSES): New variable.
38251
38252 * genmk.rb (Script::rule): Set the executable bits.
38253
38254 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
38255 name of the PC partition map is "pc_partition_map" but not "pc".
38256
38257 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
38258
38259 * util/i386/pc/grub-install.in (grub_probefs): New variable.
38260 (modules): Likewise.
38261 (usage): Added descriptions for --modules and --grub-probefs.
38262 Handle --modules and --grub-probefs. Save the arguments in MODULES
38263 and GRUB_PROBEFS, respectively.
38264 Auto-detect a filesystem module against GRUBDIR. If the result is
38265 empty and modules are not specified explicitly, abort the
38266 installation. Add the result to MODULES.
38267
38268 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
38269 disk/powerpc/ieee1275/ofdisk.c,
38270 include/grub/powerpc/ieee1275/init.h and
38271 term/powerpc/ieee1275/ofconsole.c.
38272 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
38273 term/ieee1275/ofconsole.c.
38274
38275 * include/grub/powerpc/ieee1275/console.h: Resurrected.
38276
38277 * COPYING: Upgraded to the latest version. Only the address of the
38278 FSF office has changed.
38279
38280 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
38281
38282 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
38283 kern/ieee1275.c with kern/ieee1275/of.c.
38284
38285 * kern/ieee1275.c: Moved to ...
38286 * kern/ieee1275/of.c: ... here.
38287
38288 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
38289
38290 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
38291 readability.
38292
38293 * config.guess: Updated to the latest version from gnulib.
38294 * config.sub: Likewise.
38295 * install.sh: Likewise.
38296 * mkinstalldirs: Likewise.
38297
38298 * include/grub/console.h: Removed. This file is arch-specific. Do
38299 not put this in include/grub.
38300
38301 * include/grub/i386/pc/console.h: Resurrected.
38302
38303 * util/console.c: Include grub/machine/console.h instead of
38304 grub/console.h.
38305 * util/grub-emu.c: Likewise.
38306
38307 2005-08-04 Marco Gerards <metgerards@student.han.nl>
38308
38309 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
38310 hardcoded value.
38311
38312 From Vincent Pelletier <subdino2004@yahoo.fr>
38313 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
38314 Redefined to use grub_getwh.
38315 (grub_term): New member named getwh.
38316 (grub_getwh): New prototype.
38317 * kern/term.c (grub_getwh): New function.
38318 * term/i386/pc/console.c (grub_console_getwh): New function.
38319 (grub_console_term): New member `getwh'.
38320 * term/i386/pc/vga.c (grub_vga_getwh): New function.
38321 (grub_vga_term): New member `getwh'.
38322 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
38323 grub_ssize_t.
38324 (grub_ofconsole_getw): New function.
38325 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
38326 (grub_ofconsole_term): New field named getwh and new initial
38327 value.
38328
38329 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
38330
38331 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
38332 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
38333 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
38334 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
38335 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
38336 of <grub/machine/ieee1275.h>.
38337 * commands/ieee1275/reboot.c: Likewise.
38338 * boot/powerpc/ieee1275/ieee1275.c: Move ...
38339 * kern/ieee1275.c: ... to here. All users updated. Change all
38340 parameter structs to use new type `grub_ieee1275_cell_t'.
38341 * term/powerpc/ieee1275/ofconsole.c: Move ...
38342 * term/ieee1275/ofconsole.c: ... to here. All users updated.
38343 * disk/powerpc/ieee1275/ofdisk.c: Move ...
38344 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
38345 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
38346 to return int.
38347 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
38348 Remove unused prototypes. All users updated.
38349 * include/grub/powerpc/ieee1275/console.h: Removed.
38350 * include/grub/powerpc/ieee1275/ieee1275.h: Define
38351 `grub_ieee1275_cell_t'.
38352 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
38353 Cast comparisons with -1 to the correct type.
38354 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
38355 type to match `grub_ieee1275_entry_fn'.
38356
38357 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
38358
38359 * DISTLIST: Added util/i386/pc/grub-probefs.c.
38360
38361 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
38362 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
38363 partmap/sun.c.
38364 (grub_probefs_SOURCES): New variable.
38365
38366 * util/i386/pc/grub-probefs.c: New file.
38367
38368 * util/i386/pc/grub-setup.c (main): Call
38369 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
38370 grub_hfs_init and grub_jfs_init to initialize the system. Call
38371 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
38372 grub_pc_partition_map_fini to finish the system.
38373
38374 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
38375
38376 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
38377 function.
38378 (grub_multiboot_load_elf32): Likewise.
38379 (grub_multiboot_is_elf64): Likewise.
38380 (grub_multiboot_load_elf64): Likewise.
38381 (grub_multiboot_load_elf): Likewise.
38382 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
38383 an ELF32 or ELF64 file.
38384 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
38385
38386 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
38387 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
38388 NULL before calling FS->LABEL.
38389 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
38390 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
38391 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
38392 before calling FS->LABEL.
38393
38394 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
38395
38396 * util/i386/pc/grub-install.in (datadir): New variable.
38397 (libdir): Removed.
38398 (pkgdatadir): New variable.
38399 (pkglibdir): Removed.
38400
38401 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
38402
38403 * DISTLIST: Added util/i386/pc/grub-install.in.
38404
38405 * util/i386/pc/grub-install.in: New file.
38406
38407 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
38408 (grub_install_SOURCES): Likewise.
38409
38410 * genmk.rb: Added support for scripts.
38411 (Script): New class.
38412 (scripts): New variable.
38413
38414 * Makefile.in (install-local): Install sbin_SCRIPTS by
38415 INSTALL_SCRIPT.
38416 (uninstall): Remove sbin_SCRIPTS.
38417
38418 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
38419 device, try to get a GRUB device by
38420 grub_util_biosdisk_get_grub_dev.
38421 Free DEST_DEV.
38422
38423 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
38424 description for --device-map.
38425
38426 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
38427
38428 Change the semantics of variable hooks. They now return strings
38429 instead of error values.
38430
38431 * util/i386/pc/grub-setup.c: Include grub/env.h.
38432 (setup): Use grub_device_set_root instead of grub_env_set.
38433
38434 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
38435 grub_env_get instead of grub_device_set_root and
38436 grub_device_get_root, respectively.
38437
38438 * kern/main.c (grub_env_write_root): New function.
38439 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
38440 grub_env_set instead of grub_device_set_root.
38441
38442 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
38443 many variables.
38444 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
38445 rather than calling ENV->WRITE_HOOK afterwards.
38446 (grub_env_get): Return the result of ENV->READ_HOOK rather than
38447 passing a pointer of a pointer.
38448 (grub_register_variable_hook): Change the types of "read_hook" and
38449 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
38450 respectively.
38451 Allocate the default empty string on the heap, because this string
38452 may be freed later.
38453
38454 * kern/device.c: Include grub/env.h.
38455 (grub_device_set_root): Removed.
38456 (grub_device_get_root): Likewise.
38457 (grub_device_open): Use grub_env_get instead of
38458 grub_device_get_root.
38459
38460 * include/grub/env.h (grub_env_read_hook_t): New type.
38461 (grub_env_write_hook_t): Likewise.
38462 (grub_env_var): Change the types of "read_hook" and "write_hook"
38463 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
38464 (grub_register_variable_hook): Likewise.
38465
38466 * include/grub/device.h (grub_device_set_root): Removed.
38467 (grub_device_set_root): Likewise.
38468
38469 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
38470 make sure that DIRNAME terminates with '/', so that
38471 grub_fat_find_dir will fail if PATH is not a directory.
38472
38473 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
38474 from DIRNAME.
38475 Use the qualifier auto for print_files and print_files_long.
38476 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
38477 as a regular file.
38478 Put a newline only if there is no error.
38479 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
38480 used.
38481
38482 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
38483
38484 * kern/partition.c (grub_partition_probe): Initialize PART to
38485 NULL. Otherwise, when no partition map is registered, this returns
38486 a garbage.
38487
38488 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
38489
38490 * partmap/apple.c (apple_partition_map_iterate): Check if POS
38491 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
38492 valid.
38493
38494 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
38495
38496 * commands/ls.c (grub_ls_list_disks): Print the filesystem
38497 information on each device, if it does not have partitions. Print
38498 "Device" instead of "Disk", because this function is not specific
38499 to disk devices.
38500
38501 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
38502 static to ensure that it is put on the memory rather than a
38503 register.
38504
38505 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
38506
38507 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
38508 (grub_cat_init): Likewise.
38509 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
38510 (options): Likewise.
38511 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
38512 (grub_configfile_init): Likewise.
38513 * font/manager.c (GRUB_MOD_INIT): Likewise.
38514 * commands/help.c (GRUB_MOD_INIT): Likewise.
38515 (grub_help_init): Likewise.
38516 * normal/command.c (grub_command_init): Likewise.
38517 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
38518 * disk/loopback.c (grub_loop_init): Likewise.
38519 (GRUB_MOD_INIT): Likewise.
38520 * commands/ls.c (grub_ls_init): Likewise.
38521 (GRUB_MOD_INIT): Likewise.
38522 (options): Likewise.
38523 * commands/boot.c (grub_boot_init): Likewise.
38524 (GRUB_MOD_INIT): Likewise.
38525 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
38526 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
38527 (GRUB_MOD_INIT): Likewise.
38528 * commands/cmp.c (grub_cmp_init): Likewise.
38529 (GRUB_MOD_INIT): Likewise.
38530
38531 * normal/arg.c: Use <> instead of "" to include header files.
38532 (SHORT_ARG_HELP): New macro.
38533 (SHORT_ARG_USAGE): Likewise.
38534 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
38535 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
38536 descriptions.
38537 (find_short): Check if C is 'h' or 'u' explicitly.
38538 (grub_arg_show_help): Use space characters instead of tabs. Treat
38539 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
38540 are shown with --help and --usage only if they are not used for
38541 the command itself.
38542 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
38543 'h' and 'u'.
38544
38545 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
38546 const into "longarg". Change the type of "shortarg" to int.
38547
38548 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
38549
38550 * boot/i386/pc/boot.S (boot_drive_check): New label.
38551
38552 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
38553 macro.
38554
38555 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
38556 which do not pass a boot drive correctly. Copied from GRUB Legacy.
38557
38558 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
38559
38560 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
38561 When turning off Gate A20, skip the check and return immediately,
38562 because this is not fatal usually.
38563
38564 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
38565
38566 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
38567 be 0x7C00 instead of 0x8000.
38568
38569 * boot/i386/pc/pxeboot.S: Rewritten.
38570
38571 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
38572 EXT_C.
38573 (gate_a20_check_state): Read a byte from 0x108000. Invert the
38574 result.
38575
38576 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
38577
38578 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
38579 robustness. This routine now supports a BIOS call and System
38580 Control Port A to modify the gate A20.
38581
38582 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
38583 Increased to 0x440.
38584
38585 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
38586
38587 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
38588 device path and resulting ihandle.
38589 (grub_ofdisk_close): dprintf the ihandle being closed.
38590 (grub_ofdisk_read): dprintf function parameters.
38591 * kern/mm.c (grub_mm_init_region): Likewise.
38592 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
38593 (grub_linux_boot): dprintf the Linux entry point, initrd address and
38594 size, and boot arguments.
38595 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
38596 before loading into memory.
38597 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
38598 before loading into memory.
38599
38600 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
38601
38602 * kern/mm.c: Added much documentation.
38603 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
38604 8, set to 5 instead of 8.
38605
38606 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
38607
38608 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
38609
38610 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
38611 (grub_mkdevicemap_SOURCES): New variable.
38612
38613 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
38614 lib/device.c of GRUB Legacy.
38615
38616 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
38617
38618 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
38619 instead of PATH is NULL.
38620
38621 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
38622
38623 * commands/cmp.c (BUFFER_SIZE): New macro.
38624 (grub_cmd_cmp): Close the right file at the right time. Compare
38625 only data just read. Don't report files of different size as
38626 identical. Dynamically allocate buffers. Move variable
38627 declarations at the beginning of function.
38628
38629 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
38630
38631 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
38632 reverse.
38633
38634 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
38635
38636 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
38637 when backspace is pressed at beginning of line.
38638
38639 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
38640
38641 * DISTLIST: Added genfslist.sh.
38642
38643 * normal/main.c (fs_module_list): New variable.
38644 (autoload_fs_module): New function.
38645 (read_fs_list): Likewise.
38646 (grub_normal_execute): Call read_fs_list.
38647
38648 * kern/fs.c (grub_fs_autoload_hook): New variable.
38649 (grub_fs_probe): Added support for auto-loading.
38650
38651 * include/grub/normal.h (struct grub_fs_module_list): New struct.
38652 (grub_fs_module_list_t): New type.
38653
38654 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
38655 (grub_fs_autoload_hook): New prototype.
38656
38657 * genfslist.sh: New file.
38658
38659 * genmk.rb: Added a rule to generate a filesystem list.
38660
38661 2005-06-30 Marco Gerards <metgerards@student.han.nl>
38662
38663 * configure.ac: Fix the test for cross-compiling.
38664
38665 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
38666 define GRUB_UTIL anymore.
38667
38668 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
38669 so this function works on other systems than just big endian.
38670 (load_modules): Likewise.
38671 (add_segments): Likewise.
38672
38673 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
38674
38675 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
38676 contains `l' modifier, get a long from va_arg().
38677
38678 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
38679
38680 * kern/mm.c (grub_free): If the next free block which is being
38681 merged is the first free block, set the first block to the block
38682 being freed.
38683 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
38684
38685 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
38686
38687 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
38688 `grub_ieee1275_chosen'.
38689
38690 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
38691
38692 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
38693 (grub_ieee1275_chosen): New variable.
38694 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
38695 `chosen'.
38696 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
38697 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
38698 Rename first argument to `phandle' for consistency.
38699 (grub_ieee1275_get_property_length): Likewise.
38700 (grub_ieee1275_next_property): Likewise. Change type of first argument
38701 to grub_ieee1275_phandle_t.
38702 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
38703 Move export next to declaration.
38704 (grub_ieee1275_chosen): New variable.
38705 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
38706 Correct cosmetic typo.
38707 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
38708 `grub_ieee1275_chosen'.
38709 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
38710 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
38711 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
38712 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
38713 `grub_ieee1275_chosen'.
38714
38715 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
38716
38717 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
38718 /chosen/bootargs.
38719 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
38720 /chosen/bootargs as "variable=value" pairs.
38721
38722 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
38723
38724 * include/grub/misc.h (grub_dprintf): New macro.
38725 (grub_real_dprintf): New prototype.
38726 (grub_strword): Likewise.
38727 (grub_iswordseparator): Likewise.
38728 * kern/misc.c (grub_real_dprintf): New function.
38729 (grub_strword): Likewise.
38730 (grub_iswordseparator): Likewise.
38731
38732 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
38733
38734 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
38735 (roundup): Remove macro.
38736 (grub_ieee1275_flags): Make static.
38737 (grub_ieee1275_realmode): Remove.
38738 (grub_ieee1275_test_flag): New function.
38739 (grub_ieee1275_set_flag): Likewise.
38740 (find_options): Rename to `grub_ieee1275_find_options'; update
38741 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
38742 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
38743 (cmain): New prototype.
38744 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
38745 `grub_ieee1275_flags' directly.
38746 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
38747 machine/biosdisk.h.
38748 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
38749 Don't include grub/machine/init.h.
38750 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
38751 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
38752 Remove prototype.
38753 (grub_ieee1275_realmode): Likewise.
38754 (grub_ieee1275_flag): New enum.
38755 (grub_ieee1275_test_flag): New prototype.
38756 (grub_ieee1275_set_flag): New prototype.
38757 * include/grub/powerpc/ieee1275/init.h: Remove file.
38758 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
38759 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
38760 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
38761 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
38762 comment.
38763 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
38764 `grub_ieee1275_test_flag'.
38765 (grub_ieee1275_encode_devname): Likewise.
38766
38767 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
38768
38769 * include/grub/powerpc/ieee1275/ieee1275.h
38770 (grub_ieee1275_encode_devname): New prototype.
38771 (grub_ieee1275_get_filename): Likewise.
38772 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
38773 function.
38774 (grub_set_prefix): Likewise.
38775 (grub_machine_init): Call grub_set_prefix.
38776 * kern/powerpc/ieee1275/openfw.c: Fix typos.
38777 (grub_parse_type): New enum.
38778 (grub_ieee1275_get_devargs): New function.
38779 (grub_ieee1275_get_devname): Likewise.
38780 (grub_ieee1275_parse_args): Likewise.
38781 (grub_ieee1275_get_filename): Likewise.
38782 (grub_ieee1275_encode_devname): Likewise.
38783
38784 2005-03-30 Marco Gerards <metgerards@student.han.nl>
38785
38786 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
38787 `grub_loader_unset'.
38788
38789 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
38790
38791 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
38792 instead of grub_ieee1275_interpret.
38793 (grub_halt_init): New function.
38794 (grub_halt_fini): Likewise.
38795 (GRUB_MOD_INIT): Correct message grammar.
38796 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
38797 instead of grub_ieee1275_interpret.
38798 (grub_reboot_init): New function.
38799 (grub_reboot_fini): Likewise.
38800 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
38801 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
38802 util/i386/pc/misc.c with commands/ieee1275/halt.c,
38803 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
38804 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
38805 function.
38806 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
38807 Add prototype.
38808 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
38809 prototype.
38810 (grub_halt): Likewise.
38811 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
38812 (cmain): Remove __attribute__((unused)).
38813 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
38814 (grub_heap_len): Likewise.
38815 (grub_machine_fini): New function.
38816 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
38817 (grub_halt): Likewise.
38818 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
38819 function.
38820 * util/powerpc/ieee1275/misc.c: New file.
38821
38822 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
38823
38824 * DISTLIST: New file.
38825 * gendistlist.sh: Likewise.
38826
38827 * Makefile.in (COMMON_DISTFILES): Removed.
38828 (BOOT_DISTFILES): Likewise.
38829 (CONF_DISTFILES): Likewise.
38830 (DISK_DISTFILES): Likewise.
38831 (FS_DISTFILES): Likewise.
38832 (INCLUDE_DISTFILES): Likewise.
38833 (KERN_DISTFILES): Likewise.
38834 (LOADER_DISTFILES): Likewise.
38835 (TERM_DISTFILES): Likewise.
38836 (UTIL_DISTFILES): Likewise.
38837 (DISTFILES): Likewise.
38838 (uninstall): Uninstall files in $(pkgdata_DATA).
38839 (DISTLIST): New target.
38840 (distdir): Use the contents of the file DISTLIST to get a list of
38841 distributed files.
38842
38843 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
38844
38845 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
38846 descriptor. This is ported from GRUB Legacy.
38847
38848 * gencmdlist.sh: Added an extra semicolon to make it work with
38849 old sed versions. Reported by Robert Bihlmeyer
38850 <robbe@orcus.priv.at>.
38851
38852 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
38853
38854 Automatic loading of commands is supported.
38855
38856 * normal/main.c (read_command_list): New function.
38857 (grub_normal_execute): Call read_command_list.
38858
38859 * normal/command.c (grub_register_command): Return zero or CMD.
38860 Allocate CMD->NAME from the heap.
38861 Initialize CMD->MODULE_NAME to zero.
38862 Find the same name as well. If the same command is found and it is
38863 a dummy command, overwrite members. If it is not a dummy command,
38864 return zero.
38865 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
38866 (grub_command_find): If a dummy command is found, load a module
38867 and retry to find a command only once.
38868
38869 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
38870 make sure that each command is loaded.
38871
38872 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
38873 macro.
38874 (struct grub_command): Remove const from the member `name'.
38875 Add a new member `module_name'.
38876 (grub_register_command): Return grub_command_t.
38877
38878 * commands/help.c (grub_cmd_help): Call grub_command_find to make
38879 sure that each command is loaded.
38880
38881 * genmk.rb (PModule::rule): Specify a module name without the
38882 suffix ".mod" to gencmdlist.sh.
38883
38884 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
38885
38886 * gencmdlist.sh: New file.
38887
38888 * genmk.rb (PModule::rule): Generate a rule for a command list.
38889 Clean command.lst.
38890 Generate command.lst from $(COMMANDFILES).
38891
38892 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
38893 (DATA): Added $(pkgdata_DATA).
38894 (install-local): Install files in $(pkgdata_DATA).
38895
38896 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
38897
38898 * term/i386/pc/vga.c (debug_command): Removed.
38899 (GRUB_MOD_INIT): Do not register the command "debug".
38900
38901 From Hollis Blanchard:
38902 * commands/configfile.c: New file.
38903 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
38904 commands/configfile.c.
38905 (pkgdata_MODULES): Added configfile.mod.
38906 (configfile_mod_SOURCES): New variable.
38907 (configfile_mod_CFLAGS): Likewise.
38908 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
38909 commands/configfile.c.
38910 (pkgdata_MODULES): Added configfile.mod.
38911 (configfile_mod_SOURCES): New variable.
38912 (configfile_mod_CFLAGS): Likewise.
38913 * util/grub-emu.c (main): Call grub_configfile_init and
38914 grub_configfile_fini.
38915 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
38916 prototype.
38917 [GRUB_UTIL] (grub_configfile_fini): Likewise.
38918
38919 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
38920
38921 * normal/arg.c (grub_arg_show_help): Do not show the bug report
38922 address.
38923
38924 * commands/help.c (grub_cmd_help): Do not print newlines after
38925 the last command in print_command_help.
38926
38927 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
38928
38929 * commands/default.h: New file.
38930 * commands/timeout.h: Likewise.
38931 * normal/context.c: Likewise.
38932
38933 * util/misc.c: Do not include sys/times.h.
38934 Include sys/time.h and grub/machine/time.h.
38935 (grub_get_rtc): Rewritten with gettimeofday.
38936
38937 * util/grub-emu.c (main): Call grub_default_init and
38938 grub_timeout_init before grub_normal_init, and call
38939 grub_timeout_fini and grub_default_fini after grub_main.
38940
38941 * util/console.c (grub_ncurses_checkkey): Return the read
38942 character or -1.
38943
38944 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
38945 timeouts.
38946
38947 * normal/main.c (read_config_file): Push MENU. If this fails,
38948 print an error and wait for a user input.
38949 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
38950 If a menu is empty or an error occurs, pop MENU.
38951 (grub_normal_execute): Pop and free MENU after grub_menu_run
38952 returns.
38953
38954 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
38955
38956 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
38957 include time.h.
38958 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
38959 without GRUB_UTIL.
38960 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
38961 time.h.
38962 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
38963 without GRUB_UTIL.
38964
38965 * include/grub/normal.h (struct grub_menu_list): New struct.
38966 (grub_menu_list_t): New type.
38967 (struct grub_context): New struct.
38968 (grub_context_t): New type.
38969 (grub_register_command): Got rid of EXPORT_FUNC.
38970 (grub_unregister_command): Likewise.
38971 (grub_context_get): New prototype.
38972 (grub_context_get_current_menu): Likewise.
38973 (grub_context_push_menu): Likewise.
38974 (grub_context_pop_menu): Likewise.
38975 [GRUB_UTIL] (grub_default_init): Likewise.
38976 [GRUB_UTIL] (grub_default_fini): Likewise.
38977 [GRUB_UTIL] (grub_timeout_init): Likewise.
38978 [GRUB_UTIL] (grub_timeout_fini): Likewise.
38979
38980 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
38981 commands/timeout.c and normal/context.c.
38982 (pkgdata_MODULES): Added default.mod and timeout.mod.
38983 (normal_mod_SOURCES): Added normal/context.c.
38984 (default_mod_SOURCES): New variable.
38985 (default_mod_CFLAGS): Likewise.
38986 (timeout_mod_SOURCES): Likewise.
38987 (timeout_mod_CFLAGS): Likewise.
38988 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
38989 conf/i386-pc.rmk.
38990 (pkgdata_MODULES): Added default.mod and timeout.mod.
38991 (normal_mod_SOURCES): Added normal/context.c.
38992 (default_mod_SOURCES): New variable.
38993 (default_mod_CFLAGS): Likewise.
38994 (timeout_mod_SOURCES): Likewise.
38995 (timeout_mod_CFLAGS): Likewise.
38996
38997 * Makefile.in (all-local): Added $(MKFILES).
38998
38999 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
39000
39001 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
39002 (grub_emu_SOURCES): Likewise.
39003 (pkgdata_MODULES): Add `sun.mod'.
39004 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
39005 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
39006 `partmap/sun.c'.
39007 (pkgdata_MODULES): Add `sun.mod'.
39008 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
39009 * include/grub/partition.h (grub_sun_partition_map_init): New
39010 prototype.
39011 (grub_sun_partition_map_fini): Likewise.
39012 * partmap/sun.c: New file.
39013 * util/grub-emu.c (main): Initialize and de-initialize the sun
39014 partitionmap support.
39015
39016 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
39017
39018 This implements an Emacs-like menu entry editor.
39019
39020 * normal/menu_entry.c: New file.
39021
39022 * util/console.c (grub_ncurses_putchar): Translate some Unicode
39023 characters to ASCII.
39024 (saved_char): New variable.
39025 (grub_ncurses_checkkey): Rewritten completely.
39026 (grub_ncurses_getkey): Likewise.
39027 (grub_ncurses_init): Call raw instead of cbreak.
39028
39029 * normal/menu.c (print_entry): Do not put a space.
39030 (init_page): Renamed to ...
39031 (grub_menu_init_page): ... this. All callers changed.
39032 (edit_menu_entry): Removed.
39033 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
39034
39035 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
39036
39037 * kern/misc.c (grub_vprintf): Call grub_refresh.
39038
39039 * normal/menu.c (DISP_LEFT): Renamed to ...
39040 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
39041 * normal/menu.c (DISP_UP): Renamed to ...
39042 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
39043 * normal/menu.c (DISP_RIGHT): Renamed to ...
39044 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
39045 * normal/menu.c (DISP_DOWN): Renamed to ...
39046 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
39047 * normal/menu.c (DISP_HLINE): Renamed to ...
39048 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
39049 * normal/menu.c (DISP_VLINE): Renamed to ...
39050 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
39051 * normal/menu.c (DISP_UL): Renamed to ...
39052 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
39053 * normal/menu.c (DISP_UR): Renamed to ...
39054 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
39055 * normal/menu.c (DISP_LL): Renamed to ...
39056 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
39057 * normal/menu.c (DISP_LR): Renamed to ...
39058 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
39059 * normal/menu.c (TERM_WIDTH): Renamed to ...
39060 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
39061 * normal/menu.c (TERM_HEIGHT): Renamed to ...
39062 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
39063 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
39064 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
39065 * normal/menu.c (TERM_MARGIN): Renamed to ...
39066 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
39067 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
39068 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
39069 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
39070 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
39071 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
39072 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
39073 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
39074 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
39075 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
39076 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
39077 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
39078 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
39079 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
39080 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
39081 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
39082 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
39083 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
39084 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
39085 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
39086 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
39087 All callers changed.
39088
39089 * include/grub/normal.h: New prototype.
39090
39091 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
39092 normal/menu_entry.c.
39093 (normal_mod_SOURCES): Likewise.
39094 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39095 (normal_mod_SOURCES): Likewise.
39096
39097 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
39098
39099 * include/grub/normal.h (grub_halt_init): New prototype.
39100 (grub_halt_fini): Likewise.
39101 (grub_reboot_init): Likewise.
39102 (grub_reboot_fini): Likewise.
39103
39104 * util/grub-emu.c: Include signal.h.
39105 (main_env): New global variable.
39106 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
39107 catch C-c.
39108 (grub_machine_fini): New function.
39109 (main): Call grub_halt_init and grub_reboot_init before
39110 grub_main, and grub_reboot_fini and grub_halt_fini after it.
39111 Call setjmp with MAIN_ENV to go back afterwards.
39112 Call grub_machine_fini right before return.
39113
39114 * include/grub/util/misc.h: Include setjmp.h.
39115 (main_env): New prototype.
39116
39117 * include/grub/kernel.h (grub_machine_fini): New prototype.
39118 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
39119 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
39120
39121 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
39122 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
39123 * term/i386/pc/console.c (grub_console_fini): Likewise.
39124
39125 * util/i386/pc/misc.c: New file.
39126
39127 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
39128 util/i386/pc/misc.c, commands/i386/pc/halt.c and
39129 commands/i386/pc/reboot.c.
39130
39131 2005-02-14 Guillem Jover <guillem@hadrons.org>
39132
39133 * include/grub/dl.h (grub_dl_check_header): New prototype.
39134 (grub_arch_dl_check_header): Change return type to grub_err_t,
39135 remove size parameter and export function. Update all callers.
39136 * kern/dl.c (grub_dl_check_header): New function.
39137 (grub_dl_load_core): Use `grub_dl_check_header' instead of
39138 `grub_arch_dl_check_header'. Check ELF type. Check if sections
39139 are inside the core.
39140 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
39141 independent ELF header checks.
39142 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
39143 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
39144 `grub_dl_check_header' instead of explicit checks. Check for the
39145 ELF type.
39146 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
39147 `grub_dl_check_header' instead of explicit checks. Remove arch
39148 specific ELF header checks.
39149
39150 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
39151 argument SIZE.
39152
39153 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
39154
39155 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
39156 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
39157
39158 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
39159
39160 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
39161 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
39162 (part_map_iterate): Clear `grub_errno' and return 0 if
39163 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
39164 * partmap/amiga.c (amiga_partition_map_iterate): Return
39165 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
39166 * partmap/apple.c (apple_partition_map_iterate): Likewise.
39167
39168 2005-02-01 Guillem Jover <guillem@hadrons.org>
39169
39170 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
39171 help info.
39172
39173 2005-01-31 Marco Gerards <metgerards@student.han.nl>
39174
39175 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
39176 Removed prototype.
39177 (grub_rescue_cmd_linux): New prototype.
39178 (grub_rescue_cmd_initrd): Likewise.
39179 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
39180 `bi_rec'.
39181 (grub_linux_release_mem): Release the memory for the initrd.
39182 (grub_load_linux): Renamed from this...
39183 (grub_rescue_cmd_linux): ...To this. Changed all callers.
39184 Changed `entry' not to be static. Loop over memory regions to
39185 find another one when the default fails.
39186 (grub_rescue_cmd_initrd): New function.
39187 (grub_linux_init): Remove function.
39188 (grub_linux_fini): Likewise.
39189 (GRUB_MOD_INIT): Register `initrd'.
39190 (GRUB_MOD_FINI): Unregister `initrd'.
39191 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
39192 Function removed.
39193 (grub_linux_normal_fini): Likewise.
39194 (GRUB_MOD_INIT): Register `initrd'.
39195 (GRUB_MOD_FINI): Unregister `initrd'.
39196
39197 2005-01-31 Marco Gerards <metgerards@student.han.nl>
39198
39199 * commands/help.c: New file.
39200 * normal/arg.c (show_help): Renamed to...
39201 (grub_arg_show_help): ... this.
39202 * commands/i386/pc/halt.c: New file.
39203 * commands/i386/pc/reboot.c: Likewise.
39204 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
39205 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
39206 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
39207 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
39208 variables.
39209 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
39210 `commands/help.c'.
39211 (pkgdata_MODULES): Add `help.mod'.
39212 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
39213 * grub/i386/pc/init.h (grub_reboot): New prototype.
39214 (grub_halt): Likewise.
39215 * include/grub/normal.h (grub_arg_show_help): New prototype.
39216 (grub_help_init): Likewise.
39217 (grub_help_fini): Likewise.
39218 * util/grub-emu.c (main): Initialize and deinitialize the help
39219 command.
39220
39221 * normal/cmdline.c (grub_cmdline_get): Doc fix.
39222
39223 * normal/command.c (grub_command_init): Fixed the description of
39224 the `set' and `unset' commands.
39225
39226 2005-01-31 Marco Gerards <metgerards@student.han.nl>
39227
39228 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
39229 function.
39230 * commands/ieee1275/halt.c: New file.
39231 * commands/ieee1275/reboot.c: Likewise.
39232 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
39233 `__attribute__ ((unused))'. Some GCS related fixed.
39234 (grub_suspend_init) [GRUB_UTIL]: Function removed.
39235 (grub_suspend_fini): Likewise.
39236 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
39237 and `halt.mod'.
39238 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
39239 (halt_mod_CFLAGS): New variables.
39240 * include/grub/powerpc/ieee1275/ieee1275.h
39241 (grub_ieee1275_interpret): New prototype.
39242
39243 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
39244
39245 * include/grub/misc.h (memmove): New prototype.
39246 (memcpy): Likewise.
39247
39248 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
39249
39250 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
39251 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
39252
39253 2005-01-22 Marco Gerards <metgerards@student.han.nl>
39254
39255 * kern/misc.c (grub_strndup): Function rewritten.
39256
39257 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
39258
39259 * normal/menu.c (TERM_WIDTH): Macro redefined.
39260 (TERM_TOP_BORDER_Y): Likewise.
39261 (draw_border): Replaced while-loop by a for-loop. Make the number
39262 of lines consistent with the number of lines displayed in
39263 print_entries. Added a margin below the rectangle.
39264 (print_entry): Make the entry fit in the rectangle.
39265 (print_entries): Display the scroll arrows next to the right
39266 border.
39267
39268 2005-01-21 Marco Gerards <metgerards@student.han.nl>
39269
39270 * fs/minix.c (grub_minix_find_file): Reserve more space for
39271 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
39272 `grub_strncpy' to copy `path' into it.
39273
39274 2005-01-21 Marco Gerards <metgerards@student.han.nl>
39275
39276 Add the loopback device, a device via which files can be accessed
39277 as devices.
39278
39279 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
39280 (pkgdata_MODULES): Add loopback.mod.
39281 (loopback_mod_SOURCES): New variable.
39282 (loopback_mod_CFLAGS): Likewise.
39283 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
39284 `disk/loopback.c'.
39285 (pkgdata_MODULES): Add loopback.mod.
39286 (loopback_mod_SOURCES): New variable.
39287 (loopback_mod_CFLAGS): Likewise.
39288 * disk/loopback.c: new file.
39289 * include/grub/normal.h (grub_loop_init): New prototype.
39290 (grub_loop_fini): New prototype.
39291 * util/grub-emu.c (main): Initialize and de-initialize loopback
39292 support.
39293 * include/grub/disk.h (grub_disk_dev_id): Add
39294 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
39295
39296 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
39297
39298 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
39299 function.
39300 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
39301 (suspend_mod_SOURCES): New variable.
39302 (suspend_mod_CFLAGS): Likewise.
39303 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
39304 New prototype.
39305 * commands/ieee1275/suspend.c: New file.
39306
39307 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
39308
39309 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
39310 ((unused))' to `__attribute__ ((used))'.
39311 (GRUB_MOD_FINI): Likewise.
39312 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
39313 * genmk.rb (PModule): Assign space to common symbols when linking
39314 modules.
39315
39316 2005-01-20 Marco Gerards <metgerards@student.han.nl>
39317
39318 * include/grub/mm.h (grub_mm_init_region): Change the type of the
39319 `unsigned' arguments to `grub_size_t'.
39320 (grub_malloc): Likewise.
39321 (grub_realloc): Likewise.
39322 (grub_memalign): Likewise.
39323 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
39324 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
39325 * util/misc.c (grub_malloc): Likewise.
39326 (grub_realloc): Likewise.
39327 * kern/mm.c (get_header_from_pointer): Change the casts to
39328 `unsigned' into a cast to `grub_size_t'.
39329
39330 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
39331 point to `currnode' when `currnode' is changed.
39332
39333 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
39334 Schottelius <nico-linux@schottelius.org>.
39335
39336 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
39337
39338 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
39339 (note_path): Remove variable.
39340 (GRUB_IEEE1275_NOTE_NAME): New macro.
39341 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
39342 (grub_ieee1275_note_hdr): New structure.
39343 (grub_ieee1275_note_desc): Likewise.
39344 (grub_ieee1275_note): Likewise.
39345 (load_note): Remove `dir' argument. All callers updated. Remove
39346 `note_img' and `path'. Do not load a file from `note_path'.
39347 Initialize a struct grub_ieee1275_note and write that to `out'.
39348 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
39349
39350 2005-01-05 Marco Gerards <metgerards@student.han.nl>
39351
39352 * util/misc.c (grub_util_read_image): Revert last change. It
39353 called `grub_util_read_at', which seeks from the beginning of the
39354 file.
39355
39356 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
39357
39358 * TODO: Add note about endianness in grub-mkimage.
39359 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
39360 section.
39361 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
39362 (grub_mkimage_SOURCES): New target.
39363 * include/grub/kernel.h (grub_start_addr): Remove variable.
39364 (grub_end_addr): Likewise.
39365 (grub_total_module_size): Likewise.
39366 (grub_kernel_image_size): Likewise.
39367 (GRUB_MODULE_MAGIC): New constant.
39368 (grub_module_info): New structure.
39369 (grub_arch_modules_addr): New prototype.
39370 (grub_get_end_addr): Remove prototype.
39371 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
39372 * include/grub/powerpc/ieee1275/kernel.h: New file.
39373 * include/grub/util/misc.h (grub_util_get_fp_size): New
39374 prototype.
39375 (grub_util_read_at): Likewise.
39376 (grub_util_write_image_at): Likewise.
39377 * kern/main.c (grub_get_end_addr): Remove function.
39378 (grub_load_modules): Call grub_arch_modules_addr instead of using
39379 grub_end_addr. Look for a grub_module_info struct in memory. Use
39380 the grub_module_info fields instead of calling grub_get_end_addr
39381 as loop conditions. Move grub_add_unused_region code here.
39382 (grub_add_unused_region): Remove function.
39383 * kern/i386/pc/init.c: Include grub/cache.h.
39384 (grub_machine_init): Remove call to grub_get_end_addr. Remove
39385 one call to add_mem_region.
39386 (grub_arch_modules_addr): New function.
39387 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
39388 (grub_total_module_size): Likewise.
39389 Include grub/machine/kernel.h.
39390 (grub_arch_modules_addr): New function.
39391 * util/grub-emu.c (grub_end_addr): Remove variable.
39392 (grub_total_module_size): Likewise.
39393 (grub_arch_modules_addr): New function.
39394 * util/misc.c: Include unistd.h.
39395 (grub_util_get_fp_size): New function.
39396 (grub_util_read_at): Likewise.
39397 (grub_util_write_image_at): Likewise.
39398 (grub_util_read_image): Call grub_util_read_at.
39399 (grub_util_write_image): Call grub_util_write_image_at.
39400 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
39401 additional memory in kernel_img for a struct grub_module_info.
39402 Fill in that grub_module_info.
39403 * util/powerpc/ieee1275/grub-mkimage.c: New file.
39404
39405 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
39406
39407 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
39408 New function.
39409 * include/grub/powerpc/ieee1275/ieee1275.h
39410 (grub_ieee1275_milliseconds): New prototype.
39411 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
39412 Change to 1000.
39413 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
39414 grub_ieee1275_milliseconds.
39415
39416 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
39417
39418 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
39419 variable.
39420 (find_options): New function.
39421 (cmain): Call find_options.
39422 * include/grub/powerpc/ieee1275/ieee1275.h
39423 (grub_ieee1275_realmode): New extern variable.
39424 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
39425 grub_map if grub_ieee1275_realmode is false.
39426
39427 2004-12-29 Marco Gerards <metgerards@student.han.nl>
39428
39429 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
39430 lines are inserted and make it work like readline. Reported by
39431 Vincent Pelletier <subdino2004@yahoo.fr>.
39432
39433 2004-12-28 Marco Gerards <metgerards@student.han.nl>
39434
39435 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
39436
39437 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
39438 `kern/powerpc/cache.S'.
39439
39440 2004-12-27 Marco Gerards <metgerards@student.han.nl>
39441
39442 * genmk.rb: Handle the `Program' class in the main loop. Written
39443 by Johan Rydberg <jrydberg@gnu.org>.
39444 (Program): New class.
39445 (programs): New variable.
39446 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
39447 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
39448 instead of "grub/kernel.h". Include <grub/machine/init.h>.
39449 (help_arch): Function removed.
39450 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
39451 `powerpc/libgcc.h' and `loader.h'.
39452 (pkgdata_PROGRAMS): New variable.
39453 (sbin_UTILITIES): Variable removed.
39454 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
39455 (grubof_SOURCES): Variable re-defined so it only includes the
39456 core functionality.
39457 (grubof_CFLAGS): Remove `-DGRUBOF'.
39458 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
39459 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
39460 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
39461 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
39462 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
39463 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
39464 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
39465 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
39466 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
39467 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
39468 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
39469 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
39470 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
39471 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
39472 (pc_mod_CFLAGS): New variables.
39473 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
39474 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
39475 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
39476 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
39477 Moved from here...
39478 * include/grub/i386/pc/init.h (grub_os_area_addr)
39479 (rub_os_area_size): ... to here.
39480 * include/grub/powerpc/ieee1275/ieee1275.h
39481 (grub_ieee1275_entry_fn): Export symbol.
39482 * include/grub/powerpc/ieee1275/init.h: New file.
39483 * include/grub/powerpc/libgcc.h: Likewise.
39484 * include/grub/cache.h: Likewise.
39485 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
39486 <hollis@penguinppc.org>.
39487 * kern/dl.c: Include <grub/cache.h>.
39488 (grub_dl_flush_cache): New function.
39489 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
39490 for this module.
39491 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
39492 (grub_console_init): Removed prototypes.
39493 (grub_machine_init): Don't initialize the modules anymore.
39494 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
39495 static.
39496 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
39497 Macro undef removed.
39498 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
39499 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
39500 relocation `R_PPC_REL32'. Return an error when the relocation is
39501 unknown.
39502 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
39503 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
39504 * util/misc.c (grub_arch_sync_caches): Likewise.
39505
39506 2004-12-19 Marco Gerards <metgerards@student.han.nl>
39507
39508 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
39509 `symlist.c', add `grubof_symlist.c'.
39510 (symlist.c): Variable removed.
39511 (grubof_HEADERS): Variable added.
39512 (grubof_symlist.c): New target.
39513 (kernel_syms.lst): Use `grubof_HEADERS' instead of
39514 `kernel_img_HEADERS'.
39515 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
39516 * kern/powerpc/dl.c: New file.
39517 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
39518 Function removed.
39519 (grub_arch_dl_relocate_symbols): Likewise.
39520 (grub_register_exported_symbols): Likewise.
39521
39522 2004-12-13 Marco Gerards <metgerards@student.han.nl>
39523
39524 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
39525 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
39526 to fail instead. Reported by Vincent Pelletier
39527 <subdino2004@yahoo.fr>.
39528
39529 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
39530 it is not allocated. Reported by Vincent Pelletier
39531 <subdino2004@yahoo.fr>.
39532
39533 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
39534 output so the output looks better.
39535
39536 2004-12-04 Marco Gerards <metgerards@student.han.nl>
39537
39538 Modulize the partition map support and add support for the amiga
39539 partition map.
39540
39541 * commands/ls.c: Include <grub/partition.h> instead of
39542 <grub/machine/partition.h>.
39543 * kern/disk.c: Likewise.
39544 * kern/rescue.c: Likewise.
39545 * loader/i386/pc/chainloader.c: Likewise.
39546 * normal/cmdline.c: Likewise.
39547 * kern/powerpc/ieee1275/init.c: Likewise.
39548 (grub_machine_init): Call `grub_pc_partition_map_init',
39549 `grub_amiga_partition_map_init' and
39550 `grub_apple_partition_map_init'.
39551 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
39552 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
39553 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
39554 `partition.h' and `pc_partition.h'.
39555 (grub_setup_SOURCES): Remove
39556 `disk/i386/pc/partition.c'. Add `kern/partition.c',
39557 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
39558 (grub_emu_SOURCES): Likewise.
39559 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
39560 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
39561 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
39562 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
39563 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
39564 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
39565 (grubof_SOURCES): Likewise.
39566 * disk/i386/pc/partition.c: File removed.
39567 * disk/powerpc/ieee1275/partition.c: Likewise.
39568 * include/grub/powerpc/ieee1275/partition.h: Likewise.
39569 * include/grub/i386/pc/partition.h: Likewise.
39570 * kern/partition.c: New file.
39571 * partmap/amiga.c: Likewise.
39572 * partmap/apple.c: Likewise.
39573 * partmap/pc.c: Likewise.
39574 * include/grub/partition.h: Likewise..
39575 * include/grub/pc_partition.h: Likewise.
39576 * util/grub-emu.c: Include <grub/partition.h> instead of
39577 <grub/machine/partition.h>.
39578 (main): Call `grub_pc_partition_map_init',
39579 `grub_amiga_partition_map_init' and
39580 `grub_apple_partition_map_init' and deinitialize afterwards.
39581 * util/i386/pc/biosdisk.c: Include `#include
39582 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
39583 `<grub/machine/partition.h>'.
39584 * util/i386/pc/grub-setup.c: Likewise.
39585 * util/i386/pc/biosdisk.c: Likewise.
39586 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
39587 partition information in case of a PC partition.
39588 * util/i386/pc/grub-setup.c: Include `#include
39589 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
39590 `<grub/machine/partition.h>'.
39591 (setup): Only access the PC specific partition information in case
39592 of a PC partition.
39593
39594 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
39595
39596 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
39597 (grub_longjmp): Likewise.
39598 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
39599 20.
39600 * normal/powerpc/setjmp.S: New file.
39601 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
39602 `normal/powerpc/setjmp.S'.
39603 (grubof_CFLAGS): Add `-DGRUBOF'.
39604 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
39605 [GRUB_UTIL && !GRUBOF].
39606
39607 2004-11-16 Marco Gerards <metgerards@student.han.nl>
39608
39609 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
39610 property named `name'. Correctly handle the error returned by
39611 `grub_ieee1275_finddevice' if a device can not be opened.
39612
39613 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
39614
39615 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
39616 `actual' for negativity.
39617 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
39618 kern/fshelp.c.
39619
39620 2004-11-01 Marco Gerards <metgerards@student.han.nl>
39621
39622 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
39623 (PAGE_OFFSET): New macro.
39624 (CRTC_ADDR_PORT): Likewise.
39625 (CRTC_DATA_PORT): Likewise.
39626 (START_ADDR_HIGH_REGISTER): Likewise.
39627 (START_ADDR_LOW_REGISTER): Likewise.
39628 (GRAPHICS_ADDR_PORT): Likewise.
39629 (GRAPHICS_DATA_PORT): Likewise.
39630 (READ_MAP_REGISTER): Likewise.
39631 (INPUT_STATUS1_REGISTER): Likewise.
39632 (INPUT_STATUS1_VERTR_BIT): Likewise.
39633 (page): New variable.
39634 (wait_vretrace): New function.
39635 (set_read_map): Likewise.
39636 (set_start_address): Likewise.
39637 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
39638 the right page.
39639 (check_vga_mem): Take the page into account.
39640 (write_char): Likewise.
39641 (write_cursor): Likewise.
39642 (scroll_up): Likewise. Copy the page to the page that is not
39643 shown and switch between both pages.
39644 (grub_vga_putchar): Fix off by one error.
39645 (grub_vga_cls): Wait for the vertical retrace. Take the page into
39646 account.
39647
39648 2004-11-01 Marco Gerards <metgerards@student.han.nl>
39649
39650 Add support for iso9660 (including rockridge).
39651
39652 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
39653 (iso9660_mod_SOURCES): New variable.
39654 (iso9660_mod_CFLAGS): Likewise.
39655 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
39656 * include/grub/fs.h (grub_iso9660_init): New prototype.
39657 * util/grub-emu.c (main): Call `grub_iso9660_init'.
39658 * fs/iso9660.c: New file.
39659
39660 * include/grub/misc.h (grub_strncat): New prototype.
39661 * kern/misc.c (grub_strncat): New function.
39662
39663 * fs/hfs.c (grub_hfs_mount): Translate the error
39664 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
39665 * fs/jfs.c (grub_jfs_mount): Likewise.
39666 * fs/ufs.c (grub_ufs_mount): Likewise.
39667
39668 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
39669
39670 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
39671 which initialized BAT registers.
39672 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
39673 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
39674 Move from here...
39675 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
39676 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
39677 ... to here.
39678 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
39679 (grub_mapclaim): Likewise.
39680 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
39681 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
39682 hand.
39683
39684 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
39685
39686 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
39687 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
39688 -ffreestanding and -msoft-float.
39689
39690 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
39691
39692 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
39693 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
39694 set in grub_ieee1275_flags.
39695
39696 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
39697
39698 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
39699 prototype.
39700 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
39701 grub_console_init first.
39702 Change the memory range used for grub_ieee1275_claim and
39703 grub_mm_init_region.
39704 Print an error message if the claim fails.
39705 Include <grub/misc.h>.
39706
39707 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
39708
39709 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
39710 Call grub_children_iterate for device nodes of type `scsi',
39711 `ide', or `ata'.
39712 (grub_ofdisk_open): Remove manual device alias resolution.
39713 Fix memory leak when device cannot be opened.
39714 * include/grub/powerpc/ieee1275/ieee1275.h
39715 (grub_children_iterate): New prototype.
39716 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
39717 New function.
39718 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
39719 Return -1 if args.size was -1.
39720
39721 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
39722
39723 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
39724 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
39725 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
39726 Open Firmware's memory for it; claim memory from _start to _end.
39727 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
39728 (_end): New extern.
39729 (_start): Zero BSS from __bss_start to _end.
39730 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
39731 New extern.
39732 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
39733
39734 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
39735
39736 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
39737 -1 if args.base was -1.
39738
39739 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
39740
39741 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
39742 escape sequence instead of a literal ^L. Also call
39743 grub_ofconsole_gotoxy.
39744
39745 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
39746
39747 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
39748 void * arguments to grub_addr_t. All callers updated. Also make
39749 the `result' argument optional.
39750 (grub_ieee1275_release): change void * arguments to grub_addr_t.
39751 All callers updated.
39752
39753 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
39754
39755 * commands/ls.c (grub_ls_list_files): Use the string following the
39756 initial ')', if present, as the filesystem path.
39757 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
39758
39759 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
39760
39761 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
39762
39763 Make the source code of the menu interface more readable.
39764
39765 * normal/menu.c: Include grub/mm.h.
39766 (TERM_WIDTH): New macro.
39767 (TERM_HEIGHT): Likewise.
39768 (TERM_INFO_HEIGHT): Likewise.
39769 (TERM_MARGIN): Likewise.
39770 (TERM_SCROLL_WIDTH): Likewise.
39771 (TERM_TOP_BORDER_Y): Likewise.
39772 (TERM_LEFT_BORDER_X): Likewise.
39773 (TERM_BORDER_WIDTH): Likewise.
39774 (TERM_MESSAGE_HEIGHT): Likewise.
39775 (TERM_BORDER_HEIGHT): Likewise.
39776 (TERM_NUM_ENTRIES): Likewise.
39777 (TERM_FIRST_ENTRY_Y): Likewise.
39778 (TERM_ENTRY_WIDTH): Likewise.
39779 (TERM_CURSOR_X): Likewise.
39780 (draw_border): Use macros instead of magic numbers.
39781 (print_entry): Likewise.
39782 (print_entries): Likewise.
39783 (run_menu): Likewise. Also, handle the key 'e'.
39784 (run_menu_entry): Ignore empty command lines.
39785 (print_message): Added a new argument EDIT. If EDIT is true,
39786 print a different message.
39787 (init_page): Likewise.
39788 (edit_menu_entry): New function. Not implemented yet.
39789
39790 2004-09-17 Marco Gerards <metgerards@student.han.nl>
39791
39792 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
39793 can be loaded from normal mode.
39794
39795 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
39796 `multiboot.mod'.
39797 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
39798 (multiboot_mod_CFLAGS): New variables.
39799 * loader/i386/pc/linux_normal.c: New file.
39800 * loader/i386/pc/multiboot_normal.c: Likewise.
39801
39802 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
39803 attribute `unused'.
39804
39805 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
39806 `fdiro' to read the mode information from instead of `diro'.
39807
39808 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
39809 looking up a symlink.
39810
39811 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
39812 macro.
39813 * normal/command.c (grub_command_execute): Don't parse the
39814 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
39815 flags of the command.
39816
39817 * normal/menu.c (grub_menu_run): Fix typo.
39818
39819 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
39820
39821 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
39822
39823 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
39824 `y + 1' instead of `y - 1'.
39825
39826 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
39827
39828 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
39829
39830 From Hollis Blanchard <hollis@penguinppc.org>:
39831 * kern/misc.c (memmove): New alias for grub_memmove.
39832 (memcmp): New alias for grub_memcmp.
39833 (memset): New alias for grub_memset.
39834 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
39835 Change "int handle" to "grub_ieee1275_phandle_t handle".
39836 * include/grub/powerpc/ieee1275/ieee1275.h
39837 (grub_ieee1275_get_property): Likewise.
39838
39839 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
39840
39841 Added normal mode command `chainloader' as module chain.mod, which
39842 depends on normal.mod and _chain.mod.
39843
39844 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
39845 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
39846 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
39847 Deleted prototype.
39848 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
39849 but arguments parsing moved to ...
39850 (grub_chainloader_cmd): ... here. New function.
39851 * include/grub/i386/pc/chainloader.h: New file.
39852 * loader/i386/pc/chainloader_normal.c: Likewise.
39853
39854 2004-09-11 Marco Gerards <metgerards@student.han.nl>
39855
39856 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
39857 (grub_mkimage_LDFLAGS): Likewise.
39858 (grub_emu_SOURCES): Likewise.
39859 (kernel_img_HEADERS): Added fshelp.h.
39860 * fs/ext2.c: Include <grub/fshelp.h>.
39861 (FILETYPE_REG): New macro.
39862 (FILETYPE_INO_REG): Likewise.
39863 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
39864 Changed all users.
39865 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
39866 all users.
39867 (grub_fshelp_node): New struct.
39868 (grub_ext2_data): Added member `diropen'. Changed member `inode'
39869 to a pointer.
39870 (grub_ext2_get_file_block): Removed function.
39871 (grub_ext2_read_block): New function.
39872 (grub_ext2_read_file): Replaced parameter `data' by `node'.
39873 This function was written.
39874 (grub_ext2_mount): Read the root inode. Create a diropen struct.
39875 (grub_ext2_find_file): Removed function.
39876 (grub_ext2_read_symlink): New function.
39877 (grub_ext2_iterate_dir): Likewise.
39878 (grub_ext2_open): Rewritten.
39879 (grub_ext2_dir): Rewritten.
39880 * include/grub/fshelp.h: New file.
39881 * fs/fshelp.c: Likewise.
39882
39883 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
39884
39885 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
39886 (print_message): Add a missing newline.
39887 (run_menu): Added timeout support.
39888 (run_menu_entry): New local function.
39889 (grub_menu_run): Added support for booting.
39890
39891 * kern/loader.c (grub_loader_is_loaded): New function.
39892
39893 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
39894 (grub_get_rtc): Exported.
39895
39896 * include/grub/i386/pc/time.h: Include grub/symbol.h.
39897 (grub_get_rtc): Exported.
39898
39899 * include/grub/normal.h (struct grub_command_list): Remove
39900 constant from the member `command'.
39901
39902 * include/grub/loader.h (grub_loader_is_loaded): Declared.
39903
39904 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
39905
39906 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
39907
39908 2004-08-28 Marco Gerards <metgerards@student.han.nl>
39909
39910 Add support for the JFS filesystem.
39911
39912 * fs/jfs.c: New file.
39913 * include/grub/fs.h (grub_jfs_init): New prototype.
39914 (grub_jfs_fini): New prototype.
39915 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
39916 (grub_emu_SOURCES): Likewise.
39917 (pkgdata_MODULES): Add jfs.mod.
39918 (jfs_mod_SOURCES): New variable.
39919 (jfs_mod_CFLAGS): Likewise.
39920 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
39921 (grubof_SOURCES): Likewise.
39922 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
39923
39924 * fs/fat.c (grub_fat_find_dir): Convert the filename little
39925 endian to the host endian.
39926 (grub_fat_utf16_to_utf8): Move function from there...
39927 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
39928 the endianness of the source string anymore.
39929 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
39930
39931 2004-08-24 Marco Gerards <metgerards@student.han.nl>
39932
39933 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
39934 (grub_boot_fini) [GRUB_UTIL]: Likewise.
39935 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
39936 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
39937
39938 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
39939 (grub_hfs_iterate_dir): Make the function static. Add prototypes
39940 for `node_found' and `it_dir'.
39941 (grub_hfs_dir): Add prototype for `dir_hook'.
39942
39943 * fs/minix.c (grub_minix_get_file_block): Add prototype for
39944 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
39945 and `indir32' to silence a gcc warning.
39946
39947 * include/grub/fs.h (grub_hfs_init): New prototype.
39948 (grub_hfs_fini): Likewise.
39949
39950
39951 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
39952
39953 Each disk device has its own id now. This is useful to make use
39954 of multiple disk devices.
39955
39956 * include/grub/disk.h (grub_disk_dev_id): New enum.
39957 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
39958 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
39959
39960 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
39961 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
39962
39963 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
39964 GRUB_DISK_DEVICE_OFDISK_ID as an id.
39965
39966 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
39967 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
39968
39969 * include/grub/disk.h (struct grub_disk_dev): Added a new member
39970 "id" which is used by the cache manager.
39971
39972 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
39973 of just "GRUB".
39974
39975 2004-08-18 Marco Gerards <metgerards@student.han.nl>
39976
39977 * fs/hfs.c: New file.
39978 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
39979 (grub_emu_SOURCES): Likewise.
39980 (pkgdata_MODULES): Add hfs.mod.
39981 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
39982 (grubof_SOURCES): Likewise.
39983 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
39984
39985 * include/grub/misc.h (grub_strncasecmp): Add prototype.
39986 * kern/misc.c (grub_strncasecmp): Add function.
39987
39988 2004-08-14 Marco Gerards <metgerards@student.han.nl>
39989
39990 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
39991 with parentheses.
39992
39993 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
39994 (grub_ext2_dir): In case the directory entry type is unknown, read
39995 it from the inode.
39996
39997 2004-08-02 Peter Bruin <pjbruin@dds.nl>
39998
39999 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
40000 grub_load_linux instead of grub_rescue_cmd_linux as second
40001 argument of grub_rescue_register_command.
40002
40003 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
40004
40005 2004-07-27 Marco Gerards <metgerards@student.han.nl>
40006
40007 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
40008 function.
40009 * commands/boot.c: Remove the check for `GRUB_UTIL'.
40010 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
40011 `loader/powerpc/ieee1275/linux.c',
40012 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
40013 * include/grub/powerpc/ieee1275/ieee1275.h
40014 (grub_ieee1275_release): New prototype.
40015 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
40016 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
40017 normal, boot, linux and linux_normal.
40018 * loader/powerpc/ieee1275/linux.c: New file.
40019 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
40020
40021 2004-07-12 Marco Gerards <metgerards@student.han.nl>
40022
40023 * normal/arg.c (grub_arg_parse): Correct error handling after
40024 reallocating the argumentlist (check if `argl' is not null instead
40025 of checking if `args' is not null).
40026 * kern/mm.c (grub_realloc): Return the same pointer when using the
40027 same region, instead of returning the header address.
40028
40029 2004-07-11 Marco Gerards <metgerards@student.han.nl>
40030
40031 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
40032 one block instead of two when looking for the initial partition.
40033 (grub_partition_probe): Initialize the local variable `p' with 0.
40034 Use base 10 for the grub_strtoul call.
40035 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
40036 need for one local variable.
40037 (grub_strtoul): Don't add the new value to `num', instead of that
40038 just assign it.
40039
40040 2004-07-11 Marco Gerards <metgerards@student.han.nl>
40041
40042 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
40043 (pxeboot_img_SOURCES): New variable.
40044 (pxeboot_img_ASFLAGS): Likewise.
40045 (pxeboot_img_LDFLAGS): Likewise.
40046 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
40047 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
40048 <lode_leroy@hotmail.com>.
40049
40050 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
40051
40052 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
40053 there was no input.
40054
40055 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
40056
40057 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
40058 the history buffer logic.
40059
40060 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
40061
40062 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
40063 (FILETYPE_INO_SYMLINK): New macros.
40064 (grub_ext2_find_file): Check if the node is a directory using the
40065 inode stat information instead of using the filetype in the
40066 dirent. Exclude the first character of an absolute symlink.
40067 (grub_ext2_dir): Mask out the filetype part of the mode member of
40068 the inode.
40069
40070 2004-05-24 Marco Gerards <metgerards@student.han.nl>
40071
40072 Add support for UFS version 1 and 2. Add support for the minix
40073 filesystem version 1 and 2, both the variants with 14 and 30 long
40074 filenames.
40075
40076 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
40077 fs/minix.c.
40078 (grub_emu_SOURCES): Likewise.
40079 (pkgdata_MODULES): Add ufs.mod and minix.mod.
40080 (ufs_mod_SOURCES): New variable.
40081 (ufs_mod_CFLAGS): Likewise.
40082 (minix_mod_SOURCES): Likewise.
40083 (minix_mod_CFLAGS): Likewise.
40084 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
40085 fs/minix.c.
40086 (grubof_SOURCES): Likewise.
40087 * fs/ufs.c: New file.
40088 * fs/minix.c: New file.
40089 * include/grub/fs.h (grub_ufs_init): New prototype.
40090 (grub_ufs_fini): Likewise.
40091 (grub_minix_init): Likewise.
40092 (grub_minix_fini): Likewise.
40093 * util/grub-emu.c (main): Initialize and deinitialize UFS and
40094 minix fs.
40095
40096 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
40097
40098 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
40099 commands/ls.c, commands/terminal.c, commands/boot.c,
40100 commands/cmp.c and commands/cat.c.
40101 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
40102
40103 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
40104 "env.h"
40105
40106 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
40107
40108 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
40109 and grub_, respectively. Because the conversion is trivial and
40110 mechanical, I omit the details here. Please refer to the CVS
40111 if you need more information.
40112
40113 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
40114
40115 * include/pupa: Renamed to ...
40116 * include/grub: ... this.
40117 * util/i386/pc/pupa-mkimage.c: Renamed to ...
40118 * util/i386/pc/grub-mkimage.c: ... this.
40119 * util/i386/pc/pupa-setup.c: Renamed to ...
40120 * util/i386/pc/grub-setup.c: ... this.
40121 * util/pupa-emu.c: Renamed to ...
40122 * util/grub-emu.c: ... this.
40123
40124 2004-03-29 Marco Gerards <metgerards@student.han.nl>
40125
40126 Add support for the newworld apple macintosh (PPC). This has been
40127 tested on the powerbook 2000 only. It only adds support for
40128 generic ieee1275 functions, console and disk support. This should
40129 be easy to port to other architectures with support for Open
40130 Firmware.
40131
40132 * configure.ac: Accept the powerpc as host_cpu. In the case of
40133 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
40134 specific tests are only executed while building for the i386.
40135 Inverse test for crosscompile.
40136 * genmk.rb (Utility): Allow assembler files.
40137 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
40138 * conf/powerpc-ieee1275.rmk: New file.
40139 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
40140 * disk/powerpc/ieee1275/partition.c: Likewise.
40141 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
40142 * include/pupa/powerpc/ieee1275/console.h: Likewise.
40143 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
40144 * include/pupa/powerpc/ieee1275/time.h: Likewise.
40145 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
40146 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
40147 * include/pupa/powerpc/ieee1275/loader.h
40148 * include/pupa/powerpc/setjmp.h: Likewise.
40149 * include/pupa/powerpc/types.h: Likewise.
40150 * kern/powerpc/ieee1275/init.c: Likewise.
40151 * kern/powerpc/ieee1275/openfw.c: Likewise.
40152 * term/powerpc/ieee1275/ofconsole.c: Likewise.
40153
40154 These files were written by Johan Rydberg
40155 (jrydberg@night.trouble.net) and I only modified them slightly.
40156
40157 * boot/powerpc/ieee1275/cmain.c: New file.
40158 * boot/powerpc/ieee1275/crt0.S: Likewise.
40159 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
40160 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
40161
40162 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
40163
40164 * Makefile.in: Update copyright.
40165 * genmodsrc.sh: Likewise.
40166 * gensymlist.sh: Likewise.
40167 * term/i386/pc/vga.c: Indent correctly.
40168
40169 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
40170 bugreporting address.
40171 * util/i386/pc/pupa-setup.c (usage): Likewise,
40172 (main): Call pupa_ext2_init and pupa_ext2_fini.
40173
40174 * fs/fat.c (log2): Renamed to ...
40175 (fat_log2): ... this.
40176 All callers changed.
40177 * kern/misc.c (memcpy): Alias to pupa_memmove.
40178 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
40179 lvalue cast.
40180 * util/console.c (pupa_ncurses_fini): Return 0.
40181
40182 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
40183 Move fail label here.
40184 [__GNU__]: Don't warn when using stat.
40185 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
40186 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
40187 long int. Use strtol instead of strtoul.
40188
40189 2004-03-14 Marco Gerards <metgerards@student.han.nl>
40190
40191 * commands/boot.c: New file.
40192 * commands/cat.c: Likewise.
40193 * commands/cmp.c: Likewise.
40194 * commands/ls.c: Likewise.
40195 * commands/terminal.c: Likewise.
40196 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
40197 (pupa_register_command): Changed interface to match the new
40198 argument parser.
40199 (pupa_command_execute): Changed (almost rewritten) so it uses
40200 pupa_split_command. Added support for setting variables using the
40201 syntax `foo=bar'.
40202 (rescue_command): Changed to work with the new argument parser.
40203 (terminal_command): Moved from here to commands/terminal.c.
40204 (set_command): New function.
40205 (unset_command): New function.
40206 (insmod_command): New function.
40207 (rmmod_command): New function.
40208 (lsmod_command): New function.
40209 (pupa_command_init): Don't initialize the command terminal
40210 anymore. Initialize the commands set, unset, insmod, rmmod and
40211 lsmod.
40212 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
40213 (kernel_img_HEADERS): Add arg.h and env.h.
40214 (pupa_mkimage_LDFLAGS): Add kern/env.c.
40215 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
40216 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
40217 normal/arg.c.
40218 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
40219 terminal.mod.
40220 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
40221 (boot_mod_SOURCES): New variable.
40222 (terminal_mod_SOURCES): Likewise.
40223 (ls_mod_SOURCES): Likewise.
40224 (cmp_mod_SOURCES): Likewise.
40225 (cat_mod_SOURCES): Likewise.
40226
40227 * normal/arg.c: New file.
40228 * kern/env.c: Likewise.
40229 * include/pupa/arg.h: Likewise.
40230 * include/pupa/env.h: Likewise.
40231 * font/manager.c (font_command): Changed to match argument parsing
40232 interface changes.
40233 (PUPA_MOD_INIT): Likewise.
40234 * hello/hello.c (pupa_cmd_hello): Likewise.
40235 (PUPA_MOD_INIT): Likewise.
40236 * include/pupa/disk.h: Include <pupa/device.h>.
40237 (pupa_print_partinfo): New prototype.
40238 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
40239 (pupa_dl_get_prefix): Likewise.
40240 * include/pupa/misc.h: Include <pupa/err.h>.
40241 (pupa_isgraph): New prototype.
40242 (pupa_isdigit): Likewise.
40243 (pupa_split_cmdline): Likewise.
40244 * include/pupa/normal.h: Include <pupa/arg.h>.
40245 (pupa_command): Changed the prototype of the member `func' to
40246 match the argument parsing interface. Added member `options'.
40247 (pupa_register_command): Updated to match function.
40248 (pupa_arg_parse): New prototype.
40249 (pupa_hello_init) [PUPA_UTIL]: New prototype.
40250 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
40251 (pupa_ls_init) [PUPA_UTIL]: Likewise.
40252 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
40253 (pupa_cat_init) [PUPA_UTIL]: Likewise.
40254 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
40255 (pupa_boot_init) [PUPA_UTIL]: Likewise.
40256 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
40257 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
40258 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
40259 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
40260 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
40261 * kern/disk.c: Include <pupa/file.h>.
40262 (pupa_print_partinfo): New function.
40263 * kern/dl.c: Include <pupa/env.h>.
40264 (pupa_dl_dir): Variable removed.
40265 (pupa_dl_load): Use the environment variable `prefix' instead of
40266 the variable pupa_dl_dir.
40267 (pupa_dl_set_prefix): Function removed.
40268 (pupa_dl_get_prefix): Likewise.
40269 * kern/i386/pc/init.c: Include <pupa/env.h>.
40270 (pupa_machine_init): Use the environment variable `prefix' instead of
40271 using pupa_dl_set_prefix to set the prefix.
40272 * kern/main.c: Include <pupa/env.h>.
40273 (pupa_set_root_dev): Use the environment variable `prefix' instead of
40274 using pupa_dl_get_prefix to get the prefix.
40275 * kern/misc.c: Include <pupa/env.h>.
40276 (pupa_isdigit): New function.
40277 (pupa_isgraph): Likewise.
40278 (pupa_ftoa): Likewise.
40279 (pupa_vsprintf): Added support for printing values of the type
40280 `double'. Make it possible to format variable output when using
40281 formatting like `%1.2%f'.
40282 (pupa_split_cmdline): New function.
40283 * kern/rescue.c: Include <pupa/env.h>.
40284 (next_word): Removed function.
40285 (pupa_rescue_cmd_prefix): Likewise.
40286 (pupa_rescue_cmd_set): New function.
40287 (pupa_rescue_cmd_unset): New function.
40288 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
40289 split the command line instead of splitting it here. Added
40290 support for setting variables using the syntax `foo=bar'. Don't
40291 initialize the prefix command anymore. Initialized the set and
40292 unset commands.
40293 * normal/cmdline.c: Include <pupa/env.h>.
40294 (pupa_tab_complete): Added prototypes for print_simple_completion,
40295 print_partition_completion, add_completion, iterate_commands,
40296 iterate_dev, iterate_part and iterate_dir. Moved code to print
40297 partition information from here to kern/disk.c.
40298 (pupa_cmdline_run): Don't check if the function exists anymore.
40299 * normal/main.c: Include <pupa/env.h>.
40300 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
40301 instead of using pupa_dl_get_prefix to get the prefix.
40302 * term/i386/pc/vga.c: Include <pupa/arg.h>.
40303 (check_vga_mem): Cast pointers to `void *' to silence a gcc
40304 warning.
40305 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
40306 (pupa_vga_setcolor): Declare unused variables with `__attribute__
40307 ((unused))' to silence a gcc warning.
40308 (pupa_vga_setcolor): Likewise.
40309 (debug_command): Changed to match argument parsing
40310 interface changes.
40311 * util/pupa-emu.c: Include <pupa/env.h>.
40312 (options): Added 0's for unused fields to silence a gcc warning.
40313 (argp): Likewise.
40314 (main): Use the environment variable `prefix' instead of using
40315 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
40316 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
40317 and terminal.
40318
40319 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
40320 * util/misc.c: Include <malloc.h>.
40321 (pupa_malloc): Rewritten so errors are correctly reported.
40322 (pupa_realloc): Likewise.
40323 (pupa_memalign): Likewise.
40324 (pupa_mm_init_region): Declare unused variables with
40325 `__attribute__ ((unused))' to silence a gcc warning.
40326 * normal/i386/setjmp.S: Remove tab at the end of the file to
40327 silence a gcc warning.
40328 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
40329 variables with `__attribute__ ((unused))' to silence a gcc
40330 warning.
40331 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
40332 local variable i unsigned to silence a gcc warning.
40333
40334 * kern/term.c: Include <pupa/misc.h>.
40335 (pupa_more_lines): New variable.
40336 (pupa_more): Likewise.
40337 (pupa_putcode): When the pager is active pause at the end of every
40338 screen.
40339 (pupa_set_more): New function.
40340 * include/pupa/term.h (pupa_set_more): New prototype.
40341
40342
40343 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
40344
40345 Now this project is GRUB 2 rather than PUPA. The location of
40346 the CVS repository was moved to GRUB's.
40347
40348 * configure.ac: Use bug-grub as the reporting address.
40349 Use GRUB instead of PUPA.
40350 Change the version number to 1.90.
40351
40352 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
40353
40354 * genkernsyms.sh: Updated copyright information.
40355 * genmk.rb: Likewise.
40356 * genmodsrc.sh: Likewise.
40357 * gensymlist.sh: Likewise.
40358 * boot/i386/pc/boot.S: Likewise.
40359 * boot/i386/pc/diskboot.S: Likewise.
40360 * disk/i386/pc/biosdisk.c: Likewise.
40361 * disk/i386/pc/partition.c: Likewise.
40362 * font/manager.c: Likewise.
40363 * fs/ext2.c: Likewise.
40364 * fs/fat.c: Likewise.
40365 * include/pupa/boot.h: Likewise.
40366 * include/pupa/device.h: Likewise.
40367 * include/pupa/disk.h: Likewise.
40368 * include/pupa/dl.h: Likewise.
40369 * include/pupa/elf.h: Likewise.
40370 * include/pupa/err.h: Likewise.
40371 * include/pupa/file.h: Likewise.
40372 * include/pupa/font.h: Likewise.
40373 * include/pupa/fs.h: Likewise.
40374 * include/pupa/kernel.h: Likewise.
40375 * include/pupa/loader.h: Likewise.
40376 * include/pupa/misc.h: Likewise.
40377 * include/pupa/mm.h: Likewise.
40378 * include/pupa/net.h: Likewise.
40379 * include/pupa/normal.h: Likewise.
40380 * include/pupa/rescue.h: Likewise.
40381 * include/pupa/setjmp.h: Likewise.
40382 * include/pupa/symbol.h: Likewise.
40383 * include/pupa/term.h: Likewise.
40384 * include/pupa/types.h: Likewise.
40385 * include/pupa/i386/setjmp.h: Likewise.
40386 * include/pupa/i386/types.h: Likewise.
40387 * include/pupa/i386/pc/biosdisk.h: Likewise.
40388 * include/pupa/i386/pc/boot.h: Likewise.
40389 * include/pupa/i386/pc/console.h: Likewise.
40390 * include/pupa/i386/pc/init.h: Likewise.
40391 * include/pupa/i386/pc/kernel.h: Likewise.
40392 * include/pupa/i386/pc/linux.h: Likewise.
40393 * include/pupa/i386/pc/loader.h: Likewise.
40394 * include/pupa/i386/pc/memory.h: Likewise.
40395 * include/pupa/i386/pc/multiboot.h: Likewise.
40396 * include/pupa/i386/pc/partition.h: Likewise.
40397 * include/pupa/i386/pc/time.h: Likewise.
40398 * include/pupa/i386/pc/vga.h: Likewise.
40399 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
40400 * include/pupa/util/getroot.h: Likewise.
40401 * include/pupa/util/misc.h: Likewise.
40402 * include/pupa/util/resolve.h: Likewise.
40403 * kern/device.c: Likewise.
40404 * kern/disk.c: Likewise.
40405 * kern/dl.c: Likewise.
40406 * kern/err.c: Likewise.
40407 * kern/file.c: Likewise.
40408 * kern/fs.c: Likewise.
40409 * kern/loader.c: Likewise.
40410 * kern/main.c: Likewise.
40411 * kern/misc.c: Likewise.
40412 * kern/mm.c: Likewise.
40413 * kern/rescue.c: Likewise.
40414 * kern/term.c: Likewise.
40415 * kern/i386/dl.c: Likewise.
40416 * kern/i386/pc/init.c: Likewise.
40417 * kern/i386/pc/lzo1x.S: Likewise.
40418 * kern/i386/pc/startup.S: Likewise.
40419 * loader/i386/pc/chainloader.c: Likewise.
40420 * loader/i386/pc/linux.c: Likewise.
40421 * loader/i386/pc/multiboot.c: Likewise.
40422 * normal/cmdline.c: Likewise.
40423 * normal/command.c: Likewise.
40424 * normal/main.c: Likewise.
40425 * normal/menu.c: Likewise.
40426 * normal/i386/setjmp.S: Likewise.
40427 * term/i386/pc/console.c: Likewise.
40428 * term/i386/pc/vga.c: Likewise.
40429 * util/console.c: Likewise.
40430 * util/genmoddep.c: Likewise.
40431 * util/misc.c: Likewise.
40432 * util/pupa-emu.c: Likewise.
40433 * util/resolve.c: Likewise.
40434 * util/unifont2pff.rb: Likewise.
40435 * util/i386/pc/biosdisk.c: Likewise.
40436 * util/i386/pc/getroot.c: Likewise.
40437 * util/i386/pc/pupa-mkimage.c: Likewise.
40438 * util/i386/pc/pupa-setup.c: Likewise.
40439
40440 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
40441
40442 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
40443 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
40444 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
40445 reading and reset it after reading.
40446 (pupa_ext2_close): Return PUPA_ERR_NONE.
40447
40448 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
40449 Correct value.
40450 (struct linux_kernel_header): Add kernel_version and
40451 initrd_addr_max.
40452 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
40453 pupa_file_read succeeds.
40454 (pupa_rescue_cmd_initrd): Implement.
40455
40456 2003-12-03 Marco Gerards <metgerards@student.han.nl>
40457
40458 * fs/ext2.c (pupa_ext2_label): New function.
40459 (pupa_ext2_fs): Added label.
40460 * fs/fat.c (pupa_fat_label): New function.
40461 (pupa_fat_fs): Added label.
40462 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
40463
40464 * kern/misc.c (pupa_strndup): New function.
40465 * include/pupa/misc.h (pupa_strndup): New prototype.
40466
40467 * include/pupa/normal.h: Include <pupa/err.h>.
40468 (pupa_set_history): New prototype.
40469 (pupa_iterate_commands): New prototype.
40470 * normal/cmdline.c: Include <pupa/machine/partition.h>,
40471 <pupa/disk.h>, <pupa/file.h>.
40472 (hist_size): New variable.
40473 (hist_lines): Likewise.
40474 (hist_end): Likewise.
40475 (hist_used): Likewise.
40476 (pupa_set_history): New function.
40477 (pupa_history_get): Likewise.
40478 (pupa_history_add): Likewise.
40479 (pupa_history_replace): Likewise.
40480 (pupa_tab_complete): Likewise.
40481 (pupa_cmdline_run): Added tab completion and history buffer. Tab
40482 completion shows partitionnames while completing partitions, this
40483 feature was suggested by Jeff Bailey.
40484 * normal/command.c (pupa_iterate_commands): New function.
40485 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
40486 (pupa_normal_init): Initialize history buffer.
40487 (PUPA_MOD_INIT): Likewise.
40488 (pupa_normal_fini): Free the history buffer.
40489 (PUPA_MOD_FINI): Likewise.
40490
40491 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
40492 key.
40493
40494 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
40495 * configure.ac [i386]: Check for regparam bug.
40496 (NESTED_FUNC_ATTR) [! i386]: Defined.
40497
40498 2003-11-17 Marco Gerards <metgerards@student.han.nl>
40499
40500 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
40501 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
40502 (pupa_emu_SOURCES): New variable.
40503 (pupa_emu_LDFLAGS): Likewise.
40504 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
40505 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
40506 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
40507 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
40508 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
40509 (pupa_jmp_buf): New typedef.
40510 (pupa_setjmp) [PUPA_UTIL]: New macro.
40511 (pupa_longjmp) [PUPA_UTIL]: Likewise.
40512 * include/pupa/term.h (struct pupa_term): New member `refresh'.
40513 (pupa_refresh): New prototype.
40514 * include/pupa/util/getroot.h: New file.
40515 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
40516 it.
40517 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
40518 (pupa_rescue_cmd_cat): Likewise.
40519 (pupa_rescue_cmd_ls): Likewise.
40520 (pupa_rescue_cmd_testload): Likewise.
40521 (pupa_rescue_cmd_lsmod): Likewise.
40522 * normal/cmdline.c (pupa_cmdline_get): Likewise.
40523 * normal/menu.c (run_menu): Likewise.
40524 * kern/term.c (pupa_cls): Likewise.
40525 (pupa_refresh): New function.
40526 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
40527 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
40528 * util/console.c: New file.
40529
40530 * util/i386/pc/getroot.c: New file.
40531 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
40532 (pupa_putchar): New function.
40533 (pupa_refresh): Likewise.
40534 (xgetcwd): Function moved to ...
40535 (strip_extra_slashes): Likewise.
40536 (get_prefix): Likewise.
40537 * util/i386/pc/getroot.c: ... here.
40538 (find_root_device): Function moved and renamed to...
40539 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
40540 Changed all callers.
40541 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
40542 and renamed to...
40543 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
40544 Changed all callers.
40545 * util/misc.c (pupa_memalign): New function.
40546 (pupa_mm_init_region): Likewise.
40547 (pupa_register_exported_symbols): Likewise.
40548 (pupa_putchar): Function removed.
40549 * util/pupa-emu.c: New file.
40550
40551 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
40552
40553 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
40554 (_multiboot_mod_SOURCES): New variable.
40555 (_multiboot_mod_CFLAGS): Likewise.
40556 * loader/i386/pc/multiboot.c: New file.
40557 * include/pupa/i386/pc/multiboot.h: Likewise.
40558 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
40559 (pupa_multiboot_real_boot): New function.
40560 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
40561 (pupa_multiboot_real_boot): New prototype.
40562 (pupa_rescue_cmd_multiboot): Likewise
40563 (pupa_rescue_cmd_module): Likewise.
40564
40565 * kern/loader.c (pupa_loader_set): Continue when
40566 pupa_loader_unload_func() fails.
40567 (pupa_loader_unset): New function.
40568 * include/pupa/loader.h (pupa_loader_unset): New prototype.
40569
40570 * kern/misc.c (pupa_stpcpy): New function.
40571 * include/pupa/misc.h (pupa_stpcpy): New prototype.
40572
40573 2003-11-12 Marco Gerards <metgerards@student.han.nl>
40574
40575 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
40576 for available extensions.
40577
40578 * include/pupa/i386/pc/time.h: New file.
40579 * kern/disk.c: Include <pupa/machine/time.h>.
40580 (PUPA_CACHE_TIMEOUT): New macro.
40581 (pupa_last_time): New variable.
40582 (pupa_disk_open): Flush the cache when there was a timeout.
40583 (pupa_disk_close): Reset the timer.
40584 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
40585 pupa_currticks.
40586 * util/misc.c: Include <sys/times.h>
40587 (pupa_get_rtc): New function.
40588
40589 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
40590
40591 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
40592 as blocks.
40593 (pupa_ext2_get_file_block): Use blocks member.
40594
40595 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
40596 first block. Return -1 instead of pupa_errno on error.
40597
40598 2003-10-27 Marco Gerards <metgerards@student.han.nl>
40599
40600 * README: In the pupa-mkimage example use _chain instead of chain
40601 and ext2 instead of fat.
40602 * TODO: Replace ext2fs with jfs as an example. Add an item for
40603 adding journal playback for ext2fs.
40604 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
40605 (pkgdata_MODULES): Added ext2.mod.
40606 (ext2_mod_SOURCES): New variable.
40607 (ext2_mod_CFLAGS): Likewise.
40608 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
40609 * include/pupa/misc.h (pupa_strncpy): New prototype.
40610 (pupa_strcat): Likewise.
40611 (pupa_strncmp): Likewise.
40612 * kern/misc.c (pupa_strcat): Enable function.
40613 (pupa_strncpy): New function.
40614 (pupa_strncmp): Likewise.
40615 * fs/ext2.c: New file.
40616
40617 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
40618 when the read failed before retrying.
40619 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
40620 (_FILE_OFFSET_BITS): Likewise.
40621 * configure.ac: Added AC_SYS_LARGEFILE.
40622
40623 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
40624
40625 * genmk.rb (PModule#rule): Make sure to get only symbol names
40626 from the output of nm.
40627 Reported by Robert Millan <rmh.grub@aybabtu.com>.
40628
40629 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
40630
40631 I forgot to check in these changes for a long time. This adds
40632 incomplete support for VGA console, and this is still very
40633 buggy. Also, a lot of consideration is required for I18N,
40634 UNICODE, and VGA font issues. Therefore, assume that this is
40635 such that "better than nothing".
40636
40637 * font/manager.c: New file.
40638 * include/pupa/font.h: Likewise.
40639 * include/pupa/i386/pc/vga.h: Likewise.
40640 * term/i386/pc/vga.c: Likewise.
40641 * util/unifont2pff.rb: Likewise.
40642
40643 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
40644 (pkgdata_MODULES): Added vga.mod and font.mod.
40645 (vga_mod_SOURCES): New variables.
40646 (vga_mod_CFLAGS): Likewise.
40647 (font_mod_SOURCES): Likewise.
40648 (font_mod_CFLAGS): Likewise.
40649
40650 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
40651
40652 * include/pupa/term.h: Include pupa/err.h.
40653 (struct pupa_term): Added init and fini.
40654 Changed the argument of putchar to pupa_uint32_t.
40655
40656 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
40657 (pupa_console_real_putchar): New prototype.
40658 (pupa_console_putchar): Removed.
40659 (pupa_console_checkkey): Exported.
40660 (pupa_console_getkey): Likewise.
40661
40662 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
40663 characters.
40664
40665 * kern/term.c (pupa_term_set_current): Rewritten.
40666 (pupa_putchar): Likewise.
40667 (pupa_putcode): New function.
40668
40669 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
40670 (pupa_console_real_putchar): ... this.
40671 (pupa_vga_set_mode): New function.
40672 (pupa_vga_get_font): Likewise.
40673
40674 * normal/command.c: Include pupa/term.h.
40675 (terminal_command): New function.
40676 (pupa_command_init): Register the command "terminal".
40677
40678 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
40679 (DISP_UP): Likewise.
40680 (DISP_RIGHT): Likewise.
40681 (DISP_DOWN): Likewise.
40682 (DISP_HLINE): Likewise.
40683 (DISP_VLINE): Likewise.
40684 (DISP_UL): Likewise.
40685 (DISP_UR): Likewise.
40686 (DISP_LL): Likewise.
40687 (DISP_LR): Likewise.
40688
40689 * term/i386/pc/console.c (pupa_console_putchar): New function.
40690
40691 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
40692
40693 * util/resolve.c (pupa_util_resolve_dependencies): BUG
40694 FIX. Reverse the path_list.
40695
40696 * include/pupa/normal.h: Export pupa_register_command and
40697 pupa_unregister_command.
40698
40699 * hello/hello.c (pupa_cmd_hello): New module.
40700 * conf/i386-pc.rmk: Added hello.mod.
40701
40702 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
40703
40704 * kern/i386/pc/lzo1x.S: New file.
40705
40706 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
40707 (compress_kernel): New variable.
40708 (generate_image): Heavily modified to support compressing a
40709 large part of the core image.
40710
40711 * util/misc.c (pupa_util_read_image): Fix a file descriptor
40712 leak.
40713 (pupa_util_load_image): New function.
40714
40715 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
40716 (pupa_compressed_size): New variable.
40717 (codestart): Enable Gate A20 here.
40718 Decompress the compressed part of the core image.
40719 Rearrange the code to put functions and variables which are
40720 required for initialization in the non-compressed part.
40721 Include lzo1x.S.
40722
40723 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
40724 here.
40725
40726 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
40727
40728 * include/pupa/i386/pc/kernel.h
40729 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
40730 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
40731 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
40732 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
40733 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
40734
40735 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
40736
40737 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
40738 (Utility#rule): Likewise.
40739
40740 * configure.ac: Check if LZO is available.
40741
40742 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
40743
40744 * include/pupa/normal.h: New file.
40745 * include/pupa/setjmp.h: Likewise.
40746 * include/pupa/i386/setjmp.h: Likewise.
40747 * normal/cmdline.c: Likewise.
40748 * normal/command.c: Likewise.
40749 * normal/main.c: Likewise.
40750 * normal/menu.c: Likewise.
40751 * normal/i386/setjmp.S: Likewise.
40752
40753 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
40754 (pupa_rescue_cmd_initrd): Likewise.
40755
40756 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
40757 Likewise.
40758
40759 * kern/i386/pc/startup.S (translation_table): New variable.
40760 (translate_keycode): New function.
40761 (pupa_console_getkey): Call translate_keycode.
40762
40763 * kern/rescue.c (attempt_normal_mode): New function.
40764 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
40765 it failed, print a message.
40766
40767 * kern/mm.c (pupa_real_malloc): Print more information when a
40768 free magic is broken.
40769 (pupa_free): If the first free header is not free actually, set
40770 it to P.
40771
40772 * kern/main.c (pupa_load_normal_mode): Just load the module
40773 "normal".
40774 (pupa_main): Don't print the message
40775 "Entering into rescue mode..." here.
40776
40777 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
40778 Declared.
40779 (pupa_rescue_cmd_initrd): Likewise.
40780 (pupa_rescue_cmd_initrd): Likewise.
40781
40782 * include/pupa/symbol.h (FUNCTION): Specify the type.
40783 (VARIABLE): Likewise.
40784
40785 * include/pupa/err.h (pupa_err_t): Added
40786 PUPA_ERR_UNKNOWN_COMMAND.
40787
40788 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
40789 (pupa_dl_get_prefix): Likewise.
40790
40791 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
40792 Added _chain.mod and _linux.mod instead of chain.mod and
40793 linux.mod.
40794 (chain_mod_SOURCES): Renamed to ...
40795 (_chain_mod_SOURCES): ... this.
40796 (chain_mod_CFLAGS): Renamed to ...
40797 (_chain_mod_CFLAGS): ... this.
40798 (linux_mod_SOURCES): Renamed to ...
40799 (_linux_mod_SOURCES): ... this.
40800 (linux_mod_CFLAGS): Renamed to ...
40801 (_linux_mod_CFLAGS): ... this.
40802 (normal_mod_SOURCES): New variable.
40803 (normal_mod_CFLAGS): Likewise.
40804 (normal_mod_ASFLAGS): Likewise.
40805
40806 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
40807
40808 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
40809 possible.
40810
40811 * kern/dl.c (pupa_dl_ref): Refer depending modules
40812 recursively.
40813 (pupa_dl_unref): Unrefer depending modules recursively.
40814 Don't call pupa_dl_unload implicitly, because PUPA can crash if
40815 a module is unloaded before one depending on that module is
40816 unloaded.
40817 (pupa_dl_unload): Unload depending modules explicitly,
40818 if possible.
40819
40820 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
40821
40822 * include/pupa/i386/pc/linux.h: New file.
40823 * loader/i386/pc/linux.c: Likewise.
40824
40825 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
40826 Removed.
40827 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
40828 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
40829 of PUPA_CHAINLOADER_BOOT_SECTOR.
40830
40831 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
40832 (pupa_linux_prot_size): New variable.
40833 (pupa_linux_tmp_addr): Likewise.
40834 (pupa_linux_real_addr): Likewise.
40835 (pupa_linux_boot_zimage): New function.
40836 (pupa_linux_boot_bzimage): Likewise.
40837
40838 * kern/i386/pc/init.c (struct mem_region): New structure.
40839 (MAX_REGIONS): New macro.
40840 (mem_regions): New variable.
40841 (num_regions): Likewise.
40842 (pupa_os_area_addr): Likewise.
40843 (pupa_os_area_size): Likewise.
40844 (pupa_lower_mem): Likewise.
40845 (pupa_upper_mem): Likewise.
40846 (add_mem_region): New function.
40847 (compact_mem_regions): Likewise.
40848 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
40849 the size of the conventional memory and that of so-called upper
40850 memory (before the first memory hole).
40851 Instead of adding each found region to free memory, use
40852 add_mem_region and add them after removing overlaps.
40853 Also, add only 1/4 of the upper memory to free memory. The rest
40854 is used for loading OS images. Maybe this is ad hoc, but this
40855 makes it much easier to relocate OS images when booting.
40856
40857 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
40858 (pupa_enter_rescue_mode): Don't register initrd and module.
40859
40860 * kern/mm.c: Include pupa/dl.h.
40861
40862 * kern/main.c: Include pupa/file.h and pupa/device.h.
40863
40864 * kern/loader.c (pupa_loader_load_module_func): Removed.
40865 (pupa_loader_load_module): Likewise.
40866
40867 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
40868 ``.o''.
40869
40870 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
40871 (pupa_linux_tmp_addr): Likewise.
40872 (pupa_linux_real_addr): Likewise.
40873 (pupa_linux_boot_zimage): Likewise.
40874 (pupa_linux_boot_bzimage): Likewise.
40875
40876 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
40877 (pupa_upper_mem): Likewise.
40878 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
40879 module is too dangerous.
40880
40881 * include/pupa/loader.h (pupa_os_area_addr): Declared.
40882 (pupa_os_area_size): Likewise.
40883 (pupa_loader_set): Remove the first argument. Loader doesn't
40884 manage modules or initrd any longer.
40885 (pupa_loader_load_module): Removed.
40886
40887 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
40888 (linux_mod_SOURCES): New variable.
40889 (linux_mod_CFLAGS): Likewise.
40890
40891 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
40892
40893 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
40894 the length of a blocklist correctly.
40895
40896 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
40897 Use ioctl only if the OS file is a block device.
40898 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
40899 not very useful for normal files.
40900
40901 * kern/main.c (pupa_set_root_dev): New function.
40902 (pupa_load_normal_mode): Likewise.
40903 (pupa_main): Call those above.
40904
40905 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
40906 pupa_uint16_t.
40907
40908 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
40909
40910 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
40911
40912 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
40913 (setup): Configure the installed partition information and the
40914 dl prefix.
40915
40916 * loader/i386/pc/chainloader.c (my_mod): New variable.
40917 (pupa_chainloader_unload): New function.
40918 (pupa_rescue_cmd_chainloader): Refer itself.
40919 (PUPA_MOD_INIT): Save its own module in MY_MOD.
40920
40921 * kern/i386/pc/startup.S (install_partition): Removed.
40922 (version_string): Likewise.
40923 (config_file): Likewise.
40924 (pupa_install_dos_part): New variable.
40925 (pupa_install_bsd_part): Likewise.
40926 (pupa_prefix): Likewise.
40927 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
40928
40929 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
40930 and pupa/misc.h.
40931 (make_install_device): New function.
40932 (pupa_machine_init): Set the dl prefix.
40933
40934 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
40935 (buf): Renamed to ...
40936 (linebuf): ... this.
40937 (pupa_rescue_cmd_prefix): New function.
40938 (pupa_rescue_cmd_insmod): Likewise.
40939 (pupa_rescue_cmd_rmmod): Likewise.
40940 (pupa_rescue_cmd_lsmod): Likewise.
40941 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
40942 rmmod and lsmod.
40943
40944 * kern/mm.c (pupa_memalign): If failed even after invalidating
40945 disk caches, unload unneeded modules and retry.
40946
40947 * kern/misc.c (pupa_memmove): New function.
40948 (pupa_memcpy): Removed.
40949 (pupa_strcpy): New function.
40950 (pupa_itoa): Made static.
40951
40952 * kern/dl.c (pupa_dl_iterate): New function.
40953 (pupa_dl_ref): Likewise.
40954 (pupa_dl_unref): Likewise.
40955 (pupa_dl_unload): Return if succeeded or not.
40956 (pupa_dl_unload_unneeded): New function.
40957 (pupa_dl_unload_all): Likewise.
40958 (pupa_dl_init): Renamed to ...
40959 (pupa_dl_set_prefix): ... this.
40960 (pupa_dl_get_prefix): New function.
40961
40962 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
40963 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
40964 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
40965 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
40966 (pupa_install_dos_part): Declared.
40967 (pupa_install_bsd_part): Likewise.
40968 (pupa_prefix): Likewise.
40969 (pupa_boot_drive): Likewise.
40970
40971 * include/pupa/types.h: Fix a typo.
40972
40973 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
40974 pupa_memmove.
40975 (pupa_memmove): Declared.
40976 (pupa_strcpy): Likewise.
40977
40978 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
40979 pupa_mod_init takes one argument, its own module.
40980 (pupa_dl_unload_unneeded): Declared.
40981 (pupa_dl_unload_all): Likewise.
40982 (pupa_dl_ref): Likewise.
40983 (pupa_dl_unref): Likewise.
40984 (pupa_dl_iterate): Likewise.
40985 (pupa_dl_init): Renamed to ...
40986 (pupa_dl_set_prefix): ... this.
40987 (pupa_dl_get_prefix): Declared.
40988
40989 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
40990 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
40991 unloaded.
40992 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
40993 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
40994
40995 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
40996 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
40997
40998 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
40999
41000 * util/i386/pc/pupa-setup.c (setup): Define the internal
41001 function find_first_partition_start at the top level, because GCC
41002 3.0.x cannot compile internal functions in deeper scopes
41003 correctly.
41004 (find_root_device): Use lstat instead of stat.
41005 Don't follow symbolic links.
41006 Fix the path-constructing code.
41007
41008 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
41009 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
41010 by a BLKGETSIZE ioctl first, because block devices don't fill
41011 the member st_mode of the structure stat on Linux.
41012 [__linux__] (linux_find_partition): Use a temporary buffer
41013 REAL_DEV for the working space. Copy it to DEV before returning.
41014 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
41015 buffer cache consistent.
41016 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
41017 strncmp. The previous value was merely wrong.
41018 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
41019
41020 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
41021 FAT size is 12. The previous value was merely wrong.
41022
41023 * kern/main.c (pupa_main): Don't split the starting message from
41024 newlines.
41025
41026 * kern/term.c (pupa_putchar): Put CR after LF instead of before
41027 LF, because BIOS goes crazy about character attributes in this
41028 case.
41029
41030 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
41031
41032 * include/i386/pc/util/biosdisk.h: New file.
41033 * util/i386/pc/biosdisk.c: Likewise.
41034 * util/i386/pc/pupa-setup.c: Likewise.
41035
41036 * Makefile.in (INCLUDE_DISTFILES): Added
41037 include/pupa/i386/pc/util/biosdisk.h.
41038 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
41039 directory util/i386/pc.
41040 (install-local): Added a rule for sbin_UTILITIES.
41041 (uninstall): Likewise.
41042
41043 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
41044
41045 * util/misc.c (xrealloc): New function.
41046 (pupa_malloc): Likewise.
41047 (pupa_free): Likewise.
41048 (pupa_realloc): Likewise.
41049 (pupa_stop): Likewise.
41050 (pupa_putchar): Likewise.
41051
41052 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
41053
41054 * include/pupa/util/misc.h (xrealloc): Declared.
41055
41056 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
41057 macro.
41058 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
41059 (PUPA_BOOT_MACHINE_BPB_END): ... this.
41060
41061 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
41062 [PUPA_UTIL] (pupa_fat_fini): Likewise.
41063
41064 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
41065 way should be implemented.
41066 [PUPA_UTIL] (pupa_fat_fini): Likewise.
41067
41068 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
41069 the size of NAME for safety.
41070 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
41071 0x88.
41072
41073 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
41074 (pupa_setup_SOURCES): Likewise.
41075
41076 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
41077
41078 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
41079
41080 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
41081 bunch of pushl's from pusha, because this destroys the return
41082 value.
41083
41084 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
41085
41086 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
41087 This means that any missing prototypes could be fatal. Also, you
41088 must take care when writing assembly code. See the comments at
41089 the beginning of startup.S, for more details.
41090
41091 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
41092 compilation mechanism.
41093 (pupa_chainloader_real_boot): Likewise.
41094 (pupa_biosdisk_rw_int13_extensions): Likewise.
41095 (pupa_biosdisk_rw_standard): Likewise.
41096 (pupa_biosdisk_check_int13_extensions): Likewise.
41097 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
41098 (pupa_biosdisk_get_diskinfo_standard): Likewise.
41099 (pupa_get_memsize): Likewise.
41100 (pupa_get_mmap_entry): Likewise.
41101 (pupa_console_putchar): Likewise.
41102 (pupa_console_setcursor): Likewise.
41103 (pupa_getrtsecs): Use pushl instead of push.
41104
41105 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
41106 memory instead of the stack for a mmap entry, because some
41107 BIOSes may ignore the maximum size and overflow.
41108
41109 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
41110
41111 * genmk.rb (PModule#rule): Compile automatically generated
41112 sources with module-specific CFLAGS as well as other sources.
41113
41114 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
41115
41116 * configure.ac: Check ld.
41117 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
41118 respectively, before checking endianness and sizes.
41119
41120 * Makefile.in (LD): New variable.
41121
41122 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
41123
41124 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
41125
41126 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
41127
41128 * Changelog: New file.
41129