]> git.proxmox.com Git - grub2.git/blob - ChangeLog
7a0af5e7a75fafedde578395ce49df088df89ac2
[grub2.git] / ChangeLog
1 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
2
3 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
4 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
5 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
6 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
7
8 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
9
10 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
11
12 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13
14 * util/grub-pe2elf.c (ehdr): Make static.
15 (shdr): Likewise.
16 (num_sections): Likewise.
17 (offset): Likewise.
18
19 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
20
21 Eliminate ofpath limits and possible overflows.
22
23 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
24 (OF_PATH_MAX): Removed.
25 (MAX_DISK_CAT): New const.
26 (find_obppath): Use allocated rather than preallocated buffer.
27 Return result. Argument of_path removed. All users updated.
28 Add missing fdstat.
29 (xrealpath): New function.
30 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
31 Allocate rather than use preallocated buffer. All users updated.
32 (__of_path_common): Use allocated rather than preallocatecd buffer.
33 Return result. Argument of_path removed. All users updated.
34 (vendor_is_ATA): Read only needed part form the file.
35 (check_sas): Allocate depending on contents rather than fixed.
36 (main) [STANDALONE]: Handle NULL result.
37
38 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
39
40 * grub-core/normal/completion.c (iterate_dev): Close the disk.
41
42 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
43
44 Cryptodisk write support.
45
46 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
47 (grub_cryptodisk_decrypt): Moved logic to ...
48 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
49 (grub_cryptodisk_write): Implement.
50 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
51 (grub_util_fd_write): ... this. Make global.
52 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
53
54 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
55
56 * include/grub/list.h (grub_list_remove): Don't crash if element is
57 removed twice.
58
59 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
60
61 Rename ofconsole to console.
62
63 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
64 as sysnonym to console.
65 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
66 * grub-core/term/ieee1275/console.c: ... this. All users updated.
67 Rename grub_ofconsole_ to grub_console_. All users updated
68 (grub_console_term_output): Rename "ofconsole" to "console".
69 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
70 as "console".
71
72 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
73
74 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
75 handling.
76 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
77 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
78 GRUB_DISK_DEVICE_FILE_ID.
79
80 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
81
82 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
83 and improve performance.
84
85 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
86
87 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
88 missing ieee1275/ prefix on whole disk.
89
90 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
91
92 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
93 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
94
95 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
96
97 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
98
99 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
100
101 Merge common RAID and LVM logic to an abstract diskfilter.
102 Add LDM support using the same framework.
103
104 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
105 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
106 (libgrubmods): Remove grub-core/disk/raid.c and
107 grub-core/partmap/gpt.c.
108 * grub-core/Makefile.core.def (ldm): New module.
109 (raid): Renamed to diskfilter. All users updated.
110 * grub-core/disk/raid.c: Moved to ...
111 * grub-core/disk/diskfilter.c: ... here.
112 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
113 (lv_num): New var.
114 (find_array): Renamed to ...
115 (find_lv): ... this. Support multi-LV. Skip nameless LVs
116 (grub_is_array_readable): Renamed to ...
117 (grub_is_lv_readable): ... this. Support multinode hierarchy.
118 (insert_array): New argument id.
119 (is_node_readable): New function.
120 (scan_device): Rename to ...
121 (scan_disk): .. this. Restrict to one disk.
122 (scan_devices): New function.
123 (grub_diskfilter_iterate): Support multi-LV.
124 Skip invisible and nameless LVs.
125 (grub_diskfilter_memberlist): Support multi-LV.
126 (grub_diskfilter_read_node): New function.
127 (grub_raid_read): Most of logic moved to ...
128 (read_segment): ... here
129 (read_lv): New function.
130 (grub_diskfilter_get_vg_by_uuid): New function.
131 (grub_diskfilter_make_raid): Likewise.
132 * grub-core/disk/ldm.c: New file.
133 * grub-core/disk/lvm.c (vg_list): Removed.
134 (lv_count): Likewise.
135 (scan_depth): Likewise.
136 (is_lv_readable): Likewise.
137 (grub_lvm_getvalue): Advance pointer past the number.
138 (find_lv): Removed.
139 (do_lvm_scan): Refactored into ...
140 (grub_lvm_detect): ... this. Support raid.
141 (grub_lvm_iterate): Removed.
142 (grub_lvm_memberlist): Likewise.
143 (grub_lvm_open): Likewise.
144 (grub_lvm_close): Likewise.
145 (read_lv): Likewise.
146 (read_node): Likewise.
147 (is_node_readable): Likewise.
148 (is_lv_readable): Likewise.
149 (grub_lvm_read): Likewise.
150 (grub_lvm_write): Likewise.
151 (grub_lvm_dev): Use diskfilter
152 (GRUB_MOD_INIT): Likewise.
153 (GRUB_MOD_FINI): Likewise.
154 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
155 new interface.
156 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
157 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
158 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
159 grub_diskfilter_read_node.
160 Fix a bug with xor.
161 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
162 grub_diskfilter_read_node.
163 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
164 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
165 (grub_disk_dev_iterate): Move from here...
166 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
167 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
168 Make global.
169 (grub_hostdisk_find_partition_start): Likewise.
170 (grub_hostdisk_os_dev_to_grub_drive): New function.
171 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
172 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
173 * util/getroot.c (make_device_name): ... here.
174 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
175 Move to ...
176 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
177 * grub-core/kern/emu/hostdisk.c
178 (convert_system_partition_to_system_disk): Move to ...
179 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
180 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
181 * util/getroot.c (device_is_wholedisk): ... here.
182 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
183 * util/getroot.c (find_system_device): ... here.
184 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
185 Move to ...
186 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
187 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
188 Move to ...
189 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
190 Handle LDM.
191 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
192 Move to ...
193 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
194 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
195 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
196 DISKFILTER.
197 * include/grub/raid.h: Renamed to ...
198 * include/grub/diskfilter.h: ... this.
199 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
200 (GRUB_RAID_LAYOUT_*): Make into array.
201 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
202 (grub_diskfilter_vg): New struct.
203 (grub_diskfilter_pv_id): Likewise.
204 (grub_raid_member): Removed.
205 (grub_raid_array): Likewise.
206 (grub_diskfilter_pv): New struct.
207 (grub_diskfilter_lv): Likewise.
208 (grub_diskfilter_segment): Likewise.
209 (grub_diskfilter_node): Likewise.
210 (grub_diskfilter_get_vg_by_uuid): New proto.
211 (grub_raid_register): Inline.
212 (grub_diskfilter_unregister): Likewise.
213 (grub_diskfilter_make_raid): New proto.
214 (grub_diskfilter_vg_register): Likewise.
215 (grub_diskfilter_read_node): Likewise.
216 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
217 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
218 (grub_util_is_ldm): Likewise.
219 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
220 (grub_hostdisk_find_partition_start): Likewise.
221 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
222 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
223 New definition.
224 (grub_gpt_partition_map_iterate): New proto.
225 * include/grub/lvm.h (grub_lvm_vg): Removed.
226 (grub_lvm_pv): Likewise.
227 (grub_lvm_lv): Likewise.
228 (grub_lvm_segment): Likewise.
229 (grub_lvm_node): Likewise.
230 * util/getroot.c [...]
231 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
232 (probe_abstraction): Likewise.
233 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
234 (main): Remove dead logic.
235
236 2012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
237
238 Simplify root device discover and don't fail when trying to open
239 incorrect devices.
240
241 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
242 function.
243 (get_diskname_from_path): Likewise.
244 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
245 of iterating.
246
247 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
248
249 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
250
251 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
252
253 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
254 pastthe end.
255
256 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
257
258 * util/grub-install.in: Add missing \.
259 Reported by: gentoofan
260
261 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
262
263 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
264 (direct_read): Use correct compressed size.
265 (grub_squash_read_data): Likewise.
266
267 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
268
269 * docs/grub.texi (Platform limitations): New section.
270 (Platform-specific operations): Likewise.
271 * docs/grub-dev.texi (Porting): Likewise.
272
273 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
274
275 IEEE1275 disk write support.
276
277 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
278 const void *.
279 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
280 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
281 and seek loginc to ...
282 (grub_ofdisk_prepare): ... here.
283 (grub_ofdisk_write): Implement.
284
285 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
286
287 ARC disk write support.
288
289 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
290 (reopen): New argument writable. All users updated.
291 Handle required access mode.
292 (grub_arcdisk_write): Implement.
293 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
294 (grub_arc_firmware_vector): Make buffer to write a const buffer.
295
296 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
297
298 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
299 (read_sblock): Don't attempt to read superblocks outside the disk size.
300
301 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
302
303 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
304 first superblock to find the second one when possible.
305
306 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
307
308 * util/grub-install.in: Fix an ARC bug.
309 Print a warning if no platform-specific setup is available.
310
311 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
312
313 Use static allocation rather than scratch pointer in reed_solomon.
314 It decreases its size significantly and avoids a variable in .text.
315
316 * grub-core/lib/reed_solomon.c (scratch): Removed.
317 (chosenstat): New const or static array.
318 (sigma): Likewise.
319 (errpot): Likewise.
320 (errpos): Likewise.
321 (sy): Likewise.
322 (mstat): Likewise.
323 (errvals): Likewise.
324 (eqstat): Likewise.
325 (pol_evaluate): Replace x with log_x argument. All users updated.
326 (syndroms): Removed.
327 (gauss_solve): Use statically allocated arrays.
328 (rs_recover): Likewise.
329 Calculate syndroms directly.
330 (decode_block): Use statically allocated arrays.
331 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
332 (main) [TEST]: Allow -DTEST -DSTANDALONE.
333
334 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
335
336 Eliminate fixed limit on reed solomon decoder length.
337
338 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
339 rather than hardcoding the address.
340 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
341 no_reed_solomon_length.
342 Move gate_a20 to no-reed-solomon part.
343 Don't force a particular size of no reed-solomon part.
344 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
345 Removed.
346 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
347 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
348
349 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
350
351 * grub-core/commands/wildcard.c (match_files): Handle filenames
352 without explicit device.
353 (wildcard_expand): Don't add explicit device if not already present.
354 * tests/grub_script_echo1.in: Add a new expansion test.
355
356 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
357
358 Replace single-linked with double-linked lists. It results in more
359 compact and more efficient code.
360
361 * grub-core/kern/list.c (grub_list_push): Moved from here ...
362 * include/grub/list.h (grub_list_push): ... to here. Set prev.
363 (grub_list_remove): Moved from here ...
364 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
365 (grub_prio_list_insert): Set prev.
366 * include/grub/list.h (grub_list): Add prev. All users updated.
367
368 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
369
370 Handle newer autotools. Add some missing quotes while on it.
371
372 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
373 (pkglib_DATA): Move grub-mkconfig_lib from here ...
374 (pkgdata_DATA): ... here.
375 * Makefile.util.def (update-grub_lib): Removed.
376 * conf/Makefile.common (pkglib_DATA): Removed.
377 (pkglib_SCRIPTS): Likewise.
378 (pkgdata_DATA): New variable.
379 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
380 needed.
381 Add missing quotes.
382 Remove unused variable while on it.
383 * tests/util/grub-shell.in: Likewise.
384 * util/grub-install.in: Likewise.
385 * util/grub-mkconfig.in: Likewise.
386 * util/grub-mknetdir.in: Likewise.
387 * util/grub-mkrescue.in: Likewise.
388 * util/grub-mkstandalone.in: Likewise.
389 * util/grub.d/00_header.in: Likewise.
390 * util/grub.d/10_hurd.in: Likewise.
391 * util/grub.d/10_illumos.in: Likewise.
392 * util/grub.d/10_kfreebsd.in: Likewise.
393 * util/grub.d/10_linux.in: Likewise.
394 * util/grub.d/10_netbsd.in: Likewise.
395 * util/grub.d/10_windows.in: Likewise.
396 * util/grub.d/20_linux_xen.in: Likewise.
397 * util/grub.d/30_os-prober.in: Likewise.
398 * util/update-grub_lib.in: Removed.
399
400 2012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
401
402 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
403 a workaround for intel problem.
404
405 2012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
406 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
407 2012-01-23 pfsmorigo
408
409 * util/grub-install.in: Support dd'in into PreP partition.
410 * util/grub-probe.c (probe): Support discovering partition type.
411 (main): Support -t msdos_parttype.
412
413 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
414
415 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
416 infinite recursion using counter.
417 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
418 init to skip it if the magic check fails.
419 (dec_stream_header): Init s->crc32.
420
421 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
422 2012-01-22 Zachary Bedell <pendorbound@gmail.com>
423 2012-01-22 Richard Laager <rlaager@wiktel.com>
424
425 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
426 All users updated.
427 (find_bestub): Determine correct size.
428 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
429 (scan_disk): Align the size down.
430 Call check pool before find_bestub to have ashift.
431
432 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
433
434 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
435 dprintf in no-malloc zone.
436
437 2012-01-22 Mario Limonciello <mario_limonciello@dell.com>
438
439 * configure.ac: Add back in test for limits.h.
440
441 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
442
443 Support 4K-sector NTFS.
444
445 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
446 (grub_ntfs_data): Remove blocksize.
447 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
448 Remove data argument. All users updated.
449
450 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
451
452 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
453 being in .text to avoid dprel references.
454 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
455 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
456 (grub_arch_highmemsize): Likewise.
457 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
458 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
459 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
460
461 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
462
463 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
464
465 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
466 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
467
468 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
469
470 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
471 GRUB_UTIL.
472 (grub_set_datetime_cmos): Likewise.
473
474 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
475
476 Make XZ compression parameters dependent on target and not host CPU.
477
478 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
479 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
480
481 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
482
483 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
484 set but not used variable.
485
486 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
487
488 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
489 created when no uuid support is compiled into mkfs.reiser.
490
491 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
492
493 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
494 (utf8_to_macroman): Do the opposite.
495 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
496
497 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
498
499 * configure.ac: Refise build qemu_mips w/o unifont.
500
501 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
502
503 Eliminate grub_min/grub_max prone to overflow usage.
504
505 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
506 (poll_nonroot_hub): Likewise.
507 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
508 (grub_affs_label): Likewise.
509 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
510 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
511 (grub_hfs_label): Likewise.
512 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
513 * grub-core/fs/zfs/zfs.c (MIN): Remove.
514 (zap_leaf_array_equal): Use grub_size. Remove MIN.
515 (zap_leaf_array_get): Likewise.
516 (dnode_get_path): Likewise.
517 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
518 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
519 * grub-core/script/execute.c (grub_script_break): Likewise.
520 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
521 grub_max.
522 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
523 * include/grub/misc.h (grub_min): Removed.
524 (grub_max): Likewise.
525
526 2012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
527
528 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
529 direct.inode = 0.
530
531 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
532
533 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
534
535 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
536
537 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
538
539 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
540
541 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
542 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
543
544 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
545
546 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
547 rather than a hack for grub_strncasemap.
548
549 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
550
551 Support multiple initrds
552 Note: part of this was accidently committed in r3739.
553
554 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
555 initrd.
556 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
557 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
558 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
559 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
560 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
561
562 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
563
564 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
565 disks with unknown size.
566 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
567
568 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
569
570 Remove defines pertaining to arbitrary limits not affecting GRUB
571 anymore.
572
573 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
574 (EXT2_MAX_SYMLINKCNT): Likewise.
575 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
576 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
577 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
578 (GRUB_PXE_MAX_BLKSIZE): Likewise.
579 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
580 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
581 (DN_MAX_OBJECT_SHIFT): Likewise.
582 (DN_MAX_OFFSET_SHIFT): Likewise.
583 (DN_MAX_OBJECT): Likewise.
584 (DNODES_PER_LEVEL_SHIFT): Likewise.
585 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
586 (SPA_MAXBLOCKSIZE): Likewise.
587 (SPA_BLOCKSIZES): Likewise.
588 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
589 (MZAP_MAX_BLKSZ): Likewise.
590
591 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
592
593 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
594 handle NULL appropriately.
595 Remove MIN.
596
597 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
598
599 Fix efiemu.
600
601 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
602 cpu/types.h.
603 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
604 * configure.ac: Fix efiemu check.
605
606 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
607
608 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
609 grub_probe.
610 Reported by: adamwill
611
612 2012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
613
614 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
615
616 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
617
618 Fix handling of wide characters in gfxterm.
619
620 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
621 (clear_char): Likewise.
622 (paint_char): Skip code == NULL chars.
623 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
624
625 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
626
627 * grub-core/normal/charset.c: Move comment to right place.
628
629 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
630
631 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
632 (GRUB_AFFS_FLAG_FFS): Put back where it was.
633 (grub_affs_mount): Revert the correct version checking.
634
635 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
636
637 * docs/grub.texi (Unicode): Mention several other unsupported features.
638
639 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
640
641 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
642 case statements as compile-time one.
643 (direct_read): Prevent spurious warnings.
644 (grub_squash_read_data): Likewise.
645
646 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
647
648 Various squash4 fixes and LZO and XZ support.
649
650 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
651 Add xzembed source files.
652 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
653 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
654 (grub_squash_inode): New subtype long_dir.
655 (SQUASH_TYPE_LONG_DIR): New inode type.
656 (COMPRESSION): New enum.
657 (XZBUFSIZ): New const.
658 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
659 (read_chunk): Use data->decompress.
660 (zlib_decompress): New function.
661 (lzo_decompress): Likewise.
662 (xz_decompress): Likewise.
663 (squash_mount): Set new data fields.
664 (grub_squash_iterate_dir): Handle long dir.
665 (squash_unmount): Free xzdec and xzbuf.
666 (grub_squash_open): Check ino type.
667 (direct_read): Stylistic fixes. Use data->decompress.
668 (grub_squash_read_data): Likewise.
669 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
670 (get_byte): Likewise.
671 (grub_zlib_disk_read): Removed.
672 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
673 (GRUB_POSIX_BOOL_DEFINED): New define.
674 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
675 * grub-core/lib/xzembed/xz.h: Addmissing includes.
676 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
677 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
678
679 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
680
681 Don't override more informative errors.
682
683 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
684 * grub-core/font/font.c (open_section): Likewise.
685 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
686 filename. Don't override errors.
687 (grub_cmd_openbsd_ramdisk): Don't override errors.
688 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
689 (grub_cmd_initrd): Likewise.
690 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
691 (grub_cmd_initrd): Likewise.
692 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
693 (grub_cmd_linux): Likewise.
694 (grub_cmd_initrd): Likewise.
695 (grub_cmd_payload): Likewise.
696 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
697 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
698 (grub_cmd_module): Likewise.
699 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
700 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
701 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
702 (grub_cmd_xnu_mkext): Likewise.
703 (grub_cmd_xnu_ramdisk): Likewise.
704 (grub_xnu_check_os_bundle_required): Likewise.
705 (grub_xnu_load_kext_from_dir): Likewise.
706 (grub_cmd_xnu_kextdir): Likewise.
707 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
708
709 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
710
711 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
712 as 1024 in block size field. Found on one of my test images.
713 Small optimisation while on it.
714
715 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
716
717 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
718 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
719 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
720 performance fixes while on it.
721 (grub_sfs_close): Fix memory leak while on it.
722 (grub_sfs_label): Convert Latin1 to UTF-8.
723
724 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
725
726 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
727 space to avoid overflows.
728 (grub_hfs_label): Convert from macroman to UTF-8.
729
730 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
731
732 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
733
734 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
735
736 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
737
738 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
739
740 * unicode: Import Unicode 6.0 data.
741
742 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
743
744 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
745 outside of range.
746
747 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
748
749 Avoid cutting in the middle of UTF-8 character.
750
751 * include/grub/charset.h (grub_getend): New function.
752 * grub-core/script/function.c (grub_script_function_find): Use
753 grub_getend.
754 * grub-core/normal/completion.c (add_completion): Likewise.
755
756 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
757
758 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
759 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
760 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
761 (GRUB_UNICODE_TAG_END): Likewise.
762 (GRUB_UNICODE_LAST_VALID): Likewise.
763
764 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
765
766 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
767 len and make it smaller. All users updated.
768 * util/import_unicode.py: Put length and not end character.
769 Check length.
770
771 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
772
773 Make better Unicode-compliant and unify some UTF-8 code pathes.
774
775 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
776 valid character.
777 (grub_is_valid_utf8): Use grub_utf8_process.
778 Check resulting code range.
779 (grub_utf8_to_ucs4): Use grub_utf8_process.
780 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
781 valid character.
782
783 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
784
785 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
786
787 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
788
789 * docs/grub.texi (Filesystems): Mention AFS.
790
791 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
792
793 * docs/grub.texi (Filesystems): Clarify restrictions.
794 (Regexp): Mention non-Unicode regexp behaviour.
795 (Other): Mention non-Unicode matching behaviour.
796
797 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
798
799 Make HFS implementation use MacRoman.
800
801 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
802 (macroman): New const array.
803 (macroman_to_utf8): New function.
804 (utf8_to_macroman): Likewise.
805 (grub_hfs_find_dir): Use utf8_to_macroman.
806 (grub_hfs_dir): Use macroman_to_utf8.
807 Set case_insensitive.
808
809 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
810
811 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
812
813 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
814
815 Integrate hints into autogeneration scripts.
816
817 * docs/grub.texi (Filesystems): Add a hostdisk example.
818 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
819 (grub-probe): Add ofpath.
820 * gentpl.py: Remove group nosparc64.
821 * grub-core/commands/search.c (cache_entry): New struct.
822 (cache): New var.
823 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
824 * grub-core/commands/search_wrap.c (options): Add platform-specific
825 hint options.
826 (grub_cmd_search): Handle platform-specific hints.
827 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
828 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
829 (grub_util_biosdisk_data): Likewise.
830 (grub_util_biosdisk_open): Set device_map.
831 (read_device_map): Handle "" as indication of no map.
832 Set device_map.
833 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
834 (grub_util_biosdisk_get_compatibility_hint): New function.
835 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
836 * include/grub/emu/hostdisk.h
837 (grub_util_biosdisk_get_compatibility_hint): New proto.
838 * util/grub-install.in: Don't call grub-mkdevicemap.
839 Add platform-specific hint to load.cfg.
840 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
841 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
842 hints. Set root preliminary to compatibility hint, not to OS name.
843 * util/grub-probe.c (PRINT_*): Add hints.
844 (print): Make static.
845 (escape_of_path): New function.
846 (guess_bios_drive): Likewise.
847 (guess_efi_drive): Likewise.
848 (guess_baremetal_drive): Likewise.
849 (print_full_name): Likewise.
850 (probe): Handle hints.
851 (main): Likewise.
852 * util/ieee1275/devicemap.c: Removed.
853 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
854 updated.
855 (grub_util_devname_to_ofpath): Return NULL on failure.
856
857 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
858 resource leak.
859 * util/getroot.c (grub_util_pull_device): Fix memory leak.
860
861 * po/POTFILES.in: Regenerated.
862
863 Allow purely long options
864
865 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
866 (SHORT_ARG_USAGE): Likewise.
867 (grub_arg_show_help): Compare opt with help_options.
868 (parse_option): Receive opt as argument. If makes big simplificatons.
869 All users updated
870
871 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
872
873 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
874 Restructure to avoid warning.
875
876 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
877
878 * util/grub-install.in: Account for possible escaped comma in device
879 name.
880
881 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
882
883 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
884 channel.
885
886 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
887
888 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
889 allocation and zero-setting.
890 (grub_ieee1275_get_devname): Check that alias is complete.
891
892 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
893
894 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
895 unaligned segments.
896
897 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
898
899 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
900 prefix.
901 (grub_ofdisk_open): Check and discard ieee1275 prefix.
902 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
903 Add ieee1275 prefix.
904
905 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
906
907 * docs/grub.texi (Filesystems): Update.
908
909 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
910
911 Support odc, newc and bigendian cpio formats.
912
913 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
914 * grub-core/Makefile.core.def (newc): New module.
915 (odc): Likewise.
916 (cpio_be): Likewise.
917 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
918 (MAGIC): Likewise.
919 (MAGIC2): Likewise.
920 (head) [MODE_ODC]: Adapt for the format.
921 (head) [MODE_NEWC]: Likewise.
922 (head) [!MODE_*]: Write fields of interest as arrays.
923 (MAGIC_USTAR): Removed.
924 (read_number) [MODE_NEWC]: Change to hex.
925 (read_number) [!MODE_*]: Parse binary arrays.
926 (grub_cpio_find_file): Factor out the code for better structure and
927 always use read_number.
928 (grub_cpio_mount): Use MAGIC and MAGIC2.
929 (grub_cpio_dir): Exit on first hook non-0 return.
930 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
931 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
932 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
933 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
934 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
935 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
936 * grub-core/fs/newc.c: New file.
937 * grub-core/fs/odc.c: Likewise.
938 * grub-core/fs/cpio_be.c: Likewise.
939
940 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
941
942 Fix handling of tar numbers occupying the whole field.
943
944 * grub-core/fs/cpio.c (read_number): New function.
945 (grub_cpio_find_file): Use read_number instead of strtoull.
946
947 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
948
949 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
950 occupying the whole field size.
951
952 2011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
953
954 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
955
956 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
957
958 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
959
960 2011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
961
962 * grub-core/Makefile.core.def (lzma_decompress): Add missing
963 TARGET_IMG_LDFLAGS.
964
965 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
966
967 * util/getroot.c (ESCAPED_PATH_MAX): New define.
968 (mountinfo_entry): Increase the field size to take escaping into
969 account.
970 (find_root_device_from_libzfs): Add one byte to size of strings for
971 security.
972
973 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
974
975 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
976 an assert.
977 * util/grub-setup.c (setup): Likewise.
978
979 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
980
981 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
982 _LzmaDecodeA.
983
984 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
985
986 * docs/grub.texi (Internationalisation): New section.
987
988 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
989
990 * docs/grub.texi (Loopback booting): New section.
991
992 2011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
993
994 * util/grub-mkstandalone.in: Fix minor typo errors.
995
996 2011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
997
998 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
999
1000 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
1001 net/icmp.c and net/icmp6.c.
1002 (http): New module.
1003 (priority_queue): Likewise.
1004 * grub-core/io/bufio.c: Rewritten.
1005 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
1006 TYPE_WITH_CONFIGFILE_OPTION.
1007 (legacy_commands): Add bootp and dhcp.
1008 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
1009 (grub_legacy_parse): Likewise.
1010 * grub-core/lib/priority_queue.c: New file.
1011 * grub-core/net/arp.c: Add missing license header.
1012 (arp_find_entry): Removed.
1013 (arp_find_entry): Likewise.
1014 (grub_net_arp_resolve): Rename to ...
1015 (grub_net_arp_send_request): ...this.
1016 (grub_net_arp_receive): New card argument.
1017 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
1018 Set router and DNS server.
1019 (grub_net_configure_by_dhcp_ack): Handle routing information.
1020 (grub_cmd_bootp): Set checksum.
1021 (grub_bootp_init): Remove net_dhcp.
1022 * grub-core/net/dns.c: New file.
1023 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
1024 completion.
1025 (get_card_packet): Handle allocation.
1026 (grub_efinet_findcards): Set mtu.
1027 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
1028 (get_card_packet): Handle allocation.
1029 (emucard): Set mtu.
1030 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
1031 (GRUB_MOD_INIT): Set mtu.
1032 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
1033 mtu.
1034 (get_card_packet): Handle allocation.
1035 (grub_ofnet_findcards): Set mtu.
1036 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
1037 assert.
1038 (grub_net_recv_ethernet_packet): Handle IPv6.
1039 * grub-core/net/http.c: New file.
1040 * grub-core/net/icmp.c: Likewise.
1041 * grub-core/net/icmp6.c: Likewise.
1042 * grub-core/net/ip.c (ip6addr): New type.
1043 (ip6hdr): Likewise.
1044 (reassemble): Likewise.
1045 (cmp): New function.
1046 (reassembles): New variable.
1047 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
1048 (id): New variable.
1049 (send_fragmented): New function.
1050 (grub_net_send_ip_packet): Rename to ...
1051 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
1052 Handle non-UDP.
1053 (grub_net_recv_ip_packets): Rename to ...
1054 (handle_dgram): ... this. Check checksum. Handle non-UDP.
1055 (free_rsm): New function.
1056 (free_old_fragments): Likewise.
1057 (grub_net_recv_ip4_packets): New function.
1058 (grub_net_send_ip6_packet): Likewise.
1059 (grub_net_send_ip_packet): Likewise.
1060 (grub_net_recv_ip6_packets): Likewise.
1061 (grub_net_recv_ip_packets): Likewise.
1062 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
1063 (LINK_LAYER_CACHE_SIZE): New const.
1064 (link_layer_find_entry): New function.
1065 (grub_net_link_layer_add_address): Likewise.
1066 (grub_net_link_layer_resolve_check): Likewise.
1067 (grub_net_link_layer_resolve): Likewise.
1068 (grub_net_ipv6_get_slaac): Likewise.
1069 (grub_net_ipv6_get_link_local): Likewise.
1070 (grub_cmd_ipv6_autoconf): Likewise.
1071 (parse_ip): Handle one number representation.
1072 (parse_ip6): New functoion.
1073 (match_net): Handle IPv6.
1074 (grub_net_resolve_address): Handle IPv6 and DNS.
1075 (grub_net_resolve_net_address): Handle IPv6.
1076 (route_cmp): New function.
1077 (grub_net_route_address): Find best route.
1078 (grub_net_addr_to_str): Handle IPv6.
1079 (grub_net_addr_cmp): New function.
1080 (grub_net_add_addr): Register local route.
1081 (print_net_address): Handle net address.
1082 (grub_net_poll_cards): Retransmit TCP.
1083 (grub_net_poll_cards_idle_real): Likewise.
1084 (have_ahead): New function.
1085 (grub_net_seek_real): Use underlying seek.
1086 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
1087 * grub-core/net/tcp.c: New file.
1088 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
1089 (cmp): New function.
1090 (ack): Likewise.
1091 (tftp_receive): Handle unordered input.
1092 (destroy_pq): New function.
1093 (tftp_close): Close pq.
1094 * grub-core/net/udp.c: Put missing license header.
1095 (grub_net_udp_socket): New function.
1096 (udp_socket_register): Likewise.
1097 (grub_net_udp_close): Likewise.
1098 (grub_net_recv_udp_packet): Check checksum.
1099 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
1100 * include/grub/misc.h (grub_memchr): New function.
1101 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
1102 (grub_net_card_driver): Return buf in recv.
1103 (grub_net_slaac_mac_list): New struct.
1104 (grub_network_level_protocol_id): Add ipv6.
1105 (grub_net_network_level_addr): Likewise.
1106 (grub_net_network_level_net_addr): Likewise.
1107 (grub_net_app_protocol): Add seek.
1108 (grub_net_socket): Removed.
1109 (grub_net_sockets): Likewise.
1110 (grub_net_socket_register): Likewise.
1111 (grub_net_socket_unregister): Likewise.
1112 (FOR_NET_SOCKETS): Likewise.
1113 (grub_net_add_addr): Add const.
1114 (GRUB_NET_BOOTP_*): New enum.
1115 (grub_net_addr_cmp): New proto.
1116 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
1117 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
1118 (grub_net_hwaddr_to_str): NEw proto.
1119 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
1120 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
1121 (grub_dns_init): New proto.
1122 (grub_dns_fini): Likewise.
1123 (grub_net_tcp_retransmit): Likewise.
1124 (grub_net_link_layer_add_address): Likewise.
1125 (grub_net_link_layer_resolve_check): Likewise.
1126 (grub_net_link_layer_resolve): Likewise.
1127 (grub_net_dns_lookup): Likewise.
1128 (grub_net_add_dns_server): Likewise.
1129 (grub_net_remove_dns_server): Likewise.
1130 (GRUB_NET_TRIES): New const.
1131 (GRUB_NET_INTERVAL): Likewise.
1132 * include/grub/net/arp.h: Mostly rewritten.
1133 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
1134 * include/grub/net/ip.h: Mostly rewritten.
1135 * include/grub/net/netbuff.h: Indent.
1136 * include/grub/net/tcp.h: New file.
1137 * include/grub/net/udp.h: Mostly rewritten.
1138 * include/grub/priority_queue.h: New file.
1139 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
1140 (grub_swap_bytes64_compile_time): Likewise.
1141 (grub_cpu_to_be16_compile_time): Likewise.
1142 (grub_cpu_to_be32_compile_time): Likewise.
1143 (grub_cpu_to_be64_compile_time): Likewise.
1144 (grub_be_to_cpu64_compile_time): Likewise.
1145
1146 2011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1147
1148 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
1149 UINT_TO_PTR with cast.
1150
1151 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1152
1153 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
1154 don't use them.
1155
1156 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1157
1158 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
1159 already there.
1160
1161 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1162
1163 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
1164 confusing ipxe.
1165
1166 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1167
1168 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
1169 Add missing const attribute.
1170 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
1171 Likewise.
1172 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
1173 Likewise.
1174
1175 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1176
1177 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
1178 misaligned access.
1179 (serpent_setkey): Likewise.
1180 (serpent_encrypt_internal): Likewise.
1181 (serpent_decrypt_internal): Likewise.
1182 (serpent_encrypt): Don't put an alignment-increasing cast.
1183 (serpent_decrypt): Likewise.
1184 (serpent_test): Likewise.
1185
1186 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1187
1188 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
1189
1190 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1191
1192 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
1193
1194 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
1195 grub_addr_t casts.
1196 (PTR_TO_UINT64): Likewise.
1197 (PTR_TO_UINT32): Likewise.
1198
1199 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1200
1201 * util/grub-mkimage.c (generate_image): Decrease the higher limit
1202 because of stack.
1203 * util/grub-setup.c (setup): Don't add redundancy past the higher load
1204 limit.
1205
1206 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1207
1208 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
1209 text_width > available width a bit more gracefully.
1210
1211 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1212
1213 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
1214 current address calculation.
1215
1216 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1217
1218 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
1219 stack.
1220 (encode_block): Likewise.
1221
1222 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1223
1224 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
1225 certainety.
1226
1227 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1228
1229 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
1230 non-RS part to avoid RS messing with GDT.
1231 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
1232 Increase to suit in realmode routines.
1233
1234 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1235
1236 * grub-core/kern/i386/realmode.S: Increase alignment.
1237 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
1238
1239 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1240
1241 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
1242 be deterministic.
1243 (syndroms): Compute 0 syndrom.
1244 (rs_recover): Use 0 syndrom.
1245
1246 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1247
1248 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
1249
1250 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1251
1252 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
1253 brackets.
1254
1255 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1256
1257 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
1258 account.
1259 (get_top_pad): Likewise.
1260 (get_right_pad): Likewise.
1261 (get_bottom_pad): Likewise.
1262
1263 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1264
1265 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
1266
1267 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1268
1269 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
1270 attribute as the structure isn't guaranteed to be properly aligned.
1271 (grub_efi_pci_device_path): Likewise.
1272 (grub_efi_pccard_device_path): Likewise.
1273 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
1274 specify the size of `memory_type'.
1275 (grub_efi_vendor_device_path): Likewise.
1276 (grub_efi_controller_device_path): Likewise.
1277 (grub_efi_acpi_device_path): Likewise.
1278 (grub_efi_expanded_acpi_device_path): Likewise.
1279 (grub_efi_atapi_device_path): Likewise.
1280 (grub_efi_scsi_device_path): Likewise.
1281 (grub_efi_fibre_channel_device_path): Likewise.
1282 (grub_efi_1394_device_path): Likewise.
1283 (grub_efi_usb_device_path): Likewise.
1284 (grub_efi_usb_class_device_path): Likewise.
1285 (grub_efi_i2o_device_path): Likewise.
1286 (grub_efi_mac_address_device_path): Likewise.
1287 (grub_efi_ipv4_device_path): Likewise.
1288 (grub_efi_ipv6_device_path): Likewise.
1289 (grub_efi_infiniband_device_path): Likewise.
1290 (grub_efi_uart_device_path): Likewise.
1291 (grub_efi_vendor_messaging_device_path): Likewise.
1292 (grub_efi_hard_drive_device_path): Likewise.
1293 (grub_efi_cdrom_device_path): Likewise.
1294 (grub_efi_vendor_media_device_path): Likewise.
1295 (grub_efi_file_path_device_path): Likewise.
1296 (grub_efi_protocol_device_path): Likewise.
1297 (grub_efi_piwg_device_path): Likewise.
1298 (grub_efi_bios_device_path): Likewise.
1299
1300 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1301
1302 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
1303 (grub_ucs4_to_utf8_alloc): Likewise.
1304 (grub_ucs4_to_utf8): Likewise.
1305 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
1306 (grub_ucs4_to_utf8_alloc): Likewise.
1307
1308 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1309
1310 AFFS never uses unicode.
1311
1312 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
1313 (grub_latin1_to_utf8): New inline function.
1314 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
1315
1316 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1317
1318 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
1319 overflow.
1320
1321 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1322
1323 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
1324 (grub_squash_dirent_header): Likewise.
1325 (read_chunk): Don't double swap.
1326 (grub_squash_iterate_dir): Fix swap sizes.
1327
1328 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1329
1330 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
1331
1332 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1333
1334 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
1335 (grub_hfs_iterate_dir): Likewise.
1336
1337 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1338
1339 Fix video on platforms where unaligned access is forbidden.
1340 Make several optimisations while on it.
1341
1342 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
1343 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
1344 (grub_video_fbblit_replace_32bit_1bit): Likewise.
1345 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
1346 Disable.
1347 (grub_video_fbblit_replace_16bit_1bit):
1348 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
1349 (grub_video_fbblit_replace_8bit_1bit): Likewise.
1350 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
1351 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
1352 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
1353 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
1354 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
1355 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
1356 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
1357 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
1358 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
1359 (grub_video_fbblit_replace_index_RGB888): Likewise.
1360 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
1361 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
1362 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
1363 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
1364 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
1365 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
1366 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
1367 Disable.
1368 (grub_video_fbblit_blend_XXX565_1bit):
1369 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
1370 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
1371 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
1372 void *.
1373 * grub-core/video/fb/video_fb.c (common_blitter)
1374 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
1375 (grub_video_fb_create_render_target_from_pointer)
1376 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
1377 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
1378 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
1379 definition.
1380 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
1381
1382 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1383
1384 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
1385 HH22 and HM10 relocations.
1386
1387 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1388
1389 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
1390
1391 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1392
1393 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
1394 allocation succeeded.
1395
1396 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1397
1398 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
1399 argument a u8 pointer. All users updated.
1400 Handle unaligned buffers.
1401
1402 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1403
1404 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
1405 add_part to workaround compiler bug.
1406
1407 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1408
1409 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
1410
1411 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1412
1413 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
1414 Reserve alignment invariants.
1415 (grub_multiboot_load): Likewise.
1416 (retrieve_video_parameters): Likewise.
1417 (grub_multiboot_make_mbi): Likewise.
1418
1419 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1420
1421 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
1422 incorrect pointer.
1423
1424 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1425
1426 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
1427 (grub_pata_pio_write): Likewise.
1428
1429 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1430
1431 Add noreturn attributes and remove unreachable code.
1432
1433 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
1434 code.
1435 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
1436 code. Mark as noreturn.
1437 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
1438 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
1439 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
1440 unreachable code.
1441 * grub-core/kern/main.c (grub_main): Mark as noreturn.
1442 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
1443 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
1444 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
1445 * include/grub/kernel.h (grub_main): Mark as noreturn.
1446 * include/grub/reader.h (grub_rescue_run): Likewise.
1447
1448 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1449
1450 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
1451 redundant declaration.
1452
1453 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1454
1455 * include/grub/net.h (grub_net_network_level_interfaces): Remove
1456 redundant declaration.
1457 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
1458
1459 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1460
1461 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
1462 to ensure alignment.
1463 (grub_hdparm_print_identify): Make argument uint16 * to ensure
1464 alignment. Ensure tmp alignment.
1465 (grub_cmd_hdparm): Ensure buf alignment.
1466 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
1467 to ensure alignment.
1468 (grub_ata_dumpinfo): Ensure text alignment.
1469 (grub_atapi_identify): Preserve alignment invariant.
1470 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
1471
1472 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1473
1474 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
1475 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
1476 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
1477 * include/grub/misc.h (grub_reboot)
1478 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
1479 (grub_halt) [__mips__]: Likewise.
1480
1481 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1482
1483 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
1484 Remove redundant declaration.
1485 (grub_mmap_get_post64): Likewise.
1486 (grub_mmap_get_upper): Likewise.
1487 (grub_mmap_get_lower): Likewise.
1488
1489 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1490
1491 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
1492 uint32_t * to ensure alignment.
1493 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
1494
1495 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1496
1497 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
1498 uint16_t * to ensure alignment.
1499 (sun_pc_partition_map_iterate): Make `block' a union to ensure
1500 alignment.
1501
1502 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1503
1504 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
1505 to ensure alignment.
1506 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
1507
1508 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1509
1510 * grub-core/fs/ntfs.c (u16at): Make into inline function.
1511 Handle unaligned pointers.
1512 (u32at): Likewise.
1513 (u64at): Likewise.
1514 (fixup): Use byte access instead of v16at.
1515 (find_attr): Fix imporper usage of v32at.
1516 (read_data): Likewise.
1517 (list_file): Handle byte-swapping and unaligned strings.
1518 (grub_ntfs_label): Likewise.
1519
1520 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1521
1522 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
1523 as it's not necessarily aligned.
1524
1525 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1526
1527 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
1528 redundant declaration.
1529 (grub_serial_init): Likewise.
1530 (grub_terminfo_init): Likewise.
1531
1532 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1533
1534 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
1535 function.
1536 (ZAP_HASH_IDX): Likewise.
1537 (ZAP_LEAF_HASH_SHIFT): Likewise.
1538 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
1539 (LEAF_HASH): Likewise.
1540 (ZAP_LEAF_NUMCHUNKS): Likewise.
1541 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
1542 alignment invariants. Return pointer. All users updated.
1543 (ZAP_LEAF_ENTRY): Make into inline function.
1544 (NBBY): Removed.
1545 (xor): LIkewise.
1546 (xor_out): Use grub_crypto_xor.
1547 (dnode_get_path): Use grub_get_unaligned.
1548 (nvlist_find_value): Likewise.
1549 (grub_zfs_nvlist_lookup_uint64): Likewise.
1550 (grub_zfs_nvlist_lookup_string): Likewise.
1551 (get_nvlist_size): Likewise.
1552 (grub_zfs_open): Likewise.
1553 (fill_fs_info): Likewise.
1554 (grub_zfs_dir): Likewise.
1555 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
1556 alignment invariants.
1557 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
1558 necessarily aligned.
1559
1560 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1561
1562 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
1563
1564 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1565
1566 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
1567 arithmetic to conserve alignment invariants.
1568
1569 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1570
1571 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
1572 redundant declaration.
1573 (grub_efiemu_mm_obtain_request): Likewise.
1574 (grub_efiemu_prepare): Likewise.
1575
1576 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1577
1578 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
1579 to match types.
1580
1581 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1582
1583 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
1584 case of aunaligned recptr.
1585 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
1586 alignment.
1587 (grub_hfsplus_btree_search): Handle unaligned index.
1588
1589 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1590
1591 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
1592 to get freetag and skip.
1593
1594 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1595
1596 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
1597 array.
1598 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
1599 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
1600
1601 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1602
1603 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
1604 name for checksum and fix allocation algorithm.
1605
1606 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1607
1608 * include/grub/types.h (grub_properly_aligned_t): New type.
1609 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
1610 (grub_get_unaligned16): Add explicit casts.
1611 (grub_get_unaligned32): Likewise.
1612 (grub_get_unaligned64): Likewise.
1613 (grub_set_unaligned16): New function.
1614 (grub_set_unaligned32): Likewise.
1615
1616 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1617
1618 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
1619
1620 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1621
1622 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
1623 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
1624 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
1625
1626 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1627
1628 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
1629 conditionals.
1630
1631 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1632
1633 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
1634 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
1635
1636 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1637
1638 Unify and improve RAID and crypto xor.
1639
1640 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
1641 changed to grub_crypto_xor
1642 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
1643 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
1644 Use bigger types when possible.
1645
1646 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1647
1648 * grub-core/disk/raid.c (scan_devices): Fix condition.
1649
1650 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1651
1652 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
1653 Make name a const ptr.
1654
1655 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1656
1657 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
1658 first argument a const pointer.
1659 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
1660 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
1661 proto.
1662 (grub_children_iterate): Likewise.
1663 (grub_machine_mmap_iterate): Remove redundant declaration.
1664
1665 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1666
1667 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
1668 (grub_cmd_acpi) [!x86]: Disable EBDA.
1669
1670 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1671
1672 Enable UTF8 in gnulib regexp.
1673
1674 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
1675 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
1676 (isupper): Use grub_isupper.
1677 (isascii): New inline function.
1678 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
1679 * grub-core/lib/posix_wrap/wctype.h: Likewise.
1680 * grub-core/normal/charset.c (grub_utf8_process): New function.
1681 (grub_utf8_to_utf16): Use grub_utf8_process.
1682 (grub_encode_utf8_character): New function.
1683 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
1684 * include/grub/charset.h (grub_utf8_process): New declaration.
1685 (grub_encode_utf8_character): Likewise.
1686 * include/grub/misc.h (grub_islower): New inline function.
1687 (grub_isupper): Likewise.
1688 (grub_strchrsub): Moved down to fix the definitions.
1689
1690 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1691
1692 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
1693 specification.
1694
1695 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1696
1697 * include/grub/loader.h (grub_loader_register_preboot_hook):
1698 Use struct preboot * and not void * for handle. All users updated.
1699 (grub_loader_unregister_preboot_hook): Likewise.
1700
1701 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
1702
1703 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
1704 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
1705 UTF-16-BE. All users updated.
1706 (grub_hfsplus_cmp_catkey): Fix unicode handling.
1707 (grub_hfsplus_iterate_dir): Likewise.
1708 (grub_hfsplus_label): Likewise.
1709
1710 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
1711
1712 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
1713
1714 2011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
1715
1716 Add missing const qualifiers.
1717
1718 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
1719 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
1720 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
1721 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
1722 (grub_lvm_check_flag): Likewise.
1723 * grub-core/efiemu/i386/coredetect.c
1724 (grub_efiemu_get_default_core_name): Likewise
1725 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
1726 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
1727 * grub-core/fs/ntfs.c (fixup): Likewise.
1728 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
1729 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
1730 (fzap_lookup): Likewise.
1731 (zap_lookup): Likewise.
1732 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
1733 * grub-core/lib/legacy_parse.c (check_option): Likewise.
1734 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
1735 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
1736 (grub_freebsd_add_meta_module): Likewise.
1737 (grub_cmd_freebsd_module): Likewise.
1738 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
1739 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
1740 (grub_xnu_writetree_get_size): Likewise.
1741 (grub_xnu_writetree_toheap_real): Likewise.
1742 (grub_xnu_find_key): Likewise.
1743 (grub_xnu_create_key): Likewise.
1744 (grub_xnu_create_value): Likewise.
1745 (grub_xnu_register_memory): Likewise.
1746 (grub_xnu_check_os_bundle_required): Likewise.
1747 (grub_xnu_scan_dir_for_kexts): Likewise.
1748 (grub_xnu_load_kext_from_dir): Likewise.
1749 * grub-core/normal/color.c (color_list): Likewise.
1750 * grub-core/normal/completion.c (current_word): Likewise.
1751 * grub-core/normal/menu_entry.c (insert_string): Likewise.
1752 * grub-core/term/serial.c (grub_serial_find): Likewise.
1753 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
1754 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
1755 Likewise.
1756 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
1757 (grub_freebsd_add_meta_module): Likewise.
1758 * include/grub/lib/arg.h (grub_arg_option): Likewise.
1759 * include/grub/net.h (grub_net_card_driver): Likewise.
1760 (grub_net_card): Likewise.
1761 (grub_net_app_protocol): Likewise.
1762 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
1763 * include/grub/serial.h (grub_serial_find): Likewise.
1764 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
1765 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
1766 (grub_xnu_create_value): Likewise.
1767 (grub_xnu_find_key): Likewise.
1768 (grub_xnu_scan_dir_for_kexts): Likewise.
1769 (grub_xnu_load_kext_from_dir): Likewise.
1770
1771 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
1772 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
1773 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
1774 Moved from here ...
1775 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
1776
1777 2011-11-28 Colin Watson <cjwatson@ubuntu.com>
1778
1779 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
1780
1781 2011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
1782
1783 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
1784 (read_device): Fix size calculation.
1785
1786 2011-11-25 Robert Millan <rmh@gnu.org>
1787
1788 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
1789 (find_root_device_from_libzfs): Add zpool output parser to be used
1790 as fallback when libzfs isn't available.
1791
1792 2011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
1793
1794 * po/Makefile.in.in: Add missing escape-continuation.
1795
1796 2011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
1797
1798 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
1799
1800 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
1801
1802 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
1803
1804 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
1805
1806 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
1807
1808 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
1809
1810 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
1811
1812 2011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
1813
1814 * grub-core/lib/adler32.c: Add missing license specification.
1815 * grub-core/lib/crc64.c: Likewise.
1816 * grub-core/loader/i386/pc/plan9.c: Likewise.
1817 * grub-core/partmap/plan.c: Likewise.
1818
1819 2011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
1820
1821 Add facility to debug GRUB with gdb under qemu.
1822
1823 * grub-core/gdb_grub.in: New file.
1824 * grub-core/gmodule.pl.in: Likewise.
1825 * grub-core/Makefile.core.def (gmodule.pl): New script.
1826 (gdb_grub): Likewise.
1827
1828 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
1829
1830 * util/grub-mount.c (argp_parser): Accept relative pathes.
1831 * util/grub-fstest.c (argp_parser): Likewise.
1832
1833 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
1834
1835 Plan9 support.
1836
1837 * Makefile.util.def (libgrubmods): Add
1838 grub-core/partmap/plan.c.
1839 * docs/grub.texi: Notice Plan9 support.
1840 * grub-core/Makefile.core.def (plan9): New module.
1841 (part_plan): Likewise.
1842 * grub-core/loader/i386/pc/plan9.c: New file.
1843 * grub-core/partmap/plan.c: Likewise.
1844 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
1845 define.
1846 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
1847 * include/grub/mm.h (grub_extend_alloc): New inline function.
1848
1849 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
1850
1851 Make Reed-Solomon faster by using power of generator representation of
1852 GF(256)*.
1853
1854 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
1855 (gf_double_t): Likewise.
1856 (gf_invert): Removed.
1857 (gf_powx): New array.
1858 (gf_powx_inv): Likewise.
1859 (scratch): Move higher.
1860 (gf_reduce): Removed.
1861 (gf_mul): Use powx.
1862 (gf_invert): Likewise.
1863 (init_inverts): Replaced with ...
1864 (init_powx): ...this. All users updated.
1865 (pol_evaluate): Replace multiplications with additions.
1866 (rs_encode): Likewise.
1867 (gauss_eliminate): Call gf_invert.
1868 (grub_reed_solomon_add_redundancy): Call init_powx.
1869 (grub_reed_solomon_recover): Call init_powx unconditionally.
1870
1871 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1872
1873 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
1874
1875 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1876
1877 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
1878 disk->partiton for safety.
1879
1880 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1881
1882 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
1883 Fix a memory leak.
1884 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
1885
1886 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1887
1888 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
1889
1890 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1891
1892 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
1893
1894 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1895
1896 Fix spaces handling in proc/self/mountinfo.
1897
1898 * util/getroot.c (unescape): New function.
1899 (grub_find_root_device_from_mountinfo): Use unescape.
1900
1901 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1902
1903 Support ZFS embedding.
1904
1905 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
1906 (grub_zfs_fs): Register grub_zfs_embed.
1907
1908 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1909
1910 Fix MIPS compilation.
1911
1912 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
1913 * include/grub/offsets.h: Rename decompressor fields from
1914 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
1915 * util/grub-mkimage.c (image_targets): Use new names.
1916
1917 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1918
1919 Defer multiboot device parsing until we're in compressed part.
1920
1921 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
1922 bsd_part. setdevice has fallen into disuse.
1923 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
1924 (bsd_part): Likewise.
1925 (boot_dev): New variable.
1926 (multiboot_trampoline): Don't parse multiboot device.
1927 Pass multiboot device in %edx.
1928 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
1929 grub_boot_device.
1930 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
1931 Likewise.
1932 * grub-core/kern/i386/pc/startup.S: Save edx.
1933 (grub_boot_drive): Removed.
1934 (grub_install_dos_part): Likewise.
1935 (grub_install_bsd_part): Likewise.
1936 (grub_boot_device): New variable.
1937 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
1938 (grub_install_bsd_part): Likewise.
1939 (grub_boot_drive): Likewise.
1940 (grub_boot_device): New variable.
1941 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
1942 Removed.
1943 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
1944 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
1945 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
1946 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
1947 * util/grub-install.in: Remove redundant condition.
1948
1949 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1950
1951 Fix bug introduced by previous commit.
1952
1953 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
1954
1955 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1956
1957 Use decompressors framework on i386-pc. It increases core size
1958 by 46 bytes but improves compatibility and maintainability.
1959
1960 * grub-core/Makefile.core.def (lzma_decompress): New image.
1961 (kernel): Add i386_pc_ldflags.
1962 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
1963 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
1964 to real_to_prot, prot_to_real and device info.
1965 * include/grub/offsets.h: Renamed decompressor offsets.
1966 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
1967 (image_target_desc): Remove raw_size and rename decompressor fields.
1968 (compress_kernel): Handle lzma.
1969 (generate_image): Handle decompressors on i386-pc.
1970
1971 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1972
1973 * configure.ac: Add -fno-asynchronous-unwind-tables.
1974
1975 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1976
1977 Move assembly code to C by using intwrap. It increases core size
1978 by 88 bytes but improves compatibility and maintainability.
1979
1980 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
1981 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
1982 ... here. Translated to C.
1983 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
1984 * grub-core/term/i386/pc/console.c (grub_console_getkey):
1985 ... here. Translated to C.
1986 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
1987 * grub-core/term/i386/pc/console.c (grub_console_getxy):
1988 ... here. Translated to C.
1989 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
1990 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
1991 ... here. Translated to C.
1992 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
1993 * grub-core/term/i386/pc/console.c (grub_console_cls):
1994 ... here. Translated to C.
1995 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
1996 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
1997 ... here. Translated to C.
1998 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
1999 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
2000 Translated to C.
2001 * grub-core/term/i386/pc/console.c (int10_9): New function.
2002 (grub_console_putchar): Likewise.
2003 * include/grub/i386/pc/console.h: Removed the not anymore shared
2004 functions.
2005
2006 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2007
2008 Move grub_chainloader_real_boot out of the kernel.
2009
2010 * grub-core/Makefile.am: Remove machine/loader.h.
2011 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
2012 Removed.
2013 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
2014 variable.
2015 (grub_relocator16_keep_a20_enabled): Likewise.
2016 (grub_relocator16_boot): Fill new variables.
2017 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
2018 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
2019 relocator.
2020 (grub_chainloader_unload): Likewise.
2021 (grub_chainloader_cmd): Likewise.
2022 * include/grub/i386/pc/loader.h: Removed.
2023 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
2024 and esi. All initialisers updated.
2025
2026 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2027 2011-11-12 Colin Watson <cjwatson@ubuntu.com>
2028
2029 * Makefile.util.def (grub-mount): New util.
2030 * .bzrignore: Add grub-mount.
2031 * configure.ac: Check for fuse and enable grub-mount if available.
2032 * docs/man/grub-mount.h2m: New file.
2033 * util/grub-mount.c: Likewise.
2034
2035 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2036
2037 * grub-core/commands/efi/fixvideo.c: Gettextize.
2038 * grub-core/commands/hashsum.c: Likewise.
2039 * grub-core/commands/i386/cmostest.c: Likewise.
2040 * grub-core/commands/i386/pc/drivemap.c: Likewise.
2041 * grub-core/commands/i386/pc/lsapm.c: Likewise.
2042 * grub-core/commands/i386/pc/sendkey.c: Likewise.
2043 * grub-core/commands/lsmmap.c: Likewise.
2044 * grub-core/commands/menuentry.c: Likewise.
2045 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
2046 * grub-core/commands/setpci.c: Likewise.
2047 * grub-core/loader/i386/bsd.c: Likewise.
2048 * grub-core/loader/i386/linux.c: Likewise.
2049 * util/getroot.c: Likewise.
2050 * util/grub-editenv.c: Likewise.
2051 * util/grub-fstest.c: Likewise.
2052 * util/grub-mkfont.c: Likewise.
2053 * util/grub-mkimage.c: Likewise.
2054 * util/grub-mkpasswd-pbkdf2.c: Likewise.
2055 * util/grub-pe2elf.c: Likewise.
2056 * util/grub-probe.c: Likewise.
2057 * util/grub-setup.c: Likewise.
2058 * util/ieee1275/ofpath.c: Likewise.
2059 * util/misc.c: Likewise.
2060 * util/raid.c: Likewise.
2061
2062 2011-11-11 Robert Millan <rmh@gnu.org>
2063
2064 * util/getroot.c (grub_util_get_geom_abstraction): Remove
2065 __attribute__((unused)) from `os_dev', which *is* being used.
2066
2067 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2068
2069 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
2070 forgotten define.
2071 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
2072 GRUB_IA64_DL_GOT_ALIGN.
2073 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
2074 GRUB_IA64_DL_TRAMP_ALIGN.
2075
2076 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2077
2078 Replace grub_fatal with normal errors in i386 linux loader.
2079
2080 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
2081 (allocate_pages): Check find_efi_mmap_size return value.
2082 (grub_e820_add_region): Return error.
2083 (grub_linux_boot): Check mmap return value.
2084
2085 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2086
2087 * grub-core/commands/acpihalt.c: Gettextized.
2088 * grub-core/commands/cacheinfo.c: Likewise.
2089 * grub-core/commands/cmp.c: Likewise.
2090 * grub-core/commands/efi/loadbios.c: Likewise.
2091 * grub-core/commands/gptsync.c: Likewise.
2092 * grub-core/commands/ieee1275/suspend.c: Likewise.
2093 * grub-core/commands/legacycfg.c: Likewise.
2094 * grub-core/commands/memrw.c: Likewise.
2095 * grub-core/commands/minicmd.c: Likewise.
2096 * grub-core/commands/parttool.c: Likewise.
2097 * grub-core/commands/time.c: Likewise.
2098 * grub-core/commands/videoinfo.c: Likewise.
2099 * grub-core/disk/geli.c: Likewise.
2100 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
2101 * grub-core/disk/luks.c: Likewise.
2102 * grub-core/disk/lvm.c: Likewise.
2103 * grub-core/font/font_cmd.c: Likewise.
2104 * grub-core/fs/zfs/zfscrypt.c: Likewise.
2105 * grub-core/fs/zfs/zfsinfo.c: Likewise.
2106 * grub-core/gfxmenu/view.c: Likewise.
2107 * grub-core/kern/emu/hostdisk.c: Likewise.
2108 * grub-core/kern/emu/main.c: Likewise.
2109 * grub-core/kern/emu/misc.c: Likewise.
2110 * grub-core/kern/emu/mm.c: Likewise.
2111 * grub-core/kern/mips/arc/init.c: Likewise.
2112 * grub-core/kern/mips/loongson/init.c: Likewise.
2113 * grub-core/kern/partition.c: Likewise.
2114 * grub-core/lib/i386/halt.c: Likewise.
2115 * grub-core/lib/mips/arc/reboot.c: Likewise.
2116 * grub-core/lib/mips/loongson/reboot.c: Likewise.
2117 * grub-core/loader/i386/pc/chainloader.c: Likewise.
2118 * grub-core/loader/i386/xnu.c: Likewise.
2119 * grub-core/loader/multiboot.c: Likewise.
2120 * grub-core/net/bootp.c: Likewise.
2121 * grub-core/net/net.c: Likewise.
2122 * grub-core/normal/term.c: Likewise.
2123 * grub-core/partmap/bsdlabel.c: Likewise.
2124 * grub-core/parttool/msdospart.c: Likewise.
2125 * grub-core/term/gfxterm.c: Likewise.
2126 * grub-core/term/terminfo.c: Likewise.
2127 * grub-core/video/i386/pc/vbe.c: Likewise.
2128 * util/grub-menulst2cfg.c: Likewise.
2129 * util/grub-mkdevicemap.c: Likewise.
2130 * util/grub-mklayout.c: Likewise.
2131 * util/grub-mkrelpath.c: Likewise.
2132 * util/grub-script-check.c: Likewise.
2133 * util/ieee1275/grub-ofpathname.c: Likewise.
2134 * util/resolve.c: Likewise.
2135
2136 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2137
2138 Support %1$d syntax.
2139
2140 * tests/printf_unit_test.c: New file.
2141 * Makefile.util.def (printf_test): New test.
2142 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
2143
2144 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2145
2146 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
2147 fix.
2148
2149 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2150
2151 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
2152 dprintf.
2153 * grub-core/font/font.c (grub_font_load): Likewise.
2154
2155 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2156
2157 * util/grub-macho2img.c: Add comment concerning gettext.
2158 * grub-core/lib/legacy_parse.c: Likewise.
2159
2160 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2161
2162 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
2163 (grub_xvasprintf): Likewise.
2164
2165 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2166
2167 Add const keyword to grub_env_get and gettextize week days.
2168
2169 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
2170 (grub_read_hook_datetime): Return const char *.
2171 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
2172 updated.
2173 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
2174 Mark for gettext.
2175 (grub_get_weekday_name): Return const char *. Call gettext.
2176 * grub-core/script/argv.c (grub_script_argv_append): Receive const
2177 char * and len as the argument. All users updated.
2178 (grub_script_argv_split_append): Receive const char *.
2179 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
2180 * include/grub/env.h (grub_env_get): Likewise.
2181 (grub_env_read_hook_t): Return const char *.
2182 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
2183 (grub_script_argv_split_append): Likewise.
2184
2185 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2186
2187 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
2188
2189 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2190
2191 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
2192 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
2193
2194 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2195
2196 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
2197 Fix prototype.
2198
2199 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2200
2201 Fix mips compilation.
2202
2203 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
2204 normal decoder.
2205 (hashes): Use in embed decoder as well (for sizes).
2206 (dec_stream_header): Fix embed decompressor logic.
2207 (dec_stream_footer): Likewise.
2208
2209 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2210
2211 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
2212 an error and not a fatal on unrecognised relocation types.
2213
2214 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2215
2216 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
2217 Issue error rather than printf on unknown arguments.
2218
2219 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2220
2221 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
2222 Make buf a const.
2223
2224 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2225
2226 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
2227 Fix module name.
2228
2229 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2230
2231 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
2232 leftover debug printf.
2233
2234 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2235
2236 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
2237
2238 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2239
2240 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
2241 A stylistic fix.
2242
2243 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2244
2245 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
2246
2247 2011-11-10 Shea Levy <slevy@tieronedesign.com>
2248
2249 Allow all modules to perform serial IO
2250
2251 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
2252 * include/grub/serial.h (grub_serial_port_configure): New inline
2253 function.
2254 (grub_serial_port_fetch): Likewise.
2255 (grub_serial_port_put): Likewise.
2256 (grub_serial_port_fini): Likewise.
2257 (grub_serial_find): New proto.
2258
2259 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2260
2261 Put symlink at the end of the node and fix a potential
2262 memory corruption.
2263
2264 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
2265 Make symlink into an array.
2266 (set_rockridge): Set have_symlink and alloc_dirents.
2267 (grub_iso9660_read_symlink): Use new layout.
2268 (grub_iso9660_iterate_dir): Fix memory corruption.
2269 Use new layout.
2270 (grub_iso9660_dir): Set have_symlink.
2271 (grub_iso9660_open): Likewise.
2272
2273 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2274
2275 Remove local keyword.
2276
2277 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
2278 (version_test_gt): Likewise.
2279 (version_find_latest): Likewise.
2280 (gettext_printf): Likewise.
2281 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
2282
2283 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2284
2285 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
2286
2287 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2288
2289 Fix ZFS memory and resource leaks.
2290
2291 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
2292 All users updated.
2293 Free type on exit.
2294 (fill_vdev_info): New parameter inserted. All users updated.
2295 (check_pool_label): Likewise.
2296 (scan_disk): Likewise.
2297 (scan_devices): Close non-inserted disks.
2298 (fzap_iterate): Free l.
2299 (unmount_device): Free children descripto memory.
2300
2301 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2302
2303 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
2304 argument (access out of bounds).
2305
2306 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2307
2308 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
2309 >= 6 drives.
2310
2311 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2312
2313 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
2314 Fix declaration.
2315
2316 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
2317
2318 Fix several memory leaks.
2319
2320 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
2321 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
2322 (grub_cpio_dir): Likewise.
2323 * grub-core/fs/fat.c (grub_fat_label): Likewise.
2324 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
2325 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
2326 (grub_romfs_label): Likewise.
2327 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
2328 (squash_unmount): New function.
2329 (grub_squash_dir): Fix memory leak.
2330 (grub_squash_open): Likewise.
2331 (grub_squash_read): Likewise.
2332 (grub_squash_mtime): Likewise.
2333 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
2334 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
2335 * util/grub-fstest.c (fstest): Likewise.
2336
2337 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
2338
2339 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
2340 avoid accessing beyond the array.
2341
2342 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
2343
2344 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
2345
2346 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
2347
2348 Several AFFS fixes.
2349
2350 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
2351 (GRUB_AFFS_FLAG_FFS): Removed.
2352 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
2353 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
2354 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
2355 (grub_fshelp_node): Make block 32-bit.
2356 Add block_cache and last_block_cache.
2357 (grub_affs_read_block): Fill and use block cache.
2358 (grub_affs_read_file): Removed.
2359 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
2360 boot block.
2361 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
2362 safety.
2363 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
2364 space.
2365 (grub_affs_close): Free block cache.
2366 (grub_affs_read): Use grub_fshelp_read_file directly.
2367
2368 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2369
2370 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
2371 with no error set.
2372
2373 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2374
2375 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
2376 used variable.
2377 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
2378 Likewise.
2379
2380 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2381
2382 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
2383
2384 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
2385 byteswap when needed.
2386
2387 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2388
2389 Fix FreeBSD compilation.
2390
2391 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
2392 to avoid circular dependency.
2393 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
2394 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
2395 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
2396
2397 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2398
2399 Fix ZFS crypto error types.
2400
2401 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
2402 (grub_gcm_decrypt): Likewise.
2403 (grub_zfs_load_key_real): Fix error code type. Handle possible error
2404 from PBKDF2.
2405
2406 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2407
2408 Illumos support.
2409
2410 * Makefile.util.def (10_illumos): New script.
2411 * configure.ac: Set COND_HOST_ILLUMOS.
2412 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
2413 Support Illumos calls.
2414 (find_partition_start) [__sun__]: Likewise.
2415 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
2416 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
2417 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
2418 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
2419 device.
2420 * util/grub-probe.c (probe) [__sun__]: Do character check.
2421 * util/grub.d/10_illumos.in: New file.
2422
2423 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2424
2425 Support escaped commas in hostdisk.
2426
2427 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
2428 (find_grub_drive): Use unescape_cmp.
2429 (make_device_name): Escape commas.
2430
2431 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2432
2433 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
2434
2435 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2436
2437 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
2438 variable.
2439
2440 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2441
2442 Support trampoline jumps on powerpc.
2443
2444 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
2445 __ia64__ path.
2446 (grub_dl_load_segments): Set mod->sz.
2447 (grub_dl_flush_cache): Flush whole space occupied by module, not just
2448 segments.
2449 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
2450 (jump): Likewise.
2451 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
2452 function.
2453 (trampoline): New struct.
2454 (trampoline_template): New const.
2455 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
2456 * include/grub/dl.h (grub_dl): Add sz element.
2457 [__powerpc__]: Follow __ia64__.
2458 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
2459 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
2460 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
2461 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
2462
2463 2011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
2464
2465 ZFS crypto support.
2466
2467 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
2468 * grub-core/Makefile.core.def (zfscrypt): New module.
2469 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
2470 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
2471 it. All users updated.
2472 (grub_zfs_decrypt): New var.
2473 (grub_zfs_load_key): Likewise.
2474 (zio_checksum_functions): Add SHA256+MAC.
2475 (zio_checksum_verify): Handle incomplete comparison due to MAC.
2476 (zio_read): Handle encrypted blocks.
2477 (zap_verify): Remove incorrect check.
2478 (fzap_iterate): Handle non-standard fzap.
2479 (zap_iterate): Likewise.
2480 (zap_iterate_u64): New function.
2481 (dnode_get_fullpath): Load keys.
2482 * grub-core/fs/zfs/zfscrypt.c: New file.
2483 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
2484 (grub_crypto_ecb_encrypt): Make input const.
2485 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
2486 (grub_crypto_ecb_encrypt): Make input const.
2487 (GRUB_CIPHER_AES): New macro.
2488 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
2489 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
2490 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
2491 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
2492 prefix. All users updated.
2493 (grub_zfs_add_key): New proto.
2494 (grub_zfs_decrypt): Likewise.
2495 (grub_zfs_load_key): Likewise.
2496 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
2497 * util/grub-fstest.c (options): Add -K option.
2498 (argp_parser): Likewise.
2499
2500 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
2501
2502 Support zle compression on ZFS.
2503
2504 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
2505 (decomp_table): Add zle.
2506 * include/grub/zfs/zio.h (zio_compress): Add zle.
2507
2508 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
2509
2510 Support BtrFS embedding.
2511
2512 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
2513 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
2514 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
2515 * util/grub-setup.c (setup): Use fs embedding if available.
2516 Add additional sanity check.
2517
2518 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
2519
2520 * util/grub-install.in: Fix condition for config_opt.
2521
2522 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
2523
2524 Support third redundancy strip on raidz3.
2525
2526 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
2527 Return error on singularity. All users updated.
2528 (read_device): Don't stop on 3rd failure on raidz3.
2529
2530 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
2531
2532 Support case-insensitive ZFS subvolumes.
2533
2534 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
2535 All users updated.
2536 (zap_hash): Likewise.
2537 (name_cmp): New function.
2538 (zap_leaf_array_equal): New parameter case_insensitive.
2539 All users updated.
2540 (zap_leaf_lookup): Likewise.
2541 (fzap_lookup): Likewise.
2542 (zap_lookup): Likewise.
2543 (dnode_get_path): New parameter case_insensitive. Retrieve case
2544 sensitiviness of a volume. All users updated.
2545 (dnode_get_fullpath): New parameter case_insensitive.
2546 All users updated.
2547 (grub_zfs_dir): Set info.case_insensitiveness.
2548
2549 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
2550
2551 Support second redundancy strip on raidz(2,3).
2552
2553 * grub-core/fs/zfs/zfs.c (powx): New array.
2554 (powx_inv): Likewise.
2555 (poly): New const.
2556 (xor_out): New function.
2557 (gf_mul): Likewise.
2558 (recovery): Likewise.
2559 (read_device): Use second redundancy strip.
2560
2561 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
2562
2563 Use a power of generator representation of GF(256) multiplication group
2564 to save space time and complexity.
2565
2566 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
2567 (raid6_table2): Likewise.
2568 (powx): New array.
2569 (powx_inv): Likewise.
2570 (poly): New const.
2571 (grub_raid_block_mul): Replace with ...
2572 (grub_raid_block_mulx): ...this.
2573 (grub_raid6_init_table): Rewritten.
2574 (grub_raid6_recover): Use power of generator representation.
2575
2576 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
2577
2578 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
2579 for the right device.
2580
2581 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
2582
2583 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
2584 expected by grub-mkimage and it's more clear since there is no implicit
2585 padding.
2586
2587 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
2588
2589 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
2590 disk.
2591 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
2592
2593 2011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
2594
2595 * util/grub-mkrescue.in: Fix handling xorriso option.
2596
2597 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
2598
2599 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
2600 NULL.
2601
2602 2011-11-03 crocket <crockabiscuit@gmail.com>
2603
2604 * util/grub.d/10_linux.in: Add Slackware initrd naming.
2605
2606 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
2607
2608 XZ CRC64 and SHA256 support.
2609
2610 * Makefile.util.def (libgrubmods): Add crc64.c.
2611 * grub-core/Makefile.core.def (crc64): New module.
2612 * grub-core/lib/crc64.c: New file.
2613 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
2614 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
2615 Fix the type.
2616 (MAX_HASH_SIZE): New define.
2617 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
2618 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
2619 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
2620 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
2621 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
2622 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
2623 Handle non-crc32 hashes.
2624 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
2625 (dec_stream_header): Handle non-crc32 hashes.
2626 (dec_stream_footer): Likewise.
2627 (dec_block_header): Likewise.
2628 (dec_main): Likewise.
2629 (xz_dec_init): Likewise.
2630 (xz_dec_reset): Likewise.
2631 (xz_dec_end): Likewise.
2632 * util/import_gcry.py: Add CRC64 line.
2633
2634 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
2635
2636 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
2637 as well.
2638
2639 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
2640
2641 Make reiserfs label retrieval similar to other *_label functions.
2642
2643 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
2644 (REISERFS_MAX_LABEL_LENGTH): Removed.
2645 (REISERFS_LABEL_OFFSET): Likewise.
2646 (grub_reiserfs_label): Rewritten.
2647
2648 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
2649
2650 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
2651 field.
2652
2653 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
2654
2655 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
2656
2657 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
2658
2659 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
2660 drive failure on both raidz and raidz2.
2661
2662 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
2663
2664 Fix RAIDZ(2) for >= 5 devices.
2665
2666 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
2667 asize argument. All users updated.
2668
2669 2011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
2670
2671 Fix RAIDZ(2).
2672
2673 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
2674 (fill_vdev_info_real): Set ashift.
2675 (read_device): Rewrite RAIDZ part based on reverse engineering.
2676
2677 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
2678
2679 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
2680 don't report potentially unavialiable fields in debug output.
2681 (find_path): Fix double-free and memory leak.
2682
2683 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
2684
2685 Read label on UFS1.
2686
2687 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
2688 (grub_ufs_fs): Always set .label.
2689
2690 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
2691
2692 Use shifts in UFS.
2693
2694 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
2695 (grub_ufs_data): New field log2_blksz.
2696 (grub_ufs_read_file): Use shifts.
2697 (grub_ufs_mount): Check block size and logarithm it.
2698
2699 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
2700
2701 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
2702 long symlinks.
2703
2704 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
2705
2706 Handle symlinks and long names on tar and cpio.
2707
2708 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
2709 (ATTR_FILE): Likewise.
2710 (ATTR_DIR): Likewise.
2711 (ATTR_LNK): Likewise.
2712 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
2713 (grub_cpio_find_file): Fill mode, handle linkname field as well as
2714 L and K entries.
2715 (grub_cpio_mount): Zero-fill data.
2716 (handle_symlink): New function.
2717 (grub_cpio_dir): Handle symlinks.
2718 (grub_cpio_open): Likewise.
2719 (grub_cpio_close) [MODE_USTAR]: Free linkname.
2720
2721 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
2722
2723 Fix iso9660 filename limitations and fix memory leaks.
2724
2725 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
2726 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
2727
2728 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
2729
2730 Fix JFS file name length limitations.
2731
2732 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
2733 (grub_jfs_diropen): Fix maximum filename length.
2734 (grub_jfs_getent): Fix filename length.
2735 (grub_jfs_lookup_symlink): Fix size checks.
2736
2737 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
2738
2739 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
2740 string.
2741
2742 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
2743
2744 Leverage BFS implementation to read AFS.
2745
2746 * Makefile.util.def (libgrubmods): Add afs.c.
2747 * grub-core/Makefile.core.def (afs): New module
2748 * grub-core/fs/afs.c: New file.
2749 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
2750
2751 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
2752
2753 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
2754
2755 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
2756
2757 * grub-core/fs/bfs.c: Run indent.
2758
2759 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
2760
2761 BFS implementation based on the specification.
2762
2763 * grub-core/fs/bfs.c: New file.
2764 * Makefile.util.def (libgrubmods): Add bfs.c.
2765 * grub-core/Makefile.core.def (bfs): New module.
2766
2767 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
2768
2769 * util/grub-fstest.c (cmd_cp): Clarify error message.
2770 (cmd_cmp): Likewise.
2771
2772 2011-10-30 Yves Blusseau <blusseau@zetam.org>
2773
2774 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
2775 and befs_be.
2776
2777 2011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
2778
2779 Remove afs and befs because of copyright problem.
2780
2781 * grub-core/fs/afs.c: Removed.
2782 * grub-core/fs/afs_be.c: Removed.
2783 * grub-core/fs/befs.c: Removed.
2784 * grub-core/fs/befs_be.c: Removed.
2785 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
2786 * grub-core/Makefile.core.def (afs): Removed.
2787 (afs_be): Likewise.
2788 (befs): Likewise.
2789 (befs_be): Likewise.
2790
2791 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
2792
2793 Prefer rockridge over Joliet.
2794
2795 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
2796 to ...
2797 (set_rockridge): ... here.
2798 (grub_iso9660_mount): Check rockridge on the primary label when
2799 discovering. Ignore Joliet if Rockridge is present.
2800
2801 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
2802
2803 Use shifts in nilfs2.
2804
2805 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
2806 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
2807 (grub_nilfs2_palloc_entries_per_group): Replace with ...
2808 (grub_nilfs2_log_palloc_entries_per_group): ... this.
2809 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
2810 (grub_nilfs2_entries_per_block): Replaced with ...
2811 (grub_nilfs2_log_entries_per_block_log): ... this.
2812 (grub_nilfs2_blocks_per_group): Replaced with ...
2813 (grub_nilfs2_blocks_per_group_log): ... this.
2814 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
2815 (grub_nilfs2_blocks_per_desc_block_log): ... this.
2816 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
2817 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
2818 (grub_nilfs2_palloc_entry_offset): Replaced ...
2819 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
2820 (grub_nilfs2_dat_translate): Use shifts.
2821 (grub_nilfs2_read_inode): Likewise.
2822 (GRUB_MOD_INIT): Ensure that logs are correct.
2823
2824 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
2825
2826 Use shifts in minix filesystem.
2827
2828 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
2829 (GRUB_MINIX_ZONE2SECT): Likewise.
2830 (grub_minix_data): Replace block_size with log_block_size.
2831 (grub_minix_read_file): Use shifts.
2832 (grub_minix_mount): Check block size and take a logarithm.
2833
2834 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
2835
2836 Use shifts in squash4.
2837
2838 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
2839 (squash_mount): Check block size and take logarithm.
2840 (direct_read): Use shifts.
2841
2842 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
2843
2844 Correct befs block counting logic.
2845
2846 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
2847 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
2848 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
2849 (grub_afs_read_inode): Use block_shift.
2850 (RANGE_SHIFT): New definition.
2851 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
2852 unexpected conditions, use shifts and appropriate types.
2853 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
2854
2855 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
2856
2857 * grub-core/disk/raid.c (scan_devices): Check partition.
2858 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
2859
2860 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
2861
2862 Support BFS (befs) UUID.
2863
2864 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
2865 (grub_afs_small_data_element_header): New struct.
2866 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
2867 (grub_afs_read_attribute) [MODE_BFS]: New function.
2868 (grub_afs_iterate_dir): Allocate for complete inode.
2869 (grub_afs_mount): Likewise.
2870 (grub_afs_uuid) [MODE_BFS]: New function.
2871 (grub_afs_fs) [MODE_BFS]: Add .uuid.
2872
2873 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
2874
2875 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
2876 (zfs_unmount): Fix memory leak.
2877
2878 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
2879
2880 Support NTFS reparse points.
2881
2882 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
2883 (symlink_descriptor): New struct.
2884 (grub_ntfs_read_symlink): New function.
2885 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
2886 (grub_ntfs_open): Likewise.
2887
2888 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
2889
2890 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
2891
2892 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
2893
2894 fstest xnu_uuid subcommand.
2895
2896 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
2897 grub-core/commands/xnu_uuid.c.
2898 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
2899 (fstest): Handle xnu_uuid.
2900 (options): Document xnu_uuid.
2901 (argp_parser): Parse xnu_uuid.
2902
2903 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
2904
2905 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
2906 -l argument. Add newline at the end if printing.
2907 (GRUB_MOD_INIT): Document -l.
2908
2909 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
2910
2911 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
2912
2913 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
2914
2915 ZFS multi-device and version 33 support.
2916
2917 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
2918 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
2919 (grub_zfs_data): Add multidev-ice-related fields.
2920 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
2921 (dva_get_offset): Make dva const.
2922 (zfs_fetch_nvlist): New function.
2923 (fill_vdev_info_real): Likewise.
2924 (fill_vdev_info): Likewise.
2925 (check_pool_label): Likewise.
2926 (scan_disk): Likewise.
2927 (scan_devices): Likewise.
2928 (read_device): Likewise.
2929 (read_dva): Likewise.
2930 (zio_read_gang): Use read_dva.
2931 (zio_read_data): Likewise.
2932 (zap_leaf_lookup): Add missing endian conversion.
2933 (zap_verify): Add missing endian conversion. All users updated.
2934 (fzap_lookup): Likewise.
2935 (fzap_iterate): Likewise.
2936 (dnode_get_path): Handle SA bonus.
2937 (nvlist_find_value): Make input const. All users updated.
2938 (unmount_device): New function.
2939 (zfs_unmount): Use unmount_device.
2940 (zfs_mount): Use scan_disk.
2941 (zfs_mtime): New function.
2942 (grub_zfs_open): Handle system attributes.
2943 (fill_fs_info): Likewise.
2944 (grub_zfs_dir): Likewise.
2945 (grub_zfs_fs): Add mtime.
2946 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
2947 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
2948 (SA_MTIME_OFFSET): Likewise.
2949 (SA_SYMLINK_OFFSET): Likewise.
2950 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
2951 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
2952 (fstest): Support zfsinfo.
2953 (argp_parser): Likewise.
2954
2955 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
2956
2957 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
2958 error.
2959
2960 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
2961
2962 ZFS fixes.
2963
2964 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
2965 sharing the same block. Iterate over correct number of indices.
2966 (dnode_get_path): Handle symlinks correctly.
2967
2968 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2969
2970 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
2971
2972 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2973
2974 Read label on HFS+.
2975
2976 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
2977 (grub_hfsplus_btree_search): Fix types.
2978 (grub_hfsplus_label): Implement.
2979
2980 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2981
2982 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
2983
2984 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2985
2986 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
2987
2988 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2989
2990 Fix symlink handling on iso9660.
2991
2992 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
2993 All users updated.
2994 (grub_iso9660_susp_iterate): Accept zero-size iterate.
2995 (grub_iso9660_read_symlink): Moved most of code ...
2996 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
2997
2998 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2999
3000 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
3001 Use union to avoid breaking strict-aliasing rules.
3002
3003 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3004
3005 Support multi-extent iso files.
3006
3007 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
3008 Add node.
3009 (grub_fshelp_node): Revamp. All users updated.
3010 (FLAG_*): New enum.
3011 (read_node): New function.
3012 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
3013 All users updated.
3014 (grub_iso9660_mount): Don't attempt to read sua when there is none.
3015 (get_node_size): New function.
3016 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
3017 entries.
3018 Fix memory leak on . and ..
3019 (grub_iso9660_read): Use read_node.
3020 (grub_iso9660_close): Free node.
3021
3022 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3023
3024 Fix tar 4G limit and handle paths containing dot.
3025
3026 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
3027 (canonicalize): New function.
3028 (grub_cpio_find_file): Use canonicalize. Store offs in
3029 grub_disk_addr_t.
3030 (grub_cpio_dir): Use grub_disk_addr_t.
3031 (grub_cpio_open): Likewise.
3032
3033 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3034
3035 Fix handling of uncompressed blocks on squashfs and break 4G limit.
3036
3037 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
3038 unused flags.
3039 (grub_squash_inode): Add long_file and block_size.
3040 (grub_squash_cache_inode): New struct.
3041 (grub_squash_dirent): Make types into enum.
3042 (SQUASH_TYPE_LONG_REGULAR): New type.
3043 (grub_squash_frag_desc): Add field size.
3044 (SQUASH_BLOCK_FLAGS): New enum.
3045 (grub_squash_data): Use grub_squash_cache_inode.
3046 (grub_fshelp_node): Make ino_chunk 64-bit.
3047 (read_chunk): Minor argument change. All users updated.
3048 (squash_mount): Use correct le_to_cpu.
3049 (grub_squash_open): Handle LONG_REGULAR.
3050 (direct_read): New function.
3051 (grub_squash_read_data): Handle blocks correctly.
3052
3053 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3054
3055 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
3056
3057 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3058
3059 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
3060
3061 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
3062
3063 Fix 2G limit on ZFS.
3064
3065 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
3066 types.
3067 (uberblock_verify): Likewise.
3068 (dmu_read): Likewise.
3069 (grub_zfs_read): Likewise. Remove invalid cast.
3070
3071 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
3072
3073 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
3074 (grub_jfs_blkno): Fix incorrect shift.
3075 (grub_jfs_read_file): Use more appropriate types.
3076
3077 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
3078
3079 Support triple indirect on minix2 and minix3.
3080
3081 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
3082 Declare triple_indir_zone.
3083 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
3084 indirect.
3085
3086 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
3087
3088 Minix FS fixes.
3089
3090 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
3091 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
3092 Rename ctime to mtime. All users updated.
3093 (grub_minix_get_file_block): Fix types and double indirect computations.
3094
3095 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
3096
3097 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
3098 if no label is found.
3099 (grub_fat_iterate_dir): Fix file size type.
3100 (grub_fat_iterate_dir): Likewise.
3101
3102 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
3103
3104 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
3105 save some space.
3106 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
3107 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
3108
3109 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
3110
3111 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
3112
3113 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
3114
3115 * util/import_gcry.py: Accept space between # and include.
3116
3117 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
3118
3119 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
3120
3121 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
3122
3123 Fine grainely disable warnings on lexer. Remove Wno-error on it.
3124
3125 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
3126 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
3127 yylex_strncpy.
3128 * grub-core/script/yylex.l: Add fine-grained #pragma.
3129
3130 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
3131
3132 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
3133 New inline function.
3134 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
3135 Likewise.
3136 (memset) [GRUB_UTIL]: Likewise.
3137 (memcmp) [GRUB_UTIL]: Likewise.
3138
3139 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
3140
3141 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
3142 inline function rather than a define.
3143
3144 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
3145
3146 * util/grub-setup.c: Add missing include.
3147
3148 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
3149
3150 * util/ieee1275/grub-ofpathname.c: Add missing include.
3151
3152 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
3153
3154 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
3155 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
3156 Likewise.
3157
3158 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
3159
3160 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
3161 grub_memcmp usage.
3162
3163 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
3164
3165 * util/grub-install.in: Add datarootdir as per automake manual
3166 suggestion.
3167 * util/grub-mknetdir.in: Likewise.
3168
3169 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
3170
3171 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
3172 suggestion.
3173 * util/grub.d/10_kfreebsd.in: Likewise.
3174 * util/grub.d/10_linux.in: Likewise.
3175 * util/grub.d/10_netbsd.in: Likewise.
3176 * util/grub.d/10_windows.in: Likewise.
3177 * util/grub.d/20_linux_xen.in: Likewise.
3178
3179 2011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3180
3181 Remove redundant grub_kernel_image_size.
3182
3183 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
3184 _edata and _start.
3185 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
3186 the small code. It moves it only by few bytes but simplifies the code.
3187 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
3188 _start.
3189 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
3190 (grub_kernel_image_size): Removed.
3191 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
3192 (grub_kernel_image_size): Removed.
3193 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
3194 compiled with Apple toolchain.
3195 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
3196 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
3197 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
3198 (grub_total_module_size): Likewise.
3199 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
3200 Removed.
3201 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
3202 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
3203 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
3204 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
3205 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
3206 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
3207 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
3208 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
3209 Removed.
3210 (grub_total_module_size): Removed.
3211 * util/grub-mkimage.c (image_target_desc): Remove image_size.
3212 (image_targets): Likewise.
3213 Set .compressed_size to no field on sparc.
3214 (generate_image): Remove kernel_image_size handling.
3215
3216 2011-10-19 Szymon Janc <szymon@janc.net.pl>
3217
3218 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
3219 NULL pointer dereference.
3220
3221 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3222
3223 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
3224 done with a dedicated section.
3225
3226 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
3227 Ensure the correct position of boot_path.
3228 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
3229 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
3230 other fields.
3231 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
3232 * include/grub/boot.h: Removed. All references removed.
3233 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
3234 Removed.
3235 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
3236
3237 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3238
3239 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
3240 name.
3241
3242 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3243
3244 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
3245
3246 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3247
3248 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
3249 Don't add the bogus brackets.
3250
3251 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3252
3253 ExFAT support.
3254
3255 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
3256 * grub-core/Makefile.core.def (exfat): New module.
3257 * grub-core/fs/exfat.c: New file.
3258 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
3259 (GRUB_FAT_ATTR_*): Make into an enum.
3260 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
3261 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
3262 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
3263 (GRUB_FAT_MAXFILE): Removed.
3264 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
3265 (grub_current_fat_bpb_t): New type.
3266 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
3267 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
3268 (grub_fat_dir_node_t): New type.
3269 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
3270 (fat_log2) [MODE_EXFAT]: Removed.
3271 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
3272 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
3273 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
3274 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
3275 (grub_fat_label) [MODE_EXFAT]: New function.
3276 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
3277 reserved_first_sector to 0.
3278
3279 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3280
3281 Move grub_reboot out of the kernel.
3282
3283 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
3284 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
3285 * grub-core/lib/efi/reboot.c: ... here.
3286 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
3287 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
3288 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
3289 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
3290 * grub-core/lib/i386/reboot_trampoline.S: ... here.
3291 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
3292 * grub-core/lib/ieee1275/reboot.c: ... here.
3293 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
3294 * grub-core/lib/mips/arc/reboot.c: ... here.
3295 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
3296 * grub-core/lib/mips/loongson/reboot.c: ...here.
3297 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
3298 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
3299 * include/grub/emu/misc.h (grub_reboot): New function declaration.
3300 * include/grub/i386/reboot.h: New file.
3301 * include/grub/mips/loongson/ec.h: Fix includes.
3302 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
3303 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
3304 * grub-core/lib/i386/reboot.c: New file.
3305
3306 2011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3307
3308 Make grub_prefix into module to fix the arbitrary limit and save
3309 some space.
3310
3311 * grub-core/kern/emu/main.c (grub_prefix): Removed.
3312 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
3313 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
3314 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
3315 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
3316 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
3317 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
3318 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
3319 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
3320 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
3321 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
3322 * include/grub/ia64/efi/kernel.h: Removed.
3323 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
3324 (grub_prefix): Removed.
3325 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
3326 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
3327 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
3328 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
3329 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
3330 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
3331 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
3332 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
3333 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
3334 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
3335 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
3336 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
3337 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
3338 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
3339 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
3340 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
3341 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
3342 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
3343 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
3344 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
3345 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
3346 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
3347 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
3348 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
3349 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
3350 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
3351 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
3352 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
3353 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
3354 from module.
3355 * util/grub-mkimage.c (image_target_desc): Removed prefix and
3356 prefix_end.
3357 (image_targets): Likewise.
3358 (generate_image): Put prefix as a module.
3359
3360 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
3361
3362 Replace grub_module_iterate with FOR_MODULES.
3363
3364 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
3365 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
3366 (grub_efi_modules_addr): ...this.
3367 * grub-core/kern/efi/init.c (grub_modbase): New variable.
3368 (grub_efi_init): Set grub_modbase.
3369 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
3370 (grub_modbase): New variable.
3371 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
3372 (grub_modbase): New variable.
3373 (grub_machine_init): Set grub_modbase.
3374 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
3375 (grub_modbase): New variable.
3376 (grub_machine_init): Set grub_modbase.
3377 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
3378 (grub_modbase): New variable.
3379 (grub_machine_init): Set grub_modbase.
3380 * grub-core/kern/main.c (grub_module_iterate): Remove.
3381 (grub_modules_get_end): Use grub_modbase.
3382 (grub_load_modules): Use FOR_MODULES.
3383 (grub_load_config): Likewise.
3384 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
3385 (grub_modbase): New variable.
3386 (grub_machine_init): Set grub_modbase.
3387 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
3388 (grub_modbase): New variable.
3389 (grub_machine_init): Set grub_modbase.
3390 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
3391 Removed.
3392 (grub_modbase): New variable.
3393 (grub_machine_init): Set grub_modbase.
3394 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
3395 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
3396 (grub_module_iterate): Likewise.
3397 (grub_modbase): New variable declaration.
3398 (FOR_MODULES): New macro.
3399
3400 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
3401
3402 * configure.ac: Check for __ctzdi2 and __ctzsi2.
3403 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
3404
3405 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
3406
3407 Fix few obvious type discrepancies.
3408
3409 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
3410 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
3411 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
3412 variable.
3413 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
3414 and connected types.
3415 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
3416 offset.
3417 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
3418 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
3419 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
3420 and connected types.
3421
3422 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
3423
3424 Fix python 3.x incompatibilities.
3425
3426 * gentpl.py: Put brackets around print strings.
3427 * util/import_gcry.py: Open explicitly as utf-8.
3428 Use in instead of has_key.
3429
3430 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
3431
3432 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
3433 (GRUB_XFS_INO_AGBITS): Make into inline function.
3434 (GRUB_XFS_INO_INOINAG): Likewise.
3435 (GRUB_XFS_INO_AG): Likewise.
3436 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
3437 (GRUB_XFS_EXTENT_OFFSET): Likewise.
3438 (GRUB_XFS_EXTENT_BLOCK): Likewise.
3439 (GRUB_XFS_EXTENT_SIZE): Likewise.
3440 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
3441 (GRUB_XFS_NEXT_DIRENT): Likewise.
3442 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
3443 (grub_xfs_read_file): Fix offset type.
3444
3445 2011-10-15 Robert Millan <rmh@gnu.org>
3446
3447 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
3448
3449 2011-10-15 Robert Millan <rmh@gnu.org>
3450
3451 Fix build problem on FreeBSD and GNU/kFreeBSD.
3452
3453 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
3454
3455 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
3456
3457 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
3458
3459 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
3460 types.
3461 (grub_hfsplus_btree_recoffset): Likewise.
3462 (grub_hfsplus_btree_recptr): Likewise.
3463 (grub_hfsplus_find_block): Likewise.
3464 (grub_hfsplus_btree_search): Likewise.
3465 (grub_hfsplus_read_block): Likewise.
3466 (grub_hfsplus_read_file): Likewise.
3467 (grub_hfsplus_mount): Likewise.
3468 (grub_hfsplus_btree_iterate_node): Likewise.
3469 (grub_hfsplus_btree_search): Likewise.
3470 (grub_hfsplus_iterate_dir): Likewise.
3471 (grub_hfsplus_read): A small code simplification.
3472
3473 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
3474
3475 * grub-core/kern/emu/hostdisk.c
3476 (convert_system_partition_to_system_disk): Don't assume that children
3477 of mapper nodes are mapper nodes.
3478
3479 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
3480
3481 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
3482 * include/grub/misc.h (grub_isxdigit): New function.
3483 * grub-core/video/colors.c (my_isxdigit): Removed. All users
3484 switched to grub_isxdigit.
3485 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
3486 number starting with a letter.
3487
3488 2011-10-09 Robert Millan <rmh@gnu.org>
3489
3490 LVM support for FreeBSD and GNU/kFreeBSD.
3491
3492 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
3493 GNU/kFreeBSD.
3494 (LVM_DEV_MAPPER_STRING): Move from here ...
3495 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
3496 * util/getroot.c: Include `<grub/util/lvm.h>'.
3497 (grub_util_get_dev_abstraction): Enable
3498 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
3499 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
3500 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
3501 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
3502 support it.
3503 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
3504 GNU/kFreeBSD.
3505 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
3506 when LVM abstraction is required for ${GRUB_DEVICE}.
3507
3508 2011-10-06 Szymon Janc <szymon@janc.net.pl>
3509
3510 Add support for LZO compression in GRUB:
3511 - import of minilzo library,
3512 - LZO decompression for btrfs,
3513 - lzop files decompression.
3514
3515 * grub-core/io/lzopio.c: New file.
3516 * grub-core/lib/adler32.c: Likewise.
3517 * grub-core/lib/minilzo/lzoconf.h: Likewise.
3518 * grub-core/lib/minilzo/lzodefs.h: Likewise.
3519 * grub-core/lib/minilzo/minilzo.c: Likewise.
3520 * grub-core/lib/minilzo/minilzo.h: Likewise.
3521 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
3522 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
3523 grub-core/lib/minilzo/minilzo.c to common.
3524 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
3525 cflags in cppflags.
3526 * grub-core/Makefile.core.def (btrfs): Likewise.
3527 * grub-core/Makefile.core.def (lzopio): New module.
3528 (adler32): Likewise.
3529 * grub-core/fs/btrfs.c: Include minilzo.h.
3530 (GRUB_BTRFS_COMPRESSION_LZO): New define.
3531 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
3532 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
3533 (grub_btrfs_lzo_decompress): New function.
3534 (grub_btrfs_extent_read): Add support for LZO compression type.
3535 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
3536 (GRUB_USHRT_MAX): Likewise.
3537 (GRUB_UINT_MAX): Likewise.
3538 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
3539 (UINT_MAX): Likewise.
3540 (CHAR_BIT): Likewise.
3541 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
3542 grub-core/lib/posix_wrap/limits.h
3543 (UCHAR_MAX): Likewise.
3544 * include/grub/file.h (grub_file_filter_id): New compression filter
3545 GRUB_FILE_FILTER_LZOPIO.
3546 * include/grub/file.h (grub_file_filter_id): Set
3547 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
3548 * include/grub/types.h (grub_get_unaligned16): New function.
3549 (grub_get_unaligned32): Likewise.
3550 (grub_get_unaligned64): Likewise.
3551 * util/import_gcry.py (cryptolist): Add adler32.
3552
3553 2011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
3554
3555 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
3556 in perspective decreases the complexity of build system and fixes
3557 compilation right now.
3558
3559 2011-10-01 Ales Nesrsta <starous@volny.cz>
3560
3561 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
3562 (fixed problem related to using UHCI with coreboot).
3563
3564 2011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
3565
3566 * gentpl.py: Use Autogen macros so that the output template file
3567 (Makefile.tpl) size is reduced.
3568
3569 2011-09-29 Mads Kiilerich <mads@kiilerich.com>
3570
3571 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
3572 extra_dist.
3573
3574 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
3575
3576 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
3577 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
3578
3579 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
3580
3581 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
3582 _fullpath.
3583
3584 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
3585
3586 Remove extra declaration of sleep for mingw32.
3587
3588 * util/misc.c (sleep) [__MINGW32__]: Removed.
3589 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
3590
3591 2011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
3592
3593 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
3594 type and packname.
3595 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
3596 Resurrected.
3597 (NETBSD_BTINFO_BOOTWEDGE): New definition.
3598 (grub_netbsd_btinfo_bootwedge): New struct.
3599 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
3600 New function.
3601 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
3602
3603 2011-09-28 Thomas Haller <thomas.haller@fen-net.de>
3604
3605 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
3606 loader.
3607
3608 2011-09-28 Andreas Born <futur.andy@googlemail.com>
3609
3610 Fix incorrect identifiers in bash-completion.
3611
3612 * util/bash-completion.d/grub-completion.bash.in
3613 (_grub_mkpasswd-pbkdf2): Rename to ...
3614 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
3615 (_grub_script-check): Rename to ...
3616 (_grub_script_check): ... this. All users updated.
3617
3618 2011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
3619
3620 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
3621 Return 0 if disk isn't biosdisk.
3622
3623 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
3624
3625 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
3626 on NetBSD.
3627 * Makefile.util.def (grub-fstest): Likewise.
3628
3629 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
3630
3631 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
3632 Get sector size from disk label.
3633
3634 2011-09-05 Colin Watson <cjwatson@ubuntu.com>
3635
3636 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
3637 */README* as well as README*.
3638 Reported by: Axel Beckert.
3639
3640 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
3641
3642 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
3643 case of less than 256 MiB of RAM.
3644
3645 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
3646
3647 * grub-core/commands/wildcard.c (make_regex): Handle @.
3648
3649 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
3650
3651 * util/grub-install.in: Move cryptodisk logic to appropriate place.
3652
3653 2011-08-21 Szymon Janc <szymon@janc.net.pl>
3654
3655 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
3656 AC_LANG_CONFTEST macros.
3657
3658 2011-08-20 Szymon Janc <szymon@janc.net.pl>
3659
3660 Add grub-fstest option to uncompress data for commands.
3661
3662 * util/grub-fstest.c (uncompress): New var.
3663 (options): New option -u.
3664
3665 2011-08-20 Szymon Janc <szymon@janc.net.pl>
3666
3667 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
3668 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
3669
3670 2011-08-20 Szymon Janc <szymon@janc.net.pl>
3671
3672 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
3673 file type was not recognized correctly (not gzip or corrupted).
3674
3675 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
3676
3677 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
3678 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
3679
3680 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
3681
3682 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
3683 loongson.
3684 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
3685 video_radeon_fuloong2e.
3686 * grub-core/video/radeon_fuloong2e.c: New file.
3687 * include/grub/video.h (grub_video_id_t): Add new ID
3688 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
3689
3690 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
3691
3692 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
3693 define.
3694 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
3695 that PRID matches the detected subplatform and reset the subplatform
3696 if it doesn't.
3697
3698 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
3699
3700 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
3701
3702 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
3703
3704 Fix PCI iterating on functions >= 4.
3705
3706 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
3707 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
3708 Removed.
3709 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
3710 (grub_pci_read): Fix bitmask.
3711 (grub_pci_read_word): Likewise.
3712 (grub_pci_read_byte): Likewise.
3713 (grub_pci_write): Likewise.
3714 (grub_pci_write_word): Likewise.
3715 (grub_pci_write_byte): Likewise.
3716
3717 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
3718
3719 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
3720 can still be specified in TARGET_CFLAGS)
3721
3722 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
3723
3724 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
3725
3726 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
3727 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
3728 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
3729 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
3730 (FULOONG): Rename to ...
3731 (FULOONG2F): ... this. All users updated.
3732 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
3733 (machtype_fuloong2f_str): ... this.
3734 (machtype_fuloong2e_str): New string.
3735 Check for machtype_fuloong2e_str.
3736 * grub-core/loader/mips/linux.c (loongson_machtypes)
3737 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
3738 * grub-core/term/serial.c (loongson_defserial)
3739 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
3740 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
3741 loongson_defserial.
3742 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
3743 Rename to ...
3744 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
3745 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
3746 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
3747 to IMAGE_FULOONG2F_FLASH. All users updated.
3748 (image_targets): Rename images.
3749 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
3750
3751 2011-08-19 Szymon Janc <szymon@janc.net.pl>
3752
3753 Make enable of disk cache statistics code configurable.
3754
3755 * configure.ac: --enable-cache-stats added.
3756 * config.h.in (DISK_CACHE_STATS): New define.
3757 * grub-core/Makefile.core.def (cacheinfo): New command.
3758 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
3759 * grub-core/commands/cacheinfo.c: New file.
3760 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
3761 moved to cacheinfo.c.
3762 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
3763 debug code.
3764 * include/grub/disk.h: Likewise.
3765
3766 2011-08-19 Szymon Janc <szymon@janc.net.pl>
3767
3768 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
3769 * grub-core/Makefile.am: Likewise.
3770
3771 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
3772
3773 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
3774 non-zero pull.
3775
3776 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
3777
3778 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
3779 All users updated.
3780 (grub_jfs_lookup_symlink): Use correct starting inode.
3781
3782 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
3783
3784 * util/grub-setup.c (main): Add missing gcry initialisation.
3785
3786 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
3787
3788 Don't accept text modes on EFI when booting Linux.
3789
3790 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
3791 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
3792
3793 2011-08-15 Mario Limonciello <mario_limonciello@dell.com>
3794 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
3795
3796 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
3797 use of "/path/.." as in grub-install for EFI as well as handling
3798 symlinks correctly.
3799 Fixes Debian bug #637768.
3800
3801 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
3802
3803 * util/grub-probe.c: Remove duplicate #include.
3804
3805 2011-08-10 Robert Millan <rmh@gnu.org>
3806
3807 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
3808
3809 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
3810 function.
3811 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
3812 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
3813
3814 2011-08-03 Robert Millan <rmh@gnu.org>
3815
3816 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
3817 la_array as packed.
3818 Reported by: Zachary Bedell
3819
3820 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
3821
3822 * configure.ac: The Loongson port requires grub-mkfont due to its
3823 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
3824 be built.
3825
3826 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
3827
3828 * util/grub-install.in: Don't source grub-mkconfig_lib until after
3829 processing arguments (otherwise help2man fails when GRUB has not yet
3830 been installed).
3831
3832 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
3833
3834 New script grub-mkstandalone.
3835
3836 * Makefile.util.def (grub-mkstandalone): New script.
3837 * docs/man/grub-mkstandalone.h2m: New file.
3838 * util/grub-mkstandalone.in: Likewise.
3839
3840 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
3841
3842 Support ATA disks with 4K sectors.
3843
3844 * include/grub/ata.h (grub_ata): New member log_sector_size.
3845 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
3846 (grub_ata_identify): Read sector size.
3847 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
3848
3849 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
3850
3851 * util/grub-install.in: Don't use uhci outside of x86.
3852
3853 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
3854
3855 * util/grub-mkrescue.in: Add missing quotes.
3856
3857 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
3858
3859 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
3860 dereference.
3861
3862 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
3863
3864 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
3865
3866 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
3867
3868 * include/grub/video.h: add missing EXPORT_FUND on
3869 grub_video_edid_checksum and grub_video_edid_preferred_mode.
3870
3871 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
3872
3873 * include/grub/mips/kernel.h: Fix define conflict.
3874
3875 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
3876
3877 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
3878 all four ways.
3879
3880 2011-07-21 Colin Watson <cjwatson@ubuntu.com>
3881
3882 Preferred resolution detection for VBE.
3883
3884 * grub-core/video/video.c (grub_video_edid_checksum): New function.
3885 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
3886 the Flat Panel extension, in line with the X.org VESA driver.
3887 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
3888 New function.
3889 (grub_vbe_bios_get_ddc_capabilities): Likewise.
3890 (grub_vbe_bios_read_edid): Likewise.
3891 (grub_vbe_get_preferred_mode): Likewise.
3892 (grub_video_vbe_setup): When the mode is "auto", try to get the
3893 preferred mode from VBE, and use the largest mode that is no larger
3894 than the preferred mode (some BIOSes expose a preferred mode that is
3895 not in their mode list!). If this fails, fall back to 640x480 as a
3896 safe conservative choice.
3897 (grub_video_vbe_get_edid): New function.
3898 (grub_video_vbe_adapter): Add get_edid.
3899 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
3900 (struct grub_video_adapter): Add get_edid.
3901 (grub_video_edid_checksum): Add prototype.
3902 (grub_video_edid_preferred_mode): Likewise.
3903 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
3904 structure.
3905
3906 * grub-core/commands/videoinfo.c (print_edid): New function.
3907 (grub_cmd_videoinfo): Print EDID if available.
3908
3909 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
3910 is more appropriate on a wider range of platforms than 640x480.
3911 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
3912 documentation.
3913
3914 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
3915
3916 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
3917
3918 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
3919
3920 * po/POTFILES.in: Regenerate.
3921
3922 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
3923
3924 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
3925 incorrect memory usage.
3926
3927 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
3928
3929 * util/grub-install.in: Source grub-mkconfig_lib.
3930
3931 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
3932
3933 Remove getroot.c from core on emu platform.
3934
3935 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
3936 kern/emu/raid.c.
3937 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
3938 useless.
3939 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
3940 * util/getroot.c (get_win32_path): ... here.
3941 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
3942 * util/getroot.c (fini_libzfs): ... here.
3943 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
3944 * util/getroot.c (grub_get_libzfs_handle): ... here.
3945 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
3946 Moved from here...
3947 * util/getroot.c (grub_find_zpool_from_dir): ... here.
3948 * grub-core/kern/emu/misc.c
3949 (grub_make_system_path_relative_to_its_root): Moved from here...
3950 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
3951 * grub-core/kern/emu/getroot.c: Moved from here ...
3952 * util/getroot.c: ... here. All users updated.
3953 * grub-core/kern/emu/raid.c: Moved from here ...
3954 * util/raid.c: ... here. All users updated.
3955
3956 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
3957
3958 * po/POTFILES.in: Regenerate.
3959
3960 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
3961
3962 Fix compilation on GNU/Linux.
3963
3964 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
3965 Disable geli.
3966 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
3967 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
3968 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
3969
3970 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
3971 2011-07-07 Michael Gorven <michael@gorven.za.net>
3972 2011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
3973
3974 LUKS and GELI support.
3975
3976 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
3977 grub-core/disk/luks.c, grub-core/disk/geli.c,
3978 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
3979 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
3980 grub-core/lib/arg.c.
3981 (libgrubmods.a): Remove gcrypts cflags and cppflags.
3982 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
3983 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
3984 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
3985 (grub-bin2h): Add libgcry.a.
3986 (grub-mkimage): Likewise.
3987 (grub-mkrelpath): Likewise.
3988 (grub-script-check): Likewise.
3989 (grub-editenv): Likewise.
3990 (grub-mkpasswd-pbkdf2): Likewise.
3991 (grub-pe2elf): Likewise.
3992 (grub-fstest): Likewise.
3993 (grub-mkfont): Likewise.
3994 (grub-mkdevicemap): Likewise.
3995 (grub-probe): Likewise.
3996 (grub-ofpath): Likewise.
3997 (grub-mklayout): Likewise.
3998 (example_unit_test): Likewise.
3999 (grub-menulst2cfg): Likewise.
4000 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
4001 * grub-core/Makefile.core.def (cryptodisk): New module.
4002 (luks): Likewise.
4003 (geli): Likewise.
4004 * grub-core/disk/AFSplitter.c: New file.
4005 * grub-core/disk/cryptodisk.c: Likewise.
4006 * grub-core/disk/geli.c: Likewise.
4007 * grub-core/disk/luks.c: Likewise.
4008 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
4009 grub_util_is_lvm.
4010 (grub_util_get_dm_abstraction): New function.
4011 (grub_util_follow_gpart_up): Likewise.
4012 (grub_util_get_geom_abstraction): Likewise.
4013 (grub_util_get_dev_abstraction): Use new functions.
4014 (grub_util_pull_device): Pull GELI and LUKS.
4015 (grub_util_get_grub_dev): Handle LUKS and GELI.
4016 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
4017 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
4018 (follow_geom_up): Removed.
4019 (grub_util_fd_seek): New function.
4020 (open_device): Use grub_util_fd_seek.
4021 (nread): Rename to ..
4022 (grub_util_fd_read): ... this. All users updated.
4023 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
4024 (grub_crypto_cbc_decrypt): Likewise.
4025 (grub_crypto_hmac_write): Likewise.
4026 (grub_crypto_hmac_buffer): Likewise.
4027 (grub_password_get): Extend to util.
4028 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
4029 New member modname.
4030 (gcry_md_spec) [GRUB_UTIL]: Likewise.
4031 * include/grub/cryptodisk.h: New file.
4032 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
4033 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
4034 LUKS and GELI.
4035 (grub_util_follow_gpart_up): New proto.
4036 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
4037 (grub_util_fd_read): Likewise.
4038 (grub_cryptodisk_cheat_mount): Likewise.
4039 (grub_util_cryptodisk_print_uuid): Likewise.
4040 (grub_util_get_fd_sectors): Likewise.
4041 * util/grub-fstest.c (mount_crypt): New var.
4042 (fstest): Mount crypto if requested.
4043 (options): New option -C.
4044 (argp_parser): Parse -C.
4045 (main): Init and fini gcry.
4046 * util/grub-install.in: Support cryptodisk install.
4047 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
4048 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
4049 cryptodisk.
4050 (prepare_grub_to_access_device): Likewise.
4051 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
4052 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
4053 (probe_cryptodisk_uuid): New function.
4054 (probe_abstraction): Likewise.
4055 (probe): Use new functions.
4056 * util/import_gcry.py: Create Makefile.utilgcry.def.
4057 Add modname member.
4058
4059 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
4060
4061 Lazy device scanning.
4062
4063 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
4064 (grub-setup): Remove util/raid.c.
4065 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
4066 * grub-core/disk/lvm.c (scan_depth): New variable.
4067 (grub_lvm_iterate): Rescan if necessary.
4068 (find_lv): New function based on grub_lvm_open.
4069 (grub_lvm_open): Use find_lv. Rescan on error.
4070 (is_node_readable): New function.
4071 (is_lv_readable): Likewise.
4072 (grub_lvm_scan_device): Skip already found disks.
4073 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
4074 Stop if searched device is found and readable.
4075 * grub-core/disk/raid.c (inscnt): New variable.
4076 (scan_depth): Likewise.
4077 (scan_devices): New function based on grub_raid_register. Abort if
4078 looked for device is found.
4079 (grub_raid_iterate): Rescan if needed.
4080 (find_array): NEw function based on -grub_raid_open.
4081 (grub_raid_open): Use find_array and rescan.
4082 (insert_array): Set became_readable_at.
4083 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
4084 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
4085 New function.
4086 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
4087 (grub_util_pull_device): New function.
4088 (grub_util_get_grub_dev): Call grub_util_pull_device.
4089 * util/raid.c: Moved to ..
4090 * grub-core/kern/emu/raid.c: ... here.
4091 (grub_util_raid_getmembers): New parameter "bootable".
4092 All users updated. Support 1.x.
4093 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
4094 All users updated.
4095 * include/grub/disk.h (grub_disk_pull_t): New enum.
4096 (grub_disk_dev): Change iterate prototype.
4097 All users updated.
4098 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
4099 New proto.
4100 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
4101 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
4102 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
4103 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
4104 All users updated.
4105 * include/grub/util/raid.h: Removed.
4106
4107 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
4108
4109 * po/POTFILES.in: Regenerate.
4110
4111 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
4112
4113 Unify sparc init with other ieee1275.
4114
4115 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
4116 instead of kern/sparc64/ieee1275/init.c.
4117 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
4118 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
4119 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
4120 grub/machine/kernel.h.
4121 (grub_ieee1275_original_stack) [__sparc__]: New variable.
4122 (grub_claim_heap) [__sparc__]: Use sparc version.
4123 (grub_machine_init): Moved args parsing to
4124 (grub_parse_cmdline): ...this.
4125 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
4126 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
4127 New definition.
4128 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
4129
4130 Move BOOTP to separate file.
4131
4132 * grub-core/Makefile.core.def (net): Add net/bootp.c.
4133 * grub-core/net/net.c: Move all BOOTP functions to
4134 * grub-core/net/bootp.c: ... here.
4135
4136 Use frame interface on PXE.
4137
4138 * grub-core/Makefile.core.def (pxecmd): Removed.
4139 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
4140 * grub-core/commands/i386/pc/pxecmd.c: Removed.
4141 * grub-core/i386/pc/pxe.c: Moved from here ...
4142 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
4143 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
4144 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
4145
4146 EFI network support.
4147
4148 * grub-core/Makefile.core.def (efinet): New module.
4149 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
4150 here...
4151 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
4152 All users updated.
4153 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
4154 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
4155 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
4156 * grub-core/net/drivers/efi/efinet.c: New file.
4157 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
4158 (grub_efi_net_config): New extern var.
4159
4160 Various cleanups and bugfixes.
4161
4162 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
4163 error.
4164 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
4165 disk declared as partition.
4166 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
4167 leak on failure.
4168 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
4169 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
4170 (grub_debug_zalloc): Likewise.
4171 (grub_debug_realloc): Likewise.
4172 (grub_debug_memalign): Likewise.
4173 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
4174 Check that target is IPv4.
4175 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
4176 local-mac-address as fallback.
4177 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
4178 memory leak.
4179 * grub-core/net/ip.c (ipchksum): Rename to ...
4180 (grub_net_ip_chksum): ... this. All users updated.
4181 (grub_net_recv_ip_packets): Special handling for DHCP.
4182 * util/grub-mkimage.c (generate_image): Zero-out aout header.
4183
4184 Unify prefix handling
4185
4186 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
4187 (grub_machine_get_bootlocation): ... this.
4188 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
4189 (grub_machine_get_bootlocation): ... this.
4190 (grub_prefix): New variable.
4191 (prefix): Removed.
4192 (root_dev): New variable.
4193 (dir): Likewise.
4194 (main): Use new variables.
4195 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
4196 Revamped into ...
4197 (grub_machine_get_bootlocation): ... this.
4198 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
4199 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
4200 (grub_machine_get_bootlocation): ... this.
4201 (grub_machine_set_prefix): Removed.
4202 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
4203 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
4204 Revamped into ...
4205 (grub_machine_get_bootlocation): ... this.
4206 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
4207 (grub_set_prefix_and_root): ... this. All users updated.
4208 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
4209 Revamped into ...
4210 (grub_machine_get_bootlocation): ... this.
4211 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
4212 (grub_machine_get_bootlocation): New proto.
4213 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
4214
4215 Less intrusive and more reliable seek on network implementation.
4216
4217 * grub-core/kern/file.c (grub_file_net_seek): Removed.
4218 (grub_file_seek): Don't call grub_file_net_seek.
4219 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
4220 (grub_net_fs_read_real): .. this.
4221 (grub_net_seek_real): Use net->offset.
4222 (grub_net_fs_read): Seek if necessary.
4223
4224 Unify IEEE1275 netwotk config with the other platforms.
4225
4226 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
4227 New variable.
4228 (grub_machine_get_bootlocation): Support network.
4229 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
4230 Support type and device parsing.
4231 (grub_ieee1275_get_device_type): New function.
4232 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
4233 into ...
4234 (grub_ieee1275_net_config_real): ... this.
4235 (grub_ofnet_probecards): Removed.
4236 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
4237 * include/grub/ieee1275/ofnet.h: Removed.
4238 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
4239 extern var.
4240 (grub_ieee1275_get_device_type): New function.
4241
4242 Unify network device closing across platforms and make more robust.
4243
4244 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
4245 grub_grubnet_fini.
4246 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
4247 already.
4248 * grub-core/net/net.c (grub_net_network_level_interface_register):
4249 Update num_ifaces.
4250 (grub_net_card_unregister): Close all interfaces.
4251 (receive_packets): Don't poll if no iterfaces are registered.
4252 Open if necessary.
4253 (grub_net_fini_hw): New function.
4254 (grub_net_restore_hw): Likewise.
4255 (fini_hnd): New variable.
4256 (GRUB_MOD_INIT): Register preboot hook.
4257 (GRUB_MOD_FINI): Run and unregister preboot hook.
4258
4259 Poll network cards when idle.
4260
4261 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
4262 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
4263 * grub-core/net/net.c (receive_packets): Save last poll time.
4264 (grub_net_poll_cards_idle_real): New function.
4265 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
4266 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
4267 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
4268
4269 Rename ofnet interfaces.
4270
4271 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
4272 (grub_ofnet_findcards): Use ofnet_%s names.
4273
4274 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
4275
4276 Cleanup socket opening.
4277
4278 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
4279 (grub_net_fs_close): Likewise.
4280 (grub_net_fs_read_real): Use eof member.
4281 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
4282 (+grub_net_udp_close): New inline function.
4283
4284 * include/grub/net/tftp.h: Moved to the top of ...
4285 * grub-core/net/tftp.c: ... here.
4286 * include/grub/net/ip.h: Moved mostly to the top of ...
4287 * grub-core/net/ip.c: ... here.
4288 * include/grub/net/ethernet.h: Moved mostly to the top of ...
4289 * grub-core/net/ethernet.c: ... here.
4290
4291 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
4292
4293 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
4294 FS name.
4295
4296 * include/grub/net/ip.h (ipv4_ini): Removed.
4297 (ipv4_fini): Likewise.
4298
4299 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
4300 (grub_net_send_ip_packets): Likewise.
4301
4302 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
4303
4304 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
4305 grub_read_cmos prototype.
4306
4307 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
4308
4309 VGA text support in qemu-mips
4310
4311 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
4312 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
4313 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
4314 text.
4315 * grub-core/kern/i386/qemu/init.c: Renamed to ...
4316 * grub-core/kern/vga_init.c: ... this.
4317 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
4318 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
4319 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
4320 Adjust.
4321 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
4322 GRUB_MACHINE_PCI_IO_BASE.
4323
4324 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
4325
4326 MIPS qemu flash support.
4327
4328 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
4329 magic.
4330 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
4331 (grub_machine_init): Probe memory if its size isn't known.
4332 * util/grub-mkimage.c (image_targets): Add flash targets.
4333 (generate_image): Handle flash targets.
4334
4335 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
4336
4337 MIPS qemu at_keyboard support.
4338
4339 * gentpl.py (videoinkernel): Add qemu-mips.
4340 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
4341 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
4342 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
4343 modules.
4344 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
4345 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
4346 * grub-core/term/serial.c (grub_serial_register)
4347 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
4348
4349 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
4350
4351 CMOS support on sparc.
4352
4353 * gentpl.py (cmos): Add powerpc and sparc.
4354 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
4355 powerpc and sparc.
4356 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
4357 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
4358 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
4359 grub_set_datetime_cmos.
4360 * grub-core/lib/ieee1275/cmos.c: New file.
4361 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
4362 (find_rtc): Set no_ieee1275_rtc on error.
4363 (grub_get_datetime): Call grub_get_datetime_cmos on error.
4364 (grub_set_datetime): Call grub_set_datetime_cmos on error.
4365 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
4366 fail. Move value to argument. All users updated
4367 (grub_cmos_write): Likewise.
4368 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
4369 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
4370 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
4371 grub_get_datetime_cmos and grub_set_datetime_cmos.
4372
4373 2011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
4374
4375 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
4376 sourcing grub-mkconfig_lib.
4377 * util/update-grub_lib.in: Likewise.
4378 * util/grub.d/00_header.in: Likewise.
4379 * util/grub.d/10_hurd.in: Likewise.
4380 * util/grub.d/10_kfreebsd.in: Likewise.
4381 * util/grub.d/10_linux.in: Likewise.
4382 * util/grub.d/10_netbsd.in: Likewise.
4383 * util/grub.d/10_windows.in: Likewise.
4384 * util/grub.d/20_linux_xen.in: Likewise.
4385 * util/grub.d/30_os-prober.in: Likewise.
4386
4387 2011-06-28 Colin Watson <cjwatson@ubuntu.com>
4388
4389 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
4390 default_bg_color rather than black.
4391 (grub_gfxterm_fullscreen): Likewise.
4392 (grub_gfxterm_background_color_cmd): Save new background color in
4393 default_bg_color.
4394
4395 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
4396
4397 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
4398
4399 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
4400
4401 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
4402 mismerge.
4403
4404 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
4405
4406 Chainloading on coreboot support.
4407
4408 * grub-core/Makefile.core.def (chain): Add coreboot.
4409 * grub-core/loader/i386/coreboot/chainloader.c: New file.
4410
4411 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
4412
4413 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
4414 if it happens.
4415
4416 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
4417
4418 Implement time command.
4419
4420 * grub-core/Makefile.core.def (time): New module.
4421 * grub-core/commands/time.c: New file.
4422 * grub-core/script/parser.y: Remove "time" keyword.
4423 * grub-core/script/yylex.l: Likewise.
4424
4425 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
4426
4427 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
4428
4429 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
4430
4431 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
4432 when handling leftovers.
4433
4434 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
4435
4436 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
4437 so that help2man doesn't fail.
4438
4439 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
4440
4441 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
4442 type in pointers on sparc64.
4443 (get_card_packet): Likewise.
4444
4445 2011-06-27 Colin Watson <cjwatson@ubuntu.com>
4446
4447 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
4448 with `*'.
4449 (grub_cmd_videoinfo): Fetch current video mode.
4450
4451 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
4452
4453 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
4454 because of underlying system restrictions.
4455
4456 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
4457
4458 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
4459 necessary.
4460
4461 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
4462
4463 Coreboot video support.
4464
4465 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
4466 (vbe): Likewise.
4467 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
4468 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
4469 here ...
4470 * grub-core/kern/i386/int.S: ... here.
4471 * grub-core/video/i386/pc/vbe.c: Updated includes.
4472 * grub-core/video/i386/pc/vga.c: Likewise.
4473 * include/grub/i386/coreboot/memory.h
4474 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
4475 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
4476 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
4477 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
4478 Disable interrupts.
4479 * include/grub/i386/pc/vga.h: Removed. All users updated.
4480
4481 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
4482
4483 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
4484 definitions for dprintf.
4485 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
4486
4487 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
4488
4489 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
4490 prototype.
4491 (get_card_packet): Likewise.
4492
4493 2011-06-26 Yves Blusseau <blusseau@zetam.org>
4494
4495 Display the path of the file when file is not found
4496
4497 * grub-core/fs/fat.c: Display the filename when file is not found.
4498 * grub-core/fs/fshelp.c: Likewise.
4499 * grub-core/fs/hfs.c: Likewise.
4500 * grub-core/fs/jfs.c: Likewise.
4501 * grub-core/fs/minix.c: Likewise.
4502 * grub-core/fs/ufs.c: Likewise.
4503 * grub-core/fs/btrfs.c: Likewise.
4504 * grub-core/commands/i386/pc/play.c: Likewise.
4505
4506 2011-06-26 Szymon Janc <szymon@janc.net.pl>
4507
4508 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
4509 pointer checks before calling grub_free().
4510 * grub-core/commands/wildcard.c (match_devices): Likewise.
4511 * grub-core/commands/wildcard.c (match_files): Likewise.
4512 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
4513 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
4514 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
4515 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
4516 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
4517 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
4518 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
4519 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
4520 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
4521
4522 2011-06-25 Patrick <p55@mailinator.com>
4523
4524 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
4525
4526 2011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
4527
4528 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
4529 (grub_pxe_send): Likewise.
4530 (GRUB_MOD_INIT): Fix types.
4531
4532 2011-06-24 Szymon Janc <szymon@janc.net.pl>
4533
4534 * grub-core/io/xzio.c: Fix code style issues
4535
4536 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
4537 2011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
4538
4539 Network infrastructure.
4540 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
4541
4542 * include/grub/net/arp.h: New file.
4543 * include/grub/net/device.h: Likewise.
4544 * include/grub/net/ethernet.h: Likewise.
4545 * include/grub/net/ip.h: Likewise.
4546 * include/grub/net/netbuff.h: Likewise.
4547 * include/grub/net/tftp.h: Likewise.
4548 * include/grub/net/udp.h: Likewise.
4549 * include/grub/ieee1275/ofnet.h: Likewise.
4550 * include/grub/emu/export.h: Likewise.
4551 * include/grub/net.h: Likewise.
4552 * grub-core/net/arp.c: Likewise.
4553 * grub-core/net/ethernet.c: Likewise.
4554 * grub-core/net/ip.c: Likewise.
4555 * grub-core/net/udp.c: Likewise.
4556 * grub-core/net/tftp.c: Likewise.
4557 * grub-core/net/netbuff.c: Likewise.
4558 * grub-core/net/net.c: Likewise.
4559 * grub-core/net/drivers/emu/emunet.c: Likewise.
4560 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
4561 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
4562 export.h.
4563 * grub-core/Makefile.core.def (net): New module.
4564 (tftp): Likewise.
4565 (ofnet): Likewise.
4566 (emunet): Likewise.
4567 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
4568 network protocols.
4569 * grub-core/kern/device.c (grub_net_open) : New variable.
4570 (grub_device_open): Handle network device.
4571 (grub_device_close): Likewise.
4572 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
4573 (grub_grubnet_fini): Likewise.
4574 (grub_file_seek): Seek in network device.
4575 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
4576 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
4577 network root.
4578 (grub_machine_fini): Call grub_grubnet_fini.
4579 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
4580 network.
4581 (grub_ieee1275_get_aliasdevname): New function.
4582 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
4583 Add unofficial Solaris network info.
4584 (grub_multiboot_make_mbi): Likewise.
4585 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
4586 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
4587 * include/grub/device.h (grub_fs): Removed.
4588 * include/grub/err.h (grub_err_t): Add network-related values.
4589 * include/grub/i386/pc/pxe.h: Removed bootp parts.
4590 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
4591 (grub_ieee1275_get_aliasdevname): New proto.
4592 * include/grub/net.h: Rewritten.
4593
4594 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
4595
4596 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
4597 names.
4598
4599 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
4600
4601 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
4602 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
4603 it truncates the output.
4604 Reported by: Ximin Luo.
4605
4606 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
4607
4608 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
4609
4610 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
4611
4612 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
4613 partmap before abstraction.
4614
4615 2011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
4616
4617 * util/grub-mkconfig_lib.in: Add missing quotes.
4618
4619 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
4620
4621 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
4622 old method if mountinfo would return /dev/root and /dev/root doesn't
4623 exist.
4624
4625 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
4626
4627 ZFS zlib support
4628
4629 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
4630 (decomp_table): Add zlib entries.
4631 (zio_read): USe 8 bits for compression function rather than 3.
4632 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
4633
4634 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
4635
4636 * grub-core/disk/ahci.c: Add missing license statements.
4637 * grub-core/fs/romfs.c: Likewise.
4638 * grub-core/lib/ia64/setjmp.S: Likewise.
4639 * grub-core/loader/i386/pc/freedos.c: Likewise.
4640 * grub-core/loader/ia64/efi/linux.c: Likewise.
4641 * grub-core/video/colors.c: Likewise.
4642 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
4643
4644 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
4645
4646 AHCI support.
4647
4648 * grub-core/Makefile.core.def (ata_pthru): Removed.
4649 (ahci): New module.
4650 (pata): Likewise.
4651 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
4652 on unload.
4653 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
4654 readwrite.
4655 (grub_hdparm_do_check_powermode_cmd): Likewise.
4656 (grub_hdparm_do_smart_cmd): Likewise.
4657 (grub_hdparm_set_val_cmd): Likewise.
4658 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
4659 * grub-core/disk/ahci.c: New file.
4660 * grub-core/disk/ata.c: Factor out the low-level part into ...
4661 * grub-core/disk/pata.c: ... here.
4662 * grub-core/disk/ata_pthru.c: Contents moved to ...
4663 * grub-core/disk/pata.c: ... here.
4664 * grub-core/disk/scsi.c (grub_scsi_names): New array.
4665 (grub_scsi_iterate): Use grub_scsi_names.
4666 (grub_scsi_open): Likewise.
4667 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
4668 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
4669 (grub_ata_regs_t): New struct.
4670 (grub_disk_ata_pass_through_parms): Likewise.
4671 (grub_ata_device): Renamed to ...
4672 (grub_ata): ... this.
4673 (grub_ata_dev): New struct.
4674 Removed all low-level inline functions.
4675 * include/grub/scsi.h: Add PATA and AHCI subsystems.
4676 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
4677 iterate hooks and open. All users updated.
4678 * util/grub-install.in: Handle AHCI disk module.
4679
4680 2011-06-23 Szymon Janc <szymon@janc.net.pl>
4681
4682 Add support for DRI and RSTn markers in JPEG files.
4683
4684 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
4685 (JPEG_MARKER_RST0): Likewise.
4686 (JPEG_MARKER_RST1): Likewise.
4687 (JPEG_MARKER_RST2): Likewise.
4688 (JPEG_MARKER_RST3): Likewise.
4689 (JPEG_MARKER_RST4): Likewise.
4690 (JPEG_MARKER_RST5): Likewise.
4691 (JPEG_MARKER_RST6): Likewise.
4692 (JPEG_MARKER_RST7): Likewise.
4693 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
4694 (grub_jpeg_decode_dri): New function.
4695 (grub_jpeg_decode_sos): Move image data related part into
4696 grub_jpeg_decode_data function.
4697 (grub_jpeg_decode_data): New function.
4698 (grub_jpeg_reset): New function.
4699 (grub_jpeg_decode_jpeg): Handle new markers.
4700
4701 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
4702
4703 * util/ieee1275/ofpath.c (check_sas): Close fd.
4704 (main): Free of_path.
4705 Reported by: David Volgyes <dvolgyes>.
4706
4707 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
4708
4709 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
4710 Reported by: David Volgyes <dvolgyes>.
4711
4712 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
4713
4714 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
4715 file after stat.
4716 Reported by: David Volgyes <dvolgyes>.
4717
4718 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
4719
4720 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
4721
4722 Reported by: David Volgyes <dvolgyes>.
4723
4724 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
4725
4726 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
4727 Prevent memory leak.
4728
4729 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
4730
4731 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
4732 (main): Close file.
4733 Reported by: David Volgyes <dvolgyes>.
4734
4735 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
4736
4737 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
4738 to continue if allocation is failed.
4739
4740 Reported by: David Volgyes <dvolgyes>.
4741
4742 2011-06-23 David Volgyes <dvolgyes>
4743
4744 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
4745 dereference.
4746
4747 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
4748
4749 Fix spurious warning.
4750
4751 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
4752 (acorn_partition_map_find): Use .bin member.
4753
4754 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
4755
4756 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
4757 /dev/root as a valid device.
4758
4759 2011-06-23 Jim Meyering <meyering@redhat.com>
4760
4761 Avoid NULL deref in grub_device_open.
4762
4763 * grub-core/kern/device.c (grub_device_open): Don't dereference
4764 a NULL pointer upon failed grub_env_get.
4765
4766 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
4767
4768 Support non-512B sectors and agglomerate reads.
4769
4770 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
4771 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
4772 (disk_io_guid): Removed.
4773 (make_devices): Locate solely by BlockIO.
4774 (grub_efidisk_open): Fill log_sector_size and total_sectors.
4775 (grub_efidisk_read): Use read_blocks.
4776 (grub_efidisk_write): Use write_blocks.
4777 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
4778 log_sector_size.
4779 (get_safe_sectors): Handle non-512B sectors.
4780 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
4781 sectors.
4782 (grub_biosdisk_write): Handle non-512B sectors.
4783 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
4784 (grub_scsi_read): Remove special non-512B block handling (now handled
4785 one level up).
4786 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
4787 and do sanity checks.
4788 (grub_disk_adjust_range): Handle non-512B sectors.
4789 (transform_sector): New function.
4790 (grub_disk_read_small): Likewise.
4791 (grub_disk_read): Rewritten.
4792 (grub_disk_write): Handle non-512B sectors.
4793 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
4794 log_sector_size.
4795 (open_device): Use log_sector_size.
4796 (grub_util_biosdisk_read): Likewise.
4797 (grub_util_biosdisk_write): Likewise.
4798 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
4799 non-512B sectors.
4800 (pc_partition_map_embed): Likewise.
4801 * include/grub/disk.h (grub_disk): New field log_sector_size.
4802 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
4803 (GRUB_DISK_CACHE_BITS): Increased to 6.
4804 * util/grub-fstest.c (fstest): New command testload.
4805 (argp_parser): Likewise.
4806
4807 2011-06-16 Robert Millan <rmh@gnu.org>
4808
4809 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
4810 `ata' driver on kernel of FreeBSD 9.
4811
4812 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
4813 (get_ataraid_disk_name): New functions.
4814 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
4815 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
4816 get_ataraid_disk_name() and get_ada_disk_name().
4817
4818 2011-06-13 Colin Watson <cjwatson@ubuntu.com>
4819
4820 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
4821 input format.
4822
4823 2011-05-29 Colin Watson <cjwatson@ubuntu.com>
4824
4825 * docs/grub.texi (Obtaining and Building GRUB): Substitute
4826 `ftp.gnu.org' for `alpha.gnu.org'.
4827
4828 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
4829
4830 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
4831 partitions under /dev/disk/by-id/.
4832
4833 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
4834
4835 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
4836 after ten consecutive open failures. Scanning all the way up to
4837 10000 is excessive and can cause serious performance problems in
4838 some configurations.
4839 Fixes Ubuntu bug #787461.
4840
4841 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
4842
4843 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
4844 opening new one.
4845
4846 2011-05-21 Colin Watson <cjwatson@ubuntu.com>
4847 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
4848
4849 Don't stat devices unless we have to.
4850
4851 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
4852 dir == /dev/mapper.
4853 (grub_guess_root_device): Use already known os_dev if possible.
4854 * grub-core/kern/emu/hostdisk.c
4855 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
4856 if device is known to be a dm one.
4857
4858 2011-05-20 Colin Watson <cjwatson@ubuntu.com>
4859
4860 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
4861 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
4862 Reported by: Pawel Tecza.
4863
4864 2011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
4865
4866 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
4867 (lsefisystab): Likewise.
4868 (lssal): Likewise.
4869 (lsefimmap): Likewise.
4870 (hdparm): Enable on qemu-mips.
4871 (setjmp): Add ia64 nodist.
4872 (serial): Simplify tags.
4873
4874 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
4875
4876 * Makefile.util.def (grub-ofpathname): Install manual page.
4877
4878 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
4879
4880 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
4881
4882 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
4883
4884 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
4885
4886 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
4887
4888 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
4889 into dprintf.
4890
4891 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
4892
4893 Use full 64-bit division.
4894
4895 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
4896 (grub_divmod64): ... this.
4897 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
4898 version.
4899
4900 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
4901
4902 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
4903 `source'.
4904
4905 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
4906
4907 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
4908 to avoid accidents when debugging with 'sh -x'.
4909 * grub-core/gensyminfo.sh.in: Likewise.
4910 * tests/example_scripted_test.in: Likewise.
4911 * tests/grub_cmd_regexp.in: Likewise.
4912 * tests/grub_script_blanklines.in: Likewise.
4913 * tests/grub_script_dollar.in: Likewise.
4914 * tests/grub_script_expansion.in: Likewise.
4915 * tests/grub_script_final_semicolon.in: Likewise.
4916 * tests/partmap_test.in: Likewise.
4917 * tests/util/grub-shell-tester.in: Likewise.
4918 * tests/util/grub-shell.in: Likewise.
4919
4920 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
4921
4922 Move gfxmenu color handling to video, so that gfxterm can use it
4923 too.
4924
4925 * grub-core/gfxmenu/named_colors.c: Move to ...
4926 * grub-core/video/colors.c: ... here. Rename
4927 grub_gui_get_named_color to grub_video_get_named_color.
4928 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
4929 * grub-core/video/colors.c (my_isxdigit): ... here.
4930 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
4931 Move to ...
4932 * grub-core/video/colors.c (parse_hex_color_component): ... here.
4933 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
4934 to ...
4935 * grub-core/video/colors.c (grub_video_parse_color): ... here.
4936
4937 * include/grub/gui.h (grub_gui_color_t): Move to ...
4938 * include/grub/video.h (grub_video_rgba_color_t): ... here.
4939 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
4940 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
4941 * include/grub/gui.h (grub_gui_map_color): Move to ...
4942 * include/grub/video.h (grub_video_map_rgba_color): ... here.
4943 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
4944 to ...
4945 * include/grub/video.h (grub_video_get_named_color): ... here.
4946 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
4947 * include/grub/video.h (grub_video_parse_color): ... here.
4948
4949 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
4950 video/colors.c.
4951 (gfxmenu): Remove gfxmenu/named_colors.c.
4952 (video) [videomodules]: Add video/colors.c.
4953
4954 Add a background_color command.
4955
4956 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
4957 function.
4958 (GRUB_MOD_INIT): Register background_color command.
4959 (GRUB_MOD_FINI): Unregister background_color command.
4960 (redraw_screen_rect): Allow blend/replace of text layer to be
4961 controlled independently from whether there is a background bitmap.
4962 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
4963 changing bitmap.
4964
4965 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
4966
4967 Patch BPB in ntldr and chainloader --bpb.
4968
4969 * grub-core/fs/fat.c: Include grub/fat.h.
4970 (grub_fat_bpb): Moved to ...
4971 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
4972 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
4973 grub/ntfs.h.
4974 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
4975 Moved from here...
4976 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
4977 here.
4978 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
4979 New function.
4980 (grub_chainloader_cmd): Patch BPB if --bpb is given.
4981 (GRUB_MOD_INIT): Show --bpb.
4982 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
4983 * grub-core/normal/main.c (features): New variable.
4984 (GRUB_MOD_INIT): Set feature_* variables.
4985 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
4986 proto.
4987 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
4988
4989 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
4990
4991 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
4992 for cleanness.
4993
4994 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
4995
4996 FreeDOS direct loading support.
4997
4998 * docs/grub.texi (Supported OS): Add FreeDOS.
4999 * grub-core/Makefile.core.def (freedos): New module.
5000 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
5001 variable.
5002 (grub_relocator16_boot): Handle %ebx.
5003 * grub-core/lib/i386/relocator16.S: Likewise.
5004 * grub-core/loader/i386/pc/freedos.c: New file.
5005
5006 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
5007
5008 Long Linux command line support.
5009
5010 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
5011 (maximal_cmdline_size): New variable.
5012 (allocate_pages): Use maximal_cmdline_size.
5013 (grub_cmd_linux): Set and use maximal_cmdline_size.
5014 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
5015 (allocate_pages): Use maximal_cmdline_size.
5016 (grub_cmd_linux): Set and use maximal_cmdline_size.
5017 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
5018 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
5019 and cmdline_size.
5020
5021 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
5022 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
5023
5024 Improve devmapper support
5025
5026 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
5027 (grub_util_is_lvm): New function.
5028 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
5029 than lvm if not dmraid.
5030 Handle mapped md nodes.
5031 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
5032 (grub_util_device_is_mapped): ... this. Make always available. All users
5033 updated.
5034 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
5035 (convert_system_partition_to_system_disk): Handle lvm, mpath and
5036 dmraid nodes.
5037 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
5038
5039 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
5040
5041 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
5042
5043 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
5044 * grub-core/modinfo.sh.in: New file.
5045 * grub-core/Makefile.core.def (modinfo.sh): New script.
5046 * util/grub-mknetdir.in: Use modinfo.sh.
5047 * util/grub-mkrescue.in: Likewise.
5048
5049 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
5050
5051 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
5052 Fix potential usage of Elf32 instead of Elf64 when compiling on
5053 32-bit architecture. Add endianness macros while on it.
5054
5055 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
5056
5057 Use mipsel- rather than mips- in directories involving mipsel ports to
5058 allow both endiannesses coexist.
5059
5060 * configure.ac: proparate target_cpu=mipsel rather than resetting to
5061 mips. All conditions adjusted.
5062 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
5063 variable.
5064 * util/grub-install.in: Adjust conditions to take renaming into account.
5065 * util/grub-mkimage.c (image_targets): Likewise. New target
5066 mips-qemu_mips-elf for bigendian mips.
5067
5068 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
5069
5070 Avoid unnecessary copying on MIPS.
5071
5072 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
5073 early if src == dest.
5074 * util/grub-mkimage.c (generate_image): Arange for src == dest if
5075 compression is none.
5076
5077 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
5078
5079 Reduce memory footprint on SGI by putting modules before the kernel
5080 as opposed to after.
5081
5082 * grub-core/Makefile.core.def (kernel): Increase linking address.
5083 (none_decompress): Likewise.
5084 (xz_decompress): Likewise.
5085 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
5086 address.
5087 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
5088 layout change.
5089 (grub_arch_modules_addr): New function.
5090 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
5091 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
5092 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
5093 here.
5094 * grub-core/kern/mips/startup.S (total_size): Rename to ...
5095 (grub_total_modules_size): ... this. Make global.
5096 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
5097 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
5098 New definition.
5099 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
5100 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
5101 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
5102 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
5103 * util/grub-mkimage.c (image_target_desc): New flag
5104 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
5105 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
5106 (generate_image): Handle images with modules before kernel.
5107
5108 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
5109
5110 Prevent potential loss of memory map by overwrite on qemu-mips.
5111
5112 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
5113 Save ram size in $s4.
5114 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
5115 All users changed to grub_arch_memsize.
5116 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
5117 Loongson.
5118 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
5119 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
5120 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
5121 external variable.
5122
5123 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
5124
5125 * .bzrignore: Remove grub-dumpbios.
5126
5127 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
5128
5129 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
5130 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
5131 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
5132 existing options which append).
5133 * docs/grub.texi (Simple configuration): Document new options.
5134 Reported by: Ian Jackson. Fixes Debian bug #617538.
5135
5136 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
5137
5138 * util/grub-fstest.c (cmd_cat): New function.
5139 (fstest): Handle CMD_CAT.
5140 (options): Add cat.
5141 (argp_parser): Handle cat.
5142
5143 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
5144
5145 * Makefile.util.def (grub-bin2h): Don't install.
5146 * docs/man/grub-bin2h.h2m: Remove.
5147
5148 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
5149
5150 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
5151 place.
5152
5153 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
5154
5155 Reenable qemu-mips port.
5156
5157 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
5158 Fix small arc bug while on it.
5159 * gentpl.py: Handle qemu_mips.
5160 * grub-core/Makefile.am: Likewise.
5161 * grub-core/Makefile.core.def: Likewise.
5162 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
5163 inappropriate includes.
5164 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
5165 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
5166 * grub-core/kern/main.c (grub_modules_get_end)
5167 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
5168 * grub-core/kern/mips/qemu-mips: Moved to ..
5169 * grub-core/kern/mips/qemu_mips: ... this.
5170 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
5171 (grub_machine_init): Call terminfo_init and serial_init.
5172 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
5173 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
5174 New variable.
5175 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
5176 parameter passing.
5177 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
5178 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
5179 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
5180 * include/grub/mips/qemu_mips/cmos.h: New file.
5181 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
5182 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
5183 Removed.
5184 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
5185 Use correct mips-style address.
5186 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
5187 (GRUB_TICKS_PER_SECOND): Removed.
5188 (grub_get_rtc): Likewise.
5189 (grub_cpu_idle): Likewise.
5190 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
5191 New definition.
5192 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
5193 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
5194 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
5195 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
5196 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
5197 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
5198 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
5199 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
5200
5201 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
5202
5203 SGI ARCS port.
5204
5205 * Makefile.util.def (libgrubmods.a): Add dvh.c.
5206 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
5207 platforms.
5208 * configure.ac: New target mips-arc.
5209 * gentpl.py: Likewise.
5210 * grub-core/Makefile.am: Likewise.
5211 * grub-core/Makefile.core.def: Likewise.
5212 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
5213 (none_decompress): Likewise.
5214 (lsdev): New module.
5215 (datetime): Use lib/arc/datetime.c on ARC.
5216 (part_dvh): New module.
5217 * grub-core/commands/arc/lsdev.c: New file.
5218 * grub-core/disk/arc/arcdisk.c: Likewise.
5219 * grub-core/kern/mips/arc/init.c: Likewise.
5220 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
5221 aligned addresses.
5222 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
5223 support.
5224 (grub_arch_dl_relocate_symbols): Likewise.
5225 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
5226 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
5227 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
5228 platforms.
5229 * grub-core/lib/arc/datetime.c: New file.
5230 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
5231 pci.h on non-loongson.
5232 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
5233 (grub_linux_boot): Set unused registers to 0.
5234 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
5235 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
5236 * grub-core/mmap/mips/uppermem.c: ...here.
5237 * grub-core/partmap/dvh.c: New file.
5238 * grub-core/term/arc/console.c: Likewise.
5239 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
5240 (grub_terminfo_set_current): Add terminal "arc".
5241 (grub_terminfo_readkey): Support ARC sequences.
5242 * include/grub/arc/arc.h: New file.
5243 * include/grub/arc/console.h: Likewise.
5244 * include/grub/disk.h (grub_disk_dev_id): Add
5245 GRUB_DISK_DEVICE_ARCDISK_ID.
5246 * include/grub/mips/arc/kernel.h: New file.
5247 * include/grub/mips/arc/memory.h: Likewise.
5248 * include/grub/mips/arc/time.h: Likewise.
5249 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
5250 * include/grub/mips/kernel.h (grub_halt): ... here.
5251 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
5252 here...
5253 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
5254 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
5255 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
5256 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
5257 proto.
5258 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
5259 from here ...
5260 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
5261 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
5262 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
5263 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
5264 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
5265 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
5266 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
5267 (grub_phys_addr_t): Moved from here ...
5268 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
5269 (grub_vtop): Moved from here ...
5270 * include/grub/mips/memory.h (grub_vtop): ... here.
5271 (grub_map_memory): Moved from here ...
5272 * include/grub/mips/memory.h (grub_map_memory): ... here.
5273 (grub_unmap_memory): Moved from here ...
5274 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
5275 (grub_machine_mmap_iterate): Moved from here ...
5276 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
5277 (grub_mmap_get_lower): Moved from here ...
5278 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
5279 (grub_mmap_get_upper): Moved from here ...
5280 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
5281 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
5282 here ...
5283 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
5284 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
5285 here ...
5286 * include/grub/mips/time.h (grub_get_rtc): ... here.
5287 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
5288 here ...
5289 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
5290 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
5291 here ...
5292 * include/grub/mips/time.h (grub_cpu_idle): ... here.
5293 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
5294 definition.
5295 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
5296 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
5297 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
5298 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
5299 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
5300 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
5301 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
5302 (GRUB_MACHINE_LINK_ADDR): Likewise.
5303 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
5304 to 6.
5305 * util/grub-install.in: Run dvhtool on ARC.
5306 * util/grub-mkimage.c (image_targets): Add mips-arc.
5307 (generate_image): Handle ECOFF output for mips-arc.
5308
5309 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
5310
5311 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
5312 blocks.
5313
5314 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
5315
5316 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
5317 after enabling port.
5318
5319 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
5320
5321 Skip incorrect USB devices.
5322
5323 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
5324 configcnt == 0.
5325 * include/grub/usb.h (grub_usb_err_t): New enum value
5326 GRUB_USB_ERR_BADDEVICE.
5327
5328 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
5329
5330 Fuloong video init support.
5331
5332 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
5333 well.
5334 (grub_vga_read_arx): New function.
5335 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
5336 definition.
5337 (framebuffer): New members io, mmioptr and mmiobase.
5338 (read_sis_cmd): New function.
5339 (write_sis_cmd): Likewise.
5340 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
5341 rather than 640x400.
5342 * grub-core/video/sis315_init.c: New file.
5343
5344 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
5345
5346 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
5347 non-loongson.
5348 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
5349 to grub_dl_register_symbol.
5350
5351 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
5352
5353 Fix compilation errors.
5354
5355 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
5356 potentially unused.
5357 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
5358 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
5359 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
5360 to loongson machines.
5361
5362 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
5363
5364 Several FS mtime support.
5365
5366 * grub-core/fs/affs.c (grub_affs_time): New struct.
5367 (grub_affs_file): New field mtime.
5368 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
5369 type. Removed 'size'. New field 'di'. All users updated.
5370 (grub_affs_mount): Simplify checsum checking.
5371 (grub_affs_iterate_dir): New helper grub_affs_create_node.
5372 (grub_affs_dir): Handle mtime.
5373 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
5374 (grub_cpio_dir): Likewise.
5375 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
5376 (grub_hfs_filerec): New field mtime.
5377 (grub_hfs_dir): Handle mtime.
5378 (grub_hfs_mtime): New function.
5379 (grub_hfs_fs): Register grub_hfs_mtime.
5380 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
5381 (grub_iso9660_dir): New field mtime.
5382 (grub_fshelp_node): New field dirent.
5383 (iso9660_to_unixtime): New function.
5384 (iso9660_to_unixtime2): Likewise.
5385 (grub_iso9660_read_symlink): Use node->dirent.
5386 (grub_iso9660_iterate_dir): Likewise.
5387 (grub_iso9660_dir): Set mtime.
5388 (grub_iso9660_mtime): New function.
5389 (grub_iso9660_fs): Register grub_iso9660_mtime.
5390 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
5391 (grub_jfs_inode): New fields atime, ctime and mtime.
5392 (grub_jfs_dir): Set mtime.
5393 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
5394 * grub-core/fs/ntfs.c (list_file): Set mtime.
5395 (grub_ntfs_dir): Likewise.
5396 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
5397 (grub_reiserfs_iterate_dir): Set mtime.
5398 (grub_reiserfs_dir): Likewise.
5399 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
5400 (grub_fshelp_node): Likewise.
5401 (grub_sfs_iterate_dir): Set mtime.
5402 (grub_sfs_dir): Likewise.
5403 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
5404 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
5405 (grub_xfs_inode): New fields atime, mtime, ctime.
5406 (grub_xfs_dir): Set mtime.
5407 * include/grub/datetime.h (grub_datetime2unixtime): New function.
5408 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
5409 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
5410
5411 Support UDF symlinks.
5412
5413 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
5414 (grub_ufs_read_symlink): New function. All users updated.
5415
5416 Check amiga partmap checksum.
5417
5418 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
5419 (grub_amiga_partition): Likewise.
5420 (amiga_partition_map_checksum): New function.
5421 (amiga_partition_map_iterate): Check checksum.
5422
5423 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
5424
5425 ROMFS support.
5426
5427 * Makefile.util.def (libgrubmods.a): Add romfs.
5428 * grub-core/Makefile.core.def (romfs): New module.
5429 * grub-core/fs/romfs.c: New file.
5430
5431 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
5432
5433 Squashfs v4 support.
5434
5435 * Makefile.util.def (libgrubmods.a): Add squash4.
5436 * grub-core/Makefile.core.def (squash4): New module.
5437 * grub-core/fs/squash4.c: New file.
5438 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
5439 disk_input_start, disk_input.
5440 (get_byte): Handle disk_input.
5441 (grub_zlib_disk_read): New function.
5442 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
5443
5444 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
5445 2011-05-15 Feiran Zheng <famcool@gmail.com>
5446
5447 * Makefile.util.def (libgrubmods.a): Add minix3.
5448 * grub-core/Makefile.core.def (minix3): New module.
5449 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
5450 (GRUB_MINIX_BSIZE): Removed.
5451 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
5452 (grub_minix_ino_t): New type.
5453 (grub_minix_le_to_cpu_ino): New macro.
5454 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
5455 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
5456 (grub_minix_data): New field block_size.
5457 (grub_minix_read_file): Handle 64-bit correctly.
5458 * grub-core/fs/minix3.c: New file.
5459
5460 2011-05-15 Tristan Gingold <gingold@free.fr>
5461 2011-05-15 Robert Millan <rmh.grub@aybabtu.com>
5462 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
5463
5464 IA64 support.
5465
5466 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
5467 * configure.ac: Add ia64-efi target.
5468 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
5469 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
5470 * gentpl.py: Add ia64_efi platform.
5471 Rename x86_efi to efi and Add ia64-efi. All users updated.
5472 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
5473 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
5474 Remove kern/generic/rtc_get_time_ms.c on EFI.
5475 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
5476 kern/ia64/dl_helper.c on ia64-efi.
5477 Add kern/emu/cache.c on emu.
5478 (linux): Use on loader/ia64/efi/linux.c on ia64.
5479 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
5480 whether symbol is a function.
5481 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
5482 (grub_symbol): New field 'isfunc'.
5483 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
5484 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
5485 (grub_dl_load_segments): Place all sections into the same region.
5486 [__ia64__]: Create trampolines and got.
5487 [GRUB_MACHINE_EMU]: Call mprotect.
5488 (grub_dl_resolve_symbols): Resolve symbol type as well.
5489 [__ia64__]: Create function descriptors.
5490 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
5491 (grub_rtc_get_time_ms): ... this. Expressions simplified.
5492 (grub_get_rtc): New function.
5493 * grub-core/kern/emu/cache.c [__ia64__]: New file.
5494 * grub-core/kern/emu/cache.S: Renamed to ...
5495 * grub-core/kern/emu/cache_s.S: ... this.
5496 [__ia64__]: Add a nop.
5497 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
5498 [__ia64__]: New function.
5499 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
5500 * grub-core/kern/ia64/dl.c: New file.
5501 * grub-core/kern/ia64/dl_helper.c: Likewise.
5502 * grub-core/kern/ia64/efi/init.c: New file.
5503 * grub-core/kern/ia64/efi/startup.S: Likewise.
5504 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
5505 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
5506 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
5507 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
5508 * grub-core/loader/ia64/efi/linux.c: New file.
5509 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
5510 (GRUB_MOD_DEP): Likewise.
5511 (grub_dl) [__ia64__]: New fields got and tramp.
5512 (grub_dl): New field 'base'.
5513 (grub_dl_register_symbol): New argument isfunc. All users updated.
5514 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
5515 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
5516 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
5517 (grub_ia64_dl_get_tramp_got_size): New proto.
5518 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
5519 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
5520 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
5521 * include/grub/efi/api.h: Skip call wrappers on ia64.
5522 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
5523 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
5524 * include/grub/elf.h (ELF_ST_INFO): New definition.
5525 * include/grub/ia64/efi/kernel.h: New file.
5526 * include/grub/ia64/efi/memory.h: Likewise.
5527 * include/grub/ia64/efi/time.h: Likewise.
5528 * include/grub/ia64/kernel.h: Likewise.
5529 * include/grub/ia64/setjmp.h: Likewise (from glibc).
5530 * include/grub/ia64/time.h: New file.
5531 * include/grub/ia64/types.h: Likewise.
5532 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
5533 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
5534 New protos.
5535 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
5536 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
5537 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
5538 * util/grub-mkimage.c (image_target_desc): New field pe_target.
5539 All users updated.
5540 (EFI64_HEADER_SIZE): New definition. All users updated.
5541 (image_targets): Add ia64-efi.
5542 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
5543 jumpers_addr. All users updated.
5544 Create function descriptors.
5545 (count_funcs): New function.
5546 (unaligned_uint32): New struct.
5547 (MASK20): New definition.
5548 (MASK19): Likewise.
5549 (MASKF21): Likewise.
5550 (add_value_to_slot_20b): New function.
5551 (add_value_to_slot_21_real): Likewise.
5552 (add_value_to_slot_21): Likewise.
5553 (ia64_kernel_trampoline): New struct.
5554 (nopm): New variable.
5555 (jump): Likewise.
5556 (make_trampoline): New function.
5557 (relocate_addresses): Handle ia64.
5558 (make_reloc_section): Likewise.
5559 (load_image): Likewise.
5560
5561 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
5562
5563 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
5564 warning. Move variables before code while on it.
5565
5566 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
5567
5568 Fuloong support.
5569
5570 * configure.ac: Rename yeeloong platform to loongson. All users updated.
5571 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
5572 * grub-core/boot/mips/loongson/fuloong.S: New file.
5573 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
5574 Explicitly init CS5536.
5575 [FULOONG]: Don't use serial until CS5536 is available.
5576 Set GPIO based on dumps.
5577 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
5578 [FULOONG]: Handle GPIO and memory controller differences.
5579 Parse machine type in $a2.
5580 * grub-core/boot/mips/startup_raw.S: Determine and save the
5581 architecture.
5582 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
5583 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
5584 init on architecture type.
5585 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
5586 SIS315E. Don't init at_keyboard on fuloong.
5587 (grub_halt): Support Fuloong.
5588 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
5589 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
5590 (loongson_machtypes): New array.
5591 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
5592 type.
5593 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
5594 config. All users updated. Handle CS5536 serial.
5595 * grub-core/term/serial.c (grub_serial_register): Conditionalise
5596 default port on machine type. Register serial as inactive.
5597 * grub-core/video/sis315pro.c: New file.
5598 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
5599 definition.
5600 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
5601 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
5602 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
5603 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
5604 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
5605 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
5606 to ...
5607 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
5608 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
5609 definition.
5610 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
5611 (grub_arch_machine): New extern var.
5612 * include/grub/mips/loongson/serial.h
5613 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
5614 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
5615 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
5616 (GRUB_MACHINE_SERIAL_PORT0): ... this.
5617 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
5618 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
5619 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
5620 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
5621 * include/grub/term.h (grub_term_register_input_inactive): New inline
5622 function.
5623 (grub_term_register_output_inactive): Likewise.
5624 * include/grub/video.h (grub_video_driver_id): New value
5625 GRUB_VIDEO_DRIVER_SIS315PRO.
5626 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
5627 New field "names". All users updated.
5628 New field value IMAGE_FULOONG_FLASH.
5629 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
5630
5631 2011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
5632
5633 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
5634 and add some clarification.
5635
5636 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
5637
5638 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
5639 platforms if kernel is compressed.
5640
5641 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
5642
5643 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
5644 unused modules since currently referrence counter isn't reliable and
5645 there isn't much memory to recover there anyway.
5646
5647 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
5648
5649 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
5650 rather than resetting it to allow modules to reference themselves
5651 in init.
5652
5653 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
5654
5655 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
5656 counter on dependencies since grub_dl_unref already handles this.
5657
5658 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
5659
5660 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
5661 on error if not already done.
5662
5663 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
5664
5665 Fix few potential memory misusage.
5666
5667 * grub-core/font/font.c (load_font_index): Don't free char_index to
5668 avoid double free.
5669 (grub_font_load): Zero-fill font at alloc for safety.
5670 Close file on error.
5671 (free_font): Free bmp_idx.
5672
5673 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
5674
5675 * docs/grub.texi (Installation): Fix several outdated claims.
5676
5677 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
5678
5679 Handle module_license on windows.
5680
5681 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
5682 sections shifted.
5683 (insert_string): Make argument const char * instead of char *.
5684 (write_section_data): Handle long section names.
5685 Handle module_license.
5686
5687 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
5688
5689 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
5690 handle class-free menuentries.
5691 (grub_normal_add_menu_entry): Add a check to be sure.
5692
5693 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
5694
5695 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
5696 PgUp and PgDown.
5697
5698 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
5699
5700 * configure.ac: Bump version to 1.99.
5701
5702 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
5703
5704 Give ATA device a bit more time on first try in order to allow disks
5705 to spin up.
5706
5707 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
5708 if dev->present is 1. Reset dev->present on failure.
5709 (grub_ata_device_initialize): Set dev->present to 1.
5710 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
5711 (grub_ata_device): New member 'present'.
5712
5713 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
5714
5715 * util/grub-mkimage.c (generate_image): Update hash.
5716
5717 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
5718
5719 Flush caches on DMA memory.
5720
5721 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
5722 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
5723 (grub_dma_free): Likewise.
5724 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
5725
5726 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
5727
5728 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
5729 to avoid asm treating ld and sd as macros.
5730
5731 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
5732
5733 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
5734 decompressor.
5735
5736 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
5737
5738 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
5739 grub_decompress_core since later would fail if grub_decompress_core
5740 is too far.
5741
5742 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
5743
5744 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
5745 R_MIPS_JALR since it's used by newer compiler.
5746
5747 2011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
5748
5749 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
5750
5751 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
5752
5753 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
5754 file_path to 0 for surety.
5755 (grub_chainloader_boot): Set exit_data to NULL.
5756 Unset the loader once done.
5757 (grub_cmd_chainloader): Fix confusing error message if file is empty.
5758
5759 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
5760
5761 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
5762 unknown key into a dprintf.
5763
5764 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
5765
5766 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
5767 on first non-existant partition.
5768
5769 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
5770
5771 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
5772 openning fails.
5773 Reported by: Mark Korenberg.
5774
5775 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
5776
5777 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
5778 overflow.
5779
5780 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
5781
5782 * util/grub-mkimage.c (main): Explicitely flush and sync the output
5783 before closing to ensure that it will be readable by grub-setup.
5784
5785 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
5786
5787 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
5788 (devpath_1): Use MAKE_PIWG_PATH.
5789 (devpath_2): Likewise.
5790 (devpath_3): Likewise.
5791 (devpath_4): Likewise.
5792 (devpath_5): Likewise.
5793 (devpath_6): Likewise.
5794
5795 The appleldr.mod was checked that to be binary identical to previous
5796 version.
5797
5798 2011-05-05 Zach <mikezackles>
5799
5800 Support 2010 Macbooks.
5801
5802 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
5803 (devs): Add devpath_6.
5804
5805 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
5806
5807 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
5808 /dev/random. /dev/urandom is good enough for our purposes (salting).
5809
5810 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
5811
5812 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
5813
5814 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
5815
5816 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
5817 hexadecimal.
5818
5819 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
5820
5821 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
5822 and not 0 on failure.
5823
5824 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
5825
5826 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
5827 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
5828 disk; otherwise grub_fs_probe will not fall back to the next
5829 filesystem.
5830 (grub_pxefs_open): Likewise, for consistency.
5831 Reported and tested by: Ezekiel Grave.
5832
5833 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
5834
5835 * tests/partmap_test.in: Don't hardcode path to parted.
5836 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
5837
5838 2011-05-01 Colin Watson <cjwatson@ubuntu.com>
5839
5840 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
5841 of `ls' to find out which devices are available.
5842
5843 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
5844
5845 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
5846 than source address for efi mmap buffer.
5847
5848 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
5849
5850 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
5851 wrong action on non-detecting the magic.
5852
5853 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
5854
5855 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
5856 already supplied by another part of the module (fixes compilation on
5857 FreeBSD).
5858
5859 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
5860
5861 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
5862 match the one used by mdadm.
5863
5864 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
5865
5866 * po/README: Add instructions for creating po/LINGUAS.
5867
5868 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
5869
5870 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
5871 #551428.
5872
5873 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
5874 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
5875 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
5876 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
5877 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
5878 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
5879 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
5880 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
5881 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
5882 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
5883 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
5884 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
5885 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
5886 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
5887 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
5888 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
5889 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
5890 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
5891 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
5892 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
5893 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
5894 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
5895
5896 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
5897
5898 * grub-core/kern/emu/getroot.c
5899 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
5900 test that was incorrectly reintroduced in r3214.
5901 Reported by: Ian Dall. Fixes Savannah bug #33133.
5902
5903 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
5904
5905 Fix stack pointer handling in 16-bit relocator.
5906
5907 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
5908 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
5909 Fixes Ubuntu bug #683904.
5910
5911 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
5912
5913 * configure.ac: Bump version to 1.99~rc2.
5914
5915 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
5916
5917 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
5918 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
5919 * grub-core/lib/x86_64/setjmp.S: Likewise.
5920 * grub-core/lib/mips/setjmp.S: Likewise.
5921 * grub-core/lib/powerpc/setjmp.S: Likewise.
5922 * grub-core/lib/sparc64/setjmp.S: Likewise.
5923
5924 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
5925
5926 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
5927 * grub-core/lib/efi/datetime.c: Likewise.
5928
5929 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
5930
5931 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
5932 New function.
5933 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
5934 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
5935 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
5936
5937 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
5938
5939 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
5940 bitmap.
5941 (grub_gfxterm_term_init): Likewise.
5942
5943 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
5944
5945 Take into account the decorations the computing menu entry width.
5946
5947 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
5948 (grub_gfxmenu_create_box): Register get_border_width.
5949 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
5950 if available.
5951 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
5952 get_border_width.
5953
5954 2011-04-18 Endres Puschner <code@e7p.de>
5955
5956 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
5957 Don't skip first class.
5958
5959 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
5960
5961 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
5962 chunks.
5963 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
5964
5965 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
5966
5967 Complete 64-bit division support.
5968
5969 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
5970 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
5971 * include/grub/misc.h (grub_divmod64): Rename to ...
5972 (grub_divmod64_full): ... this.
5973 (grub_divmod64): New inline function.
5974
5975 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
5976
5977 * util/grub-mkimage.c (generate_image): Add forgotten comma.
5978
5979 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
5980
5981 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
5982 performing the necessary test.
5983
5984 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
5985
5986 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
5987 (kfreebsd.elf): Likewise.
5988 (pc-chainloader.elf): Likewise.
5989 (ntldr.elf): Likewise.
5990
5991 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
5992
5993 Identify RAID by its UUID rather than (guessed) name.
5994
5995 * grub-core/disk/raid.c (ascii2hex): New function.
5996 (grub_raid_open): Accept mduuid/%s specification.
5997 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
5998 (get_mdadm_uuid): ... this.
5999 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
6000
6001 2011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
6002
6003 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
6004 to negative size.
6005
6006 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
6007
6008 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
6009 btrfs subvolume.
6010 * util/grub.d/20_linux_xen.in: Likewise.
6011
6012 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
6013
6014 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
6015 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
6016
6017 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
6018 Build a list of relevant visible mounts using the mnt_id and
6019 parent_mnt_id fields, and then scan that list at the end.
6020
6021 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
6022
6023 * docs/grub.texi (normal): New section.
6024 (normal_exit): New section.
6025 (Embedded configuration): Add reference to normal.
6026 (GRUB only offers a rescue shell): Likewise.
6027 * docs/grub-dev.texi (Error Handling): Fix typo.
6028
6029 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
6030
6031 * NEWS: Drop obsolete entry about probe-only btrfs support.
6032
6033 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
6034
6035 * util/import_gcry.py: Fix typo.
6036
6037 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6038
6039 * NEWS: Add btrfs support.
6040
6041 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6042 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
6043
6044 BtrFS support. Written by me (Vladimir) with important bugfixes and
6045 even more important testing by Colin.
6046
6047 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
6048 * grub-core/Makefile.core.def (btrfs): Add crc.c.
6049 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
6050 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
6051 mem_input_off and mem_input. All users updated to accept in-RAM input.
6052 (gzio_seek): New function.
6053 (test_zlib_header): Likewise.
6054 (grub_gzio_read): Likewise.
6055 (grub_zlib_decompress): Likewise.
6056 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
6057 Accept partial and non-virtual mounts.
6058 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
6059 avoid receiving /dev/dm-X as device.
6060 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
6061 Handle bind and partial mounts.
6062 * grub-core/lib/crc.c: New file.
6063 * include/grub/deflate.h: Likewise.
6064 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
6065 proto.
6066 * include/grub/lib/crc.h: New file.
6067
6068 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6069
6070 Implement automatic module license checking according to new GNU
6071 guidelines.
6072
6073 * grub-core/kern/dl.c (grub_dl_check_license): New function.
6074 (grub_dl_load_core): Use grub_dl_check_license.
6075 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
6076 (GRUB_MOD_LICENSE): Likewise.
6077 (GRUB_MOD_DUAL_LICENSE): Likewise.
6078 All modules updated.
6079
6080 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
6081
6082 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
6083 reserved_first_sector to 1. btrfs reserves plenty of space for boot
6084 loaders.
6085 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
6086
6087 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6088
6089 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
6090
6091 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6092
6093 * util/grub-fstest.c (read_file): Report GRUB error if file opening
6094 failed.
6095
6096 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6097
6098 * grub-core/kern/file.c (grub_file_open): Don't take into account the
6099 parenthesis in the middle of the filename.
6100
6101 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
6102
6103 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
6104 rather than trying to put initrd way too high.
6105 Reported by: Ryan Lortie <desrt@desrt.ca>
6106
6107 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
6108
6109 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
6110 improperly removed string.
6111
6112 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
6113
6114 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
6115 is_disk.
6116 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
6117 (open_device) Likewise.
6118 (grub_util_biosdisk_close): Likewise.
6119 Reported by: Mark Korenberg.
6120
6121 2011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
6122
6123 * util/grub-mkconfig_lib.in: Add missing quotes.
6124
6125 2011-04-10 Colin Watson <cjwatson@ubuntu.com>
6126
6127 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
6128 is NULL.
6129
6130 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
6131
6132 Dynamically count the number of lines for the lower banner.
6133
6134 * grub-core/normal/menu_entry.c (per_term_screen): New member
6135 num_entries.
6136 (print_down): Use num_entries.
6137 (update_screen): Likewise.
6138 (grub_menu_entry_run): Set num_entries.
6139 * grub-core/normal/menu_text.c (menu_viewer_data): New member
6140 num_entries.
6141 (grub_print_message_indented): Move real part to ...
6142 (grub_print_message_indented_real): ... here. Additional argument
6143 dry_run.
6144 (draw_border): Additional argument num_entries.
6145 (print_message): Additional argument dry_run.
6146 (print_entries): Receive menu viewer data.
6147 (grub_menu_init_page): New argment num_entries.
6148 (menu_text_set_chosen_entry): Use num_entries.
6149 (grub_menu_try_text): Likewise.
6150 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
6151 All users updated.
6152 (grub_ucs4_count_lines): New function.
6153 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
6154 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
6155 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
6156 (grub_term_border_height): Likewise.
6157 (grub_term_num_entries): Likewise.
6158
6159 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
6160
6161 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
6162 Remove now unused string.
6163
6164 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
6165
6166 * docs/grub-dev.texi (Finding your way around): Update for 1.99
6167 build system.
6168 (Getting started): GRUB is developed in Bazaar now, not Subversion.
6169
6170 (Comment): Fix typo.
6171 (Getting started): General copy-editing.
6172 (Typical Development Experience): Likewise.
6173 (Error Handling): Likewise.
6174 (Video API): Likewise.
6175
6176 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
6177
6178 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
6179 throughout.
6180
6181 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
6182
6183 * util/grub-mkimage.c (main): Handle special naming of yeeloong
6184 directory.
6185
6186 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
6187
6188 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
6189 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
6190 "development".
6191
6192 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
6193
6194 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
6195 grub_strcpy since the lines aren't necessarily 0-terminated.
6196
6197 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
6198
6199 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
6200 root on legacy.
6201
6202 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
6203
6204 * grub-core/commands/probe.c (options): Argument to set isn't optional.
6205 (GRUB_MOD_INIT): DEVICE isn't optional.
6206
6207 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
6208
6209 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
6210 word on new line if it's too long anyway. Fixes a hang.
6211
6212 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
6213
6214 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
6215 const.
6216 * util/grub-setup.c (main): Reuse md device name if available.
6217 * util/raid.c (grub_util_raid_getmembers): Receive device name and
6218 not GRUB name as argument.
6219 Based on patch by: Florian Wagner <fwagner>.
6220
6221 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
6222
6223 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
6224 Place mbi on low memory for better compatibility.
6225
6226 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
6227
6228 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
6229
6230 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
6231 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
6232
6233 * autogen.sh: Ensure that collate and ctype locale is C.
6234 * conf/Makefile.common: Likewise.
6235
6236 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
6237
6238 * grub-core/normal/menu.c: Add missing include.
6239
6240 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
6241
6242 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
6243
6244 2011-04-08 Martin Zuther <mzuther@mzuther.de>
6245
6246 * util/grub-mkconfig.in: Ignore emacsen backup.
6247
6248 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
6249
6250 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
6251 on open.
6252 (grub_util_biosdisk_close): Likewise.
6253
6254 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
6255
6256 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
6257 const attribute and use grub_isdigit.
6258
6259 2011-04-06 Andrey <dev_null@ukr.net>
6260
6261 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
6262 gcc warning.
6263
6264 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
6265
6266 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
6267 useful grub_dprintf's.
6268
6269 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
6270
6271 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
6272
6273 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
6274
6275 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
6276
6277 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
6278
6279 Output errors if theme loading failed.
6280
6281 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
6282 grub_gfxterm_fullscreen on error paths to ...
6283 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
6284 theme loading error.
6285
6286 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
6287
6288 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
6289 space for older compilers.
6290 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
6291
6292 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
6293
6294 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
6295 and report them as not RAID members since they are useless for GRUB.
6296 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
6297
6298 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
6299
6300 Increase LVM implementation robustness in order not to crash on
6301 configurations like pvmove. Previously code assumed that in some places
6302 only lvs or only pvs are used whereas it seems that they are used
6303 interchangeably.
6304
6305 * grub-core/disk/lvm.c (read_node): New function.
6306 (read_lv): Use read_node.
6307 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
6308 Match volumes only at the end when all lvs are found. Take both
6309 pvs (first) and lvs (second) into account.
6310 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
6311 mirror_* into node_*. All users updated.
6312 (grub_lvm_stripe): Merge this ...
6313 (grub_lvm_mirror): ... and this ...
6314 (grub_lvm_node): ... into this. All users updated.
6315
6316 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
6317
6318 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
6319 of function to allow further scanning for LVMs.
6320
6321 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
6322
6323 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
6324 on failed seek as it breaks open fd reusage.
6325
6326 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
6327
6328 * util/grub-install.in: Add a recommendation to use --recheck before
6329 reporting bugs.
6330
6331 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
6332
6333 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
6334 are obtained.
6335
6336 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
6337
6338 GRUB developper manual based on existing Internals section and
6339 contributions by the various authors with active copyright assignment.
6340
6341 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
6342 * docs/font_char_metrics.png: New file.
6343 * docs/font_char_metrics.txt: Likewise.
6344 * docs/grub-dev.texi: Likewise.
6345 * docs/grub.texi (Internals): Move from here ...
6346 * docs/grub-dev.texi: ... here.
6347
6348 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
6349
6350 Store the loopback device as data on loopback grub_disk structures,
6351 rather than the file it points to. This fixes use of freed memory
6352 if an existing loopback device is replaced.
6353
6354 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
6355 disk->data, not dev->file.
6356 (grub_loopback_read): Adjust file assignment to match.
6357 Fixes Ubuntu bug #742967.
6358
6359 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
6360
6361 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
6362 when replacing an existing device.
6363
6364 2011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
6365
6366 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
6367 memory corruptions.
6368
6369 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
6370 unsigned.
6371 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
6372 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
6373 (grub_jfs_read_inode): Likewise.
6374 (grub_jfs_opendir): Likewise. Remove now useless casts.
6375 (grub_jfs_getent): Likewise.
6376 Make ino a grub_uint32_t rather than int.
6377 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
6378 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
6379 division and module with bit operations.
6380 (grub_jfs_find_file): Make ino a grub_uint32_t.
6381 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
6382
6383 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
6384
6385 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
6386 warning. (This was in fact always initialised before use, but GCC
6387 wasn't smart enough to prove that.)
6388 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
6389
6390 2011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
6391
6392 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
6393 stack alignment.
6394 (efi_wrap_1): Likewise.
6395 (efi_wrap_2): Likewise.
6396 (efi_wrap_3): Likewise.
6397 (efi_wrap_4): Likewise.
6398 (efi_wrap_5): Likewise.
6399 (efi_wrap_6): Likewise.
6400 (efi_wrap_10): Likewise.
6401 Based on information by: Red Hat/Peter Jones.
6402
6403 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
6404
6405 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
6406 set-but-not-used variable.
6407
6408 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
6409
6410 * docs/grub.texi (Simple configuration): Be more explicit about
6411 GRUB_DEFAULT, and add an example.
6412 Reported by: Leslie Rhorer.
6413
6414 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
6415
6416 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
6417 shell".
6418
6419 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
6420
6421 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
6422 * util/grub.d/20_linux_xen.in: Likewise.
6423
6424 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
6425
6426 * util/grub.d/10_linux.in: Try alternative config filenames where
6427 we parse config file.
6428 * util/grub.d/20_linux_xen.in: Likewise.
6429
6430 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
6431
6432 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
6433 * util/grub.d/20_linux_xen.in: Likewise.
6434
6435 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
6436
6437 * grub-core/disk/raid.c (insert_array): Add few potentially
6438 useful grub_util_info.
6439 (grub_raid_register): Likewise.
6440
6441 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
6442
6443 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
6444 Preserve partition number in mdadm code path.
6445
6446 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
6447
6448 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
6449 few potentially useful grub_util_info.
6450
6451 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
6452
6453 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
6454
6455 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
6456
6457 * docs/grub.texi (default): Use @example rather than nested
6458 itemized lists to avoid breaking gendocs.
6459
6460 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
6461
6462 * docs/grub.texi (Future): Update.
6463
6464 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
6465
6466 * docs/grub.texi (Environment): New chapter.
6467 (Changes from GRUB Legacy): Link to "Environment block" section for
6468 details of limitations.
6469 (Simple configuration): Likewise. Link to documentation of gfxmode
6470 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
6471 respectively.
6472 (Shell-like scripting): Note that normal variables are stored in the
6473 environment.
6474 (gettext): Link to documentation of lang and locale_dir.
6475 (list_env): New section.
6476 (load_env): New section.
6477 (save_env): New section.
6478
6479 (Reporting bugs): Fix typo.
6480
6481 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
6482
6483 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
6484 the example.
6485
6486 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
6487
6488 * grub-core/term/at_keyboard.c (set_scancodes)
6489 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
6490
6491 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
6492
6493 * docs/grub.texi (Menu-specific commands): Remove some semantics
6494 that were true in GRUB Legacy but not in GRUB 2.
6495 (submenu): New section.
6496 (false): New section.
6497 (read): New section.
6498 (true): New section.
6499
6500 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
6501
6502 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
6503
6504 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
6505
6506 * docs/grub.texi (Simple configuration): Explain some of the
6507 current limitations of grub-mkconfig.
6508 Reported by: Leslie Rhorer.
6509
6510 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
6511
6512 Old macs search for boot.efi rather than for bootia32.efi.
6513
6514 * util/grub-install.in: Copy bootia32.efi to boot.efi.
6515 * util/grub-mkrescue.in: Likewise.
6516 Suggested by: Peter Jones.
6517
6518 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
6519
6520 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
6521
6522 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
6523
6524 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
6525 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
6526 (grub_lvm_mirror): New struct.
6527 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
6528 (grub_lvm_iterate): Iterate only visible volumes.
6529 (grub_lvm_read): Factor out to ..
6530 (read_lv): ... this. Support mirrors.
6531 (grub_lvm_read): New wrapper function.
6532 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
6533 stripped or mirrored.
6534
6535 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
6536
6537 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
6538
6539 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
6540
6541 * docs/grub.texi (loopback): New section.
6542
6543 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
6544
6545 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
6546 removed -p option.
6547
6548 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
6549
6550 * docs/grub.texi (BIOS installation): New section, partly based on
6551 previous text in other sections.
6552 (Installing GRUB using grub-install): Replace BIOS discussion with a
6553 cross-reference.
6554 (Images): Likewise.
6555
6556 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
6557
6558 * grub-core/kern/emu/hostdisk.c (find_partition_start)
6559 [HAVE_DIOCGDINFO]: Add safety checks.
6560
6561 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
6562
6563 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
6564 per default compiled in kernel and prior to 8.0 isn't shipped at all.
6565
6566 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
6567
6568 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
6569 real_sb->size is zero (e.g. RAID-0), get the disk size from
6570 real_sb->data_size instead.
6571 Fixes Ubuntu bug #743136.
6572
6573 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
6574
6575 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
6576 printf clauses for printing size and start.
6577
6578 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
6579
6580 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
6581 Reported and tested by: Timothy Nikkel.
6582
6583 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
6584
6585 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
6586 (dirty_region_add_real): ... this.
6587 (dirty_region_add): Don't discard margin refresh when performing
6588 scheduled repaint.
6589
6590 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
6591
6592 * grub-core/lib/relocator.c (allocate_regstart)
6593 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
6594 terminals are capabple of malloc-free operation.
6595 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
6596 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
6597
6598 2011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
6599
6600 * util/grub-setup.c: Copy the partition table zone if floppy support
6601 is disabled, even if no partition table is found.
6602
6603 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
6604 during POST if an invalid partition table is contained in the PBR
6605 of the active partition when GRUB is installed to a partition.
6606
6607 2011-03-28 Colin Watson <cjwatson@debian.org>
6608
6609 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
6610 comment.
6611
6612 2011-03-28 Colin Watson <cjwatson@debian.org>
6613
6614 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
6615 to be specific about what kind of RAID device we're scanning for.
6616
6617 2011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
6618
6619 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
6620 return freed string.
6621
6622 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
6623
6624 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
6625
6626 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
6627
6628 Use libgeom on FreeBSD to detect partitions.
6629
6630 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
6631 (grub-mkrelpath): Likewise.
6632 (grub-script-check): Likewise.
6633 (grub-editenv): Likewise.
6634 (grub-mkpasswd-pbkdf2): Likewise.
6635 (grub-fstest): Likewise.
6636 (grub-mkfont): Likewise.
6637 (grub-mkdevicemap): Likewise.
6638 (grub-probe): Likewise.
6639 (grub-setup): Likewise.
6640 (grub-ofpathname): Likewise.
6641 (grub-mklayout): Likewise.
6642 (example_unit_test): Likewise.
6643 (grub-menulst2cfg): Likewise.
6644 * grub-core/Makefile.core.def (grub-emu): Likewise.
6645 (grub-emu-lite): Likewise.
6646 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
6647 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
6648 define HAVE_DIOCGDINFO.
6649 (follow_geom_up) [FreeBSD]: New function.
6650 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
6651 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
6652 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
6653 unconditionally of HAVE_DIOCGDINFO.
6654
6655 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
6656
6657 Fix FreeBSD compilation problem.
6658
6659 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
6660 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
6661
6662 2011-03-24 Colin Watson <cjwatson@ubuntu.com>
6663
6664 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
6665 Switch back to page zero before loading a kernel, since some kernel
6666 drivers expect that.
6667 Thanks to: Felix Kuehling.
6668
6669 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
6670
6671 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
6672 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
6673 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
6674
6675 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
6676
6677 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
6678 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
6679
6680 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
6681
6682 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
6683 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
6684 malloc is disabled.
6685
6686 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
6687
6688 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
6689 for modules headers when counting the needed allocation size.
6690
6691 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
6692
6693 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
6694 if no ASCII character is found to prevent crash.
6695
6696 2011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
6697
6698 * grub-core/video/bitmap.c (match_extension): Ignore case.
6699
6700 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
6701
6702 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
6703
6704 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
6705
6706 * grub-core/script/parser.y: Declare "time" as valid argument.
6707
6708 2011-03-23 Peter Jones <pjones@redhat.com>
6709
6710 Fix incorrect assert failure reporting.
6711
6712 * grub-core/tests/example_functional_test.c (example_test): Add
6713 a failure comment.
6714 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
6715 (failure_start): ...this. Check that malloc succeeded.
6716 Don't call xvasprintf. Return failure struct.
6717 (failure_append_vtext): New function.
6718 (failure_append_text): Likewise.
6719 (add_failure): Likewise.
6720 (grub_test_assert_helper): Likewise.
6721 * include/grub/test.h (grub_test_assert_helper): New declaration.
6722 (grub_test_assert): Macro rewritten.
6723
6724 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
6725
6726 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
6727
6728 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
6729
6730 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
6731
6732 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
6733
6734 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
6735 into GRUB-style one.
6736
6737 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
6738
6739 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
6740 error and not grub_errno.
6741 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
6742
6743 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
6744
6745 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
6746 GRUB_USB_SPEED_NONE in case of failure and not the error code.
6747
6748 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
6749
6750 * grub-core/efiemu/i386/pc/cfgtables.c
6751 (grub_machine_efiemu_init_tables): Make declaration a prototype.
6752 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
6753 (grub_xnu_unlock): Likewise.
6754 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
6755
6756 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
6757
6758 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
6759 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
6760 * grub-core/commands/hashsum.c (aliases): Likewise.
6761 * grub-core/commands/setpci.c (pci_registers): Likewise.
6762 * grub-core/disk/usbms.c (attach_hook): Likewise.
6763 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
6764 (zio_checksum_table): Likewise.
6765 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
6766 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
6767 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
6768 * grub-core/lib/relocator.c (leftovers): Likewise.
6769 (extra_blocks): Likewise.
6770 * grub-core/loader/i386/bsd.c (relocator): Likewise.
6771 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
6772 (modules_last): Likewise.
6773 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
6774 (devices): Likewise.
6775 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
6776 (modules_last): Likewise.
6777 * grub-core/normal/auth.c (users): Likewise.
6778 * grub-core/normal/context.c (initial_menu): Likewise.
6779 (current_menu): Likewise.
6780 * grub-core/normal/crypto.c (crypto_specs): Likewise.
6781 * grub-core/term/serial.c (grub_serial_ports): Likewise.
6782 (grub_serial_terminfo_input_template): Likewise.
6783 (grub_serial_terminfo_output_template): Likewise.
6784 (grub_serial_terminfo_input): Likewise.
6785 (grub_serial_terminfo_output): Likewise.
6786 (registered): Likewise.
6787 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
6788
6789 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
6790
6791 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
6792 grub_video_mode_type_t.
6793 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
6794 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
6795 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
6796
6797 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
6798
6799 * util/grub-install.in: Correct the x86-64 name as x86_64.
6800
6801 2011-03-11 Colin Watson <cjwatson@ubuntu.com>
6802
6803 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
6804 initial chunk read from the kernel always includes GRUB's multiboot
6805 header, which is now outside the first sector.
6806
6807 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
6808
6809 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
6810 cached mmap_size, so that this works correctly when called multiple
6811 times.
6812 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
6813
6814 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
6815
6816 * docs/grub.texi (Simple configuration): Tidy up formatting.
6817
6818 2011-03-07 Szymon Janc <szymon@janc.net.pl>
6819
6820 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
6821 Set-but-not-used variable removed.
6822
6823 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6824
6825 Workaround yet another IEEE1275 bug.
6826
6827 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
6828 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
6829 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
6830 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
6831 is set.
6832 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
6833 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
6834
6835 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6836
6837 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
6838 error.
6839
6840 2011-02-11 Colin Watson <cjwatson@ubuntu.com>
6841
6842 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
6843 empty, since in that case we can only generate either nothing or a
6844 syntactically invalid configuration file.
6845 Reported by: Michal Suchanek. Fixes Debian bug #612898.
6846
6847 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
6848
6849 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
6850 (Making a GRUB bootable CD-ROM): Likewise.
6851 (Invoking grub-mkrescue): New section.
6852 Reported by: Yann Dirson. Fixes Debian bug #612585.
6853
6854 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
6855
6856 * util/grub-install.in: Remove unnecessary brackets from tr
6857 arguments.
6858 * util/grub.d/10_hurd.in: Likewise.
6859 * util/grub.d/10_kfreebsd.in: Likewise.
6860 * util/grub.d/10_linux.in: Likewise.
6861 * util/grub.d/20_linux_xen.in: Likewise.
6862 Reported by: Jamie Heilman. Fixes Debian bug #612564.
6863
6864 2011-02-08 Colin Watson <cjwatson@ubuntu.com>
6865
6866 * include/grub/file.h (not_easly_seekable): Rename to ...
6867 (not_easily_seekable): ... this. Update all users.
6868
6869 2011-01-28 Colin Watson <cjwatson@ubuntu.com>
6870
6871 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
6872 grub-mkrescue.
6873
6874 2011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
6875
6876 * util/grub-mkimage.c (generate_image): Refuse to create the images
6877 bigger than the actual flash (512K) in Loongson machines. 512K is also
6878 the biggest chip supported by them.
6879
6880 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
6881
6882 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
6883
6884 2011-01-22 Anthony DeRobertis <anthony@derobert.net>
6885
6886 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
6887 super_offset field.
6888
6889 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
6890
6891 * util/grub-install.in: Ignore install device on platforms
6892 where it doesn't make sense. Always use UUIDs except on pc, efi and
6893 sparc64.
6894 Reported by: Daniel Kahn Gillmor.
6895
6896 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
6897
6898 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
6899
6900 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
6901
6902 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
6903 (iterate_real): Don't rely on partition being non-NULL.
6904
6905 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
6906
6907 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
6908 supported platforms. Put a compile time assert for this rather than
6909 generate a warning with 32-bit shift.
6910
6911 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
6912
6913 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
6914 logical expression more readable.
6915
6916 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
6917
6918 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
6919 even if some elements have a name.
6920 Reported by: Alexander GQ Gerasiov.
6921
6922 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
6923
6924 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
6925 path unreadable if `grub-probe -t abstraction' fails, for example if
6926 memberlist fails on an LVM volume group.
6927 Reported by: Darius Jahandarie.
6928
6929 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
6930
6931 * docs/grub.texi (Simple configuration): Document
6932 GRUB_PRELOAD_MODULES.
6933
6934 2011-01-17 Colin Watson <cjwatson@ubuntu.com>
6935
6936 * .bzrignore: Remove nonexistent grub-pbkdf2.
6937
6938 2011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
6939
6940 * configure.ac: Bump version to 1.99~rc1.
6941
6942 2011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
6943
6944 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
6945 for safety.
6946
6947 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
6948
6949 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
6950 module.
6951
6952 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
6953
6954 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
6955
6956 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
6957
6958 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
6959 diskdevid.
6960
6961 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
6962
6963 Fix compilation on cygwin.
6964
6965 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
6966 -R .drectve on cygwin.
6967 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
6968 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
6969 (COND_CYGWIN): New condition.
6970 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
6971 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
6972 not @TARGET_OBJ2ELF@.
6973 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
6974 type to determine whether aux is to be used.
6975
6976 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
6977
6978 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
6979 realpath'ed device string.
6980 Handle floppy (somewhat).
6981 Issue error in unknown case rather than garbage.
6982 Reported by: Axel Beckert.
6983
6984 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
6985
6986 * util/grub.d/00_header.in (load_video): Handle the case when no video
6987 drivers available.
6988 Thanks to: Axel Beckert.
6989
6990 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
6991
6992 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
6993 variable. Fixes problem on big endian platforms.
6994
6995 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
6996
6997 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
6998 It doesn't work well there.
6999
7000 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7001
7002 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
7003 warning.
7004 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
7005 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
7006 counter.
7007
7008 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7009
7010 Use alias->path rather than buggy "canon".
7011
7012 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
7013 (ofdisk_hash_add): New argument curcan. All users updated.
7014
7015 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
7016
7017 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
7018
7019 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
7020
7021 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
7022 loadmask before doing any calculations. Use correct type for offset.
7023 (grub_linux_load64): Likewise.
7024
7025 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
7026
7027 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
7028 with NULL.
7029 (console_grub_equivalences_unshift): Likewise.
7030 Reported by: Daniel Dehennin.
7031
7032 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
7033
7034 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
7035 (set_env_limn_ro): Likewise.
7036 (GRUB_MOD_INIT): Likewise.
7037 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
7038 ARRAY_SIZE while on it.
7039 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
7040 * grub-core/normal/context.c (grub_env_export): Move from here ...
7041 * grub-core/kern/env.c (grub_env_export): ... here.
7042 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
7043 prefix.
7044 * grub-core/kern/main.c (grub_main): Export root and prefix.
7045 * include/grub/env.h (grub_env_export): Export.
7046 Reported by: Seth Goldberg.
7047
7048 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
7049
7050 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
7051 Take into account space used by ELF sections and multiboot palette.
7052 Reported by: Grégoire Sutre.
7053
7054 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
7055
7056 * BUGS: New file.
7057
7058 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
7059
7060 Pass more appropriate video id to Linux.
7061
7062 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
7063 grub_video_get_driver_id and variable gfxpayloadforcelfb to
7064 fill have_vga.
7065 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
7066 shift params->lfb_size.
7067 * include/grub/i386/linux.h: Make an enume out of have_vga values.
7068
7069 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
7070
7071 * util/grub-menulst2cfg.c: Add missing include of misc.h.
7072
7073 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
7074
7075 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
7076 separator and pass bootpath/devid even if only one of them is available.
7077 Reported by: Seth Goldberg.
7078
7079 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
7080
7081 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
7082 implementations bug on them.
7083
7084 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
7085 memory.
7086 (filter_memory_map): Likewise.
7087
7088 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
7089
7090 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
7091 Reported by: nebuchadnezzar.
7092
7093 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
7094
7095 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
7096 Reported by: nebuchadnezzar.
7097
7098 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
7099
7100 Submenu default support.
7101
7102 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
7103 auto_boot. All users updated.
7104 Declared static.
7105 Handle chosen and default with submenus.
7106 (grub_menu_execute_with_fallback): Declared static.
7107 Don't notify failure if autobooted. Upper level does it.
7108 (menuentry_eq): New function.
7109 (get_entry_number): Use menuentry_eq.
7110 (show_menu): New parameter "autobooted". All users updated.
7111 (grub_show_menu): Likewise.
7112 * include/grub/normal.h (grub_show_menu): Likewise.
7113 * include/grub/menu.h (grub_menu_execute_entry): Removed.
7114 (grub_menu_execute_with_fallback): Likewise.
7115
7116 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
7117
7118 * util/grub-mklayout.c (usage): Update help text.
7119
7120 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
7121
7122 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
7123
7124 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
7125
7126 * util/grub-menulst2cfg.c (main): Trim the line.
7127
7128 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
7129
7130 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
7131 (grub_machine_init): Don't check amount of low memory as reportedly
7132 INT 12h can be broken and if low memory is too low we wouldn't have
7133 gotten into grub_machine_init anyway.
7134
7135 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
7136
7137 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
7138 (grub_machine_mmap_iterate): Take low memory into account
7139
7140 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
7141
7142 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
7143 badfs.
7144 Reported by: TiCPU.
7145
7146 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
7147
7148 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
7149 members errors.
7150
7151 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
7152
7153 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
7154 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
7155
7156 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
7157
7158 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
7159 openbsd and netbsd types being in part_bsd module.
7160
7161 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
7162
7163 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
7164 (_FILE_OFFSET_BITS): Likewise.
7165 Reported by: Seth Goldberg.
7166
7167 2011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
7168
7169 * configure.ac: Check for libdevmapper header.
7170
7171 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
7172
7173 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
7174 avoid aliasing.
7175 (fzap_lookup): Likewise.
7176 (dnode_get): Likewise.
7177 (make_mdn): Likewise.
7178 (zfs_mount): Likewise.
7179 (fzap_iterate): Use temporary pointer to avoid aliasing.
7180 (grub_zfs_read): Likewise.
7181 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
7182 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
7183 pointers to avoid aliasing.
7184 (grub_cmd_xnu_kernel64): Likewise.
7185 (grub_xnu_load_driver): Likewise.
7186
7187 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
7188
7189 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
7190 aliasing warning.
7191 (grub_cmd_terminal_output): Likewise.
7192 Reported and tested by: Grégoire Sutre.
7193
7194 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
7195
7196 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
7197 warning.
7198 Reported and tested by: Grégoire Sutre.
7199
7200 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
7201
7202 * configure.ac: Do CPU substitution even if it's specified explicitly.
7203 Reported and tested by: Alain Greppin.
7204
7205 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
7206
7207 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
7208 Reported and tested by: Alain Greppin.
7209
7210 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
7211
7212 Satisfy some bison versions need for inttypes.h.
7213
7214 * grub-core/lib/posix_wrap/inttypes.h: New file.
7215 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
7216 (int16_t): Likewise.
7217 (int32_t): Likewise.
7218 (int64_t): Likewise.
7219 Reported and tested by: Alain Greppin.
7220
7221 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
7222
7223 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
7224 Silence spurious warning.
7225 Reported and tested by: Alain Greppin.
7226
7227 2011-01-07 Szymon Janc <szymon@janc.net.pl>
7228
7229 * docs/grub.texi (Support automatic decompression): Update with xz
7230 decompression support.
7231
7232 2011-01-07 Szymon Janc <szymon@janc.net.pl>
7233
7234 Improve loaders' kernel command line handling.
7235
7236 * grub-core/lib/cmdline.c: New file.
7237 * include/grub/lib/cmdline.h: Likewise.
7238 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
7239 grub_create_loader_cmdline to create kernel command line.
7240 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
7241 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
7242 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
7243 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
7244 (linux): Add lib/cmdline.c on common.
7245
7246 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
7247
7248 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
7249 inopos might be unaligned.
7250
7251 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
7252
7253 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
7254 endian transformations.
7255 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
7256 Based on report by: Doug Nazar.
7257
7258 2011-01-07 Doug Nazar <nazard.michi@gmail.com>
7259
7260 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
7261 array->members[i].start_sector.
7262 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
7263
7264 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
7265
7266 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
7267 Reported and tested by: Grégoire Sutre.
7268
7269 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
7270
7271 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
7272 avoid causing test failures by clearing the screen.
7273
7274 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
7275
7276 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
7277 Fix prefix check to handle the case where dir ends with a slash
7278 (most significantly, "/" itself).
7279 Reported by: Michael Vogt.
7280
7281 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
7282
7283 Run terminfo_cls on initing terminfo output to clear the screen and
7284 move the cursor to (0,0).
7285
7286 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
7287 Call grub_terminfo_output_init.
7288 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
7289 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
7290 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
7291
7292 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
7293
7294 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
7295 only when needed.
7296
7297 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
7298
7299 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
7300 CTRL.
7301
7302 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
7303
7304 The E820 type 5 is BADRAM, not EXEC_CODE.
7305
7306 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
7307 (GRUB_E820_BADRAM): New define.
7308 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
7309 into reserved. Propagate BADRAM.
7310 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
7311 (GRUB_E820_BADRAM): New define.
7312
7313 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
7314
7315 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
7316 Ignore the memory post-4G.
7317 (grub_relocator_firmware_alloc_region): Additional debug statement.
7318
7319 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
7320
7321 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
7322 names.
7323 Reported by: David Pravec.
7324
7325 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
7326
7327 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
7328 BIOSes.
7329
7330 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
7331
7332 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
7333 Prevent overflow.
7334 (grub_reed_solomon_recover): Likewise.
7335
7336 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
7337
7338 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
7339
7340 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
7341
7342 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
7343 variable.
7344
7345 2011-01-04 Colin Watson <cjwatson@ubuntu.com>
7346
7347 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
7348 descriptions of extract_legacy_entries_source and
7349 extract_legacy_entries_configfile.
7350 Reported by: Seung Soo, Ha.
7351
7352 2011-01-03 Colin Watson <cjwatson@ubuntu.com>
7353
7354 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
7355 on devices that do not implement function 0.
7356
7357 2011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
7358
7359 * grub-core/fs/hfsplus.c: Make parent unsigned.
7360 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
7361 overflows.
7362 (grub_hfsplus_cmp_extkey): Likewise
7363
7364 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
7365
7366 * util/grub-install.in: Correctly use bootloader_id and not
7367 GRUB_DISTRIBUTOR on efibootmgr line.
7368
7369 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
7370
7371 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
7372
7373 2010-12-31 Ian Campbell <ijc@hellion.org.uk>
7374
7375 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
7376 Xen and reorder menu item wording to make it clearer that this entry
7377 will launch Xen. Print separate messages when loading Xen and
7378 Linux.
7379
7380 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
7381
7382 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
7383 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
7384 loop in case of incorrect amiga partmap.
7385
7386 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
7387
7388 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
7389 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
7390 Reported by:EHeM.
7391
7392 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
7393
7394 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
7395 spurious warning.
7396 Reported by: crocket
7397
7398 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
7399
7400 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
7401 Preload EFIemu.
7402 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
7403
7404 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
7405
7406 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
7407 is loaded
7408 (grub_cmd_xnu_kextdir): Likewise.
7409 (grub_cmd_xnu_splash): Likewise.
7410
7411 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
7412
7413 Avoid using Reed-Solomon with 0 redundancy.
7414
7415 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
7416 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
7417 or 0 redundancy.
7418 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
7419 (grub_reed_solomon_recover): Likewise.
7420
7421 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
7422
7423 Don't use disk subsystem in freebsd_boot.
7424
7425 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
7426 (freebsd_biosdev): Likewise.
7427 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
7428 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
7429
7430 2010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
7431
7432 Handling of files of unknown size is currently limited. They can't be
7433 used e.g. for initrd or modules. Moreover gzip handling of not
7434 easily seekable files is buggy. Disable unknown file size for now. May
7435 be inefficient but works.
7436
7437 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
7438 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
7439
7440 2010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
7441
7442 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
7443 floppy probe.
7444
7445 2010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
7446
7447 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
7448
7449 2010-12-25 Shea Levy <shlevy>
7450
7451 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
7452
7453 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7454
7455 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
7456 Windows Server 2008.
7457 Reported by: Devin Giddings.
7458
7459 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7460
7461 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
7462 writing an error message because of async power management.
7463 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
7464 (grub_reboot): Likewise.
7465
7466 2010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
7467
7468 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
7469 keep unit tests from failing when they shouldn't.
7470
7471 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
7472
7473 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
7474 previous patch increased the size of the RS code by 20 bytes (at
7475 least with gcc-4.4), so increase this by 20 bytes to match.
7476 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
7477
7478 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
7479
7480 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
7481 scratch area. Make sure to initialise chosen in standalone mode as
7482 well as non-standalone.
7483 Reported by: Robert Hooker and Andy Whitcroft.
7484 Tested by: Andy Whitcroft.
7485
7486 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
7487
7488 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
7489 constructing a new unescaped string and passing it to grub_xputs in
7490 one go, rather than passing characters to grub_printf one at a time.
7491
7492 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
7493
7494 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
7495 initialising utf16.
7496
7497 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
7498
7499 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
7500 comment. Add an extra layer of quotation, requiring the output of
7501 this function to be used in a printf format string.
7502 (gettext_printf): New function.
7503 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
7504 Extract translatable strings from here-documents and use a temporary
7505 variable instead, so that xgettext can find them.
7506 * util/grub.d/10_kfreebsd.in: Likewise.
7507 * util/grub.d/10_linux.in: Likewise.
7508 * util/grub.d/20_linux_xen.in: Likewise.
7509
7510 * po/grub.d.sed: New file.
7511 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
7512 arguments. Set c-format flags on all strings extracted from
7513 util/grub.d/ (xgettext refuses to include these itself for strings
7514 it extracted from a shell file, but these really are c-format).
7515
7516 2010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
7517
7518 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
7519 Avoid next pointing to nowhere.
7520
7521 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
7522
7523 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
7524 rather than assuming than rootblock is exactly in the middle.
7525 (grub_affs_label): Likewise.
7526
7527 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
7528
7529 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
7530 reserved_first_sector to 0.
7531 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
7532 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
7533 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
7534
7535 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
7536
7537 Fix handling of UTF-16 UDF labels.
7538
7539 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
7540 (read_string): .. here.
7541 (grub_udf_label): Use read_string.
7542
7543 2010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
7544
7545 * grub-core/normal/menu_entry.c (run): Execute commands from menu
7546 editor under argument scope.
7547 Reported by: Jordan Uggla
7548
7549 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
7550
7551 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
7552
7553 2010-12-18 Colin Watson <cjwatson@ubuntu.com>
7554
7555 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
7556 line, and other keys scroll an entire page (previous handling was
7557 for \r and \n to scroll a page and other keys to scroll two lines).
7558
7559 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
7560
7561 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
7562 Set ptrdest to correct get_physical_target_address rather than
7563 incorrect get_virtual_current_address.
7564
7565 2010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
7566
7567 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
7568 correct cat to grub_uint8_t * rather than grub_uint32_t *.
7569
7570 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
7571
7572 * .bzrignore: Ignore grub-core/rs_decoder.S.
7573
7574 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
7575
7576 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
7577 .mo/.mo.gz opening sequence to ...
7578 (grub_mofile_open_lang): ... here.
7579 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
7580 * util/grub.d/00_header.in (grub_lang): Include country part of
7581 locale.
7582 Reported by: Mario Limonciello.
7583
7584 2010-12-09 Robert Millan <rmh@gnu.org>
7585
7586 * NEWS: Document addition of ZFS support.
7587
7588 2010-12-04 Colin Watson <cjwatson@ubuntu.com>
7589
7590 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
7591 rather than `/ 2', as the latter requires -Wa,--divide which would
7592 require bumping our minimum binutils version.
7593
7594 2010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
7595
7596 * util/grub-script-check.c (main): Print script line number on
7597 error.
7598
7599 2010-12-01 Robert Millan <rmh@gnu.org>
7600
7601 * grub-core/fs/zfs/zfs.c: New file.
7602 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
7603 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
7604 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
7605 * grub-core/fs/zfs/zfsinfo.c: Likewise.
7606
7607 * include/grub/zfs/dmu.h: Likewise.
7608 * include/grub/zfs/dmu_objset.h: Likewise.
7609 * include/grub/zfs/dnode.h: Likewise.
7610 * include/grub/zfs/dsl_dataset.h: Likewise.
7611 * include/grub/zfs/dsl_dir.h: Likewise.
7612 * include/grub/zfs/sa_impl.h: Likewise.
7613 * include/grub/zfs/spa.h: Likewise.
7614 * include/grub/zfs/uberblock_impl.h: Likewise.
7615 * include/grub/zfs/vdev_impl.h: Likewise.
7616 * include/grub/zfs/zap_impl.h: Likewise.
7617 * include/grub/zfs/zap_leaf.h: Likewise.
7618 * include/grub/zfs/zfs.h: Likewise.
7619 * include/grub/zfs/zfs_acl.h: Likewise.
7620 * include/grub/zfs/zfs_znode.h: Likewise.
7621 * include/grub/zfs/zil.h: Likewise.
7622 * include/grub/zfs/zio.h: Likewise.
7623 * include/grub/zfs/zio_checksum.h: Likewise.
7624
7625 * Makefile.util.def: Build ZFS into libgrubmods.
7626 * grub-core/Makefile.core.def: Build zfs.mod.
7627
7628 2010-11-30 Szymon Janc <szymon@janc.net.pl>
7629
7630 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
7631 variable.
7632 * grub-core/commands/wildcard.c (match_files): Likewise.
7633
7634 2010-11-30 Robert Millan <rmh@gnu.org>
7635
7636 * grub-core/loader/i386/bsd.c
7637 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
7638 whether kernel is loaded using grub_loader_is_loaded(), rather
7639 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
7640 certain error conditions.
7641
7642 2010-11-30 Robert Millan <rmh@gnu.org>
7643
7644 * grub-core/commands/echo.c: Include `<grub/term.h>'.
7645 (grub_cmd_echo): Call grub_refresh() after printing a message.
7646
7647 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
7648
7649 Avoid using tricks for initialising endian variables.
7650
7651 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
7652 Make const.
7653 (GRUB_MOD_INIT): Don't byte-swap.
7654 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
7655 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
7656 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
7657 (grub_swap_bytes32_compile_time): Likewise.
7658 (grub_cpu_to_le32_compile_time): Likewise.
7659 (grub_cpu_to_le16_compile_time): Likewise.
7660
7661 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
7662
7663 * util/grub-setup.c (setup): Stop recommending --force. People who
7664 understand the dangers of blocklists are able to find this option
7665 anyway and the ones who don't shouldn't use it anyway.
7666
7667 2010-11-26 Robert Millan <rmh@gnu.org>
7668
7669 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
7670 Update all users.
7671
7672 2010-11-26 Colin Watson <cjwatson@ubuntu.com>
7673
7674 Fix LVM-on-RAID probing.
7675
7676 * util/grub-probe.c (probe): Remember which disk was detected as
7677 RAID (perhaps an LVM physical volume). Use that disk's raidname
7678 rather than that of the top-level disk.
7679
7680 2010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
7681
7682 Fix cmdline argument quotes for setparams command of menuentry
7683 definitions.
7684
7685 * grub-core/commands/menuentry.c (setparams_prefix): Use single
7686 quotes for arguments.
7687 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
7688 grub_strchrsub function instead.
7689
7690 * include/grub/misc.h (grub_strchrsub): New function.
7691
7692 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
7693
7694 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
7695 effort by skipping "." and ".." entries up-front.
7696 Suggested by: Michael Lazarev.
7697
7698 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
7699
7700 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
7701 ldflags to ldadd, to fix link line ordering.
7702 (none_decompress): Likewise.
7703
7704 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
7705
7706 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
7707 platforms.
7708 (grub-emu-lite): Remove kern/emu/cache.S.
7709
7710 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
7711
7712 * util/deviceiter.c (compare_devices): If the by-id link for a
7713 device couldn't be resolved, fall back to sorting by the by-id link
7714 rather than segfaulting.
7715 Reported and tested by: Daniel Mierswa.
7716
7717 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
7718
7719 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
7720 ldflags, to fix link line ordering.
7721
7722 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
7723
7724 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
7725 linkers are picky about this.
7726
7727 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
7728
7729 * grub-core/Makefile.am (command.lst): Adjust sed expression
7730 ordering so that extended and priority commands aren't treated as
7731 ordinary commands.
7732
7733 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
7734
7735 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
7736 Remove byte-swapping function calls, which are not valid in
7737 structure initialisers.
7738 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
7739 non-const.
7740 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
7741 grub_gpt_partition_type_bios_boot.
7742
7743 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
7744
7745 Fix test program build on GNU/kFreeBSD.
7746
7747 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
7748 $(LIBNVPAIR)' library dependencies.
7749
7750 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
7751
7752 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
7753
7754 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
7755
7756 * util/grub-install.in: Remove excessive quoting that broke
7757 installations to RAID devices.
7758
7759 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
7760
7761 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
7762 bootloader version instead of 0.
7763
7764 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
7765
7766 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
7767 warning.
7768
7769 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
7770
7771 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
7772 retrieve the metadat sector if size isn't known.
7773 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
7774
7775 2010-11-18 Robert Millan <rmh@gnu.org>
7776
7777 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
7778 with grub_memcmp().
7779
7780 2010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
7781
7782 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
7783 arrow.
7784 Reported by: Jordan Uggla.
7785
7786 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
7787
7788 Make better UTF compliant.
7789
7790 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
7791 sequences as incorrect.
7792 (grub_is_valid_utf8): Likewise.
7793 (grub_utf8_to_ucs4): Likewise.
7794 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
7795 (grub_ucs4_to_utf8_alloc): Likewise.
7796 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
7797
7798 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
7799
7800 Make legacy_source behave like source.
7801
7802 * grub-core/commands/legacycfg.c (legacy_file): Don't call
7803 grub_show_menu.
7804 (grub_cmd_legacy_source): Call grub_show_menu if needed.
7805
7806 2010-11-16 Colin Watson <cjwatson@debian.org>
7807
7808 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
7809 (-Wunused implies -Wunused-parameter, but not vice versa).
7810
7811 2010-11-16 Colin Watson <cjwatson@ubuntu.com>
7812
7813 * configure.ac: Make error messages less confusing by testing for
7814 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
7815 accepted, but produces a diagnostic if something else is wrong).
7816
7817 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
7818
7819 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
7820 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
7821 (now unused).
7822 (grub_keyboard_controller_init)
7823 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
7824 read the initial state since controller isn't inited yet.
7825
7826 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
7827
7828 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
7829 allocate_regbeg may need to create new chunk header.
7830
7831 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
7832
7833 Fix quoting in legacy parser.
7834
7835 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
7836 single quotes.
7837 (grub_legacy_parse): Likewise.
7838 Reported by: Jordan Uggla.
7839 Tested by: Jordan Uggla.
7840
7841 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
7842
7843 Don't add -lgcc on i386 and x86_64.
7844
7845 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
7846 * conf/Makefile.common (LDADD_KERNEL): Likewise.
7847 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
7848
7849 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
7850
7851 * configure.ac: Add -Wno-trampolines when supported.
7852
7853 2010-11-14 Modestas Vainius <modax@debian.org>
7854
7855 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
7856 fakeraid.
7857
7858 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
7859
7860 Add generic logical block size support for UDF.
7861
7862 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
7863 (GRUB_UDF_BLKSZ): Removed.
7864 (struct grub_udf_data): New field "lbshift" to hold the logical block
7865 size of the file system in log2 format. All users updated.
7866 (sblocklist): Change type to unsigned.
7867 (grub_udf_mount): Change type of "sblklist" to unsigned.
7868 Move AVDP search before VRS recognition, because the latter requires
7869 knowledge of the logical block size, which is detected during the
7870 former.
7871 Detect and validate logical block size during AVDP search, adding
7872 support for block sizes 512, 1024 and 4096.
7873 Make VRS recognition independent of block size.
7874
7875 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
7876
7877 Properly handle deleted files on UDF.
7878
7879 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
7880 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
7881 set.
7882
7883 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
7884
7885 Support reading files larger than 2 GiB.
7886
7887 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
7888 "offset" to grub_off_t.
7889 (grub_udf_read_file): Likewise for parameter "pos".
7890
7891 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
7892
7893 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
7894 unavailable.
7895 (Simple configuration): Refer to Changes from GRUB Legacy about
7896 save_env availability.
7897
7898 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
7899
7900 * util/grub-install.in: Ignore empty partition table detection
7901 instead of trying to include part_ module.
7902
7903 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
7904
7905 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
7906 LVM on RAID support.
7907
7908 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
7909
7910 Properly define WORDS_BIGENDIAN in wrapped environments.
7911
7912 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
7913 definition.
7914 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
7915
7916 Reported by: Manoel Rebelo Abranches.
7917 Tested by: Manoel Rebelo Abranches.
7918
7919 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
7920
7921 * util/grub-mkconfig.in: Fix quoting.
7922
7923 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
7924
7925 Support big ext2 files.
7926
7927 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
7928 (grub_ext2_read_block): Support triple indirect blocks.
7929 (grub_ext2_read_file): Use 64-bit types and read size_high.
7930 (grub_ext2_open): Read size_high.
7931 Reported by: Ximin Luo.
7932 Tested by: Manoel Rebelo Abranches.
7933
7934 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
7935
7936 * util/grub-install.in: Handle filenames containing spaces.
7937 Reported by: Jordan Uggla.
7938 Tested by: Jordan Uggla.
7939
7940 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
7941
7942 * util/grub-mkconfig.in (grub_script_check): New variable.
7943 Use grub_script_check instead of grub-script-check.
7944 Reported by: Barry Jackson.
7945
7946 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
7947
7948 * docs/grub.texi (menu): Correct the order.
7949 Reported by: D. Hugh Redelmeier.
7950
7951 2010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
7952
7953 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
7954 jump.
7955
7956 2010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
7957
7958 * include/grub/elfload.h (grub_elf32_size): New parameter.
7959 All users updated.
7960 Return maximum segments alignment.
7961 (grub_elf64_size): Likewise.
7962 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
7963 Return maximum segments alignment.
7964 (grub_elf64_size): Likewise.
7965 * grub-core/loader/powerpc/ieee1275/linux.c:
7966 (grub_linux_claimmap_iterate): New function. Uses the
7967 "available" property in the "memory" node for memory allocation
7968 for kernel in the PowerPC loader.
7969 (grub_linux_load32): Correctly find linux entry point offset.
7970 (grub_linux_load64): Likewise.
7971
7972 2010-11-07 Robert Millan <rmh@gnu.org>
7973
7974 On mips-yeeloong, build with -march=loongson2f when this flag is
7975 available (GCC >= 4.4).
7976 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
7977 `-march=mips3'.
7978 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
7979 or otherwise add -march=mips3.
7980
7981 2010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
7982
7983 Suppress shell expansion on echo '*' and echo "*" like cases.
7984 Reported by: Jordan Uggla.
7985
7986 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
7987 string arguments before shell expansion.
7988 * tests/grub_cmd_echo.in: New testcases.
7989
7990 2010-11-07 Robert Millan <rmh@gnu.org>
7991
7992 * conf/mips-qemu-mips.rmk: Remove stale file from previous
7993 transition.
7994
7995 2010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
7996
7997 * grub-core/kern/emu/hostdisk.c
7998 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
7999
8000 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
8001
8002 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
8003 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
8004 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
8005
8006 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
8007
8008 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
8009
8010 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
8011
8012 * util/grub-install.in: Replace useless recomendation to pass
8013 --modules with a recomendation to report a bug.
8014
8015 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
8016
8017 Properly register serial terminfo.
8018 Reported by: Jordan Uggla
8019
8020 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
8021 const.
8022 (grub_serial_terminfo_output_template): Likewise.
8023 (grub_cmd_serial): Register "serial" with terminfo.
8024 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
8025 grub_serial_terminfo_output.
8026
8027 2010-11-05 Robert Millan <rmh@gnu.org>
8028
8029 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
8030 needed).
8031
8032 2010-11-05 Robert Millan <rmh@gnu.org>
8033
8034 On Yeeloong, pass machine type information to Linux.
8035
8036 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
8037 (LOONGSON_MACHTYPE): New macro, set to
8038 "machtype=lemote-yeeloong-2f-8.9inches".
8039 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
8040 additional argument to Linux.
8041
8042 2010-11-04 Robert Millan <rmh@gnu.org>
8043
8044 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
8045 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
8046 (its SATA disks are detected as slaveless IDE master drives on
8047 kFreeBSD).
8048 Reported by Carsten Aulbert.
8049
8050 2010-11-02 Colin Watson <cjwatson@ubuntu.com>
8051
8052 * util/bin2h.c (main): Fix spelling error in generated output.
8053
8054 2010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
8055
8056 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
8057
8058 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
8059
8060 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
8061 vga= option is supplied.
8062
8063 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
8064
8065 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
8066 * util/grub.d/10_kfreebsd.in: Likewise.
8067 * util/grub.d/10_linux.in: Likewise.
8068 * util/grub.d/20_linux_xen.in: Likewise.
8069
8070 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
8071
8072 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
8073 argument as an argument to no-argument option.
8074
8075 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
8076
8077 * util/grub.d/10_linux.in: Add missing load_video with explicit
8078 GRUB_GFXPAYLOAD_LINUX.
8079
8080 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
8081
8082 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
8083
8084 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
8085
8086 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
8087 elements with invlid index.
8088 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
8089 * grub-core/disk/raid.c (insert_array): Automatically reallocate
8090 members.
8091 * include/grub/raid.h (grub_raid_member): New struct.
8092 (grub_raid_array): Transform devices and start_sector into usage of
8093 grub_raid_member. All users updated
8094 (allocated_devs): New member.
8095
8096 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
8097
8098 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
8099 is modified
8100
8101 2010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
8102
8103 NetBSD build fix for getline function conflict from gnulib.
8104
8105 * Makefile.util.def (libgrubkern.a): New library for grub kernel
8106 components that depend on gnulib headers.
8107 (libgrubmods.a): Renamed from earlier libgrub.a.
8108 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
8109
8110 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
8111
8112 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
8113 install rather than creating a broken install.
8114
8115 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
8116
8117 * util/grub-setup.c (argp): Remove misleading example of installing to
8118 a partition.
8119
8120 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
8121
8122 * util/grub-setup.c (setup): Clarify the error message.
8123
8124 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
8125
8126 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
8127
8128 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
8129
8130 * grub-core/kern/emu/misc.c
8131 (grub_make_system_path_relative_to_its_root)
8132 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
8133
8134 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
8135
8136 * grub-core/kern/emu/misc.c
8137 (grub_make_system_path_relative_to_its_root): Revert r2882.
8138
8139 2010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
8140
8141 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
8142 useless field head. All users updated.
8143 (free_subchunk): Correct handling of IN_REGION subchunk.
8144
8145 2010-10-22 Colin Watson <cjwatson@ubuntu.com>
8146
8147 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
8148 (Supported kernels): Likewise.
8149
8150 2010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
8151
8152 Make mktemp invocations portable.
8153
8154 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
8155 exit if mktemp fails.
8156 * tests/grub_script_blockarg.in: Likewise.
8157 * tests/partmap_test.in: Likewise.
8158 * tests/util/grub-shell-tester.in: Likewise.
8159 * tests/util/grub-shell.in: Likewise.
8160 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
8161 * Makefile.am: Likewise, and chain shell commands with `&&'
8162 instead of ';'.
8163 * util/grub-mkrescue.in: Use the same explicit template as above, and
8164 exit if mktemp fails.
8165
8166 2010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
8167
8168 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
8169 Linux kernel, reported by Dennis Schridde.
8170
8171 2010-10-17 Szymon Janc <szymon@janc.net.pl>
8172
8173 * grub-core/normal/auth.c (grub_auth_check_authentication):
8174 Set-but-not-used variable removed.
8175
8176 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
8177
8178 * docs/grub.texi (GNU/Linux): Document APM unavailability with
8179 32-bit linux protocol.
8180
8181 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
8182
8183 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
8184 cursor shape for sanity.
8185
8186 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
8187
8188 * docs/grub.texi (Installation): Document buggy BIOS install.
8189
8190 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
8191
8192 * docs/grub.texi (Installation): Indent.
8193
8194 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
8195
8196 * util/grub-setup.c (setup): New parameter allow_floppy.
8197 (arguments): New member allow_floppy.
8198 (argp_parser): Handle --allow-floppy.
8199 (main): Pass allow_floppy.
8200 * util/grub-install.in: New option --allow-floppy passed though to
8201 grub-setup.
8202
8203 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
8204
8205 * util/grub-install.in: Handle partitionless disks.
8206
8207 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
8208
8209 * util/grub-setup.c (setup): Don't clean blocklists before readability
8210 verfification.
8211
8212 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
8213
8214 * docs/grub.texi (Installation): Document embedding zone. Remove
8215 obsolete grub-install example.
8216
8217 2010-10-16 Szymon Janc <szymon@janc.net.pl>
8218
8219 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
8220 Set-but-not-used variable ifdef'ed.
8221 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
8222 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
8223 variable removed.
8224 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
8225 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
8226 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
8227 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
8228 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
8229 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
8230 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
8231 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
8232 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
8233 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
8234 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
8235 Likewise.
8236
8237 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
8238
8239 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
8240 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
8241 enum value.
8242
8243 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
8244
8245 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
8246 synonym to _S5_. Needed for some DSDTs.
8247
8248 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
8249
8250 Userspace ACPI parser debugging.
8251
8252 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
8253 headers and add relevant defines. Don't include standard headers.
8254 (main) [GRUB_DSDT_TEST]: New function.
8255 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
8256 Don't declare functions.
8257
8258 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
8259
8260 Remove dead grub_efi_mm_fini.
8261
8262 * grub-core/kern/efi/mm.c (allocated_page): Removed.
8263 (ALLOCATED_PAGES_SIZE): Likewise.
8264 (MAX_ALLOCATED_PAGES): Likewise.
8265 (allocated_pages): Likewise.
8266 (grub_efi_allocate_pages): Don't record allocated pages.
8267 (grub_efi_free_pages): Likewise.
8268 (grub_efi_mm_init): Likewise.
8269 (grub_efi_mm_fini): Removed.
8270
8271 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
8272
8273 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
8274 (grub_efi_mm_init): Take into account the memory map size increase.
8275
8276 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
8277
8278 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
8279 (serial_hw_put): Wait based on real time rather than port reads. Don't
8280 roken ports.
8281 * include/grub/serial.h (grub_serial_port): New field broken.
8282
8283 2010-10-16 Robert Millan <rmh@gnu.org>
8284
8285 * grub-core/kern/emu/misc.c
8286 (grub_make_system_path_relative_to_its_root): Fix premature return
8287 when processing non-root ZFS filesystems.
8288 Reported by Sergio Talens-Oliag.
8289
8290 2010-10-15 Robert Millan <rmh@gnu.org>
8291
8292 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
8293 guarantee compressed ones are processed first.
8294
8295 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
8296
8297 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
8298 grub_efiemu_autocore.
8299
8300 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
8301
8302 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
8303 rather than 0x1b.
8304 (grub_console_getkey): Use correct jae opcode rather than ja.
8305
8306 2010-10-12 Robert Millan <rmh@gnu.org>
8307
8308 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
8309 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
8310 variable. All references updated.
8311
8312 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
8313
8314 2010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
8315
8316 Correctly distinguish mdraid flavours.
8317
8318 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
8319 (insert_array): New argument raid.
8320 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
8321 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
8322 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
8323
8324 2010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
8325
8326 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
8327 handling of special keys.
8328
8329 2010-10-02 Aleš Nesrsta <starous@volny.cz>
8330
8331 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
8332 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
8333
8334 2010-10-02 Aleš Nesrsta <starous@volny.cz>
8335
8336 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
8337 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
8338 users updated.
8339 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
8340 Use right endpoint when querying descriptor.
8341
8342 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
8343
8344 Clear out 0x80 color bit on EFI.
8345 Tested by: decoder
8346 Reported by: decoder and meta tech.
8347
8348 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
8349 (grub_console_setcolorstate): Clear out 0x80 bit.
8350 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
8351 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
8352 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
8353
8354 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
8355
8356 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
8357 Set to "auto".
8358
8359 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
8360
8361 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
8362 mo_file after freeing.
8363
8364 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
8365
8366 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
8367
8368 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
8369
8370 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
8371 flags.
8372
8373 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
8374
8375 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
8376 usage.
8377
8378 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
8379
8380 Put terminfo into core on ieee1275 and yeeloong (needed for console).
8381
8382 * gentpl.py: New groups terminfoinkernel and terminfomodule.
8383 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
8384 and terminfo.h when needed.
8385 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
8386 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
8387 (terminfo): Enable only on terminfokernel.
8388 (extcmd): Likewise.
8389 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
8390 * include/grub/lib/arg.h: Likewise.
8391 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
8392 incorrect usage of ->.
8393
8394 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
8395
8396 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
8397 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
8398
8399 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
8400
8401 Fix coreboot compilation.
8402
8403 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
8404 Take VBE info into account even if only text is supported.
8405 (fill_vbe_info): Take into account the case when only VGA text
8406 is supported.
8407 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
8408 on coreboot, multiboot and qemu.
8409
8410 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
8411
8412 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
8413 debug messages.
8414 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
8415
8416 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
8417
8418 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
8419 parameters.
8420
8421 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
8422
8423 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
8424 if they were BSD-style.
8425
8426 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
8427
8428 * grub-core/boot/i386/pc/lnxboot.S: Replace
8429 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
8430 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
8431
8432 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
8433
8434 Write embedding zone using Reed-Solomon.
8435
8436 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
8437 * grub-core/Makefile.am (rs_decoder.S): New target.
8438 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
8439 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
8440 (multiboot): Move to RS part.
8441 (post_reed_solomon): New label.
8442 (grub_boot_drive): Move to non-RS part since it's modified in memory
8443 on boot.
8444 Include rs_decoder.S.
8445 * grub-core/lib/reed_solomon.c: New file.
8446 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
8447 New definition.
8448 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
8449 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
8450 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
8451 * include/grub/partition.h (grub_partition_map): Change prototype of
8452 embed to allow returning additional sectors.
8453 * include/grub/reed_solomon.h: New file.
8454 * util/grub-setup.c (setup): Handle Reed-Solomon.
8455
8456 2010-09-28 Colin Watson <cjwatson@ubuntu.com>
8457
8458 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
8459 i386 and x86-64 definedness tests.
8460
8461 2010-09-27 Yves Blusseau <blusseau@zetam.org>
8462
8463 Fix generation of kernel_syms.lst
8464
8465 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
8466 ASM_PREFIX
8467
8468 2010-09-26 Robert Millan <rmh@gnu.org>
8469
8470 Support degraded ZFS arrays in "grub-probe -t device" resolution.
8471
8472 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
8473 the pool is an array of devices, iterate through it and return the
8474 first device that passes a stat() test (instead of blindly returning
8475 the first one).
8476
8477 2010-09-26 Robert Millan <rmh@gnu.org>
8478
8479 Build fixes for GNU/kFreeBSD.
8480
8481 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
8482 to programs that require ZFS conversion.
8483 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
8484 kernels that don't have FLOPPY_MAJOR.
8485
8486 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
8487
8488 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
8489
8490 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
8491
8492 Fix grub-emu build.
8493
8494 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
8495 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
8496 mdraid09 and mdraid1x.
8497
8498 2010-09-24 Colin Watson <cjwatson@ubuntu.com>
8499
8500 Re-enable grub-extras.
8501
8502 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
8503 avoid confusing Automake. Run autogen only twice, once for the top
8504 level and once for grub-core. Add Makefile.util.def and
8505 Makefile.core.def from extra modules to the appropriate autogen
8506 invocations. If Makefile.common exists in an extra module, include
8507 it in both Makefile.util.am and grub-core/Makefile.core.am;
8508 similarly, include any Makefile.util.common file in Makefile.util.am
8509 and any Makefile.core.common file in grub-core/Makefile.core.am.
8510 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
8511 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
8512 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
8513 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
8514
8515 * gentpl.py (gvar_add): Turn GVARS into a set.
8516 (global_variable_initializers): Sort global variables on output.
8517 (vars_init): New function.
8518 (first_time): Likewise.
8519 (library): Ensure that non-global variable initialisations are
8520 emitted before the first time we emit code for a library block.
8521 Append to variables rather than setting them. Only emit
8522 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
8523 each conditional path.
8524 (program): installdir() emits an Autogen macro, so must be passed to
8525 var_add rather than gvar_add.
8526 (data): Likewise.
8527 (script): Likewise.
8528 (rules): New function, centralising handling for different target
8529 types. Set up Guile association lists for first_time and vars_init,
8530 and send most output to a diversion so that variable initialisations
8531 can be emitted first.
8532 (module_rules): Use new rules function.
8533 (kernel_rules): Likewise.
8534 (image_rules): Likewise.
8535 (library_rules): Likewise.
8536 (program_rules): Likewise.
8537 (script_rules): Likewise.
8538 (data_rules): Likewise.
8539
8540 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
8541
8542 * .bzrignore: Add contrib and grub-core/contrib. Remove
8543 grub-core/Makefile.gcry.am.
8544
8545 2010-09-24 Yves Blusseau <blusseau@zetam.org>
8546
8547 * grub-core/lib/LzFind.c: Add missing include.
8548 * grub-core/lib/LzmaEnc.c: Likewise.
8549 * grub-core/script/lexer.c: Likewise.
8550 * grub-core/script/yylex.l: Likewise.
8551 * util/grub-macho2img.c: Likewise.
8552 * util/grub-menulst2cfg.c: Likewise.
8553 * util/grub-mklayout.c: Likewise.
8554 * util/grub-mkpasswd-pbkdf2.c
8555 * util/grub-mkrelpath.c: Likewise.
8556 * util/resolve.c: Likewise.
8557
8558 2010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
8559
8560 * Makefile.util.def (example_unit_test): Add
8561 grub-core/gnulib/libgnu.a.
8562
8563 2010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
8564
8565 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
8566
8567 2010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
8568
8569 Support xz compression on yeeloong.
8570
8571 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
8572 * configure.ac: Check for LZMA.
8573 * grub-core/Makefile.core.def (xz_decompress): New target.
8574 (none_decompress): Likewise.
8575 * grub-core/boot/decompressor/minilib.c: New file.
8576 * grub-core/boot/decompressor/none.c: Likewise.
8577 * grub-core/boot/decompressor/xz.c: Likewise.
8578 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
8579 * grub-core/kern/mips/cache_flush.S: Likewise.
8580 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
8581 * grub-core/kern/mips/startup.S: Move first stage to ...
8582 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
8583 nomacro.
8584 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
8585 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
8586 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
8587 Allocate statically.
8588 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
8589 Allocate statically or use scratch. Don't check CRC32.
8590 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
8591 Allocate statically. Don't check CRC32.
8592 * include/grub/decompressor.h: New file.
8593 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
8594 Removed.
8595 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
8596 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
8597 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
8598 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
8599 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
8600 * util/grub-mkimage.c (grub_compression_t): New type.
8601 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
8602 (image_target_desc): New field default_compression.
8603 (image_targets): Adjust yeeloong targets.
8604 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
8605 (compress_kernel): New parameter comp.
8606 (generate_image): Likewise. Handle new compression case.
8607 (options): New option --compression
8608 (help): Likewise.
8609 (main): Handle new option.
8610
8611 2010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
8612
8613 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
8614
8615 2010-09-22 Colin Watson <cjwatson@ubuntu.com>
8616
8617 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
8618 typo in __i386__ conditional.
8619
8620 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
8621
8622 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
8623 include.
8624
8625 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
8626
8627 Implement EFI and ACPI multiboot2 extensions.
8628
8629 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
8630 new tags as supported.
8631 (acpiv2_size): New function.
8632 (grub_multiboot_get_mbi_size): Take new tags into account.
8633 (grub_multiboot_make_mbi): Add new tags.
8634 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
8635
8636 2010-09-21 Aleš Nesrsta <starous@volny.cz>
8637
8638 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
8639 Added missing configuration of USB device.
8640
8641 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
8642
8643 * grub-core/normal/menu_entry.c (run): Make sure we always return
8644 a value.
8645
8646 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
8647
8648 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
8649 NumberOfPages is UINT64 according to the UEFI specification, not
8650 UINTN. Fix printf format.
8651
8652 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
8653
8654 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
8655 `err' to grub_usb_err_t.
8656 Reported and tested by: KESHAV P.R.
8657
8658 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
8659
8660 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
8661 tpart non-const, so that we can assign to it. (Since this is a
8662 typedef, the constness refers to the pointer rather than what it
8663 points to.)
8664
8665 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
8666
8667 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
8668 $(top_srcdir)/grub-core/gnulib as well as
8669 $(top_builddir)/grub-core/gnulib.
8670 Reported by: KESHAV P.R.
8671
8672 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
8673
8674 * util/grub-install.in: Fix the bootloader ID option to be
8675 consistently --bootloader-id, not --bootloader_id.
8676 Reported by: KESHAV P.R.
8677
8678 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
8679
8680 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
8681 check hash checksum." consistently translatable.
8682
8683 2010-09-21 Yves Blusseau <blusseau@zetam.org>
8684
8685 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
8686 $(top_builddir).
8687
8688 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
8689
8690 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
8691 (GRUB_MOD_INIT): Register sha1sum command.
8692 (GRUB_MOD_FINI): Unregister sha1sum command.
8693
8694 2010-09-21 Yves Blusseau <blusseau@zetam.org>
8695
8696 Keep boot and grub directory names in sync with utils scripts
8697
8698 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
8699 * config.h.in: Add previous macros.
8700 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
8701 * util/grub-install.in: Use $bootdir and $grubdir variables.
8702
8703 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
8704
8705 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
8706 convert partition names to disk names if the new `convert' parameter
8707 is set.
8708 (grub_util_biosdisk_get_grub_dev): If opening the disk device
8709 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
8710 disk in its own right. This can happen with Xen disk images.
8711
8712 2010-09-21 Yves Blusseau <blusseau@zetam.org>
8713
8714 * util/grub-editenv.c: Update strings to avoid warnings when generating
8715 grub.pot file.
8716 * util/grub-setup.c: Likewise.
8717
8718 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
8719
8720 * configure.ac: Change version to 1.99~beta0.
8721
8722 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
8723
8724 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
8725 Add BADRAM.
8726 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
8727 Likewise.
8728 * include/multiboot.h: Resynced with specification.
8729 * include/multiboot2.h: Likewise.
8730
8731 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
8732
8733 Fix po directory handling.
8734
8735 * configure.ac: Create po/Makefile.in rather than po/Makefile.
8736 * grub-core/gnulib/Makefile.am: Import gettext module.
8737 * m4/gnulib-cache.m4: Likewise.
8738 * m4/gnulib-comp.m4: Likewise.
8739 * m4/gettext.m4: New file, from gnulib.
8740 * m4/glibc2.m4: Likewise.
8741 * m4/iconv.m4: Likewise.
8742 * m4/intdiv0.m4: Likewise.
8743 * m4/intl.m4: Likewise.
8744 * m4/intldir.m4: Likewise.
8745 * m4/intlmacosx.m4: Likewise.
8746 * m4/intmax.m4: Likewise.
8747 * m4/inttypes-pri.m4: Likewise.
8748 * m4/lcmessage.m4: Likewise.
8749 * m4/lib-ld.m4: Likewise.
8750 * m4/lib-link.m4: Likewise.
8751 * m4/lib-prefix.m4: Likewise.
8752 * m4/lock.m4: Likewise.
8753 * m4/nls.m4: Likewise.
8754 * m4/po.m4: Likewise.
8755 * m4/printf-posix.m4: Likewise.
8756 * m4/progtest.m4: Likewise.
8757 * m4/threadlib.m4: Likewise.
8758 * m4/uintmax_t.m4: Likewise.
8759 * m4/visibility.m4: Likewise.
8760 * po/Makefile.am: Remove.
8761 * po/Makefile.in.in: New file, from gettext.
8762 ($(DOMAIN).pot-update): Support POTFILES-shell.
8763 * po/Makevars: New file.
8764 * po/POTFILES-shell: Rename to ...
8765 * po/POTFILES-shell.in: ... this. Update.
8766 * po/POTFILES: Rename to ...
8767 * po/POTFILES.in: ... this. Update.
8768 * po/Rules-quot: New file, from gettext.
8769 * po/boldquot.sed: Likewise.
8770 * po/en@boldquot.header: Likewise.
8771 * po/en@quot.header: Likewise.
8772 * po/insert-header.sin: Likewise.
8773 * po/quot.sed: Likewise.
8774 * po/remove-potcdate.sin: Likewise.
8775
8776 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8777
8778 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
8779
8780 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8781
8782 * util/grub.d/20_linux_xen.in: Use submenus.
8783
8784 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8785
8786 Support submenus.
8787
8788 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
8789 parameter submenu. All users updated.
8790 * grub-core/normal/main.c (free_menu): Rename to ...
8791 (grub_normal_free_menu): ... this. Made global.
8792 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
8793 if requested.
8794 * grub-core/normal/menu_entry.c (screen): New field submenu.
8795 (make_screen): Set submenu.
8796 (run): Open new context if requested.
8797 * include/grub/menu.h (grub_menu_entry): New field submenu.
8798 * include/grub/normal.h (grub_normal_free_menu): New proto.
8799
8800 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8801
8802 Menu entries extractor.
8803
8804 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
8805 variants.
8806 (GRUB_MOD_INIT): Register new variants.
8807 (GRUB_MOD_FINI): Unregister new variants.
8808 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
8809 into grub_cmd_legacy_source.
8810 (grub_cmd_legacy_source): Implement extractor variants.
8811 (GRUB_MOD_INIT): Register new variants.
8812 (GRUB_MOD_FINI): Unregister new variants.
8813 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
8814 as an extractor.
8815 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
8816 search as an extractor.
8817 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
8818 test as an extractor.
8819 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
8820 as an extractor.
8821 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
8822 (grub_env_new_context): New function.
8823 (grub_env_context_open): Likewise.
8824 (grub_env_extractor_open): Likewise.
8825 (grub_env_extractor_close): Likewise.
8826 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
8827 grub_extractor_level.
8828 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
8829 * include/grub/env.h (grub_env_extractor_open): New proto.
8830 (grub_env_extractor_close): Likewise.
8831 * include/grub/normal.h (grub_extractor_level): New external variable.
8832
8833 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8834
8835 Make cutmem accept a region specification.
8836 Suggested by: Samuel Thibault
8837
8838 * grub-core/mmap/mmap.c (parsemem): New function.
8839 (grub_cmd_cutmem): Handle new arguments.
8840
8841 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8842
8843 New command cutmem.
8844
8845 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
8846 (GRUB_MOD_INIT): Register new command.
8847 (GRUB_MOD_FINI): Unregister new command.
8848
8849 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8850
8851 Support some annoying BSD and Minix subpartitions.
8852
8853 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
8854 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
8855 Properly handle concatenation.
8856 * grub-core/kern/device.c (grub_device_iterate): Likewise.
8857 * grub-core/normal/completion.c (iterate_partition): Likewise.
8858 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
8859 contain partition. All users updated.
8860 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
8861 struct.
8862 (grub_openbsdlabel_partition_map): Likewise.
8863 (bsdlabel_partition_map_iterate): Rename to ..
8864 (iterate_real): ... this. New arguments sector, freebsd and pmap.
8865 (bsdlabel_partition_map_iterate): New function.
8866 (netopenbsdlabel_partition_map_iterate): Likewise.
8867 (netbsdlabel_partition_map_iterate): Likewise.
8868 (openbsdlabel_partition_map_iterate): Likewise.
8869 (GRUB_MOD_INIT): Register new partmaps.
8870 (GRUB_MOD_FINI): Unregister new partmaps.
8871 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
8872 (grub_partition_msdos_iterate): ... this. All users updated.
8873 Don't support embedding other than in a minix partition.
8874 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
8875 proto.
8876 * include/grub/partition.h (grub_partition): New field msdostype.
8877 * util/grub-install.in: Handle openbsd and netbsd types being in
8878 part_bsd module.
8879
8880 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8881
8882 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
8883
8884 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
8885 * grub-core/Makefile.core.def (mdraid): Renamed to ...
8886 (mdraid09): ... this.
8887 (mdraid1x): New module.
8888 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
8889 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
8890
8891 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8892
8893 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
8894 vsprintf.
8895
8896 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
8897
8898 * grub-core/commands/efi/lsefimmap.c: Correct header.
8899 * NEWS: Update.
8900
8901 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
8902
8903 * util/grub-editenv.c (argp_parser): Don't pass translated strings
8904 as printf format strings; the translations might contain '%' which
8905 could cause a crash.
8906 (main): Likewise.
8907 * util/grub-fstest.c (argp_parser): Likewise.
8908 * util/grub-setup.c (argp_parser): Likewise.
8909 (main): Likewise.
8910
8911 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8912
8913 Use argp in grub-fstest.
8914
8915 * util/grub-fstest.c: Don't include getopt.h.
8916 Include argp.h.
8917 (root): New variable.
8918 (args_count): Likewise.
8919 (nparm): Likewise.
8920 (num_disks): Likewise.
8921 (images): Likewise.
8922 (cmd): Likewise.
8923 (debug_str): Likewise.
8924 (args): Likewise.
8925 (options): Transformed to argp.
8926 (usage): Removed.
8927 (main): Split argument parsing into ...
8928 (argp_parser): ... this. Changed to argp format.
8929 (argp): New variable.
8930 (main): Use argp_parse.
8931
8932 2010-09-20 Tristan Gingold <gingold@free.fr>
8933 2010-09-20 Robert Millan <rmh.grub@aybabtu.com>
8934 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8935
8936 * grub-core/commands/efi/lsefimmap.c: New file.
8937 * grub-core/Makefile.core.def (lsefimmap): New module.
8938 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
8939
8940 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8941
8942 Pause the execution (10s max) if any errors are displayed so the user
8943 has a chance to see them.
8944
8945 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
8946 (grub_print_error): Increment grub_err_printed_errors.
8947 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
8948 execution if any errors were displayed.
8949 (show_menu): Remove old code for pause.
8950 * grub-core/normal/menu_entry.c (run): Likewise.
8951 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
8952 users updated.
8953 (grub_normal_get_char_counter): Likewise.
8954 * include/grub/err.h (grub_err_printed_errors): New external variable.
8955 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
8956
8957 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8958
8959 Support multiboot VBE info.
8960
8961 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
8962 Take VBE info into account.
8963 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
8964 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
8965 Call fill_vbe_info when appropriate.
8966 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
8967 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
8968 as supported.
8969 (grub_multiboot_get_mbi_size): Take new tags into account.
8970 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
8971 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
8972 Call fill_vbe_tag when appropriate.
8973 (grub_multiboot_make_mbi): Properly align tags.
8974 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
8975 function.
8976 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
8977 proto.
8978 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
8979
8980 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8981
8982 Suport manual terminal geometry specification.
8983
8984 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
8985 Save state in grub_ofconsole_terminfo_output.
8986 (grub_ofconsole_term): Use grub_terminfo_getwh.
8987 (grub_ofconsole_getwh): Removed.
8988 * grub-core/term/serial.c (grub_serial_getwh): Removed.
8989 (grub_serial_term): Use grub_terminfo_getwh.
8990 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
8991 (options): New struct.
8992 (OPTION_*): New enum.
8993 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
8994 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
8995 width and height.
8996 (grub_terminfo_getwh): New proto.
8997 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
8998
8999 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
9000
9001 Handle legacy "terminal" command.
9002
9003 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
9004 and FLAG_TERMINAL.
9005 (legacy_commands): Add terminal and title.
9006 (grub_legacy_parse): Handle terminal. Simplify title handling.
9007
9008 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
9009
9010 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
9011 parameters overflow.
9012
9013 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
9014
9015 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
9016 widthspec.h.
9017
9018 * docs/grub.texi (Shell-like scripting): Document `!'.
9019 (Network): Simplify using new i386-pc-pxe format. Mention
9020 grub-mknetdir.
9021
9022 * NEWS: Update.
9023
9024 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
9025
9026 * Makefile.am (SUBDIRS): Restore "."; it's important to force
9027 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
9028 when needed.
9029
9030 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
9031
9032 * grub-core/commands/efi/lsefisystab.c: Correct header.
9033 * grub-core/commands/efi/lssal.c: Likewise.
9034 * grub-core/commands/testload.c: Likewise.
9035
9036 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
9037
9038 * util/grub-mkrescue.in: Add explicit root argument to --set to
9039 prevent the UUID being interpreted as an argument to --set (matches
9040 previous change to prepare_grub_to_access_device).
9041
9042 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
9043
9044 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
9045 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
9046 the verbosity of later #ifs.
9047 (find_partition_start): Define this function on FreeBSD too.
9048 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
9049 function.
9050 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
9051 on FreeBSD.
9052
9053 2010-09-20 Yves Blusseau <blusseau@zetam.org>
9054
9055 * util/grub-editenv.c: Use argp instead of getopt.
9056
9057 2010-09-20 Yves Blusseau <blusseau@zetam.org>
9058
9059 * util/grub-setup.c: Use argp instead of getopt.
9060
9061 2010-09-20 Yves Blusseau <blusseau@zetam.org>
9062
9063 Use gnulib-tool to create gnulib source files.
9064
9065 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
9066 grub-core/gnulib directories
9067 * .bzignore: Add **/.deps and autogenerated gnulib files
9068 * configure.ac: Assign auxiliary directory to build-aux, add invocation
9069 of gnulib macros, add grub-core/gnulib/Makefile
9070 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
9071 include m4 directory to aclocal.
9072 * Makefile.util.def: Remove direct compilation of gnulib source files
9073 and use the new grub-core/gnulib/libgnu.a.
9074 * build-aux/config.rpath: move config.rpath from top directory to
9075 build-aux
9076 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
9077 in gnulib headers
9078 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
9079 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
9080 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
9081 header.
9082 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
9083 string.
9084
9085 2010-09-20 Yves Blusseau <blusseau@zetam.org>
9086
9087 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
9088 grub-core/genmod.sh and grub-core/gensyminfo.sh
9089
9090 2010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
9091
9092 Add a test for echo command options.
9093
9094 * tests/grub_cmd_echo.in: New test.
9095 * Makefile.util.def: Rules for new test.
9096
9097 2010-09-20 Szymon Janc <szymon@janc.net.pl>
9098
9099 Remove crc.mod and move crc command to hashsum.mod.
9100 Remove lib/crc.c - users updated to use gcrypt implementation.
9101
9102 * grub-core/commands/crc.c: Removed.
9103 * grub-core/Makefile.core.def (crc): Module removed.
9104 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
9105 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
9106 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
9107 * grub-core/lib/crc.c: Removed.
9108 * include/grub/lib/crc.h: Removed.
9109 * Makefile.util.def (crc): Remove lib/crc.c
9110 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
9111 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
9112 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
9113 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
9114 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
9115 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
9116
9117 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
9118
9119 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
9120
9121 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
9122
9123 Split config.h for util and core.
9124
9125 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
9126 (ADDR32): Likewise.
9127 (DATA32): Likewise.
9128 (BSS_START_SYMBOL): Likewise.
9129 (END_SYMBOL): Likewise.
9130 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
9131 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
9132 * config.h.in: New file.
9133 * configure.ac: Use config-util.h as config define file.
9134 Rename MACHINE into GRUB_MACHINE. All users updated.
9135 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
9136 updated.
9137 (NESTED_FUNC_ATTR): Likewise.
9138 Substitue new variables.
9139 (COND_HAVE_ASM_USCORE): New conditional.
9140 * grub-core/Makefile.am (ASM_PREFIX): New variable.
9141 (kernel_syms.lst): Use ASM_PREFIX.
9142 * grub-core/kern/emu/console.c: Include config-util.h.
9143 * grub-core/kern/emu/misc.c: Likewise.
9144 * grub-core/kern/emu/mm.c: Likewise.
9145 * include/grub/emu/misc.h: Likewise.
9146 * include/grub/libgcc.h: Likewise.
9147
9148 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
9149
9150 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
9151 constants usage.
9152 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
9153 Fix GRUB_TERM_KEY_* constants usage.
9154 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
9155
9156 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
9157
9158 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
9159 print pointer.
9160 * grub-core/bus/usb/uhci.c: Remove empty define.
9161 (grub_uhci_check_transfer): Add missing cast.
9162 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
9163 print pointer.
9164 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
9165 PRIuGRUB_SIZE.
9166 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
9167
9168 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
9169
9170 * grub-core/Makefile.core.def (legacycfg): Add
9171 lib/i386/pc/vesa_modes_table.c on emu.
9172
9173 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
9174
9175 Reduce number of temporary files generated by build system.
9176
9177 * grub-core/gencmdlist.sh: Removed.
9178 * grub-core/genfslist.sh: Removed.
9179 * grub-core/genhandlerlist.sh: Removed.
9180 * grub-core/genmodsrc.sh: Removed.
9181 * grub-core/genpartmaplist.sh: Removed.
9182 * grub-core/genparttoollist.sh: Removed.
9183 * grub-core/gentermiinallist.sh: Removed.
9184 * grub-core/genvideolist.sh: Removed.
9185
9186 * grub-core/genmod.sh.in: New file.
9187 * grub-core/gensyminfo.sh.in: New file.
9188
9189 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
9190 * conf/Makefile.extra-dist: Update with new files.
9191 * gentpl.py: Remove rules related to unnecessary temporary files.
9192 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
9193 and und-* files.
9194 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
9195 genmod.sh scripts.
9196 * grub-core/bus/usb/uhci.c: Remove empty #define.
9197 * grub-core/genmoddep.awk: Updated with new syminfo format.
9198 * util/bash-completion.d/Makefile.am: Add config.log to
9199 CLEANFILES.
9200
9201 2010-09-19 Yves Blusseau <blusseau@zetam.org>
9202
9203 * Makefile.util.def: Add forgotten $(LIBINTL) library.
9204
9205 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
9206
9207 * util/grub-mkconfig.in: Check the config script for syntax errors
9208 before saving.
9209
9210 2010-09-19 Colin Watson <cjwatson@ubuntu.com>
9211 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
9212
9213 * Makefile.util.def (grub-install): Use util/grub-install.in on all
9214 platforms.
9215 * util/grub-install.in: Add EFI and IEEE1275 support.
9216 * util/i386/efi/grub-install.in: Removed.
9217 * util/ieee1275/grub-install.in: Likewise.
9218
9219 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
9220
9221 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
9222 (grub_cmd_cmosclean): Likewise.
9223 (GRUB_MOD_INIT): Register command cmosclean.
9224 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
9225 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
9226
9227 2010-09-18 Carles Pina i Estany <carles@pina.cat>
9228 2010-09-18 Aleš Nesrsta <starous@volny.cz>
9229 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
9230
9231 Add keyboard layouts support.
9232
9233 * Makefile.util.def (grub-mklayout): New file.
9234 (grub-kbdcomp): New script.
9235 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
9236 Add keyboard_layouts.h.
9237 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
9238 commands/boot.c on yeeloong.
9239 (keylayouts): New module.
9240 * grub-core/bus/usb/ohci.c
9241 * grub-core/bus/usb/uhci.c
9242 * grub-core/bus/usb/usbhub.c (rescan): New variable.
9243 (grub_usb_add_hub): Poll interrupt pipe for device handling.
9244 (attach_root_port): Likewise.
9245 (poll_nonroot_hub): Likewise.
9246 (grub_usb_poll_devices): Likewise.
9247 (detach_device): Close transfer.
9248 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
9249 function.
9250 (grub_usb_bulk_setup_readwrite): Likewise.
9251 (grub_usb_bulk_finish_readwrite): Likewise.
9252 * grub-core/commands/keylayouts.c: New file.
9253 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
9254 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
9255 aliases.
9256 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
9257 support scancode 2.
9258 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
9259 * include/grub/keyboard_layouts.h: New file.
9260 * util/grub-mklayout.c: New file.
9261 * util/grub-kbdcomp.in: Likewise.
9262
9263 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
9264
9265 Unify memory types.
9266
9267 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
9268 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
9269 types.
9270 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
9271 (grub_upper_mem): Likewise.
9272 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
9273 * include/grub/memory.h (grub_memory_type_t): New enum.
9274 All users updated.
9275
9276 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
9277
9278 * grub-core/Makefile.core.def (lsapm): New module.
9279 * grub-core/commands/i386/pc/lsapm.c: New file.
9280 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
9281 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
9282 Likewise.
9283 * include/grub/i386/pc/apm.h: New file.
9284 * include/multiboot.h (multiboot_apm_info): New struct.
9285
9286 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
9287
9288 GRUB-legacy configuration file support.
9289
9290 * Makefile.util.def (grub-menulst2cfg): New util.
9291 * docs/man/grub-menulst2cfg.h2m: New file.
9292 * grub-core/Makefile.core.def (legacycfg): New module.
9293 * grub-core/commands/legacycfg.c: New file.
9294 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
9295 (grub_normal_add_menu_entry): ... this.
9296 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
9297 (grub_normal_set_password): ...this.
9298 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
9299 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
9300 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
9301 * grub-core/lib/legacy_parse.c: New file.
9302 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
9303 * include/grub/i386/pc/vesa_modes_table.h: New file.
9304 * include/grub/legacy_parse.h: Likewise.
9305 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
9306 * util/grub-menulst2cfg.c: New file.
9307
9308 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
9309
9310 * grub-core/kern/emu/hostdisk.c
9311 (convert_system_partition_to_system_disk): Initialise node.
9312
9313 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
9314
9315 * grub-core/kern/emu/hostdisk.c
9316 (convert_system_partition_to_system_disk): Fix devmapper memory pool
9317 leak.
9318 Reported and based on patch by: Modestas Vainius.
9319
9320 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
9321
9322 Fix DM-RAID probing with recent versions of device-mapper udev
9323 rules.
9324
9325 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
9326 canonicalise device paths under /dev/mapper/.
9327 (convert_system_partition_to_system_disk): Compare the
9328 uncanonicalised path to /dev/mapper/ rather than the canonicalised
9329 path, since device nodes under /dev/mapper/ are often symlinks.
9330
9331 2010-09-17 Yves Blusseau <blusseau@zetam.org>
9332
9333 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
9334
9335 2010-09-16 Yves Blusseau <blusseau@zetam.org>
9336
9337 * configure.ac: Avoid some annoying error messages if freetype-config
9338 program is not found.
9339
9340 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
9341
9342 Support RAID on virtio devices, and others.
9343
9344 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
9345 Rename to ...
9346 [__MINGW32__] (grub_find_device): ... this.
9347 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
9348 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
9349 reasonable default if dir is NULL.
9350 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
9351 ...
9352 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
9353 (grub_guess_root_device): Update callers.
9354 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
9355
9356 * util/raid.c (grub_util_getdiskname): Remove.
9357 (grub_util_raid_getmembers): Use grub_find_device rather than
9358 grub_util_getdiskname.
9359
9360 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
9361
9362 * docs/grub.texi (serial): Remove obsolete comment about GRUB
9363 needing to be compiled with serial support.
9364 (ls): Indicate that multiple files are accepted.
9365 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
9366 indicate that multiple files are accepted.
9367
9368 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
9369
9370 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
9371 libgrub_a_init.c, and util/bash-completion.d/grub.
9372
9373 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
9374
9375 * util/grub-setup.c (setup): Fix incorrect container semantics.
9376
9377 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
9378
9379 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
9380 misusage.
9381 Reported by: J. Nick Terry
9382
9383 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
9384
9385 Move embedding routines to partmap sources files.
9386
9387 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
9388 [GRUB_UTIL]: New variable.
9389 (gpt_partition_map_iterate): Set part.parent.
9390 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
9391 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
9392 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
9393 New function.
9394 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
9395 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
9396 (grub_partition_map) [GRUB_UTIL]: New field embed.
9397 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
9398 (setup): Use ->embed.
9399
9400 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
9401
9402 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
9403 function.
9404 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
9405 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
9406
9407 2010-09-15 Yves Blusseau <blusseau@zetam.org>
9408
9409 Add function to get completions from usage.
9410
9411 * util/bash-completion.d/grub-completion.bash.in: Add function to get
9412 completions from usage. Use LC_ALL=C to get options properly.
9413
9414 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
9415
9416 * grub-core/gnulib/basename-lgpl.c: Imported.
9417 * grub-core/gnulib/basename.c: Likewise.
9418 * grub-core/gnulib/dirname-lgpl.c: Likewise.
9419 * grub-core/gnulib/dirname.c: Likewise.
9420 * grub-core/gnulib/dirname.h: Likewise.
9421 * grub-core/gnulib/stripslash.c: Likewise.
9422
9423 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
9424
9425 * grub-core/gnulib/error.c: Resynced.
9426 * grub-core/gnulib/getopt.c: Likewise.
9427 * grub-core/gnulib/getopt_int.h: Likewise.
9428 * grub-core/gnulib/regex.h: Likewise.
9429 * grub-core/gnulib/regex_internal.c: Likewise.
9430 * grub-core/gnulib/regex_internal.h: Likewise.
9431
9432 2010-09-15 Szymon Janc <szymon@janc.net.pl>
9433
9434 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
9435 CRC calculations and validity checks.
9436 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
9437 calculations.
9438
9439 2010-09-15 Szymon Janc <szymon@janc.net.pl>
9440
9441 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
9442
9443 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
9444
9445 Fix incorrect echo options handling.
9446 Reported by: Yves Blusseau.
9447
9448 * include/grub/command.h (grub_command_flags_t): New flags
9449 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
9450 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
9451 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
9452
9453 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
9454
9455 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
9456 users updated.
9457 (GRUB_COMMAND_FLAG_MENU): Likewise.
9458 (GRUB_COMMAND_FLAG_BOTH): Likewise.
9459 (GRUB_COMMAND_FLAG_TITLE): Removed.
9460 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
9461 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
9462 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
9463 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
9464 (grub_command_flags_t): New enum. All users updated.
9465
9466 2010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
9467
9468 Fix solaris compilation.
9469
9470 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
9471 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
9472 (grub-emu-list): Likewise.
9473
9474 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
9475
9476 Remove deprecated root command.
9477
9478 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
9479 updated.
9480
9481 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
9482
9483 * util/i386/pc/grub-setup.c: Merge this ...
9484 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
9485 * util/grub-setup.c: ... into this.
9486 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
9487 New struct.
9488
9489 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
9490
9491 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
9492 possible.
9493
9494 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
9495
9496 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
9497 allocate p.
9498
9499 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
9500
9501 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
9502 explicit root argument to set to prevent UUID to be interpreted as
9503 argument to set.
9504
9505 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
9506
9507 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
9508
9509 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
9510
9511 Don't export grub_gate_a20.
9512
9513 * grub-core/kern/i386/pc/init.c: Remove leftovers.
9514 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
9515 to ...
9516 (grub_gate_a20): ... this. All users updated.
9517 * include/grub/i386/pc/init.h: Removed. All users updated.
9518
9519 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
9520
9521 Create euro.pf2 which supports most European languages.
9522
9523 * Makefile.am (grubdata_DATA): Add euro.pf2.
9524 (euro.pf2): New target.
9525 (CLEANFILES): Add euro.pf2.
9526
9527 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
9528
9529 * configure.ac: Disable emu-usb by default to prevent inadvertent
9530 device takeover.
9531
9532 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
9533
9534 Disable usbserial on grub-emu since our libusb code isn't good enough
9535 yet.
9536
9537 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
9538 (usbserial_pl2303): Likewise.
9539 (usbserial_ftdi): Likewise.
9540
9541 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
9542
9543 * include/grub/disk.h (grub_disk): Remove has_partitions.
9544 All users updated.
9545 * disk/loopback.c (grub_loopback): Remove has_partitions.
9546 All users updated.
9547 (options): Remove partitions. All users updated.
9548 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
9549 * util/i386/pc/grub-setup.c (setup): copy partition table only when
9550 actual partition table is found.
9551
9552 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
9553
9554 Remove readability checks (too many false negatives).
9555
9556 * util/grub-install.in: Remove readability checks.
9557 * util/grub-mkconfig.in: Likewise.
9558 * util/grub.d/10_hurd.in: Likewise.
9559 * util/grub.d/10_kfreebsd.in: Likewise.
9560 * util/grub.d/10_linux.in: Likewise.
9561 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
9562 way.
9563
9564 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
9565
9566 Enable acpi shutdown on all ACPI platforms.
9567
9568 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
9569 on coreboo, multiboot and EFI.
9570 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
9571 (grub_acpi_halt): Likewise.
9572 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
9573 (grub_cmd_halt): Don't call grub_acpi_halt directly.
9574 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
9575 * grub-core/lib/i386/halt.c (grub_halt)
9576 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
9577
9578 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
9579
9580 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
9581 context.
9582
9583 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
9584
9585 * grub-core/video/efi_gop.c: Fix over-80-chars line.
9586 * grub-core/video/efi_uga.c: Likewise.
9587
9588 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
9589
9590 Filter devaliases and never open same device twice.
9591
9592 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
9593 (last_ihandle): Likewise.
9594 (ofdisk_hash_ent): New member shortest.
9595 (ofdisk_hash_add): Add canonical path too.
9596 (scan): New function.
9597 (grub_ofdisk_iterate): Iterate over hashed entries.
9598 (compute_dev_path): Don't add :0.
9599 (grub_ofdisk_open): Don't really open the disk.
9600 (grub_ofdisk_close): Avoid closing unrelated disk.
9601 (grub_ofdisk_read): Implement reopen logic.
9602 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
9603 New function.
9604 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
9605 New proto.
9606
9607 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
9608
9609 Fix sparc64.
9610
9611 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
9612 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
9613 right address. Add sparc64_ieee1275_ldflags.
9614 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
9615 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
9616 to grub_host_to_target_addr
9617 (load_image): Likewise.
9618
9619 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
9620
9621 * grub-core/normal/completion.c (complete_file): Handle device
9622 containing slash.
9623 Fix based on patch by Doug Nazar.
9624
9625 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
9626
9627 grub-mknetdir script.
9628
9629 * Makefile.util.def (grub-mknetdir): New module.
9630 * tests/util/grub-shell.in: Support boot=net
9631 * util/grub-mknetdir.in: New file.
9632
9633 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
9634
9635 videoinfo on non-vbe.
9636
9637 * grub-core/Makefile.core.def (vbeinfo): Removed.
9638 (vbetest): Removed.
9639 (videoinfo): New module.
9640 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
9641 * grub-core/commands/i386/pc/vbetest.c: Removed.
9642 * grub-core/commands/videoinfo.c: New file.
9643 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
9644 specification.
9645 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
9646 as vbetest.
9647 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
9648 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
9649 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
9650 mode_number. New parameter mode. All users updated.
9651 (grub_video_gop_iterate): New function.
9652 (grub_video_efi_gop): New member iterate.
9653 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
9654 (grub_vbe_set_video_mode): Remove setting useless fields.
9655 (vbe2videoinfo): New function.
9656 (grub_video_vbe_iterate): Likewise.
9657 (grub_video_vbe_setup): Use vbe2videoinfo.
9658 (grub_video_vbe_print_adapter_specific_info): New function.
9659 (grub_video_vbe_adapter): New fields iterate and
9660 print_adapter_specific_info.
9661 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
9662 All users updated.
9663 (grub_video_mode_info): New field mode_number.
9664 (grub_video_adapter): New fields iterate and
9665 print_adapter_specific_info.
9666
9667 2010-09-13 Tristan Gingold <gingold@free.fr>
9668 2010-09-13 Robert Millan <rmh.grub@aybabtu.com>
9669 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
9670
9671 * grub-core/commands/efi/lsefisystab.c: New file.
9672 * grub-core/commands/efi/lssal.c: Likewise.
9673 * grub-core/Makefile.core.def (lsacpi): New module.
9674 (lsefisystab): Likewise.
9675 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
9676 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
9677 (grub_efi_sal_system_table): New struct.
9678 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
9679 (grub_efi_sal_system_table_memory_descriptor): Likewise.
9680 (grub_efi_sal_system_table_platform_features): Likewise.
9681 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
9682 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
9683 (grub_efi_sal_system_table_ap_wakeup): Likewise.
9684 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
9685
9686 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
9687
9688 Support explicit user claim that a device is BIOS-visible.
9689
9690 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
9691 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
9692 * grub-core/kern/emu/hostdisk.c
9693 (convert_system_partition_to_system_disk): Support mdX.
9694 (find_system_device): New parameter add. All users updated.
9695 (grub_util_biosdisk_is_present): New function.
9696 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
9697 proto.
9698
9699 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
9700
9701 Search hints support.
9702
9703 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
9704 All users updated.
9705
9706 2010-09-13 Yves Blusseau <blusseau@zetam.org>
9707
9708 Bash completion script for util commands
9709
9710 * Makefile.am: Add util/bash-completion.d directory
9711 * configure.ac: Likewise.
9712 * util/bash-completion.d/Makefile.am: New file.
9713 * util/bash-completion.d/grub-completion.bash.in: Likewise.
9714
9715 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
9716
9717 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
9718 (print_backlog): set backlog_ucs4 and backlog_glyphs.
9719 Reported by: Yves Blusseau.
9720
9721 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
9722
9723 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
9724 partition size and offset.
9725
9726 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
9727
9728 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
9729
9730 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
9731
9732 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
9733
9734 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
9735
9736 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
9737 (grub_xvasprintf): Likewise.
9738
9739 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
9740
9741 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
9742
9743 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
9744
9745 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
9746 args ending with NULL.
9747
9748 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
9749
9750 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
9751 pointer.
9752
9753 2010-09-11 Szymon Janc <szymon@janc.net.pl>
9754
9755 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
9756
9757 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
9758
9759 Shutdown using ACPI.
9760
9761 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
9762 * grub-core/commands/acpihalt.c: New file.
9763 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
9764 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
9765 (grub_acpi_halt): New proto.
9766 (GRUB_ACPI_SLP_EN): New const.
9767 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
9768 (GRUB_ACPI_OPCODE_*): New enum.
9769 (GRUB_ACPI_EXTOPCODE_*): Likewise.
9770
9771 2010-09-11 Tristan Gingold <gingold@free.fr>
9772 2010-09-11 Robert Millan <rmh.grub@aybabtu.com>
9773 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
9774
9775 * commands/lsacpi.c: New file.
9776 * grub-core/Makefile.core.def (lsacpi): New module.
9777 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
9778 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
9779 (grub_acpi_madt_entry_header): New struct.
9780 (grub_acpi_madt): Likewise.
9781 (grub_acpi_madt_entry_interrupt_override): Likewise.
9782 (grub_acpi_madt_entry_sapic): Likewise.
9783 (grub_acpi_madt_entry_lsapic): Likewise.
9784 (grub_acpi_madt_entry_platform_int_source): Likewise.
9785 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
9786 (PRIuGRUB_UINT32_T): Likewise.
9787 (PRIxGRUB_UINT64_T): Likewise.
9788
9789 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
9790
9791 Implement loading palette on ieee1275_fb.
9792
9793 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
9794 (have_setcolors): Likewise.
9795 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
9796 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
9797 (grub_video_ieee1275_set_palette): Implement.
9798
9799 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
9800 2010-09-11 Colin Watson <cjwatson@ubuntu.com>
9801
9802 * util/grub-install.in (grub_partition): New variable.
9803 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
9804 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
9805 Fixes a bug reported by Yves Blusseau.
9806
9807 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
9808
9809 Fix emu on mipsel.
9810
9811 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
9812 =grub_cpu_flush_cache on all mips and not only yeeloong.
9813 * configure.ac (COND_mips): New conditional.
9814 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
9815 platforms.
9816 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
9817 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
9818 [GRUB_LINKER_HAVE_INIT]: New function.
9819 (grub_emu_post_init): Likewise.
9820 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
9821 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
9822 * include/grub/cache.h (_mips): Include mips/cache.h.
9823 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
9824 LVM and RAID prototypes.
9825 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
9826 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
9827 function.
9828
9829 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
9830
9831 * util/grub-install.in: Don't try to verify core.img until after
9832 running grub-mkimage to create it.
9833
9834 2010-09-10 Robert Millan <rmh@gnu.org>
9835
9836 * util/grub.d/10_hurd.in: Add misc readability checks.
9837 * util/grub.d/10_kfreebsd.in: Likewise.
9838 * util/grub.d/10_linux.in: Likewise.
9839
9840 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
9841
9842 * util/grub-install.in: ${imgext} won't be defined here until the
9843 install branch is merged. For the meantime, only verify core.img on
9844 i386-pc and sparc64-ieee1275 platforms.
9845
9846 2010-09-10 Robert Millan <rmh@gnu.org>
9847
9848 Solaris support in grub_find_zpool_from_dir(). Thanks
9849 Seth Goldberg for referring to getextmntent() facility.
9850
9851 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
9852 `sys/mkdev.h'.
9853 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
9854 `<sys/mnttab.h>'.
9855 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
9856 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
9857 method for finding zpool name.
9858
9859 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
9860
9861 grub-fstest needs the host and hostfs modules while other utilities
9862 actively require those modules to be absent, so grub-fstest needs
9863 its own initialisation and finalisation code.
9864
9865 * Makefile.am (grub_fstest.pp): New target.
9866 (grub_fstest_init.lst): Likewise.
9867 (grub_fstest_init.c): Likewise.
9868 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
9869
9870 2010-09-10 Robert Millan <rmh@gnu.org>
9871
9872 * configure.ac: Check for `struct statfs.f_fstypename' and
9873 `struct statfs.f_mntfromname'.
9874
9875 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
9876 kFreeBSD-specific code.
9877
9878 2010-09-10 Robert Millan <rmh@gnu.org>
9879
9880 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
9881 on ZFS. Now non-main filesystems are supported as / too.
9882
9883 2010-09-09 Colin Watson <cjwatson@ubuntu.com>
9884
9885 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
9886 and grub-core/disk/host.c to ...
9887 (grub-fstest): ... here. Having the host disk implementation
9888 present confuses grub-probe and other utility programs.
9889
9890 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
9891 when writing to a file, not when writing to stdout.
9892
9893 2010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
9894
9895 * tests/partmap_test.in: New test for partitions.
9896 * Makefile.util.def: Rules for new test.
9897
9898 2010-09-09 Robert Millan <rmh@gnu.org>
9899
9900 * util/grub-probe.c (probe): Fix a pair of unhandled error
9901 conditions.
9902
9903 2010-09-09 Robert Millan <rmh@gnu.org>
9904
9905 Basic Btrfs support (detection and UUID).
9906
9907 * grub-core/fs/btrfs.c: New file.
9908 * Makefile.util.def (library): Register btrfs.c.
9909 * grub-core/Makefile.core.def: Likewise.
9910
9911 2010-09-08 Robert Millan <rmh@gnu.org>
9912
9913 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
9914 with (optional) parameters to specify device and relative path.
9915 * util/grub-install.in: Use is_path_readable_by_grub() to
9916 verify readability of a few critical files.
9917 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
9918 verify readability of grub.cfg.new.
9919
9920 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
9921
9922 Split minix.mod into minix.mod and minix2.mod.
9923
9924 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
9925 * grub-core/Makefile.core.def (minix2): New module.
9926 * grub-core/fs/minix.c: Use definitions instead of runtime version
9927 checking.
9928 * grub-core/fs/minix2.c: New file.
9929
9930 2010-09-08 Yves Blusseau <blusseau@zetam.org>
9931
9932 Add new --boot-directory option to replace --root-directory
9933
9934 * util/grub-install.in: Add new --boot-directory option
9935 * util/grub-reboot.in: Likewise.
9936 * util/grub-set-default.in: Likewise.
9937
9938 2010-09-08 Yves Blusseau <blusseau@zetam.org>
9939
9940 * util/grub-mkconfig.in: Use new variable.
9941
9942 2010-09-08 Yves Blusseau <blusseau@zetam.org>
9943
9944 * configure.ac: Define some useful variables.
9945
9946 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
9947
9948 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
9949 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
9950 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
9951 Use terminfo and don't use cursor-on/cursor-off unless it's known
9952 to work.
9953 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
9954 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
9955
9956 2010-09-08 Colin Watson <cjwatson@ubuntu.com>
9957
9958 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
9959 starts with "(,", fill the drive containing the loaded image in
9960 between those two characters, but expect that a full partition
9961 specification including partition map names will follow.
9962
9963 2010-09-08 Robert Millan <rmh@gnu.org>
9964
9965 * configure.ac: Remove `--enable-grub-fstest' option.
9966 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
9967
9968 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
9969 `grub-fstest' instead of `grub-probe' for readability verification.
9970 * util/grub-probe.c (probe): Remove readability verification kludge.
9971
9972 2010-09-08 Robert Millan <rmh@gnu.org>
9973
9974 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
9975 initializing `GRUB_FS'.
9976
9977 2010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
9978
9979 Not command (!) support to GRUB script.
9980
9981 * tests/grub_script_not.in: New test.
9982 * Makefile.util.def: Rules for new test.
9983
9984 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
9985 ! command as a special case.
9986 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
9987
9988 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
9989
9990 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
9991 grub_free.
9992
9993 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
9994
9995 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
9996
9997 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
9998
9999 * docs/grub.texi (Shell-like scripting): Documentation for break,
10000 continue, shift and return commands.
10001
10002 2010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
10003
10004 Rename CD-ROM to cd on BIOS.
10005
10006 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
10007 "cd".
10008 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
10009
10010 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
10011
10012 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
10013 * util/grub-probe.c (main): Likewise.
10014 * util/i386/pc/grub-setup.c (main): Likewise.
10015 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
10016 Reported and debugged by: alexxy
10017
10018 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
10019
10020 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
10021 diagnostic info.
10022
10023 2010-09-05 Jo Shields <directhex@apebox.org>
10024
10025 * util/grub.d/30_os-prober.in: Add missing classes.
10026
10027 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
10028
10029 * docs/grub.texi (Theme file format): Document new position format.
10030
10031 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
10032
10033 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
10034 a table. Use @code instead of @verbatim.
10035
10036 2010-09-05 Colin D Bennett <colin@gibibit.com>
10037
10038 Gfxmenu documentation.
10039
10040 * docs/grub.texi (Theme file format): New chapter.
10041
10042 2010-09-05 Szymon Janc <szymon@janc.net.pl>
10043
10044 * grub-core/Makefile.core.def (xzio): New module.
10045 * grub-core/io/xzio.c: New file.
10046 * grub-core/lib/xzembed/xz.h: New file (from xembed).
10047 * grub-core/lib/xzembed/xz_config.h: Likewise.
10048 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
10049 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
10050 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
10051 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
10052 * grub-core/lib/xzembed/xz_private.h: Likewise.
10053 * grub-core/lib/xzembed/xz_stream.h: Likewise.
10054 * include/grub/file.h (grub_file_filter_id): New compression filter
10055 GRUB_FILE_FILTER_XZIO.
10056
10057 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
10058
10059 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
10060 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
10061 size.
10062
10063 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
10064
10065 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
10066 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
10067
10068 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
10069
10070 Uncompressed checksum support.
10071
10072 * grub-core/commands/hashsum.c (options): Add option --uncompress.
10073 (check_list): New parameter uncompress.
10074 (grub_cmd_hashsum): Handle --uncompress.
10075
10076 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
10077
10078 Reintroduce testload.
10079
10080 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
10081 from here ...
10082 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
10083 (GRUB_MOD_INIT): New function.
10084 (GRUB_MOD_FINI): Likewise.
10085 * grub-core/Makefile.core.def (testload): New module.
10086
10087 2010-09-05 Szymon Janc <szymon@janc.net.pl>
10088
10089 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
10090 (uint8_t): New type.
10091 (uint16_t): Likewise.
10092 (uint32_t): Likewise.
10093 (uint64_t): Likewise.
10094
10095 2010-09-05 Szymon Janc <szymon@janc.net.pl>
10096
10097 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
10098
10099 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
10100
10101 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
10102 Made static.
10103 (grub_gzfile_open): Removed. All users updated.
10104 (GRUB_MOD_INIT): New function.
10105 (GRUB_MOD_FINI): Likewise.
10106 * grub-core/kern/file.c (grub_file_filters_all): New variable.
10107 (grub_file_filters_enabled): Likewise.
10108 (grub_file_open): Handle filters.
10109 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
10110 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
10111 * include/grub/file.h (grub_file_filter_id_t): New type.
10112 (grub_file_filter_t): Likewise.
10113 (grub_file_filters_all): New extern variable.
10114 (grub_file_filters_enabled): Likewise.
10115 (grub_file_filter_register): New inline function.
10116 (grub_file_filter_unregister): Likewise.
10117 (grub_file_filter_disable): Likewise.
10118 (grub_file_filter_disable_compression): Likewise.
10119 * include/grub/gzio.h: Removed.
10120
10121 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
10122
10123 Filename expansion support for wildcards in GRUB script.
10124
10125 * tests/grub_script_expansion.in: New test.
10126 * Makefile.util.def: Rule for new test.
10127
10128 * grub-core/commands/wildcard.c: New file, implements filename
10129 expansion support for GRUB script.
10130 * grub-core/Makefile.core.def: Rule update for regexp.mod.
10131 * grub-core/script/argv.c: Cosmetic changes.
10132 * grub-core/script/execute.c (grub_script_arglist_to_argv):
10133 Refactored to perform wildcard expansion on arguments.
10134 * include/grub/script_sh.h (grub_script_wildcard_translator): New
10135 struct.
10136
10137 * tests/util/grub-shell.in: Fix quoting for read input.
10138
10139 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
10140
10141 Support for updating environment variables with matched substrings
10142 of regexp.
10143
10144 * tests/grub_cmd_regexp.in: New test.
10145 * Makefile.util.def: Rule for new test.
10146
10147 * grub-core/commands/regexp.c: New option -s to update environment
10148 variables with regexp matches.
10149
10150 2010-09-04 Szymon Janc <szymon@janc.net.pl>
10151
10152 * include/grub/file.h (grub_file): New member not_easly_seekable.
10153 (grub_file_seekable): New inline function.
10154 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
10155 easily seekable.
10156 (grub_gzio_open): Set not_easly_seekable.
10157 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
10158 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
10159
10160 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
10161
10162 Support for options to appear multiple times on cmdline.
10163
10164 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
10165 * grub-core/commands/extcmd.c: Support for repeatable option.
10166 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
10167 repeatable option support.
10168
10169 Refactor menuentry into a regular command.
10170
10171 * grub-core/commands/menuentry.c: New file, menuentry command
10172 implementation.
10173 * grub-core/Makefile.core.def: Rule update for normal.mod.
10174 * grub-core/normal/main.c: Moved menuentry creation to
10175 grub-core/commands/menuentry.c.
10176 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
10177 (grub_menu_execute_entry_real): Removed.
10178 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
10179 function.
10180 (grub_script_execute_menuentry): Removed.
10181 * grub-core/script/parser.y (menuentry): Removed.
10182 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
10183 * grub-core/script/yylex.l (menuentry): Removed.
10184 * include/grub/menu.h (grub_menu_init): New prototype.
10185 (grub_menu_fini): New prototype.
10186 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
10187 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
10188 (grub_script_execute_sourcecode): New prototype.
10189
10190 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
10191
10192 "return" command for GRUB script functions.
10193
10194 * tests/grub_script_return.in: New test.
10195 * Makefile.util.def: Rules for new test.
10196
10197 * grub-core/script/execute.c (grub_script_return): New function.
10198 * grub-core/script/main.c: Register/unregister return commaond.
10199 * include/grub/script_sh.h (grub_script_return): New prototype.
10200
10201 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
10202
10203 "setparams" command to update positional parameters.
10204
10205 * tests/grub_script_setparams.in: New test.
10206 * Makefile.util.def: Rules for new test.
10207
10208 * grub-core/script/argv.c (grub_script_argv_make): New function.
10209 * grub-core/script/execute.c (replace_scope): New function.
10210 (grub_script_setparams): New function.
10211 * grub-core/script/lexer.c: Remove unused variables.
10212 * grub-core/script/main.c: Register/unregister setparams command.
10213 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
10214 (grub_script_setparams): New prototype.
10215
10216 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
10217
10218 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
10219 grub_free order.
10220
10221 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
10222
10223 Support for passing block of commands as an argument to extcmds.
10224
10225 * Makefile.util.def: Rules for new test.
10226 * tests/grub_script_blockarg.in: New test.
10227 * grub-core/tests/test_blockarg.c: New file, block argument
10228 command used in the test.
10229
10230 * include/grub/extcmd.h (grub_extcmd_context): New struct.
10231 (grub_register_extcmd_prio): New function prototype.
10232 (grub_extcmd_dispatcher): New function prototype.
10233 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
10234 type.
10235 * include/grub/script_sh.h (struct grub_script): New members
10236 `children', `next_siblings' and `refcnt' for block arguments and
10237 reference counting.
10238 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
10239 (grub_script_arg): New member `script' for block argument.
10240 (grub_script_argv): New member `script' for block argument.
10241 (grub_parser_param): New member `scripts' for block argument.
10242 (grub_script_mem_free): New extern function prototype.
10243 (grub_script_ref): New function prototype.
10244 (grub_script_unref): New function prototype.
10245
10246 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
10247 extcmd form to support block arguments.
10248 * grub-core/script/argv.c: Block arguments support.
10249 * grub-core/script/execute.c: Likewise.
10250 * grub-core/script/lexer.c: Likewise.
10251 * grub-core/script/main.c: Likewise.
10252 * grub-core/script/script.c: Likewise.
10253 * grub-core/script/parser.y: Likewise. New `block' and `block0'
10254 non-terminals.
10255
10256 * grub-core/commands/acpi.c: Update extcmd implementations with
10257 grub_extcmd_context_t.
10258 * grub-core/commands/cat.c: Likewise.
10259 * grub-core/commands/echo.c: Likewise.
10260 * grub-core/commands/extcmd.c: Likewise.
10261 * grub-core/commands/hashsum.c: Likewise.
10262 * grub-core/commands/hdparm.c: Likewise.
10263 * grub-core/commands/help.c: Likewise.
10264 * grub-core/commands/hexdump.c: Likewise.
10265 * grub-core/commands/i386/cpuid.c: Likewise.
10266 * grub-core/commands/i386/pc/drivemap.c: Likewise.
10267 * grub-core/commands/i386/pc/halt.c: Likewise.
10268 * grub-core/commands/i386/pc/sendkey.c: Likewise.
10269 * grub-core/commands/iorw.c: Likewise.
10270 * grub-core/commands/keystatus.c: Likewise.
10271 * grub-core/commands/loadenv.c: Likewise.
10272 * grub-core/commands/ls.c: Likewise.
10273 * grub-core/commands/lspci.c: Likewise.
10274 * grub-core/commands/memrw.c: Likewise.
10275 * grub-core/commands/probe.c: Likewise.
10276 * grub-core/commands/search_wrap.c: Likewise.
10277 * grub-core/commands/setpci.c: Likewise.
10278 * grub-core/commands/sleep.c: Likewise.
10279 * grub-core/disk/loopback.c: Likewise.
10280 * grub-core/hello/hello.c: Likewise.
10281 * grub-core/loader/i386/bsd.c: Likewise.
10282 * grub-core/loader/xnu.c: Likewise.
10283 * grub-core/term/gfxterm.c: Likewise.
10284 * grub-core/term/serial.c: Likewise.
10285 * grub-core/tests/lib/functional_test.c: Likewise.
10286
10287 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
10288
10289 Multi-line quoted strings support.
10290
10291 * grub-core/script/lexer.c (append_newline): Removed.
10292 (grub_script_lexer_yywrap): Refactored.
10293 (grub_script_lexer_init): Refactored.
10294 * grub-core/script/yylex.l (yywrap): New function.
10295 (grub_lexer_resplit): New function.
10296 (grub_lexer_unput): New function.
10297 * include/grub/script_sh.h (grub_lexer_param): New members, unput
10298 and resplit.
10299 * tests/grub_script_echo1.in: Added few more testcases.
10300
10301 2010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
10302
10303 * grub-core/kern/misc.c: Don't add abort alias in utils.
10304 Reported by: echoline.
10305
10306 2010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
10307
10308 Add missing files into "make dist" tarball for other platforms.
10309
10310 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
10311 * conf/Makefile.common (dist_noinst_DATA): New variable.
10312 * conf/Makefile.extra-dist: Added missing make dist files.
10313 * grub-core/Makefile.core.def: Likewise.
10314
10315 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
10316
10317 Compress grub_prefix.
10318
10319 * grub-core/boot/i386/pc/lnxboot.S: Use
10320 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
10321 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
10322 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
10323 GRUB_MACHINE_PREFIX_END. All users updated.
10324 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
10325 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
10326 + 0x40.
10327 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
10328 * util/grub-mkimage.c (image_target_desc): Change data_end to
10329 prefix_end. All users updated.
10330
10331 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
10332
10333 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
10334 value.
10335 (grub_openbsd_boot): Likewise.
10336 (grub_netbsd_boot): Likewise.
10337 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
10338 (grub_xnu_boot): Likewise.
10339
10340 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
10341
10342 * configure.ac: Clean LIBS variable after tests.
10343
10344 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
10345
10346 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
10347
10348 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
10349
10350 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
10351 echo if libdevmapper will be used.
10352
10353 2010-09-02 Ian Turner <Ian.Turner@deshaw.com>
10354
10355 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
10356 constant for the same file.
10357
10358 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
10359
10360 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
10361
10362 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
10363
10364 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
10365 grub-core/*.pp.
10366
10367 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
10368
10369 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
10370 required by the boot protocol.
10371
10372 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
10373 ebp and edi members.
10374 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
10375 state.ebp and state.edi.
10376 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
10377 %ebp and %edi according to grub_relocator32_ebp and
10378 grub_relocator32_edi respectively.
10379 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
10380 and state.edi.
10381
10382 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
10383
10384 Add i386-pc-pxe image target.
10385
10386 * util/grub-mkimage.c (image_target_desc): New enum value
10387 IMAGE_I386_PC_PXE.
10388 (image_targets): New target i386-pc-pxe.
10389 (generate_image): Handle i386-pc-pxe image.
10390
10391 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
10392
10393 Fix grub_pxe_scan.
10394
10395 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
10396 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
10397 All users updated.
10398 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
10399 (grub_pxe_pxenv): Correct type.
10400
10401 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
10402
10403 * NEWS: Document most of the important changes since 1.98.
10404
10405 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
10406
10407 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
10408 generated manual page) a little.
10409
10410 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
10411
10412 * docs/grub.texi: Add myself as an author.
10413
10414 2010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
10415
10416 * Makefile.util.def (libgrub.a): Add missing sunpc.
10417 Reported by: Seth Goldberg.
10418
10419 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
10420
10421 Interrupt wrapping and code simplifications.
10422
10423 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
10424 x86_noieee1275 which are functionaly equivalent in this case.
10425 (grub-install): Make source on each platform explicit. Enable on
10426 all noemu.
10427 * gentpl.py (x86_efi_pc): Removed group.
10428 (x86_noefi): Likewise.
10429 (i386_noefi): Likewise.
10430 (x86_noieee1275): Likewise.
10431 (i386_noieee1275): Likewise.
10432 (i386_noefi_noieee1275): Likewise.
10433 (i386_pc_qemu_coreboot): Likewise.
10434 (i386_coreboot_multiboot): Likewise.
10435 (i386_pc_coreboot_multiboot_qemu): Likewise.
10436 (x86_noefi_mips): Likewise.
10437 (noieee1275): Likewise.
10438 (ieee1275_mips): Likewise.
10439 (noemu_noieee1275): Likewise.
10440 (cmos): New group.
10441 (usb): Likewise.
10442 (videoinkernel): Likewise.
10443 (videomodules): Likewise.
10444 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
10445 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
10446 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
10447 include/grub/loader.h, include/grub/msdos_partition.h,
10448 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
10449 include/grub/machine/console.h, include/grub/machine/vga.h,
10450 include/grub/machine/vbe.h, include/grub/machine/init.h,
10451 include/grub/machine/kernel.h, include/grub/cpu/time.h,
10452 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
10453 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
10454 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
10455 * grub-core/Makefile.core.def (kernel): Explicit the source for
10456 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
10457 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
10458 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
10459 Use videoinkernel tag.
10460 (usb): Enable on all usb.
10461 (usbserial_common): Likewise.
10462 (usbserial_pl2303): Likewise.
10463 (usbserial_ftdi): Likewise.
10464 (uhci): Enable on all x86.
10465 (ohci): Enable on all pci.
10466 (cmostest): Enable on all CMOS.
10467 (acpi): Include commands/acpi.c on all platforms.
10468 (halt): Add relevant lib/*/halt.c.
10469 (hdparm): Enable on all pci.
10470 (lspci): Likewise.
10471 (usbtest): Enable on all usb.
10472 (ata): Enable on all pci.
10473 (ata_pthru): Likewise.
10474 (usbms): Enable on all usb.
10475 (usb_keyboard): Likewise.
10476 (font): Use tag videomodules.
10477 (bufio): Likewise.
10478 (datetime): Use tag cmos. Enable on all noemu.
10479 (mmap): Use tags common and x86.
10480 (gfxterm): Use tag videomodules.
10481 (bitmap): Likewise.
10482 (bitmap_scale): Likewise.
10483 (video_fb): Likewise.
10484 (video): Likewise.
10485 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
10486 adjust padding accordingly. All users updated.
10487 (grub_ohci_transaction): Fix bad format specification.
10488 (GRUB_MOD_INIT): Add asserts for struct size.
10489 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
10490 (grub_alloc_td): Likewise.
10491 (grub_free_queue): Likewise.
10492 (grub_uhci_transfer): Likewise.
10493 (grub_uhci_transaction): Fix bad format specification.
10494 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
10495 (grub_usb_bulk_readwrite): Likewise.
10496 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
10497 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
10498 Made static.
10499 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
10500 Made static.
10501 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
10502 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
10503 Transformed into C.
10504 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
10505 Moved from here ...
10506 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
10507 ... here. Transformed into C. Made static.
10508 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
10509 Moved from here ...
10510 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
10511 ... here. Transformed into C. Made static.
10512 * grub-core/kern/i386/pc/startup.S
10513 (grub_biosdisk_check_int13_extensions): Moved from here ...
10514 * grub-core/disk/i386/pc/biosdisk.c
10515 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
10516 Made static.
10517 * grub-core/kern/i386/pc/startup.S
10518 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
10519 * grub-core/disk/i386/pc/biosdisk.c
10520 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
10521 Transformed into C. Made static.
10522 * grub-core/kern/i386/pc/startup.S
10523 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
10524 * grub-core/disk/i386/pc/biosdisk.c
10525 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
10526 Transformed into C. Made static.
10527 * grub-core/kern/i386/pc/startup.S
10528 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
10529 * grub-core/disk/i386/pc/biosdisk.c
10530 (grub_biosdisk_get_diskinfo_standard): ... here.
10531 Transformed into C. Made static.
10532 * grub-core/kern/i386/pc/startup.S
10533 (grub_biosdisk_get_num_floppies): Moved from here ...
10534 * grub-core/disk/i386/pc/biosdisk.c
10535 (grub_biosdisk_get_num_floppies): ... here.
10536 Transformed into C. Made static.
10537 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
10538 New function.
10539 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
10540 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
10541 Transformed into C. Made static.
10542 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
10543 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
10544 Transformed into C. Made static.
10545 * grub-core/kern/i386/ieee1275/init.c: Removed.
10546 * grub-core/kern/i386/misc.S: Likewise.
10547 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
10548 Splitted from here ...
10549 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
10550 Transformed into C. Made static. All users updated.
10551 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
10552 Transformed into C. Made static. All users updated.
10553 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
10554 Moved from here...
10555 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
10556 Transformed into C. Made static. All users updated.
10557 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
10558 Moved from here...
10559 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
10560 Transformed into C. Made static. All users updated.
10561 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
10562 Removed (replaced by C version).
10563 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
10564 Moved from here...
10565 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
10566 Transformed into C. Made static.
10567 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
10568 Moved from here...
10569 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
10570 ... here. Transformed into C.
10571 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
10572 Moved from here...
10573 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
10574 ... here. Transformed into C.
10575 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
10576 Moved from here...
10577 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
10578 ... here. Transformed into C. Made static.
10579 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
10580 Moved from here...
10581 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
10582 ... here. Transformed into C.
10583 * grub-core/kern/i386/pc/startup.S
10584 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
10585 * grub-core/video/i386/pc/vbe.c
10586 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
10587 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
10588 Moved from here...
10589 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
10590 ... here. Transformed into C.
10591 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
10592 Moved from here...
10593 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
10594 ... here. Transformed into C.
10595 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
10596 Moved from here...
10597 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
10598 ... here. Transformed into C.
10599 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
10600 Moved from here...
10601 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
10602 ... here. Transformed into C.
10603 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
10604 Moved from here...
10605 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
10606 ... here. Transformed into C. Made static.
10607 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
10608 Moved from here...
10609 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
10610 ... here. Transformed into C. Made static.
10611 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
10612 Moved from here...
10613 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
10614 ... here. Transformed into C. Made static.
10615 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
10616 pxe_rm_entry as third argument.
10617 (grub_bios_interrupt): New function.
10618 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
10619 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
10620 of calling grub_stop.
10621 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
10622 * grub-core/lib/efi/halt.c (grub_halt): ...here.
10623 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
10624 * grub-core/lib/emu/halt.c (grub_halt): ... here.
10625 * grub-core/lib/i386/halt.c: Moved from here ...
10626 * grub-core/lib/i386/halt.c: ... here.
10627 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
10628 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
10629 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
10630 grub_stop_floppy.
10631 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
10632 * include/grub/i386/coreboot/init.h: Removed.
10633 * include/grub/i386/multiboot/init.h: Likewise.
10634 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
10635 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
10636 * include/grub/i386/pc/int.h: New file.
10637 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
10638 (grub_pxe_scan): Removed.
10639 (grub_pxe_call): Update prototype.
10640 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
10641 prototypes.
10642 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
10643 * include/grub/i386/qemu/init.h: Removed.
10644 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
10645 noreturn.
10646 (grub_halt): Likewise.
10647 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
10648 (grub_reboot): Likewise.
10649 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
10650 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
10651 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
10652
10653 2010-08-30 Robert Millan <rmh@gnu.org>
10654
10655 * NEWS: Document addition of ZFS support in `grub-install' and
10656 `grub-mkconfig'.
10657
10658 2010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
10659
10660 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
10661 dprintf output.
10662
10663 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
10664
10665 Remove leftover embedding of font objects.
10666
10667 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
10668 * util/grub-install.in (font): Removed.
10669 * util/grub-mkimage.c (generate_image): Remove font support. All users
10670 updated.
10671
10672 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
10673
10674 Remove leftover embedding of font objects.
10675
10676 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
10677 * util/grub-install.in (font): Removed.
10678 * util/grub-mkimage.c (generate_image): Remove font support. All users
10679 updated.
10680
10681 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
10682
10683 * docs/grub.texi (Network): Fix reference to pxe_blksize.
10684 Reported by: Ian Turner
10685
10686 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
10687
10688 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
10689 timeout to avoid indefinite boot stalling.
10690
10691 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
10692
10693 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
10694 (grub_env_write_color_highlight): Likewise.
10695
10696 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
10697
10698 * grub-core/normal/term.c (print_more): Return to normal and not
10699 to standard state after printing "---MORE---".
10700
10701 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
10702
10703 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
10704 Mask out the bit 0x80 since it has other meaning that specifiing color.
10705
10706 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
10707
10708 New relocator. Allows for more kernel support and more straightforward
10709 loader writing.
10710
10711 * Makefile.am (BOOTTARGET): New variable.
10712 (QEMU32): Likewise.
10713 (linux.init.x86_64): New target.
10714 (linux.init.i386): Likewise.
10715 (multiboot.elf): Likewise.
10716 (kfreebsd.elf): Likewise.
10717 (kfreebsd.aout): Likewise.
10718 (pc-chainloader.elf): Likewise.
10719 (pc-chainloader.bin): Likewise.
10720 (ntldr.elf): Likewise.
10721 (ntldr.bin): Likewise.
10722 (multiboot2.elf): Likewise.
10723 (kfreebsd.init.x86_64): Likewise.
10724 (kfreebsd.init.i386): Likewise.
10725 (knetbsd.init.i386): Likewise.
10726 (kopenbsd.init.i386): Likewise.
10727 (knetbsd.init.x86_64): Likewise.
10728 (kopenbsd.init.x86_64): Likewise.
10729 (linux-initramfs.i386): Likewise.
10730 (linux-initramfs.x86_64): Likewise.
10731 (kfreebsd-mfsroot.i386.img): Likewise.
10732 (knetbsd.image.i386): Likewise.
10733 (kopenbsd.image.i386): Likewise.
10734 (kopenbsd.image.x86_64): Likewise.
10735 (knetbsd.miniroot-image.i386.img): Likewise.
10736 (kfreebsd-mfsroot.x86_64.img): Likewise.
10737 (knetbsd.image.x86_64): Likewise.
10738 (knetbsd.miniroot-image.x86_64.img): Likewise.
10739 (kfreebsd-mfsroot.i386.gz): Likewise.
10740 (bootcheck-kfreebsd-i386): Likewise.
10741 (kfreebsd-mfsroot.x86_64.gz): Likewise.
10742 (bootcheck-kfreebsd-x86_64): Likewise.
10743 (knetbsd.miniroot-image.i386.gz): Likewise.
10744 (bootcheck-knetbsd-i386): Likewise.
10745 (bootcheck-kopenbsd-i386): Likewise.
10746 (bootcheck-kopenbsd-x86_64): Likewise.
10747 (knetbsd.miniroot-image.x86_64.gz): Likewise.
10748 (bootcheck-knetbsd-x86_64): Likewise.
10749 (bootcheck-linux-i386): Likewise.
10750 (bootcheck-linux-x86_64): Likewise.
10751 (bootcheck-linux16-i386): Likewise.
10752 (bootcheck-linux16-x86_64): Likewise.
10753 (bootcheck-multiboot): Likewise.
10754 (bootcheck-multiboot2): Likewise.
10755 (bootcheck-kfreebsd-aout): Likewise.
10756 (bootcheck-pc-chainloader): Likewise.
10757 (bootcheck-ntldr): Likewise.
10758 (CLEANFILES): Add new targets.
10759 (BOOTCHECKS): New variable.
10760 (.PHONY): Add bootchecks.
10761 (SUCCESSFUL_BOOT_STRING): New variable.
10762 (BOOTCHECK_TIMEOUT): Likewise.
10763 (bootcheck): New target
10764 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
10765 * configure.ac: Correct efiemu excuse.
10766 * docs/grub.texi (Supported kernels): New chapter.
10767 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
10768 include/grub/mm_private.h. Simplify inclusion of
10769 include/grub/boot.h, include/grub/loader.h
10770 and include/grub/msdos_partition.h
10771 (KERNEL_HEADER_FILES) [i386_coreboot]:
10772 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
10773 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
10774 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
10775 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
10776 include/grub/machine/loader.h.
10777 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
10778 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
10779 extra_dist.
10780 (pci.mod): Enable on i386-multiboot.
10781 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
10782 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
10783 i386-qemu.
10784 (relocator.mod): Rewritten.
10785 (aout.mod): Enable on all x86.
10786 (bsd.mod): Likewise.
10787 (ntldr.mod): New module.
10788 (linux.mod): Use loader/i386/linux.c on all x86.
10789 (xnu.mod): Enable on all x86.
10790 (vga_text.mod): disable on EFI and QEMU.
10791 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
10792 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
10793 * grub-core/efiemu/loadcore.c: Likewise.
10794 * grub-core/efiemu/main.c: Likewise.
10795 (grub_efiemu_exit_boot_services): Removed.
10796 (grub_efiemu_finish_boot_services): Likewise.
10797 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
10798 function.
10799 * grub-core/efiemu/i386/nocfgtables.c: New file.
10800 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
10801 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
10802 (grub_efi_finish_boot_services): Moved from here ...
10803 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
10804 Fille finish memory map and related data.
10805 (finish_mmap_buf): New variable.
10806 (grub_efi_uintn_t finish_mmap_size): Likewise.
10807 (grub_efi_uintn_t finish_key): Likewise.
10808 (grub_efi_uintn_t finish_desc_size): Likewise.
10809 (grub_efi_uint32_t finish_desc_version): Likewise.
10810 (grub_efi_is_finished): Likewise.
10811 (grub_efi_get_memory_map): Use saved memory map if EFI is already
10812 finished.
10813 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
10814 (grub_elf64_phdr_iterate): Likewise.
10815 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
10816 (grub_os_area_size): Likewise.
10817 (grub_machine_init): Don't reserve os area.
10818 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
10819 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
10820 * grub-core/kern/i386/loader.S: Removed.
10821 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
10822 (grub_os_area_size): Likewise.
10823 (grub_machine_init): Don't reserve os area.
10824 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
10825 Don't call grub_dl_unload_all.
10826 Don't include loader.S.
10827 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
10828 Declare the memory after _end as available.
10829 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
10830 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
10831 (GRUB_MM_ALLOC_MAGIC): Moved from here...
10832 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
10833 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
10834 * include/grub/mm_private.h (grub_mm_header): ... here.
10835 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
10836 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
10837 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
10838 (grub_mm_region): ..here. Removed addr. Added pre_size.
10839 All users updated.
10840 * grub-core/kern/mm.c (base): Renamed to ...
10841 (grub_mm_base): ... this. Made global.
10842 (grub_real_malloc): Alloc from end of region.
10843 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
10844 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
10845 * grub-core/kern/powerpc/cache_flush.S: ... here.
10846 * grub-core/lib/efi/relocator.c: New file.
10847 * grub-core/lib/i386/relocator.c: Rewritten.
10848 * grub-core/lib/i386/relocator16.S: New file.
10849 * grub-core/lib/i386/relocator32.S: Likewise.
10850 * grub-core/lib/i386/relocator64.S: Likewise.
10851 * grub-core/lib/i386/relocator_asm.S: Rewritten.
10852 * grub-core/lib/i386/relocator_common.S: New file.
10853 * grub-core/lib/ieee1275/relocator.c: Likewise.
10854 * grub-core/lib/mips/relocator.c: Rewritten.
10855 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
10856 stylistic adjustments.
10857 * grub-core/lib/powerpc/relocator.c: New file.
10858 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
10859 * grub-core/lib/relocator.c: Rewritten.
10860 * grub-core/lib/x86_64/relocator_asm.S: New file.
10861 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
10862 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
10863 (bsd_tag): New struct.
10864 (tags): New variable.
10865 (tags_last): Likewise.
10866 (netbsd_module): New struct.
10867 (netbsd_mods): New variable.
10868 (netbsd_mods_last): Likewise.
10869 (openbsd_opts): New parameter "serial".
10870 (OPENBSD_SERIAL_ARG): New definition.
10871 (netbsd_opts): New parameter "serial".
10872 (NETBSD_SERIAL_ARG): New definition.
10873 (grub_freebsd_add_meta): Reorganised into ...
10874 (grub_bsd_add_meta): ...this. All users updated.
10875 (grub_freebsd_add_mmap): Reorganised into ...
10876 (generate_e820_mmap): ...this...
10877 (grub_bsd_add_mmap): ...and this. All users updated.
10878 (grub_freebsd_list_modules): Use tags.
10879 (grub_netbsd_add_meta_module): New function.
10880 (grub_netbsd_list_modules): Likewise.
10881 (grub_freebsd_boot): Use relocator and finish EFI.
10882 (grub_openbsd_boot): Likewise.
10883 (grub_netbsd_setup_video): New function.
10884 (grub_netbsd_add_modules): Likewise.
10885 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
10886 and finish EFI.
10887 (grub_bsd_unload): Unload tags.
10888 (grub_bsd_load_aout): Use relocator.
10889 (grub_bsd_elf32_size_hook): New function.
10890 (grub_bsd_elf32_hook): Use relocator.
10891 (grub_bsd_elf64_size_hook): New function.
10892 (grub_bsd_elf64_hook): Use relocator.
10893 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
10894 (grub_bsd_load): Zero-out openbsd_ramdisk.
10895 (grub_bsd_load): Use relocator.
10896 (grub_cmd_openbsd): Support serial.
10897 (grub_cmd_netbsd): Support modules.
10898 (grub_cmd_freebsd_module): Use relocator.
10899 (grub_netbsd_module_load): New function.
10900 (grub_cmd_netbsd_module): Likewise.
10901 (grub_cmd_openbsd_ramdisk): Likewise.
10902 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
10903 kopenbsd_ramdisk.
10904 (GRUB_MOD_FINI): Unregister new commands.
10905 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
10906 (grub_freebsd_load_elfmodule_obj): Use relocator.
10907 (grub_freebsd_load_elfmodule): Likewise.
10908 (grub_freebsd_load_elf_meta): Likewise.
10909 (grub_netbsd_load_elf_meta): New function.
10910 (grub_openbsd_find_ramdisk): Likewise.
10911 * grub-core/loader/i386/bsd_helper.S: Removed.
10912 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
10913 * grub-core/loader/i386/bsd_trampoline.S: Removed.
10914 * grub-core/loader/i386/efi/linux.c: Likewise.
10915 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
10916 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
10917 (DEFAULT_VIDEO_MODE): Likewise.
10918 (real_mode_target): New variable.
10919 (prot_mode_target): Likewise.
10920 (initrd_mem_target): Likewise.
10921 (relocator): Likewise.
10922 (efi_mmap_buf): Likewise.
10923 (efi_mmap_size): Likewise.
10924 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
10925 (free_pages): Use relocator.
10926 (allocate_pages): Account for efi_mmap and use relocator. Return error.
10927 (grub_linux_setup_video): Return error.
10928 (grub_linux_trampoline_start): Removed.
10929 (grub_linux_trampoline_end): Likewise.
10930 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
10931 andd video parameters depending on firmware.
10932 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
10933 [GRUB_MACHINE_EFI]: Pass EFI parameters.
10934 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
10935 (grub_cmd_initrd): Use relocator.
10936 * grub-core/loader/i386/linux_trampoline.S: Removed.
10937 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
10938 (elf_sec_entsize): Likewise.
10939 (elf_sec_shstrndx): Likewise.
10940 (elf_sections): Likewise.
10941 (grub_multiboot_load): Use relocator.
10942 (grub_multiboot_get_mbi_size): Account for sections.
10943 (grub_multiboot_make_mbi): Use relocator and support sections.
10944 (grub_multiboot_add_elfsyms): New function.
10945 (grub_multiboot_free_mbi): Free sections.
10946 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
10947 (grub_linux_real_target): Likewise.
10948 (grub_linux_real_chunk): Likewise.
10949 (grub_linux16_prot_size): Likewise.
10950 (grub_linux16_boot): Use relocator.
10951 (grub_linux_unload): Unload relocator.
10952 (grub_cmd_linux): Use relocator.
10953 (grub_cmd_initrd): Likewise.
10954 * grub-core/loader/i386/pc/ntldr.c: New file.
10955 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
10956 Don't try to guess CPU frequency.
10957 (grub_xnu_set_video): Stretch bitmap.
10958 (grub_xnu_boot): Use relocator.
10959 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
10960 (grub_linux_unload): Free relocator.
10961 (grub_linux_load32): Use relocator.
10962 (grub_linux_load64): Likewise.
10963 (grub_cmd_initrd): Likewise.
10964 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
10965 (grub_multiboot_unload): Unload relocator.
10966 (grub_cmd_multiboot): Use relocator.
10967 (grub_cmd_module): Likewise.
10968 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
10969 Use relocator and support sections.
10970 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
10971 (elf_sec_entsize): Likewise.
10972 (elf_sec_shstrndx): Likewise.
10973 (elf_sections): Likewise.
10974 (grub_multiboot_load): Use relocator.
10975 (grub_multiboot_get_mbi_size): Account for sections.
10976 (grub_multiboot_make_mbi): Use relocator and support sections.
10977 (grub_multiboot_add_elfsyms): New function.
10978 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
10979 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
10980 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
10981 Prototype changed. All users updated.
10982 (grub_xnu_align_heap): Simplified.
10983 (grub_xnu_writetree_toheap): Likewise.
10984 (grub_xnu_unload): Unload relocator.
10985 (grub_cmd_xnu_kernel): Use relocator.
10986 (grub_cmd_xnu_kernel64): Likewise.
10987 (grub_xnu_register_memory): Simplified.
10988 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
10989 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
10990 EFI is finished.
10991 (grub_console_checkkey): Likewise.
10992 (grub_console_getkey): Likewise.
10993 (grub_console_getwh): Likewise.
10994 (grub_console_getxy): Likewise.
10995 (grub_console_gotoxy): Likewise.
10996 (grub_console_cls): Likewise.
10997 (grub_console_setcolorstate): Likewise.
10998 (grub_console_setcursor): Likewise.
10999 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
11000 * grub-core/tests/boot/kbsd.init-i386.S: New file.
11001 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
11002 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
11003 * grub-core/tests/boot/kernel-8086.S: Likewise.
11004 * grub-core/tests/boot/kernel-i386.S: Likewise.
11005 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
11006 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
11007 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
11008 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
11009 * grub-core/tests/boot/knetbsd.cfg: Likewise.
11010 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
11011 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
11012 * grub-core/tests/boot/linux.cfg: Likewise.
11013 * grub-core/tests/boot/linux.init-i386.S: Likewise.
11014 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
11015 * grub-core/tests/boot/linux16.cfg: Likewise.
11016 * grub-core/tests/boot/multiboot.cfg: Likewise.
11017 * grub-core/tests/boot/multiboot2.cfg: Likewise.
11018 * grub-core/tests/boot/ntldr.cfg: Likewise.
11019 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
11020 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
11021 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
11022 New definition.
11023 * include/grub/dl.h (grub_dl_unload_all): Removed.
11024 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
11025 (grub_efi_finish_boot_services): Change prototype.
11026 (grub_efi_is_finished): New variable.
11027 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
11028 Changed prototype.
11029 (grub_efiemu_finish_boot_services): Removed.
11030 (grub_machine_efiemu_init_tables): New prototype.
11031 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
11032 (grub_elf64_phdr_iterate): Likewise.
11033 * include/grub/i386/bsd.h: Include relocator.h.
11034 (freebsd_tag_header): New struct.
11035 (grub_openbsd_bios_mmap): Removed.
11036 (grub_unix_real_boot): Removed.
11037 (grub_freebsd_load_elfmodule32): Changed prototype.
11038 (grub_freebsd_load_elfmodule_obj64): Likewise.
11039 (grub_freebsd_load_elf_meta32): Likewise.
11040 (grub_freebsd_load_elf_meta64): Likewise.
11041 (grub_freebsd_add_meta): Removed.
11042 (grub_netbsd_load_elf_meta32): New prototype.
11043 (grub_netbsd_load_elf_meta64): Likewise.
11044 (grub_bsd_add_meta): Likewise.
11045 (grub_openbsd_ramdisk_descriptor): New struct.
11046 (grub_openbsd_find_ramdisk32): New prototype.
11047 (grub_openbsd_find_ramdisk64): Likewise.
11048 * include/grub/i386/coreboot/loader.h: Removed.
11049 * include/grub/i386/efi/loader.h: Likewise.
11050 * include/grub/i386/ieee1275/loader.h: Likewise.
11051 * include/grub/i386/linux.h (linux_kernel_header): Change void *
11052 to grub_uint32_t.
11053 * include/grub/i386/loader.h: Removed.
11054 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
11055 value.
11056 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
11057 (grub_phys_addr_t): New type.
11058 (grub_vtop): New inline function.
11059 (grub_map_memory): Likewise.
11060 (grub_unmap_memory): Likewise.
11061 * include/grub/i386/multiboot/loader.h: Removed.
11062 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
11063 (NETBSD_BTINFO_CONSOLE): New definition.
11064 (NETBSD_BTINFO_SYMTAB): Likewise.
11065 (NETBSD_BTINFO_MODULES): Likewise.
11066 (NETBSD_BTINFO_FRAMEBUF): Likewise.
11067 (grub_netbsd_bootinfo): New struct.
11068 (grub_netbsd_btinfo_common): Use explicit bitsize.
11069 (grub_netbsd_btinfo_mmap_entry): Removed.
11070 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
11071 (grub_netbsd_btinfo_bootdisk): New struct.
11072 (grub_netbsd_btinfo_symtab): Likewise.
11073 (grub_netbsd_btinfo_serial): Likewise.
11074 (grub_netbsd_btinfo_modules): Likewise.
11075 (grub_netbsd_btinfo_framebuf): Likewise.
11076 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
11077 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
11078 Likewise.
11079 (grub_openbsd_bootargs): Use explicit bitsize.
11080 (grub_openbsd_bootarg_console): New struct.
11081 (GRUB_OPENBSD_COM_MAJOR): New definition.
11082 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
11083 * include/grub/i386/pc/efiemu.h: Removed.
11084 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
11085 * include/grub/i386/qemu/loader.h: Removed.
11086 * include/grub/i386/relocator.h: Rewritten.
11087 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
11088 * include/grub/mips/memory.h: New file.
11089 * include/grub/mips/multiboot.h: Rewritten.
11090 * include/grub/mips/relocator.h: Rewritten.
11091 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
11092 (grub_vtop): New function.
11093 (grub_map_memory): Likewise.
11094 (grub_unmap_memory): Likewise.
11095 * include/grub/misc.h (ALIGN_DOWN): New definition.
11096 * include/grub/mm.h (grub_mm_check_real): New proto.
11097 (GRUB_MM_CHECK): New definition.
11098 * include/grub/mm_private.h: New file.
11099 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
11100 (grub_multiboot_get_mbi_size): Removed.
11101 (grub_multiboot_make_mbi): Change prottype.
11102 (grub_multiboot_set_accepts_video): New proto.
11103 (grub_multiboot_add_elfsyms): Likewise.
11104 (grub_multiboot_payload_eip): New variable.
11105 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
11106 New prototype.
11107 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
11108 New definition.
11109 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
11110 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
11111 * include/grub/powerpc/ieee1275/loader.h: Removed.
11112 * include/grub/powerpc/memory.h: New file.
11113 * include/grub/powerpc/relocator.h: Likewise.
11114 * include/grub/relocator.h: Likewise.
11115 * include/grub/relocator_private.h: Likewise.
11116 * include/grub/sparc64/ieee1275/loader.h: Removed.
11117 * include/grub/x86_64/memory.h: New file.
11118 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
11119 (grub_xnu_heap_malloc): Likewise.
11120 (grub_xnu_heap_real_start): Removed.
11121 (grub_xnu_heap_start): Likewise.
11122 (grub_xnu_relocator): New variable.
11123 (grub_xnu_heap_target_start): Likewise.
11124 * tests/util/grub-shell.in: Support non-pc.
11125 * util/grub-mkimage.c (image_targets): Fix multiboot target.
11126
11127 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
11128
11129 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
11130 on malloc error.
11131 (grub_bidi_logical_to_visual): Check that malloc succeded.
11132 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
11133 puts.
11134 (grub_xputs_normal): Likewise.
11135
11136 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
11137
11138 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
11139 extra_dist.
11140
11141 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
11142
11143 * grub-core/efiemu/runtime/efiemu.sh: Removed.
11144
11145 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
11146
11147 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
11148
11149 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
11150
11151 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
11152 dprintf.
11153
11154 2010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
11155
11156 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
11157
11158 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
11159
11160 * grub-core/normal/term.c (print_more): Fix a memory leak.
11161 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
11162 (grub_xputs_normal): Likewise.
11163
11164 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
11165
11166 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
11167 the begining of the string
11168
11169 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
11170
11171 * grub-core/script/script.c (grub_script_parse): Free parsed on
11172 failure.
11173
11174 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
11175
11176 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
11177 on failure.
11178
11179 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
11180
11181 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
11182 return.
11183
11184 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
11185
11186 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
11187 (scroll_up): Fix a memory leak.
11188
11189 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
11190
11191 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
11192 errors.
11193
11194 2010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
11195
11196 Handle USB pendrives exposed as floppies.
11197
11198 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
11199 floppy.
11200 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
11201 Check for partitions on all devices.
11202
11203 2010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
11204
11205 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
11206 (readkey): Likewise.
11207
11208 2010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
11209
11210 Multiple variable names support to "export" command.
11211
11212 * normal/context.c (grub_cmd_export): "export" command supports
11213 multiple variable names.
11214
11215 2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
11216
11217 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
11218 --target=drive output to Mach device name.
11219
11220 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
11221
11222 New Automake based build system for GRUB.
11223
11224 * ABOUT-NLS: New file.
11225 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
11226 in Makefile.util.def file.
11227 * Makefile.util.def: New file. Autogen build definitions file for
11228 GRUB host utils.
11229 * conf/Makefile.common: New file. Common variables for GRUB host
11230 utils and target modules.
11231 * conf/Makefile.extra-dist: New file. Extra files for make dist.
11232 * docs/Makefile.am: New file. Automake file for docs.
11233 * gentpl.py: New file. Python script to generate Autogen
11234 template.
11235 * grub-core/Makefile.am: New file. GRUB target modules' rules
11236 that doesn't fit in Makefile.core.def file.
11237 * grub-core/Makefile.core.def: New file. Autogen build
11238 definitions file for GRUB target modules.
11239 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
11240 specific setjmp.S file.
11241 * po/Makefile.am: New file.
11242
11243 * .bzrignore: New ignores.
11244 * INSTALL: New requirements, without Ruby.
11245 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
11246 * autogen.sh: Updated to invoke autogen as necessary.
11247 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
11248 and defines for Automake conditionals.
11249 * geninit.sh: Refactoring.
11250
11251 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
11252 necessary.
11253 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
11254 New prototype.
11255
11256 * include/grub/test.h: Fix functional test modules' naming.
11257 * grub-core/tests/example_functional_test.c: Fix test module name.
11258
11259 * util/misc.c: Hosted versions' of grub functions for libgrub.a
11260 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
11261 * util/grub-editenv.c: Likewise.
11262 * util/grub-fstest.c: Likewise.
11263 * util/grub-mkdevicemap.c: Likewise.
11264 * util/grub-mkfont.c: Likewise.
11265 * util/grub-mkimage.c: Likewise.
11266 * util/grub-mkpasswd-pbkdf2.c: Likewise.
11267 * util/grub-probe.c: Likewise.
11268 * util/grub-script-check.c: Likewise.
11269 * util/i386/pc/grub-setup.c: Likewise.
11270 * util/sparc64/ieee1275/grub-setup.c: Likewise.
11271
11272 * tests/util/grub-shell.in: Fix override directory path.
11273 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
11274 * util/import_gcry.py: Create Makefile.gcry.def file instead.
11275
11276 * util/lvm.c: Update #includes.
11277 * util/raid.c: Likewise.
11278 * util/resolve.c: Likewise.
11279 * grub-core/bus/emu/pci.c: Likewise.
11280 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
11281 * grub-core/lib/posix_wrap/string.h: Likewise.
11282 * grub-core/kern/emu/main.c: Likewise.
11283
11284 * grub-core/gensymlist.sh: New file. Script for generating kernel
11285 symbols file.
11286 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
11287
11288 * grub-core/gentrigtables.c: Fix unused variable warnings.
11289
11290 * Makefile.in: Removed.
11291 * conf/any-emu.rmk: Removed.
11292 * conf/common.rmk: Removed.
11293 * conf/i386-coreboot.rmk: Removed.
11294 * conf/i386-efi.rmk: Removed.
11295 * conf/i386-ieee1275.rmk: Removed.
11296 * conf/i386-multiboot.rmk: Removed.
11297 * conf/i386-pc.rmk: Removed.
11298 * conf/i386-qemu.rmk: Removed.
11299 * conf/i386.rmk: Removed.
11300 * conf/mips-yeeloong.rmk: Removed.
11301 * conf/mips.rmk: Removed.
11302 * conf/powerpc-ieee1275.rmk: Removed.
11303 * conf/sparc64-ieee1275.rmk: Removed.
11304 * conf/tests.rmk: Removed.
11305 * conf/x86-efi.rmk: Removed.
11306 * conf/x86_64-efi.rmk: Removed.
11307 * gendistlist.sh: Removed.
11308 * geninitheader.sh: Removed.
11309 * genkernsyms.sh.in: Removed.
11310 * genmk.rb: Removed.
11311 * gensymlist.sh.in: Removed.
11312 * mkinstalldirs: Removed.
11313 * boot: Moved ...
11314 * grub-core/boot: ... to here.
11315 * bus: Moved ...
11316 * grub-core/bus: ... to here.
11317 * commands: Moved ...
11318 * grub-core/commands: ... to here.
11319 * disk: Moved ...
11320 * grub-core/disk: ... to here.
11321 * efiemu: Moved ...
11322 * grub-core/efiemu: ... to here.
11323 * font: Moved ...
11324 * grub-core/font: ... to here.
11325 * fs: Moved ...
11326 * grub-core/fs: ... to here.
11327 * gencmdlist.sh: Moved ...
11328 * grub-core/gencmdlist.sh: ... to here.
11329 * genemuinit.sh: Moved ...
11330 * grub-core/genemuinit.sh: ... to here.
11331 * genemuinitheader.sh: Moved ...
11332 * grub-core/genemuinitheader.sh: ... to here.
11333 * genfslist.sh: Moved ...
11334 * grub-core/genfslist.sh: ... to here.
11335 * genhandlerlist.sh: Moved ...
11336 * grub-core/genhandlerlist.sh: ... to here.
11337 * genmoddep.awk: Moved ...
11338 * grub-core/genmoddep.awk: ... to here.
11339 * genmodsrc.sh: Moved ...
11340 * grub-core/genmodsrc.sh: ... to here.
11341 * genpartmaplist.sh: Moved ...
11342 * grub-core/genpartmaplist.sh: ... to here.
11343 * genparttoollist.sh: Moved ...
11344 * grub-core/genparttoollist.sh: ... to here.
11345 * genterminallist.sh: Moved ...
11346 * grub-core/genterminallist.sh: ... to here.
11347 * gentrigtables.c: Moved ...
11348 * grub-core/gentrigtables.c: ... to here.
11349 * genvideolist.sh: Moved ...
11350 * grub-core/genvideolist.sh: ... to here.
11351 * gettext: Moved ...
11352 * grub-core/gettext: ... to here.
11353 * gfxmenu: Moved ...
11354 * grub-core/gfxmenu: ... to here.
11355 * gnulib: Moved ...
11356 * grub-core/gnulib: ... to here.
11357 * hello: Moved ...
11358 * grub-core/hello: ... to here.
11359 * hook: Moved ...
11360 * grub-core/hook: ... to here.
11361 * io: Moved ...
11362 * grub-core/io: ... to here.
11363 * kern: Moved ...
11364 * grub-core/kern: ... to here.
11365 * lib: Moved ...
11366 * grub-core/lib: ... to here.
11367 * loader: Moved ...
11368 * grub-core/loader: ... to here.
11369 * mmap: Moved ...
11370 * grub-core/mmap: ... to here.
11371 * normal: Moved ...
11372 * grub-core/normal: ... to here.
11373 * partmap: Moved ...
11374 * grub-core/partmap: ... to here.
11375 * parttool: Moved ...
11376 * grub-core/parttool: ... to here.
11377 * script: Moved ...
11378 * grub-core/script: ... to here.
11379 * term: Moved ...
11380 * grub-core/term: ... to here
11381 * tests/example_functional_test.c: Moved ...
11382 * grub-core/tests/example_functional_test.c: ... to here.
11383 * tests/lib/functional_test.c: Moved ...
11384 * grub-core/tests/lib/functional_test.c: ... to here.
11385 * tests/lib/test.c: Moved ...
11386 * grub-core/tests/lib/test.c: ... to here.
11387 * video: Moved ...
11388 * grub-core/video: ... to here.
11389
11390 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
11391
11392 Replace --enable-grub-emu-modules with grub-emu-lite.
11393
11394 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
11395 cache.S.
11396
11397 * include/grub/emu/misc.h (grub_emu_init): New prototype.
11398 * kern/emu/full.c: New file. For grub-emu specific initialization.
11399 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
11400 * kern/emu/main.c: Call initialization function grub_emu_init.
11401
11402 * Makefile.in: Include grub-emu-lite in install.
11403 * commands/parttool.c: Use grub_no_autoload to differentiate
11404 between grub-emu and grub-emu-lite.
11405 * include/grub/misc.h: New variable grub_no_autoload.
11406
11407 * conf/any-emu.rmk: New rules for grub-emu-lite.
11408 * configure.ac: Remove --enable-grub-emu-modules.
11409 * genmk.rb: Cleanup unnecessary rules.
11410 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
11411
11412 * normal/main.c: Don't load list files on grub-emu-lite.
11413 * util/misc.c (grub_arch_sync_caches): Removed.
11414
11415 2010-08-23 Colin Watson <cjwatson@ubuntu.com>
11416
11417 * kern/mips/startup.S (grub_prefix): Update comment to refer to
11418 grub-mkimage rather than grub-mkelfimage.
11419 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
11420
11421 2010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
11422
11423 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
11424 a key after CapsLock or NumLock. It's just a qemu bug.
11425
11426 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
11427
11428 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
11429 needed by libusb wrapper.
11430
11431 2010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
11432
11433 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
11434
11435 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
11436
11437 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
11438 --nounzip is passed.
11439
11440 2010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
11441
11442 USB hotunplugging and USB serial support.
11443
11444 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
11445 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
11446 (grub_uhci_transfer): Respect timeout and set *actual.
11447 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
11448 non-standard length.
11449 (grub_usb_device_attach): Autoload modules.
11450 (GRUB_MOD_INIT): Set grub_term_poll_usb.
11451 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
11452 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
11453 users updated.
11454 (grub_usb_add_hub): Fill nports and children.
11455 (attach_root_port): Receive hub instead of controller.
11456 All users updated. Fill hub->devices.
11457 (grub_usb_root_hub): Allocate hub->devices.
11458 (detach_device): New function.
11459 (poll_nonroot_hub): Fill children and detach devices.
11460 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
11461 actual arguments. All users updated.
11462 (grub_usb_bulk_read_extended): New function.
11463 * bus/usb/serial/common.c: New file.
11464 * bus/usb/serial/ftdi.c: Likewise.
11465 * bus/usb/serial/pl2303.c: Likewise.
11466 * commands/terminal.c (handle_command): Support wildcard.
11467 * commands/usbtest.c: Output "Unknown" instead of empty string.
11468 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
11469 (usbserial_common_mod_SOURCES): New variable.
11470 (usbserial_common_mod_CFLAGS): Likewise.
11471 (usbserial_common_mod_LDFLAGS): Likewise.
11472 (pkglib_MODULES): Add usbserial_pl2303.mod.
11473 (usbserial_pl2303_mod_SOURCES): New variable.
11474 (usbserial_pl2303_mod_CFLAGS): Likewise.
11475 (usbserial_pl2303_mod_LDFLAGS): Likewise.
11476 (pkglib_MODULES): Add usbserial_ftdi.mod.
11477 (usbserial_ftdi_mod_SOURCES): New variable.
11478 (usbserial_ftdi_mod_CFLAGS): Likewise.
11479 (usbserial_ftdi_mod_LDFLAGS): Likewise.
11480 (pkglib_MODULES): Add serial.mod.
11481 (serial_mod_SOURCES): New variable.
11482 (serial_mod_CFLAGS): Likewise.
11483 (serial_mod_LDFLAGS): Likewise.
11484 * conf/i386-pc.rmk: Likewise.
11485 * conf/mips-yeeloong.rmk: Likewise.
11486 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
11487 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
11488 * disk/usbms.c (first_available_slot): New variable.
11489 (grub_usbms_attach): Don't reuse free slots due to potential cache
11490 problems.
11491 * include/grub/serial.h: Moved to ..
11492 * include/grub/ns8250.h: ...this.
11493 * include/grub/serial.h: New file.
11494 * include/grub/term.h (grub_term_poll_usb): New variable.
11495 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
11496 readkey. All users updated.
11497 (grub_terminfo_output_state): Pass term to put.
11498 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
11499 (grub_usb_controller_dev): Add timeout and actual arguments to
11500 transfer. All users updated.
11501 (grub_usb_interface): New field detach_data.
11502 (grub_usb_device): New fields children and nports.
11503 (grub_usb_ep_type_t): New type.
11504 (grub_usb_get_ep_type): New function.
11505 (grub_usb_bulk_read_extended): Likewise.
11506 * include/grub/usbdesc.h (grub_usb_desc): New type.
11507 * include/grub/usbserial.h: New file.
11508 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
11509 * kern/term.c (grub_term_poll_usb): New variable.
11510 (grub_getkey): Call grub_term_poll_usb if set.
11511 (grub_checkkey): Likewise.
11512 (grub_getkeystatus): Likewise.
11513 * term/serial.c: Moved controller-specific parts to ...
11514 * term/ns8250.c: ... here.
11515 * term/serial.c: Mostly rewritten.
11516 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
11517 according to spec.
11518
11519 2010-08-20 Robert Millan <rmh@gnu.org>
11520
11521 Make kFreeBSD code more generic to support ext2fs as root, ufs as
11522 a separate module and maybe other interesting combinations.
11523
11524 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
11525 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
11526 (kfreebsd_entry): Add generic filesystem module load routine.
11527 Map GRUB `ext2' to kFreeBSD `ext2fs'.
11528
11529 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
11530
11531 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
11532 "numcenter" (I misunderstood the purpose of this entry).
11533 * docs/grub.texi (sendkey): Likewise.
11534
11535 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
11536
11537 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
11538 status flag options; simply omitting the option is equivalent and
11539 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
11540 (keysym_table): Rename "num5numlock" to "numlock".
11541 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
11542 can uniformly say that only the last of multiple `sendkey'
11543 invocations has any effect.
11544 * docs/grub.texi (sendkey): New section.
11545
11546 2010-08-19 Colin Watson <cjwatson@ubuntu.com>
11547
11548 * commands/i386/pc/sendkey.c (options): Fix three typos.
11549
11550 2010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
11551
11552 Implement sendkey support.
11553
11554 * commands/i386/pc/sendkey.c: New file.
11555 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
11556 (sendkey_mod_SOURCES): New variable.
11557 (sendkey_mod_CFLAGS): Likewise.
11558 (sendkey_mod_LDFLAGS): Likewise.
11559
11560 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
11561
11562 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
11563 fix warnings from Autoconf.
11564
11565 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
11566
11567 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
11568 to avoid false positives with some assemblers that output things
11569 like "someprefix_func" as part of their output.
11570
11571 2010-08-15 Robert Millan <rmh@gnu.org>
11572
11573 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
11574 errors.
11575 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
11576 grub_get_libzfs_handle() errors.
11577
11578 2010-08-14 Robert Millan <rmh@gnu.org>
11579
11580 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
11581 filesystem is not ZFS.
11582
11583 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
11584
11585 Fix for misspelled color names defaulting to black/black (bug
11586 reported by Doug Nazar)
11587
11588 * include/grub/normal.h (grub_parse_color_name_pair): Add return
11589 status to prototype.
11590 * normal/color.c (grub_parse_color_name_pair): Return failure
11591 status.
11592 (grub_env_write_color_normal): Ignore bad color names.
11593 (grub_env_write_color_highlight): Likewise.
11594 * normal/main.c (GRUB_MOD_INIT): Set default color names.
11595
11596 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
11597
11598 "shift" command support to GRUB script.
11599
11600 * include/grub/script_sh.h (grub_script_shift): New prototype.
11601 * script/execute.c (grub_script_shift): New function.
11602 * script/main.c (grub_script_init): Register shift command.
11603 (grub_script_fini): Unregister shift command.
11604 * util/grub-script-check.c (grub_script_cmd_shift): New function.
11605
11606 * tests/grub_script_shift.in: New testcase.
11607 * conf/tests.rmk: Rules for new testcase.
11608
11609 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
11610
11611 "continue" command support to GRUB script.
11612
11613 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
11614 (grub_script_break): Continue support.
11615 * script/main.c (grub_script_init): Register continue command.
11616 (grub_script_fini): Unregister continue command.
11617
11618 * tests/grub_script_continue.in: New testcase.
11619 * conf/tests.rmk: Rules for new testcase.
11620
11621 2010-08-12 BVK Chaitanya <bvk@dbook>
11622
11623 "break" command support to GRUB script.
11624
11625 * conf/common.rmk: Rule updates to grub-script-check.
11626 * include/grub/misc.h (grub_min): New function.
11627 * include/grub/script_sh.h (grub_script_init): New prototype.
11628 (grub_script_fini): New prototype.
11629 (grub_script_break): New prototype.
11630 * script/main.c (grub_script_init): New function.
11631 (grub_script_fini): New function.
11632 * script/execute.c (grub_script_break): New function.
11633 * normal/main.c: Calls to grub_script_{init,fini}.
11634 * util/grub-script-check.c (grub_script_break): New function.
11635
11636 * tests/grub_script_break.in: New testcase.
11637 * conf/tests.rmk: Rules for new test case.
11638
11639 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
11640
11641 Function parameters support to GRUB script.
11642
11643 * script/yylex.l (VARIABLE): Regular expression update.
11644 * script/function.c (grub_script_function_call): Moved ...
11645 * script/execute.c (grub_script_function_call): ... to here.
11646 (grub_script_execute_arglist_to_argv): Removed.
11647 (grub_script_arglist_to_argv): New function.
11648 * script/argv.c: New file.
11649 (grub_script_argv_free): New function.
11650 (grub_script_argv_next): Likewise.
11651 (grub_script_argv_append): Likewise.
11652 (grub_script_argv_split_append): Likewise.
11653 * include/grub/script_sh.h (grub_script_argv): New struct.
11654 (grub_script_argv_free): New function.
11655 (grub_script_argv_next): Likewise.
11656 (grub_script_argv_append): Likewise.
11657 (grub_script_argv_split_append): Likewise.
11658
11659 * conf/common.rmk (normal.mod): New source script/argv.c.
11660
11661 * tests/grub_script_echo1.in: More tests.
11662 * tests/grub_script_vars1.in: Likewise.
11663 * tests/grub_script_functions.in: New test case.
11664 * conf/tests.rmk: Rules for new testcase.
11665
11666 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
11667
11668 Remove grub_script_cmdblock struct.
11669
11670 * include/grub/script_sh.h: Remove grub_script_cmdblock.
11671 * script/parser.y: Likewise.
11672 * script/execute.c: Rename cmdblock suffix to cmdlist.
11673 * script/script.c: Likewise.
11674 * util/grub-script-check.c: Likewise.
11675
11676 2010-08-11 Yves Blusseau <blusseau@zetam.org>
11677
11678 * .bzrignore: add grub-macho2img
11679
11680 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
11681
11682 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
11683
11684 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
11685
11686 Remove the dump of sm712 initialisation sequence.
11687
11688 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
11689 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
11690 (GRUB_VGA_IO_MISC_WRITE): Likewise.
11691 (GRUB_VGA_CR_*): Added many registers.
11692 (GRUB_VGA_SR_*): Likewise.
11693 (GRUB_VGA_GR_*): Likewise.
11694 (grub_vga_write_arx): New function.
11695 (grub_video_hw_config): New struct.
11696 (grub_vga_set_geometry): New function.
11697 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
11698 GRUB_PCI_CLASS_SUBCLASS_VGA.
11699 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
11700 * video/sm712.c (grub_sm712_write_reg): New function
11701 (grub_sm712_read_reg): Likewise.
11702 (grub_sm712_sr_write): Likewise.
11703 (grub_sm712_gr_write): Likewise.
11704 (grub_sm712_cr_write): Likewise.
11705 (grub_sm712_write_arx): Likewise.
11706 (grub_sm712_cr_shadow_write): Likewise.
11707 (grub_sm712_write_dda_lookup): Likewise.
11708 (grub_video_sm712_setup): Initialise the video rather then
11709 blindly replay the dump.
11710 (main) [TEST]: Add a routine to be able to compile as standalone for
11711 tests.
11712 * video/sm712_init.c (sm712_init): Removed.
11713 (sm712_sr_seq1): New array.
11714 (sm712_sr_seq2): Likewise.
11715
11716 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
11717
11718 * include/grub/vga.h: Add missing grub/pci.h include.
11719
11720 2010-08-10 Yves Blusseau <blusseau@zetam.org>
11721
11722 * util/grub-macho2img.c (main): fix typo
11723
11724 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
11725
11726 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
11727 (grub_vga_gr_read): Likewise.
11728 (grub_vga_cr_write): Likewise.
11729 (grub_vga_cr_read): Likewise.
11730 (grub_vga_sr_write): Likewise.
11731 (grub_vga_sr_read): Likewise.
11732 (grub_vga_palette_read): Likewise.
11733 (grub_vga_palette_write): Likewise.
11734 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
11735 (grub_sm712_sr_read): New function.
11736 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
11737 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
11738
11739 2010-08-09 Robert Millan <rmh@gnu.org>
11740
11741 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
11742 out unused variables on non-ZFS build.
11743
11744 2010-08-08 Robert Millan <rmh@gnu.org>
11745
11746 Fix path generation for sub-filesystems in ZFS.
11747
11748 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
11749 missing slash.
11750
11751 2010-08-08 Robert Millan <rmh@gnu.org>
11752
11753 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
11754
11755 2010-08-08 Robert Millan <rmh@gnu.org>
11756
11757 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
11758 exist, issue a proper error message (rely on `ls' for translated
11759 strings).
11760
11761 2010-08-08 Robert Millan <rmh@gnu.org>
11762
11763 Fix grub-probe invocation.
11764
11765 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
11766
11767 2010-08-04 Robert Millan <rmh@gnu.org>
11768
11769 * configure.ac: Remove checks for getfsstat() and getmntany().
11770 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
11771 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
11772 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
11773 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
11774 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
11775 function.
11776 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
11777 via find_mount_point_from_dir() and getfsstat() / getmntany().
11778
11779 2010-08-04 Robert Millan <rmh@gnu.org>
11780
11781 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
11782 (grub_find_zpool_from_mount_point): Merge into ...
11783 (grub_find_zpool_from_dir): ... this.
11784 * kern/emu/misc.c: Likewise.
11785
11786 * kern/emu/misc.c
11787 (grub_make_system_path_relative_to_its_root): Replace
11788 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
11789 with grub_find_zpool_from_dir().
11790 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
11791
11792 2010-08-04 Robert Millan <rmh@gnu.org>
11793
11794 Support OpenSolaris in ZFS device resolution.
11795
11796 * configure.ac: Check for getmntany().
11797 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
11798 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
11799 support.
11800
11801 2010-08-03 Robert Millan <rmh@gnu.org>
11802
11803 Fix grub-emu build.
11804
11805 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
11806 * include/grub/emu/misc.h: ... here.
11807
11808 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
11809 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
11810
11811 * util/misc.c: Remove `<grub/util/libzfs.h>'.
11812 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
11813 (grub_get_libzfs_handle): Move to ...
11814 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
11815 (grub_get_libzfs_handle): ... here.
11816
11817 2010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
11818
11819 * script/execute.c (grub_script_execute_cmdline): Check for NULL
11820 as command name case.
11821
11822 2010-08-02 Colin Watson <cjwatson@ubuntu.com>
11823
11824 * disk/raid.c (insert_array): Select unique numbers for named arrays
11825 as well, for use as keys in the disk cache.
11826
11827 2010-08-01 Robert Millan <rmh@gnu.org>
11828
11829 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
11830 kFreeBSD device name, except on ZFS where the filesystem label is
11831 used.
11832 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
11833 `/boot/zfs/zpool.cache'.
11834 Set mountfrom kernel variable using ${kfreebsd_device}.
11835
11836 2010-08-01 Robert Millan <rmh@gnu.org>
11837
11838 Make it even harder to use uninitialized `libzfs_handle' (and
11839 make the interface a bit simpler).
11840
11841 * include/grub/util/misc.h (grub_util_init_libzfs)
11842 (libzfs_handle): Remove.
11843 (grub_get_libzfs_handle): New prototype.
11844
11845 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
11846 attribute.
11847 (grub_util_init_libzfs): Remove.
11848 (grub_get_libzfs_handle): New function.
11849
11850 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
11851 grub_get_libzfs_handle() to obtain a libzfs handle instead of
11852 accessing `libzfs_handle' directly.
11853
11854 2010-08-01 Robert Millan <rmh@gnu.org>
11855
11856 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
11857 (grub_find_zpool_from_mount_point): New function prototypes.
11858
11859 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
11860 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
11861
11862 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
11863 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
11864 `static' attribute.
11865
11866 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
11867 finding zpool from mount point into ...
11868 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
11869
11870 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
11871 requested path is part of a ZFS pool, use
11872 grub_find_zpool_from_mount_point() to detect its filesystem name,
11873 and generate a path with `/fsname@path' syntax.
11874
11875 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
11876
11877 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
11878 (void) rather than () so that this is a proper prototype.
11879
11880 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
11881
11882 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
11883
11884 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
11885
11886 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
11887 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
11888
11889 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
11890
11891 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
11892
11893 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
11894
11895 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
11896
11897 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
11898
11899 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
11900 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
11901 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
11902 disable gfxpayload.
11903 (Shell-like scripting): Add real content.
11904 (Serial terminal): Suggest `terminal_input serial; terminal_output
11905 serial' rather than putting the two commands on separate lines,
11906 since console input will be inoperative after the first command.
11907 (menuentry): Document --class, --users, and --hotkey options.
11908 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
11909 Vladimir Serbinenko).
11910
11911 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
11912 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
11913
11914 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
11915
11916 2010-08-01 Robert Millan <rmh@gnu.org>
11917
11918 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
11919 (grub_find_zpool_from_mount_point): New function prototypes.
11920
11921 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
11922 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
11923
11924 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
11925 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
11926 `static' attribute.
11927
11928 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
11929 finding zpool from mount point into ...
11930 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
11931
11932 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
11933 requested path is part of a ZFS pool, use
11934 grub_find_zpool_from_mount_point() to detect its filesystem name,
11935 and generate a path with `/fsname@path' syntax.
11936
11937 2010-08-01 Robert Millan <rmh@gnu.org>
11938
11939 Prevent accidental use of uninitialized libzfs_handle.
11940
11941 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
11942 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
11943 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
11944
11945 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
11946
11947 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
11948 util/grub.d/10_linux.in). Fixes Debian bug #591093.
11949
11950 2010-08-01 Robert Millan <rmh@gnu.org>
11951
11952 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
11953
11954 2010-07-31 Robert Millan <rmh@gnu.org>
11955
11956 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
11957
11958 2010-07-31 Robert Millan <rmh@gnu.org>
11959
11960 * kern/emu/misc.c: Add missing license header.
11961
11962 2010-07-31 Robert Millan <rmh@gnu.org>
11963
11964 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
11965
11966 * include/grub/util/libnvpair.h: Include `<config.h>'.
11967 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
11968 declaring libnvpair prototypes ourselves.
11969 * include/grub/util/libzfs.h: Include `<config.h>'.
11970 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
11971 declaring libzfs prototypes ourselves.
11972
11973 (libzfs_handle): Moved to ...
11974 * include/grub/util/misc.h (libzfs_handle): ... here.
11975 Include `<grub/util/libzfs.h>'.
11976
11977 2010-07-30 Robert Millan <rmh@gnu.org>
11978
11979 * include/grub/emu/misc.h: Add missing license header.
11980
11981 2010-07-30 Robert Millan <rmh@gnu.org>
11982
11983 Enable `grub-probe -t device' resolution on ZFS.
11984
11985 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
11986 * include/grub/util/libnvpair.h: New file.
11987 * include/grub/util/libzfs.h: New file.
11988
11989 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
11990 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
11991 `<grub/util/libnvpair.h>'.
11992 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
11993
11994 (find_mount_point_from_dir): New static function.
11995 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
11996 function.
11997 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
11998 find_root_device_from_libzfs() before ressorting to find_root_device().
11999
12000 * include/grub/util/misc.h (grub_util_init_libzfs): New function
12001 prototype.
12002 * util/misc.c: Include `<grub/util/libzfs.h>'.
12003 (grub_util_init_libzfs): New function.
12004 [HAVE_LIBZFS] (libzfs_handle): New global variable.
12005 [HAVE_LIBZFS] (fini_libzfs): New static function.
12006 (grub_util_init_libzfs): New function.
12007 * util/grub-probe.c (main): Call grub_util_init_libzfs().
12008
12009 2010-07-30 Robert Millan <rmh@gnu.org>
12010
12011 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
12012 (xmalloc, xrealloc, xstrdup, xasprintf): Add
12013 `warn_unused_result' attribute.
12014 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
12015 (grub_xasprintf, grub_xvasprintf): Likewise.
12016 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
12017
12018 2010-07-29 Robert Millan <rmh@gnu.org>
12019
12020 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
12021 (probe): Handle `PRINT_FS_LABEL'.
12022 (main): Handle `-t fs_label'.
12023
12024 2010-07-29 Robert Millan <rmh@gnu.org>
12025
12026 * configure.ac: Remove grub-mkisofs checks.
12027
12028 2010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
12029
12030 * util/ieee1275/grub-install.in: Don't use empty grub_device.
12031 Reported by: Lennart Sorensen.
12032
12033 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
12034
12035 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
12036 prior to terminal_input/terminal_output separation. It's been over 1.5
12037 years and those versions weren't widely deployed.
12038
12039 2010-07-22 Colin Watson <cjwatson@ubuntu.com>
12040
12041 * disk/raid.c (insert_array): Don't count named arrays when looking
12042 for unused array numbers.
12043 Reported and tested by: Michael Guntsche.
12044
12045 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
12046
12047 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
12048 implementation of this so that grub-emu links again, with a note
12049 that this should support hotplugging in the future.
12050
12051 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
12052
12053 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
12054
12055 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
12056
12057 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
12058 handle on failure.
12059 (grub_loopback_close): Remove empty function.
12060 (grub_loopback_dev): Remove close method.
12061
12062 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
12063
12064 Disable EFI cursor when the EFI console becomes inactive.
12065
12066 * term/efi/console.c (grub_efi_console_init): New function.
12067 (grub_efi_console_fini): New function.
12068 (grub_console_term_output): Register init and fini methods.
12069
12070 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
12071
12072 * tests/util/grub-shell-tester.in: Remove bashism and declare as
12073 sh script.
12074
12075 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
12076
12077 * disk/loopback.c (grub_loopback): Replace filename with file.
12078 (delete_loopback): Handle new semantics.
12079 (grub_cmd_loopback): Likewise.
12080 (grub_loopback_iterate): Likewise.
12081 (grub_loopback_close): Likewise.
12082
12083 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
12084
12085 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
12086 with -p "".
12087 Reported by: Tito Keitel.
12088
12089 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
12090
12091 * docs/grub.texi (Naming convention): Document new naming convention.
12092
12093 2010-07-20 Vadim Solomin <vadic052@gmail.com>
12094 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
12095
12096 Generate device.map in something closer to the old ordering.
12097
12098 * util/deviceiter.c (struct device): New declaration.
12099 (compare_file_names): Rename to ...
12100 (compare_devices): ... this. Sort by kernel name in preference to
12101 the stable by-id name, but keep the latter as a fallback comparison.
12102 Update header comment.
12103 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
12104 of `struct device' rather than of plain file names.
12105
12106 2010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
12107
12108 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
12109 on i386.
12110
12111 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
12112
12113 * commands/acpi.c (setup_common_tables): Use sizeof instead of
12114 hardcoding size.
12115 (setv1table): Likewise.
12116
12117 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
12118
12119 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
12120 removing the homehost if present.
12121 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
12122 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
12123 removing the homehost if present.
12124 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
12125 if possible.
12126 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
12127
12128 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
12129 parameter. Set its pointer target to 0.
12130 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
12131 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
12132 `data_offset' value from the superblock for 1.x metadata.
12133 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
12134 data on the device.
12135 (insert_array): Record the start sector of data on the device.
12136 (grub_raid_register): Pass start_sector parameters to
12137 grub_raid_list->detect and insert_array.
12138 * include/grub/raid.h (struct grub_raid_array): Add start_sector
12139 member.
12140 (struct grub_raid): Add start_sector parameter to `detect'.
12141
12142 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
12143 __attribute__ ((packed)), leaving a comment.
12144 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
12145 (grub_mdraid_detect_09): ... here and ...
12146 (grub_mdraid_detect_1x): ... here.
12147
12148 2010-07-20 Peter Henn <peter.henn@web.de>
12149
12150 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
12151 chunk size and disk size, which are already given as sector counts
12152 as distinct from the 0.90 units. Fetch the correct device number
12153 from the role table instead of using the table index.
12154
12155 2010-07-20 Felix Zielcke <fzielcke@z-51.de>
12156
12157 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
12158 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
12159 (WriteMostly1): New macro.
12160 Set array->name to NULL for metadata format 0.90. Add support for
12161 metadata 1.x. Fix some comments.
12162 * disk/raid.c (): Add support for name based RAID arrays. Fix a
12163 few comments.
12164 * util/getroot.c (grub_util_get_grub_dev): Add support for
12165 /dev/md/name style devices.
12166
12167 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
12168
12169 * .bzrignore: Ignore 20_linux_xen.
12170
12171 2010-07-17 Colin Watson <cjwatson@ubuntu.com>
12172
12173 * util/import_unicode.py: Remove unnecessary imports.
12174
12175 2010-07-17 Aleš Nesrsta <starous@volny.cz>
12176
12177 Hotplugging and USB hub support.
12178
12179 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
12180 (grub_ohci): Likewise.
12181 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
12182 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
12183 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
12184 (GRUB_OHCI_CTRL_EDS): Likewise.
12185 (GRUB_OHCI_BULK_EDS): Likewise.
12186 (GRUB_OHCI_TDS): Likewise.
12187 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
12188 (grub_ohci_ed_phys2virt): New function.
12189 (grub_ohci_virt_to_phys): Likewise.
12190 (grub_ohci_td_phys2virt): Likewise.
12191 (grub_ohci_td_virt2phys): Likewise.
12192 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
12193 attachment.
12194 (grub_ohci_find_ed): New function.
12195 (grub_ohci_alloc_td): Likewise.
12196 (grub_ohci_free_td): Likewise.
12197 (grub_ohci_free_tds): Likewise.
12198 (grub_ohci_transfer): Use previously allocated memory.
12199 (grub_ohci_portstatus): Reset status changed bit.
12200 (grub_ohci_detect_dev): Supply status changed.
12201 (grub_ohci_fini_hw): Free memory.
12202 (grub_ohci_restore_hw): Reallocate memory.
12203 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
12204 Reset status change.
12205 (grub_uhci_detect_dev): Supply status_change.
12206 * bus/usb/usb.c (attach_hooks): New var.
12207 (grub_usb_device_attach): New function.
12208 (grub_usb_register_attach_hook_class): Likewise.
12209 (grub_usb_unregister_attach_hook_class): Likewise.
12210 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
12211 (grub_usb_add_hub): Reset connection changed bit.
12212 (attach_root_port): New function.
12213 (grub_usb_root_hub): Likewise.
12214 (poll_nonroot_hub): Likewise.
12215 (grub_usb_poll_devices): Likewise.
12216 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
12217 * disk/usbms.c (grub_usbms_open): Use device hooks.
12218 (grub_usbms_iterate) :Poll devices.
12219 (grub_usbms_finddevs): Split into ...
12220 (grub_usbms_attach): ... this ...
12221 (grub_usbms_attach): ... and this.
12222 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
12223 in detect_dev.
12224 (grub_usb_interface): New fields attached and detach_hook.
12225 (grub_usb_attach_hook_class): New type.
12226 (grub_usb_attach_desc): New struct.
12227 (grub_usb_register_attach_hook_class): New function.
12228 (grub_usb_unregister_attach_hook_class): Likewise.
12229 (grub_usb_poll_devices): Likewise.
12230 (grub_usb_device_attach): Likewise.
12231 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
12232 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
12233
12234 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
12235
12236 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
12237 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
12238 delta determination style. Works with most NetBSD partitions too.
12239
12240 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
12241
12242 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
12243 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
12244
12245 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
12246
12247 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
12248
12249 2010-07-14 Anton Blanchard <anton@samba.org>
12250
12251 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
12252 ET_DYN files.
12253
12254 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
12255
12256 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
12257
12258 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
12259
12260 * kern/partition.c (grub_partition_check_containment): New function to
12261 check that a partition is physically contained in a parent. Since
12262 offsets are relative (and non-negative), this reduces to checking that
12263 the partition ends before its parent.
12264 (grub_partition_map_probe): Discard out-of-range sub-partitions.
12265 (grub_partition_iterate): Likewise.
12266 * include/grub/partition.h (grub_partition_map): Slightly more detailed
12267 comments.
12268 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
12269 partitions that start before their parent, and add debug printfs.
12270
12271 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
12272
12273 * Makefile.in (.SUFFIX): Spell correctly, as ...
12274 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
12275 bare module name without `.mod', e.g. `test') tried to invoke a
12276 Modula-2 compiler.
12277
12278 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
12279
12280 * README: Point to the Info manual.
12281
12282 2010-07-13 Jiro SEKIBA <jir@unicus.jp>
12283
12284 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
12285 2nd superblock position from partition size.
12286
12287 2010-07-10 Colin Watson <cjwatson@ubuntu.com>
12288
12289 * Makefile.in (MAINTAINER_CLEANFILES): Remove
12290 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
12291 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
12292 outputs.
12293
12294 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
12295
12296 Restructure SCSI .id handling.
12297 Reported and tested by: Aleš Nesrsta.
12298
12299 * disk/ata.c (grub_atapi_close): Removed. All users updated.
12300 (grub_atapi_dev): Changed .name to "ata". New field .id.
12301 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
12302 (grub_usbms_dev): New field .id.
12303 * disk/scsi.c (grub_scsi_iterate): Generate name.
12304 (grub_scsi_open): Parse name.
12305 * include/grub/scsi.h (grub_make_scsi_id): New function.
12306 (grub_scsi_dev): Change iterate and open to number instead of naming
12307 busses. All users updated.
12308 (grub_scsi): Remove name. Add .bus.
12309
12310 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
12311
12312 * commands/help.c (grub_cmd_help): Fix a typo.
12313
12314 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
12315
12316 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
12317 Reported and tested by: Colin Watson.
12318
12319 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
12320
12321 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
12322 in this context.
12323
12324 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
12325
12326 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
12327
12328 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
12329
12330 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
12331 indentation.
12332
12333 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
12334
12335 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
12336 and disk/raid6_recover.c.
12337 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
12338 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
12339
12340 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
12341
12342 * term/gfxterm.c (repaint_schedulded): Rename to ...
12343 (repaint_scheduled): ... this. Update all callers.
12344 (repaint_was_schedulded): Rename to ...
12345 (repaint_was_scheduled): ... this. Update all callers.
12346
12347 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
12348
12349 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
12350 which we expect to be handled by upper layers.
12351
12352 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
12353
12354 * bus/usb/usbhub.c: #include time.h header.
12355
12356 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
12357
12358 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
12359 entry_name also for entries without stat blocks (e.g. ".."); fixes
12360 corruption of the first entry in a directory.
12361
12362 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
12363
12364 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
12365 after setting gfxterm as the active terminal. GRUB_BACKGROUND
12366 doesn't work otherwise.
12367
12368 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
12369
12370 * docs/grub.texi (Features): Update list of supported file systems.
12371 (GNU/Linux): Update for GRUB 2.
12372 (Serial terminal): Remove mention of --disable-serial, which was a
12373 GRUB Legacy configure option. Update instructions to use
12374 `terminal_input' and `terminal_output' rather than `terminal'.
12375 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
12376 configuration' and `Installing GRUB using grub-install'.
12377 (Menu entry editor): Update for GRUB 2.
12378 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
12379 Document new -a, -u, and -v options.
12380 (initrd): New section.
12381 (initrd16): New section.
12382 (linux): New section.
12383 (linux16): New section.
12384 (search): The `var' argument to `--set' is optional.
12385 (GRUB only offers a rescue shell): Go into a little more detail on
12386 drive ordering.
12387
12388 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
12389
12390 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
12391
12392 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
12393
12394 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
12395 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
12396
12397 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
12398
12399 * util/i386/pc/grub-setup.c (setup): Rename prefix to
12400 install_prefix, in line with install_dos_part and install_bsd_part.
12401 Add new prefix variable, which is copied to install_prefix after
12402 comparing core.img in memory with the one read from disk in the
12403 no-embedding case, and use that rather than overwriting
12404 install_prefix immediately when installing to a partition.
12405 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
12406 Bicakci.
12407
12408 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
12409
12410 * configure.ac: Avoid == in test command, it's not portable.
12411 * util/grub.d/30_os-prober.in: Likewise.
12412
12413 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
12414
12415 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
12416
12417 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
12418
12419 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
12420 multiple (top-level) partmaps.
12421
12422 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
12423
12424 * util/i386/efi/grub-install.in: Don't use empty grub_device.
12425 Reported by: Tino Keitel.
12426
12427 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
12428
12429 Bidi and diacritics support.
12430
12431 * Makefile.in (widthspec.bin): New target.
12432 (widthspec.h): Likewise.
12433 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
12434 * autogen.sh: Generate unidata.c.
12435 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
12436 * commands/ls.c (grub_ls_list_devices): Likewise.
12437 (grub_ls_list_files): Likewise.
12438 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
12439 (grub_mini_cmd_lsmod): Likewise.
12440 * commands/read.c: Likewise.
12441 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
12442 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
12443 * lib/arg.c (grub_arg_show_help): Likewise.
12444 * lib/crypto.c (grub_password_get): Likewise.
12445 * normal/auth.c (grub_username_get): Likewise.
12446 * normal/misc.c (grub_normal_print_device_info): Likewise.
12447 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
12448 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
12449 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
12450 (normal/charset.c_DEPENDENCIES): New variable.
12451 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
12452 (pkglib_MODULES): Remove charset.mod.
12453 (charset_mod_SOURCES): Removed.
12454 (charset_mod_CFLAGS): Likewise.
12455 (charset_mod_LDFLAGS): Likewise.
12456 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
12457 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
12458 and term/tparm.c.
12459 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
12460 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
12461 (kernel_img_HEADERS): Add terminfo.h.
12462 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
12463 Fill ->font. Reverse ascii bitmaps.
12464 (grub_font_get_xheight): New function.
12465 * font/font.c (grub_font_get_string_width): Moved from here ...
12466 * gfxmenu/font.c (grub_font_get_string_width): ... here.
12467 * font/font.c (grub_font_draw_string): Moved from here ...
12468 * gfxmenu/font.c (grub_font_draw_string): ... here.
12469 * font/font.c (grub_font_dup_glyph): New function.
12470 (grub_font_blit_glyph): Likewise.
12471 (grub_font_blit_glyph_mirror): Likewise.
12472 (blit_comb): Likewise.
12473 (grub_font_construct_dry_run): Likewise.
12474 (grub_font_get_constructed_device_width): Likewise.
12475 (grub_font_construct_glyph): Likewise.
12476 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
12477 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
12478 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
12479 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
12480 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
12481 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
12482 (grub_font_get_xheight): New proto.
12483 (grub_font_get_constructed_device_width): Likewise.
12484 (grub_font_construct_glyph): Likewise.
12485 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
12486 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
12487 * include/grub/font.h (grub_font_draw_string): Moved from here ...
12488 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
12489 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
12490 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
12491 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
12492 (grub_console_getcharwidth): Likewise.
12493 * include/grub/misc.h (grub_xputs): New proto.
12494 (grub_puts): Inlined.
12495 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
12496 (grub_normal_get_line_counter): Removed.
12497 (grub_install_newline_hook): Likewise.
12498 (grub_normal_get_char_counter): New proto.
12499 (grub_normal_reset_more): Likewise.
12500 (grub_xputs_normal): Likewise.
12501 * include/grub/powerpc/ieee1275/console.h: Removed.
12502 * include/grub/sparc64/ieee1275/console.h: Likewise.
12503 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
12504 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
12505 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
12506 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
12507 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
12508 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
12509 (grub_term_input): Pass reference to self. All users updated.
12510 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
12511 Pass reference to self. New fields normal_color, highlight_color and
12512 data. All users updated.
12513 (grub_putchar): Removed.
12514 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
12515 (grub_unicode_estimate_width): New function.
12516 (grub_term_getcharwidth): Add defaults.
12517 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
12518 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
12519 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
12520 (grub_cls): Remove EXPORT_FUNC.
12521 (grub_setcolorstate): Inline.
12522 (grub_newline_hook): Removed.
12523 * include/grub/terminfo.h: Rewritten. All users updated.
12524 * include/grub/unicode.h: New file.
12525 * include/grub/video.h (grub_video_signed_rect): New type.
12526 * kern/emu/console.c (grub_console_highlight_color): Removed.
12527 (grub_console_normal_color): Likewise.
12528 (grub_console_standard_color): Made static.
12529 (grub_ncurses_putchar): Remove mapping.
12530 (grub_ncurses_getcharwidth): Removed.
12531 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
12532 (grub_ncurses_setcolor): Removed.
12533 (grub_ncurses_getcolor): Likewise.
12534 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
12535 (grub_console_putchar): ... this.
12536 (grub_console_putchar): Handle argument difference.
12537 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
12538 console_init_early and console_init_lately.
12539 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
12540 * kern/misc.c (grub_puts): Removed.
12541 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
12542 (grub_vsnprintf_real): Remove str = NULL support.
12543 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
12544 * normal/charset.c (grub_utf8_to_ucs4): ... here.
12545 * kern/term.c (grub_putcode): Renamed to ...
12546 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
12547 (grub_putchar): Removed.
12548 (grub_xputs_dumb): New function.
12549 (grub_xputs): New variable.
12550 * lib/charset.c: Move from here ...
12551 * normal/charset.c: ... to here.
12552 (grub_ucs4_to_utf8): New function.
12553 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
12554 (join_types): New variable.
12555 (unpack_join): New function.
12556 (bidi_types): New variable.
12557 (unpack_bidi): New function.
12558 (get_bidi_type): Likewise.
12559 (get_join_type): Likewise.
12560 (is_mirrored): Likewise.
12561 (grub_unicode_get_comb_type): Likewise.
12562 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
12563 (is_type_after): Likewise.
12564 (grub_unicode_aglomerate_comb): Likewise.
12565 (bidi_line_wrap): Likewise.
12566 (grub_bidi_line_logical_to_visual): Likewise.
12567 (grub_bidi_logical_to_visual): Likewise.
12568 (grub_unicode_mirror_code): Likewise.
12569 (grub_unicode_shape_code): Likewise.
12570 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
12571 Don't use grub_putchar.
12572 * normal/main.c (grub_normal_init_page): Use grub_putcode.
12573 (grub_normal_reader_init): Likewise.
12574 (grub_xputs_saved): New variable.
12575 (GRUB_MOD_INIT): Set grub_xputs.
12576 (GRUB_MOD_FINI): Restore grub_xputs.
12577 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
12578 (menu_init): Avoid printing gfxmenu error.
12579 (show_menu): Use grub_normal_get_char_counter.
12580 * normal/menu_entry.c (update_screen): Fix out-of-array.
12581 (complete): Avoid NULL dereferencing.
12582 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
12583 * normal/menu_text.c (print_spaces): Removed.
12584 (grub_print_ucs4): Likewise.
12585 (grub_print_message_indented): Use grub_print_ucs4.
12586 (print_message): Use grub_putcode.
12587 (print_entry): Hanlde diacritics.
12588 * normal/term.c (term_state): New type.
12589 (grub_more_lines): Removed.
12590 (term_states): New variable.
12591 (grub_normal_line_counter): Renamed to ..
12592 (grub_normal_char_counter): ...this. All users updated.
12593 (grub_normal_get_line_counter): Renamed to ...
12594 (grub_normal_get_char_counter): ... this.
12595 (grub_normal_reset_more): New function.
12596 (process_newline): Removed.
12597 (print_more): New function.
12598 (grub_install_newline_hook): Removed.
12599 (map_code): New function.
12600 (grub_puts_terminal): Use grub_print_ucs4.
12601 (putglyph): New function.
12602 (putcode_real): Likewise.
12603 (grub_putcode): Use putcode_real.
12604 (get_maxwidth): New function.
12605 (get_startwidth): Likewise.
12606 (print_ucs4_terminal): Likewise.
12607 (find_term_state): Likewise.
12608 (put_glyphs_terminal): Likewise.
12609 (print_backlog): Likewise.
12610 (print_ucs4_real): Likewise.
12611 (grub_print_ucs4): Likewise.
12612 (grub_xputs_normal): Likewise.
12613 * term/efi/console.c (grub_console_putchar): Output diacritics.
12614 (grub_console_getcharwidth): Removed.
12615 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
12616 * term/gfxterm.c (clear_char): Free chars.
12617 (scroll_up): Avoid leaking memory.
12618 (grub_gfxterm_putchar): Support diacritics.
12619 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
12620 * term/i386/pc/console.c (grub_console_term_output): Declare as
12621 GRUB_TERM_CODE_TYPE_VGA.
12622 * term/i386/pc/vga.c (grub_vga_term): Declare as
12623 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
12624 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
12625 GRUB_TERM_CODE_TYPE_VGA.
12626 * term/i386/vga_common.c (map_char): Removed.
12627 (grub_console_putchar): Likewise.
12628 (grub_console_getcharwidth): Likewise.
12629 * term/ieee1275/ofconsole.c: Simplify using terminfo.
12630 (colors): Reordered to match terminfo.
12631 (grub_ofconsole_normal_color): Removed.
12632 (grub_ofconsole_writeesc): Likewise.
12633 (grub_ofconsole_highlight_color): Likewise.
12634 (grub_ofconsole_getcharwidth): Likewise.
12635 (grub_ofconsole_setcolorstate): Likewise.
12636 (grub_ofconsole_setcolor): Likewise.
12637 (grub_ofconsole_getcolor): Likewise.
12638 (grub_ofconsole_readkey): Renamed to ...
12639 (readkey): ... this. Remove escape sequence handling. Return -1 on no
12640 key.
12641 (grub_ofconsole_checkkey): Removed.
12642 (grub_ofconsole_getkey): Likewise.
12643 (grub_ofconsole_getxy): Likewise.
12644 (grub_ofconsole_gotoxy): Likewise.
12645 (grub_ofconsole_cls): Likewise.
12646 (grub_ofconsole_refresh): Likewise.
12647 (grub_ofconsole_terminfo_input): New struct.
12648 (grub_ofconsole_terminfo_output): Likewise.
12649 (grub_ofconsole_term_input): Use terminfo.
12650 (grub_ofconsole_term_output): Likewise.
12651 (grub_console_init): Split into ...
12652 (grub_console_init_early): ...this and ...
12653 (grub_console_init_lately): ...this. Use terminfo.
12654 (grub_ofconsole_putchar): Renamed to ...
12655 (put): ... this. Remove mapping.
12656 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
12657 * term/serial.c: Simplify using terminfo.
12658 (xpos): Removed.
12659 (ypos): Likewise.
12660 (keep_track): Likewise.
12661 (registered): Likewise.
12662 (input_buf): Likewise.
12663 (npending): Likewise.
12664 (serial_translate_key_sequence): Likewise.
12665 (fill_input_buf): Likewise.
12666 (grub_serial_checkkey): Likewise.
12667 (grub_serial_getkey): Likewise.
12668 (grub_serial_getxy): Likewise.
12669 (grub_serial_gotoxy): Likewise.
12670 (grub_serial_putchar): Likewise.
12671 (grub_serial_cls): Likewise.
12672 (grub_serial_setcolorstate): Likewise.
12673 (grub_serial_setcursor): Likewise.
12674 (serial_hw_init): Use serial_hw_fetch.
12675 (grub_serial_terminfo_input): New variable.
12676 (grub_serial_terminfo_output): Likewise.
12677 (grub_serial_term_input): Use terminfo.
12678 (grub_serial_term_output): Likewise.
12679 * term/terminfo.c (putstr): Use put.
12680 (grub_terminfo_all_free): New function
12681 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
12682 (grub_terminfo_output_register): New function.
12683 (grub_terminfo_output_unregister): Likewise.
12684 (grub_terminfo_getxy): Likewise.
12685 (grub_terminfo_readkey): Likewise.
12686 (grub_terminfo_checkkey): Likewise.
12687 (grub_terminfo_getkey): Likewise.
12688 (grub_terminfo_input_init): Likewise.
12689 (print_terminfo): Likewise.
12690 (grub_cmd_terminfo): Handle encoding.
12691 (grub_terminfo_gotoxy): Track position.
12692 (grub_terminfo_cls): Likewise.
12693 (grub_terminfo_putchar): Likewise.
12694 (grub_terminfo_setcolorstate): Handle colors
12695 (grub_terminfo_cursor_on): This ...
12696 (grub_terminfo_cursor_off): ... and this merged into ...
12697 (grub_terminfo_setcursor): ... this.
12698 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
12699 * unicode/ArabicShaping.txt: New file (imported from Unicode).
12700 * unicode/BidiMirroring.txt: Likewise.
12701 * unicode/UnicodeData.txt: Likewise.
12702 * unicode/COPYING: Likewise.
12703 * util/grub-editenv.c (grub_putchar): Removed.
12704 (grub_xputs_real): New function.
12705 (grub_xputs): New variable.
12706 * util/grub-fstest.c (grub_putchar): Removed.
12707 (grub_xputs_real): New function.
12708 (grub_xputs): New variable.
12709 * util/grub-mkdevicemap.c (grub_putchar): Removed.
12710 (grub_xputs_real): New function.
12711 (grub_xputs): New variable.
12712 * util/grub-probe.c (grub_putchar): Removed.
12713 (grub_xputs_real): New function.
12714 (grub_xputs): New variable.
12715 * util/grub-script-check.c (grub_putchar): Removed.
12716 (grub_xputs_real): New function.
12717 (grub_xputs): New variable.
12718 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
12719 (grub_xputs_real): New function.
12720 (grub_xputs): New variable.
12721 * util/import_unicode.py: New file.
12722 * util/grub-mkfont.c (ft_errmsgs): New array.
12723 (grub_glyph_info): Make bitmap a pointer.
12724 (file_formats): New type WIDTH_SPEC.
12725 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
12726 (options): Add width-spec.
12727 (help): Likewise.
12728 (add_char): Renamed to ...
12729 (add_glyph): ... this.
12730 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
12731 (glyph_replace): New type.
12732 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
12733 (add_char): New function.
12734 (add_subst): Likewise.
12735 (process_cursive): Likewise.
12736 (add_font): Handle GSUB.
12737 (write_font_width_spec): New function.
12738 (main): Sort glyphs.
12739 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
12740 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
12741 * kern/term.c (grub_cls): Moved from here...
12742 * normal/term.c (grub_cls): ... here.
12743
12744 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
12745
12746 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
12747 suitable for using within the format argument of printf when
12748 converting grub_size_t.
12749 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
12750 "x" to convert grub_size_t arguments.
12751
12752 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
12753
12754 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
12755 too long captions.
12756 (list_get_minimal_size): Take selection box into account.
12757
12758 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
12759
12760 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
12761 NULL font.
12762
12763 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
12764
12765 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
12766 devices when iterating over /dev/disk/by-id; they will be handled
12767 later if appropriate, which they aren't always (e.g. LVM).
12768
12769 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
12770
12771 * include/grub/misc.h (grub_reboot): Declare as noreturn.
12772 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
12773 fails.
12774 (grub_halt): Likewise.
12775 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
12776 reset-all fails.
12777 (grub_halt): Don't return, even if all of shut-down, power-off, and
12778 poweroff fail.
12779
12780 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
12781
12782 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
12783 arguments, not three.
12784
12785 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
12786
12787 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
12788 * util/grub.d/10_linux.in: Use it to check for LVM, so that
12789 LVM-on-RAID is handled correctly.
12790
12791 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
12792
12793 * docs/grub.texi (Changes from GRUB Legacy): New section.
12794 (Future): Fix typo.
12795
12796 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
12797
12798 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
12799 grub.d/README accidentally ends up executable for one reason or
12800 another. Ignore it.
12801
12802 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
12803
12804 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
12805 (gpt_partition_map_iterate): Support non-512B sectors.
12806
12807 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
12808
12809 * kern/efi/init.c (grub_efi_init): Disable watchdog.
12810 Tested by: Seth Goldberg.
12811
12812 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
12813
12814 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
12815 Properly align mbi.
12816 Reported by: Seth Goldberg.
12817
12818 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
12819
12820 * util/grub-mkrescue.in: Avoid module duplication.
12821
12822 2010-07-01 Sean Finney <seanius@seanius.net>
12823
12824 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
12825
12826 2010-07-01 Sean Finney <seanius@seanius.net>
12827
12828 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
12829
12830 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
12831
12832 * disk/lvm.c (grub_lvm_checkvalue): New function.
12833 (grub_lvm_check_flag): Likewise.
12834
12835 2010-07-01 Robert Millan <rmh@gnu.org>
12836
12837 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
12838 Support 'p' as partition separator on kernel of FreeBSD (used
12839 with GPT labels).
12840 (grub_util_biosdisk_get_grub_dev): Likewise.
12841
12842 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
12843
12844 Yeeloong firmware port.
12845
12846 * boot/mips/yeeloong/fwstart.S: New file.
12847 * bus/cs5536.c (gpiodump): New const.
12848 (set_io_space): New function.
12849 (set_iod): Likewise.
12850 (set_p2d): Likewise.
12851 (grub_cs5536_init_geode): Likewise.
12852 * commands/mips/yeeloong/lsspd.c: New file.
12853 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
12854 (serial_mod_SOURCES): New variable.
12855 (serial_mod_CFLAGS): Likewise.
12856 (serial_mod_LDFLAGS): Likewise.
12857 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
12858 term/terminfo.c and term/tparm.c.
12859 (pkglib_IMAGES): Add fwstart.img.
12860 (fwstart_img_SOURCES): New variable.
12861 (fwstart_img_CFLAGS): Likewise.
12862 (fwstart_img_ASFLAGS): Likewise.
12863 (fwstart_img_LDFLAGS): Likewise.
12864 (fwstart_img_FORMAT): Likewise.
12865 (pkglib_MODULES): Add lsspd.mod.
12866 (lsspd_mod_SOURCES): New variable.
12867 (lsspd_mod_CFLAGS): Likewise.
12868 (lsspd_mod_LDFLAGS): Likewise.
12869 (pkglib_MODULES): Add halt.mod.
12870 (halt_mod_SOURCES): New variable.
12871 (halt_mod_CFLAGS): Likewise.
12872 (halt_mod_LDFLAGS): Likewise.
12873 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
12874 (serial_mod_SOURCES): Removed.
12875 (serial_mod_CFLAGS): Likewise.
12876 (serial_mod_LDFLAGS): Likewise.
12877 * disk/ata.c (check_device): New function.
12878 (grub_ata_device_initialize): Use check_device.
12879 (grub_ata_iterate): Recheck devices.
12880 (grub_ata_open): Likewise.
12881 (grub_atapi_iterate): Likewise.
12882 (grub_atapi_open): Likewise.
12883 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
12884 (GRUB_ATA_CH1_PORT1): Likewise.
12885 (GRUB_ATA_CH0_PORT2): Likewise.
12886 (GRUB_ATA_CH1_PORT2): Likewise.
12887 * include/grub/mips/loongson.h: New file.
12888 * include/grub/mips/yeeloong/ec.h: Likewise.
12889 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
12890 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
12891 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
12892 * include/grub/misc.h (grub_halt): Declare as noreturn.
12893 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
12894 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
12895 (UART_ENABLE_FIFO_TRIGGER1): New definition.
12896 (UART_ENABLE_DTRRTS): Likewise.
12897 (UART_ENABLE_MODEM): Removed.
12898 (UART_ENABLE_OUT2): New const.
12899 * include/grub/term.h (grub_term_register_input_active): New function.
12900 (grub_term_register_output_active): Likewise.
12901 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
12902 argument.
12903 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
12904 (init_pci): New function.
12905 (grub_machine_init): Execute platform init when firmware. Init serial.
12906 (grub_halt): Implement.
12907 (grub_exit): Likewise.
12908 (grub_reboot): Likewise.
12909 * term/serial.c (serial_hw_init): Update macros.
12910 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
12911 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
12912 (image_targets): New target mipsel-yeeloong-flash.
12913 (generate_image): Support IMAGE_YEELOONG_FLASH.
12914 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
12915 (grub_video_sm712_setup): Init card.
12916 (grub_video_sm712_set_palette): Removed.
12917 * video/sm712_init.c: New file.
12918
12919 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
12920
12921 * Makefile.in (install-local): Temporarily prepend $(builddir) to
12922 PATH when running help2man and then run it on the unadorned
12923 executable names, rather than passing $(builddir)/* paths to
12924 help2man. This avoids the build directory ending up in generated
12925 manual pages.
12926
12927 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
12928
12929 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
12930 to avoid accidents when debugging with 'sh -x'.
12931 * util/grub-mkrescue.in: Likewise.
12932 * util/grub.d/00_header.in: Likewise.
12933 * util/grub.d/10_hurd.in: Likewise.
12934 * util/grub.d/10_kfreebsd.in: Likewise.
12935 * util/grub.d/10_linux.in: Likewise.
12936 * util/grub.d/10_netbsd.in: Likewise.
12937 * util/grub.d/10_windows.in: Likewise.
12938 * util/grub.d/20_linux_xen.in: Likewise.
12939 * util/grub.d/30_os-prober.in: Likewise.
12940 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
12941
12942 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
12943
12944 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
12945 last character in the buffer.
12946 Reported by: Vladimir Serbinenko.
12947
12948 2010-06-29 Robert Millan <rmh@gnu.org>
12949
12950 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
12951 (Command-line and menu entry commands): Document `badram' command.
12952
12953 2010-06-28 Robert Millan <rmh@gnu.org>
12954
12955 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
12956 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
12957 command using ${GRUB_BADRAM} as parameter.
12958
12959 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
12960
12961 * docs/grub.texi (Device map): New section.
12962 (Themes): New section (stub).
12963 * Makefile.in (docs/grub.info): The info documentation now builds
12964 without errors. Make sure it stays that way.
12965
12966 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
12967
12968 Use normal parser for menu entries.
12969 Reported by: Thomas Frauendorfer
12970
12971 * include/grub/parser.h (grub_parser_execute): Don't export.
12972 * normal/menu.c (grub_menu_execute_entry_real): New function.
12973 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
12974
12975 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
12976
12977 * docs/grub.texi (Embedded configuration): New section (replacing
12978 old "Preset Menu" stub).
12979 (Images): New section.
12980 (configfile): Note that any menu entries defined in `file' are shown
12981 immediately.
12982
12983 2010-06-28 Josh Triplett <josh@joshtriplett.org>
12984
12985 * mmap/i386/pc/mmap_helper.S: Set CF on return.
12986
12987 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
12988
12989 * util/grub-install.in: Add --debug-image= option.
12990
12991 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
12992
12993 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
12994 possible on Linux.
12995
12996 * util/deviceiter.c (check_device): Rename to ...
12997 (check_device_readable_unique): ... this. Update all callers.
12998 Maintain and check a list of which devices (by canonicalized name)
12999 have already been seen.
13000 (clear_seen_devices): New function.
13001 (compare_file_names) [__linux__]: New function.
13002 (grub_util_iterate_devices): Clear the list of seen devices on exit
13003 and (just in case) on entry.
13004 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
13005 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
13006 seen-devices list, superseded by general code in check_device.
13007
13008 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
13009
13010 * commands/cat.c (options): New variable.
13011 (grub_cmd_cat): Parse options. If the --dos option is given, print
13012 DOS-style "\r\n" line endings as simple newlines (Debian bug
13013 #586358).
13014 (GRUB_MOD_INIT): Use extcmd.
13015 (GRUB_MOD_FINI): Likewise.
13016 * docs/grub.texi (cat): Document --dos.
13017
13018 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
13019
13020 XEN with Linux grub-mkconfig support.
13021
13022 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
13023 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
13024 GRUB_CMDLINE_XEN_DEFAULT.
13025 * util/grub.d/20_linux_xen.in: New file.
13026
13027 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
13028
13029 Initialise VGA video on qemu ourselves.
13030
13031 * boot/i386/qemu/boot.S: Don't call 0xc000.
13032 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
13033 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
13034 (kernel_img_HEADERS): Add pci.h.
13035 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
13036 * configure.ac: Force unifont on qemu and yeeloong.
13037 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
13038 (grub_vga_palette_write): Use correct register.
13039 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
13040 Call grub_qemu_init_cirrus.
13041 * kern/i386/qemu/init.c: New file.
13042 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
13043
13044 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
13045
13046 2010-06-26 Pavel Roskin <proski@gnu.org>
13047
13048 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
13049 13.
13050
13051 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
13052
13053 * docs/grub.texi (Simple configuration): Explain that
13054 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
13055 set to `true' to disable their respective recovery entries, not
13056 merely set.
13057
13058 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
13059
13060 Make the `source' command slightly faster.
13061
13062 * normal/main.c (grub_normal_execute): Don't re-read list files when
13063 nested.
13064
13065 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
13066
13067 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
13068 field position and mask size to red fields from mode_info, not
13069 green.
13070 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
13071 Remove redundant tag->common.framebuffer_type assignment.
13072 Reported by: Seth Goldberg.
13073
13074 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
13075
13076 Sync up other versions of the Linux loader with Robert Millan's
13077 change of 2010-01-09, "Make loader output a bit more user-friendly".
13078
13079 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
13080 grub_dprintf().
13081 (grub_cmd_linux): Likewise.
13082 (grub_cmd_initrd): Likewise.
13083 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
13084 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
13085
13086 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
13087
13088 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
13089 larger than MEMORY_MAP_SIZE.
13090
13091 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
13092
13093 Fix parallel build.
13094
13095 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
13096 dependency.
13097 * script/parser.y: #include grub_script.tab.h header.
13098
13099 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
13100
13101 Support >3GiB and <16MiB RAM in i386-qemu.
13102
13103 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
13104 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
13105 (grub_lower_mem): Removed.
13106 (grub_upper_mem): Likewise.
13107 (mem_size): Made static.
13108 (above_4g): New variable.
13109 (grub_machine_mmap_init): Detect small mem_size and above_4g.
13110 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
13111 support.
13112
13113 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
13114
13115 Cirrus 5446 and Bochs video cards support.
13116
13117 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
13118 video_bochs.mod
13119 (video_cirrus_mod_SOURCES): New variable.
13120 (video_cirrus_mod_CFLAGS): Likewise.
13121 (video_cirrus_mod_LDFLAGS): Likewise.
13122 (video_bochs_mod_SOURCES): Likewise.
13123 (video_bochs_mod_CFLAGS): Likewise.
13124 (video_bochs_mod_LDFLAGS): Likewise.
13125 * include/grub/vga.h: New file.
13126 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
13127 (grub_video_fb_set_page_t): New type.
13128 (grub_video_fb_setup): New prototype.
13129 (grub_video_fb_swap_buffers): Likewise.
13130 (grub_video_fb_get_info_and_fini): Likewise.
13131 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
13132 (CRTC_DATA_PORT): Likewise.
13133 (CRTC_CURSOR): Likewise.
13134 (CRTC_CURSOR_ADDR_HIGH): Likewise.
13135 (CRTC_CURSOR_ADDR_LOW): Likewise.
13136 (CRTC_CURSOR_DISABLE): Likewise.
13137 (update_cursor): Use grub_vga_cr_write.
13138 (grub_vga_text_setcursor): Likewise.
13139 * video/bochs.c: New file.
13140 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
13141 (palette): Likewise.
13142 (palette_size): Likewise.
13143 (framebuffer): New variable.
13144 (grub_video_fb_init): Use 'framebuffer'.
13145 (grub_video_fb_fini): Likewise.
13146 (grub_video_fb_get_info): Likewise.
13147 (grub_video_fb_get_palette): Likewise.
13148 (grub_video_fb_set_palette): Likewise.
13149 (grub_video_fb_set_viewport): Likewise.
13150 (grub_video_fb_get_viewport): Likewise.
13151 (grub_video_fb_map_color): Likewise.
13152 (grub_video_fb_map_rgb): Likewise.
13153 (grub_video_fb_map_rgba): Likewise.
13154 (grub_video_fb_unmap_color): Likewise.
13155 (grub_video_fb_unmap_color_int): Likewise.
13156 (grub_video_fb_fill_rect): Likewise.
13157 (grub_video_fb_blit_bitmap): Likewise.
13158 (grub_video_fb_blit_render_target): Likewise.
13159 (grub_video_fb_scroll): Likewise.
13160 (grub_video_fb_create_render_target): Likewise.
13161 (grub_video_fb_doublebuf_blit_init): Likewise.
13162 (grub_video_fb_set_active_render_target): Handle doublebuffering.
13163 (doublebuf_pageflipping_update_screen): New function.
13164 (doublebuf_pageflipping_init): Likewise.
13165 (grub_video_fb_setup): Likewise.
13166 (grub_video_fb_swap_buffers): Likewise.
13167 (grub_video_fb_get_info_and_fini): Likewise.
13168 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
13169 All users updated.
13170 (doublebuf_pageflipping_commit): Restructured into ...
13171 (doublebuf_pageflipping_set_page): ... this.
13172 (doublebuf_pageflipping_update_screen): Removed.
13173 (doublebuf_pageflipping_init): Likewise.
13174 (double_buffering_init): Likewise.
13175 (grub_video_vbe_setup): Use grub_video_fb_setup.
13176 (grub_video_vbe_swap_buffers): Removed.
13177 (grub_video_vbe_set_active_render_target): Likewise.
13178 (grub_video_vbe_get_active_render_target): Likewise.
13179 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
13180 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
13181 grub_video_fb_set_active_render_target and
13182 grub_video_fb_get_active_render_target.
13183 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
13184 (SEQUENCER_DATA_PORT): Likewise.
13185 (MAP_MASK_REGISTER): Likewise.
13186 (CRTC_ADDR_PORT): Likewise.
13187 (CRTC_DATA_PORT): Likewise.
13188 (START_ADDR_HIGH_REGISTER): Likewise.
13189 (START_ADDR_LOW_REGISTER): Likewise.
13190 (GRAPHICS_ADDR_PORT): Likewise.
13191 (GRAPHICS_DATA_PORT): Likewise.
13192 (READ_MAP_REGISTER): Likewise.
13193 (INPUT_STATUS1_REGISTER): Likewise.
13194 (INPUT_STATUS1_VERTR_BIT): Likewise.
13195 (get_map_mask): Use grub_vga_sr_read.
13196 (set_map_mask): Use grub_vga_sr_write.
13197 (set_read_map): Use grub_vga_gr_write.
13198 (set_start_address): Use grub_vga_cr_write.
13199 * video/sm712.c (framebuffer): Remove leftover fields.
13200
13201 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
13202
13203 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
13204 setting GRUB_VIDEO_BACKEND. Make it available as a user override
13205 instead. Replace the gfxterm backend check with a check that
13206 ${GRUB_PREFIX}/video.lst is non-empty.
13207 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
13208 again.
13209 (load_video): New generated function. Call it before loading
13210 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
13211 * util/grub.d/10_linux.in (linux_entry): Call load_video.
13212 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
13213 * docs/grub.texi (Simple configuration): Document
13214 GRUB_VIDEO_BACKEND.
13215
13216 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
13217
13218 Use video functions in linux and xnu loaders.
13219
13220 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
13221 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
13222 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
13223 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
13224 loader/i386/pc/linux.c.
13225 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
13226 (find_line_len): Removed.
13227 (find_framebuf): Likewise.
13228 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
13229 * loader/i386/efi/xnu.c: Removed.
13230 * loader/i386/pc/xnu.c: Moved from here...
13231 * loader/i386/xnu.c: ...here.
13232
13233 Enable priorities in video drivers.
13234
13235 * include/grub/video.h (grub_video_adapter_prio_t): New type.
13236 (grub_video_adapter): New field prio.
13237 (grub_video_register): Respect prio when inserting.
13238 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
13239 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
13240 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
13241 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
13242 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
13243 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
13244 * video/sm712.c (grub_video_sm712_adapter): Likewise.
13245
13246 Fix SDL driver ID.
13247
13248 * include/grub/video.h (grub_video_driver_id_t): New value
13249 GRUB_VIDEO_DRIVER_SDL.
13250 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
13251
13252 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
13253
13254 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
13255 argument to printf.
13256 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
13257
13258 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
13259
13260 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
13261 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
13262
13263 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
13264
13265 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
13266 directly, and recommend grub-install instead.
13267 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
13268
13269 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
13270
13271 Fix i386-pc prefix handling with nested partitions (Debian bug
13272 #585068). Note that the case where the core image is booted using
13273 multiboot and relocated from its original location still requires
13274 more work.
13275
13276 * kern/i386/pc/init.c (make_install_device): If the prefix starts
13277 with "(,", fill the boot drive in between those two characters, but
13278 expect that a full partition specification including partition map
13279 names will follow.
13280 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
13281 specified, write a prefix without the drive name but including a
13282 full partition specification.
13283
13284 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
13285
13286 * util/grub-mkconfig.in: Ignore non-option arguments, for
13287 compatibility with older versions (before 2010-06-12) which did the
13288 same. In particular, this makes it easier to ship an update-grub
13289 wrapper which is compatible with that used with GRUB Legacy (Debian
13290 bug #586056).
13291
13292 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
13293
13294 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
13295 for manual page generation.
13296
13297 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
13298
13299 * po/POTFILES: Remove leftover commands/handler.c.
13300
13301 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
13302
13303 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
13304 left this script non-functional.
13305
13306 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
13307
13308 * docs/man/grub-emu.h2m: New file.
13309
13310 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
13311
13312 * docs/grub.texi (Commands): Document reduced command set in rescue
13313 mode.
13314 (cpuid): New section.
13315
13316 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
13317
13318 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
13319 new partition naming style.
13320 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
13321
13322 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
13323
13324 Add "-o grub.iso" like cmdline options support.
13325
13326 * util/grub-install.in: Improve cmdline option parsing.
13327 * util/grub-mkconfig.in: Likewise.
13328 * util/grub-mkrescue.in: Likewise.
13329 * util/grub-reboot.in: Likewise.
13330 * util/grub-set-default.in: Likewise.
13331 * util/i386/efi/grub-install.in: Likewise.
13332 * util/ieee1275/grub-install.in: Likewise.
13333 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
13334
13335 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
13336
13337 * .bzrignore: Ignore 41_custom.
13338
13339 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
13340
13341 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
13342
13343 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
13344
13345 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
13346 prototype declarations.
13347
13348 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
13349 generating fs, partmap, and video lists.
13350 * include/grub/fs.h (grub_fs_register): Omit prototype if
13351 GRUB_LST_GENERATOR is defined.
13352 * include/grub/partition.h (grub_partition_map_register): Likewise.
13353 * include/grub/video.h (grub_video_register): Likewise.
13354
13355 2010-06-12 Javier Martín <lordhabbit@gmail.com>
13356
13357 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
13358
13359 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
13360
13361 * util/grub-mkrescue.in: Support --xorriso argument.
13362
13363 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
13364
13365 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
13366 Suggested by: Thomas Schmitt.
13367
13368 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
13369
13370 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
13371 Suggested by: Thomas Schmitt.
13372
13373 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
13374
13375 custom.cfg support.
13376
13377 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
13378 * util/grub.d/41_custom.in: New file.
13379
13380 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
13381
13382 * util/grub-mkrescue.in (make_image): Remove sh module, which has
13383 been merged back into normal.
13384
13385 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
13386
13387 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
13388 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
13389
13390 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
13391
13392 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
13393 when generating manual pages.
13394 * docs/man/grub-bin2h.h2m: New file.
13395 * docs/man/grub-editenv.h2m: New file.
13396 * docs/man/grub-fstest.h2m: New file.
13397 * docs/man/grub-install.h2m: New file.
13398 * docs/man/grub-macho2img.h2m: New file.
13399 * docs/man/grub-mkconfig.h2m: New file.
13400 * docs/man/grub-mkdevicemap.h2m: New file.
13401 * docs/man/grub-mkfont.h2m: New file.
13402 * docs/man/grub-mkimage.h2m: New file.
13403 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
13404 * docs/man/grub-mkrelpath.h2m: New file.
13405 * docs/man/grub-mkrescue.h2m: New file.
13406 * docs/man/grub-ofpathname.h2m: New file.
13407 * docs/man/grub-pe2elf.h2m: New file.
13408 * docs/man/grub-probe.h2m: New file.
13409 * docs/man/grub-reboot.h2m: New file.
13410 * docs/man/grub-script-check.h2m: New file.
13411 * docs/man/grub-set-default.h2m: New file.
13412 * docs/man/grub-setup.h2m: New file.
13413
13414 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
13415
13416 Use FOR_* macros instead of *_iterate whenever possible.
13417
13418 * commands/handler.c: Removed.
13419 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
13420 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
13421 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
13422 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
13423 (grub_probe_SOURCES): Remove kern/parser.c.
13424 (util/grub-script-check.c_DEPENDENCIES): Removed.
13425 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
13426 and grub_script_check_init.c.
13427 (grub_script_check_init.lst): Removed.
13428 (grub_script_check_init.h): Likewise.
13429 (grub_script_check_init.c): Likewise.
13430 (pkglib_MODULES): Remove handler.mod and sh.mod.
13431 (handler_mod_SOURCES): Removed.
13432 (handler_mod_CFLAGS): Likewise.
13433 (handler_mod_LDFLAGS): Likewise.
13434 (normal_mod_SOURCES): Remove normal/handler.c.
13435 Add script/main.c, script/script.c, script/execute.c,
13436 script/function.c, script/lexer.c, grub_script.tab.c
13437 and grub_script.yy.c.
13438 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
13439 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
13440 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
13441 (grub_setup_SOURCES): Remove kern/parser.c.
13442 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
13443 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
13444 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
13445 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
13446 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
13447 (grub_setup_SOURCES): Remove kern/parser.c.
13448 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
13449 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
13450 * include/grub/command.h (grub_command_iterate): Removed.
13451 (FOR_COMMANDS): New macro.
13452 * include/grub/dl.h (grub_dl): New member next.
13453 (grub_dl_iterate): Removed.
13454 (grub_dl_head): New variable declaration.
13455 (FOR_DL_MODULES): New macro.
13456 * include/grub/fs.h: Include list.h.
13457 (grub_fs): Make next first element.
13458 (grub_fs_list): New variable declaration.
13459 (grub_fs_register): Make inline.
13460 (grub_fs_unregister): Likewise.
13461 (grub_fs_iterate): Removed.
13462 (FOR_FILESYSTEMS): New macro.
13463 * include/grub/handler.h: Removed.
13464 * include/grub/list.h (grub_list_hook_t): Removed.
13465 (grub_list_test_t): Likewise.
13466 (grub_list_pop): Likewise.
13467 (grub_list_iterate): Likewise.
13468 (grub_list_insert): Likewise.
13469 (FOR_LIST_ELEMENTS): New macro.
13470 * include/grub/parser.h (grub_parser_class): Removed.
13471 (grub_parser_register): Likewise.
13472 (grub_parser_unregister): Likewise.
13473 (grub_parser_get_current): Likewise.
13474 (grub_parser_set_current): Likewise.
13475 (grub_register_rescue_parser): Likewise.
13476 (grub_rescue_parse_line): New function.
13477 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
13478 * include/grub/script_sh.h (grub_script_function_list): New variable
13479 declaration.
13480 (FOR_SCRIPT_FUNCTIONS): New macro.
13481 (grub_script_function_iterate): Removed.
13482 (grub_normal_parse_line): New prototype.
13483 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
13484 (FOR_DISABLED_TERM_INPUTS): Likewise.
13485 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
13486 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
13487 * include/grub/video.h (grub_video_adapter): Move 'next' to first
13488 element.
13489 (grub_video_register): Inline.
13490 (grub_video_unregister): Likewise.
13491 (grub_video_adapter_list): New variable declaration.
13492 (grub_video_iterate): Removed.
13493 (FOR_VIDEO_ADAPTERS): New macro.
13494 * kern/dl.c (grub_dl_list): Removed. All users updated.
13495 (grub_dl_iterate): Removed.
13496 * kern/fs.c (grub_fs_list): Make global.
13497 (grub_fs_register): Removed.
13498 (grub_fs_unregister): Likewise.
13499 (grub_fs_iterate): Likewise.
13500 * kern/handler.c: Removed.
13501 * kern/list.c (grub_list_pop): Removed.
13502 (grub_list_iterate): Likewise.
13503 (grub_list_insert): Likewise.
13504 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
13505 (grub_prio_list_insert): Don't use grub_list_insert.
13506 * kern/main.c (grub_register_rescue_parser): Don't call
13507 grub_register_rescue_parser.
13508 * kern/parser.c (grub_parser_class): Removed.
13509 (grub_parser_execute): Use grub_rescue_parse_line.
13510 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
13511 (grub_rescue_parser): Removed.
13512 (grub_register_rescue_parser): Likewise.
13513 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
13514 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
13515 (grub_auth_check_authentication): Likewise.
13516 * normal/completion.c (iterate_command): Removed.
13517 (grub_normal_do_completion): Use FOR_COMMANDS.
13518 * normal/handler.c: Removed.
13519 * normal/main.c (read_config_file): Remove parser changing.
13520 (grub_normal_execute): Don't call read_handler_list.
13521 (grub_normal_read_line_real): Statically allocate prompt.
13522 (grub_cmdline_run): Use grub_normal_parse_line.
13523 (GRUB_MOD_FINI): Don't call free_handler_list.
13524 * normal/menu_entry.c (run): Likewise.
13525 * script/function.c (grub_script_function_list): Make global.
13526 (grub_script_function_iterate): Removed.
13527 * script/main.c (grub_normal_parse_line): Make global.
13528 (grub_sh_parser): Removed.
13529 (GRUB_MOD_INIT): Likewise.
13530 (GRUB_MOD_FINI): Likewise.
13531 * tests/lib/functional_test.c (grub_functional_test): Use
13532 FOR_LIST_ELEMENTS.
13533 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
13534 (grub_test_run): Use FOR_LIST_ELEMENTS.
13535 * tests/lib/unit_test.c (main): Likewise.
13536 * util/deviceiter.c (grub_util_iterate_devices): Don't use
13537 grub_list_pop.
13538 * util/grub-fstest.c (grub_term_input_class): Removed.
13539 (grub_term_output_class): Likewise.
13540 * util/grub-probe.c: Likewise.
13541 * util/i386/pc/grub-setup.c: Likewise.
13542 * util/sparc64/ieee1275/grub-setup.c: Likewise.
13543 * util/grub-script-check.c (main): Don't call grub_init_all and
13544 grub_fini_all.
13545 * video/video.c (grub_video_adapter_list): Make global.
13546 (grub_video_register): Removed.
13547 (grub_video_unregister): Likewise.
13548 (grub_video_iterate): Likewise.
13549
13550 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
13551
13552 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
13553 reported by Henrique Ferreiro.
13554
13555 2010-06-09 Robert Millan <rmh@gnu.org>
13556
13557 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
13558 ones, when both are available.
13559
13560 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
13561
13562 Make --version uniform and avoid hard-coded program name.
13563
13564 * util/grub-mkimage.c (main): Use `program_name' instead of
13565 hard-coded string.
13566 * util/i386/pc/grub-setup.c (main): Likewise.
13567 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
13568 * util/grub-install.in: Save the basename of $0 in $self, and use the
13569 latter in informational messages. Use the same format for --version
13570 as the binary programs.
13571 * util/grub-mkconfig.in: Likewise.
13572 * util/grub-mkrescue.in: Likewise.
13573 * util/grub-reboot.in: Likewise.
13574 * util/grub-set-default.in: Likewise.
13575 * util/i386/efi/grub-install.in: Likewise.
13576 * util/ieee1275/grub-install.in: Likewise.
13577 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
13578
13579 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
13580
13581 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
13582 embedding area. Use <= instead of == when checking for non-emptiness.
13583
13584 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
13585
13586 * configure.ac: Add `.' to the directories searched for unifont.
13587
13588 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
13589
13590 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
13591 grub_script.yy.h.
13592
13593 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
13594
13595 * docs/grub.texi (History): Expand to cover GRUB 2.
13596 (Serial terminal): Refer to `terminal_input' and `terminal_output'
13597 commands, not `terminal'.
13598 (serial): Likewise.
13599 (terminal_input): New section.
13600 (terminal_output): New section.
13601 (uppermem): New section (stub).
13602 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
13603
13604 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
13605
13606 * docs/grub.texi (Security): Menu entries are unrestricted by
13607 default, not restricted to superusers as I had previously thought.
13608 Reword to account for this.
13609
13610 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
13611
13612 * kern/emu/misc.c (device_mapper_null_log): New function.
13613 (grub_device_mapper_supported): New function.
13614 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
13615 prototype.
13616 * kern/emu/hostdisk.c (find_partition_start): Check whether
13617 device-mapper is supported before trying to use it.
13618 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
13619
13620 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
13621
13622 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
13623 (File name syntax): Likewise.
13624 (help): --all is no longer supported in GRUB 2. Be more precise
13625 about pattern matching.
13626
13627 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
13628
13629 * normal/completion.c (grub_normal_do_completion): When completing
13630 arguments to "set" and the current word contains an equals sign,
13631 skip to after the equals sign before starting completion.
13632
13633 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
13634
13635 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
13636
13637 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
13638
13639 * docs/grub.texi (Network): New section.
13640 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
13641 `(nd)' as in GRUB Legacy.
13642 (pxe_unload): New section.
13643
13644 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
13645
13646 * docs/grub.texi (Troubleshooting): `echo' is not usually available
13647 in the rescue shell, so recommend using `set' instead. Thanks,
13648 Jordan Uggla.
13649
13650 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
13651
13652 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
13653 (password): New section.
13654 (password_pbkdf2): New section.
13655 (search): New section.
13656 (Security): New section.
13657 (Troubleshooting): New section, currently very incomplete.
13658 (Invoking grub-mkpasswd-pbkdf2): New section.
13659 (Internals): New section, currently very incomplete.
13660
13661 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
13662
13663 * util/grub.d/00_header.in: Add some more quoting (of
13664 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
13665 work again.
13666 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
13667
13668 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
13669
13670 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
13671 to `count', fixing variable shadowing that broke the -c option.
13672
13673 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
13674
13675 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
13676 in case they contain spaces.
13677
13678 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
13679
13680 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
13681 "part_" to partmap module names, in line with grub-install.
13682 Reported by: Jindřich Makovička (Debian bug #584426).
13683
13684 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
13685
13686 * util/grub-mkimage.c: Make target-related error messages slightly
13687 more helpful; -O talks about "format". Explicitly point to the use
13688 of -O if no target is specified.
13689 Reported by: Didier Raboud (Debian bug #584415).
13690
13691 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
13692
13693 * INSTALL: Document several build requirements for optional features
13694 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
13695
13696 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
13697
13698 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
13699 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
13700 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
13701
13702 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
13703
13704 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
13705 Thanks to Jordan Uggla for spotting this.
13706
13707 2010-06-02 Aleš Nesrsta <starous@volny.cz>
13708
13709 Finally make USB usable.
13710
13711 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
13712 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
13713 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
13714 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
13715 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
13716 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
13717 (GRUB_OHCI_FSMPS): Likewise.
13718 (GRUB_OHCI_PERIODIC_START): Likewise.
13719 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
13720 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
13721 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
13722 (GRUB_OHCI_SET_PORT_RESET): Likewise.
13723 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
13724 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
13725 (grub_ohci_transaction): Likewise.
13726 (grub_ohci_transfer): Improve condition detection algorithms.
13727 Handle toggle property. Program the transactions correctly.
13728 Improve error handling. Various important fixups.
13729 (grub_ohci_portstatus): Put register writes in right order.
13730 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
13731 (grub_uhci_transfer): Don't show "failed" message on success.
13732 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
13733 array.
13734 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
13735 determine its size.
13736 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
13737 before initialization is completed. Use IN direction for empty
13738 transfers. Use last_trans and compute toggle.
13739 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
13740 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
13741 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
13742 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
13743 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
13744 (grub_usb_device): Increase toggle to 256.
13745 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
13746 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
13747 GRUB_USBMS_SUBCLASS_SFF8070.
13748 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
13749 (grub_scsi_inquiry): New member page and alloc_length.
13750 (grub_scsi_request_sense): New structure.
13751 (grub_scsi_request_sense_data): Likewise.
13752 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
13753 control.
13754 * disk/scsi.c (grub_scsi_request_sense): New function.
13755 (grub_scsi_test_unit_ready): Likewise.
13756 (grub_scsi_inquiry): Fill new fields.
13757 (grub_scsi_read_capacity): Likewise.
13758 (grub_scsi_read10): Add request sense at the end.
13759 (grub_scsi_read12): Likewise.
13760 (grub_scsi_write10): Likewise.
13761 (grub_scsi_write12): Likewise.
13762 (grub_scsi_open): Add Test Unit Ready.
13763 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
13764 Support additional subclasses. Con't clear halt yet. Activate the
13765 proper config. Calculate LUNs correctly.
13766 (grub_usbms_transfer): Various important fixups.
13767
13768 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
13769
13770 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
13771 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
13772 (grub_ohci_fini_hw): New function.
13773 (grub_ohci_restore_hw): Likewise.
13774 (GRUB_MOD_INIT(ohci)): Register preboot hook.
13775 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
13776 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
13777
13778 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
13779
13780 Dedicated DMA allocations.
13781
13782 * bus/pci.c (grub_memalign_dma32): New function
13783 (grub_dma_free): Likewise.
13784 (grub_dma_get_virt): Likewise.
13785 (grub_dma_get_phys): Likewise.
13786 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
13787 (grub_ohci_pci_iter): Use dma32_alloc.
13788 (grub_ohci_transfer): Likewise.
13789 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
13790 (grub_usb_bulk_readwrite): Likewise.
13791 * include/grub/pci.h: Add declarations.
13792
13793 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
13794
13795 CS5536 support.
13796
13797 * bus/cs5536.c: New file.
13798 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
13799 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
13800 (cs5536_mod_SOURCES): New variable.
13801 (cs5536_mod_CFLAGS): Likewise.
13802 (cs5536_mod_LDFLAGS): Likewise.
13803 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
13804 machine/pci.h.
13805 (kernel_img_SOURCES): Add bus/cs5536.c.
13806 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
13807 usb_keyboard.mod.
13808 (usb_mod_SOURCES): New variable.
13809 (usb_mod_CFLAGS): New variable.
13810 (usb_mod_LDFLAGS): New variable.
13811 (usbtest_mod_SOURCES): New variable.
13812 (usbtest_mod_CFLAGS): New variable.
13813 (usbtest_mod_LDFLAGS): New variable.
13814 (ohci_mod_SOURCES): New variable.
13815 (ohci_mod_CFLAGS): New variable.
13816 (ohci_mod_LDFLAGS): New variable.
13817 (usbms_mod_SOURCES): New variable.
13818 (usbms_mod_CFLAGS): New variable.
13819 (usbms_mod_LDFLAGS): New variable.
13820 (usb_keyboard_mod_SOURCES): New variable.
13821 (usb_keyboard_mod_CFLAGS): New variable.
13822 (usb_keyboard_mod_LDFLAGS): New variable.
13823 * include/grub/smbus.h: New file.
13824 * include/grub/cs5536.h: New file.
13825
13826 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
13827
13828 * util/grub.d/00_header.in: Add safety check to make sure that
13829 ${locale_dir} exists before trying to probe it.
13830
13831 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
13832
13833 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
13834 per the GNU Coding Standards; this is now too obscure to be worth
13835 documenting.
13836 (QNX): Likewise.
13837 (chainloader): Remove cross-reference to `SCO UnixWare'.
13838
13839 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
13840
13841 * docs/grub.texi (Chain-loading): New section.
13842 (DOS/Windows): New section, borrowed from GRUB Legacy with details
13843 adjusted for GRUB 2.
13844 (SCO UnixWare): Likewise.
13845 (QNX): Likewise.
13846 (chainloader): Add reference to `Block list syntax'.
13847 (drivemap): New section.
13848 (parttool): New section.
13849
13850 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
13851
13852 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
13853 the grub shell'.
13854 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
13855 (Installing GRUB using grub-install): Remove reference to the grub
13856 shell; mention `grub-mkimage' and `grub-setup' instead.
13857 (Invoking grub-install): Likewise.
13858 (Interface): Add reference to `Menu entry editor'.
13859 (serial): Remove `--device' option.
13860
13861 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
13862
13863 * docs/grub.texi (Configuration): New section, documenting
13864 configuration file generation using grub-mkconfig. I've left a slot
13865 for documenting the full shell scripting format but have not yet
13866 started on writing that up.
13867 (Invoking grub-mkconfig): New section.
13868
13869 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
13870
13871 * docs/grub.texi (direntry): Remove grub-terminfo reference.
13872 (GNU GRUB manual): Likewise.
13873 (General commands): Update description of `terminfo' for GRUB 2.
13874
13875 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
13876
13877 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
13878 (GRUB_MOD_INIT): Fix capitalisation.
13879 * docs/grub.texi (Command-line and menu entry commands): Document
13880 gettext and gptsync commands.
13881
13882 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
13883
13884 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
13885 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
13886
13887 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
13888
13889 Add btrfs probing support, currently only in the single-device case.
13890
13891 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
13892 function.
13893 (grub_guess_root_device): Call find_root_device_from_mountinfo
13894 before looking in /dev.
13895
13896 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
13897
13898 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
13899 GRUB_DISK_SIZE_UNKNOWN.
13900 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
13901
13902 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
13903
13904 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
13905 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
13906 corrupted or not synced properly.
13907
13908 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
13909
13910 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
13911 Reported by: Seth Goldberg.
13912
13913 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
13914
13915 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
13916 addition of dest.
13917 Reported by: Seth Goldberg.
13918
13919 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
13920
13921 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
13922 Reported by: Seth Goldberg.
13923
13924 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
13925
13926 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
13927 64-bit address as signed on MIPS.
13928
13929 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
13930
13931 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
13932 to the empty string.
13933
13934 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
13935
13936 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
13937
13938 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
13939 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
13940 * kern/misc.c (__enable_execute_stack): Disable on
13941 GRUB_MACHINE_EMU.
13942
13943 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
13944
13945 Make grub-probe work with symbolic links under /dev/mapper as well
13946 as with real block devices. The Linux world seems to be (at best)
13947 in transition here, and GRUB shouldn't get caught in the middle.
13948
13949 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
13950 /dev/mapper.
13951
13952 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
13953
13954 * util/grub-script-check.c (main): Ensure defined behaviour on empty
13955 input files (in which case exit zero).
13956
13957 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
13958
13959 * kern/emu/misc.c (canonicalize_file_name): realpath can still
13960 return NULL for various reasons even if it has a maximum-length
13961 buffer: for example, there might be a symlink loop, or the path
13962 might exceed PATH_MAX. If this happens, return NULL.
13963
13964 2010-05-27 Robert Millan <rmh@gnu.org>
13965
13966 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
13967 partmap module to handle cross-partmap setups.
13968 Reported by Orestes Mas. Gràcies!
13969
13970 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
13971
13972 * util/grub-mkrescue.in: Initialise override_dir rather than
13973 assuming that it's unset or empty in the environment.
13974
13975 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
13976
13977 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
13978 variable index into p_index to suppress a warning with -Wshadow.
13979
13980 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
13981
13982 * INSTALL: Added flex >= 2.5.35 requirement.
13983
13984 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
13985
13986 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
13987
13988 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
13989
13990 cmostest support.
13991
13992 * commands/i386/cmostest.c: New file.
13993 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
13994 (cmostest_mod_SOURCES): New variable.
13995 (cmostest_mod_CFLAGS): Likewise.
13996 (cmostest_mod_LDFLAGS): Likewise.
13997 * conf/i386-pc.rmk: Likewise.
13998 * docs/grub.texi (Vendor power-on keys): New section.
13999 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
14000 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
14001 and GRUB_BUTTON_CMOS_ADDRESS.
14002 * util/grub.d/00_header.in: Handle powering-on by separate button.
14003
14004 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
14005
14006 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
14007 Removed drawing_scrollbar argument. All users updated
14008 Fixes #29792.
14009 Reported by Jo Shields
14010
14011 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
14012
14013 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
14014 buffer since gfxterm handles double repaint.
14015
14016 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
14017
14018 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
14019 * term/gfxterm.c (real_scroll): Likewise.
14020
14021 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
14022
14023 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
14024 before calling BIOS.
14025
14026 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
14027
14028 * include/grub/i18n.h: Always enable grub_gettext.
14029
14030 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
14031
14032 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
14033 partition naming style.
14034
14035 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
14036
14037 * util/grub-mkconfig.in: Fix handling of -o so that it works when
14038 not the first option.
14039
14040 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
14041
14042 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
14043
14044 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
14045
14046 * util/misc.c: Move inclusion of <limits.h> to ...
14047 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
14048
14049 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
14050
14051 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
14052 Fix merge error in NetBSD code.
14053 (find_partition_start) [__NetBSD__]: Likewise.
14054
14055 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
14056
14057 Fix grub-mkrescue usage unit testing.
14058
14059 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
14060
14061 2010-05-18 Christian Franke <franke@computer.org>
14062
14063 * util/grub.d/10_windows.in: Use path names instead of
14064 drive letters to prevent warning from Cygwin 1.7.
14065 Add drivemap command to menuentry if needed.
14066
14067 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
14068
14069 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
14070 gnumach and gnumach.gz.
14071
14072 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
14073
14074 * include/grub/i18n.h (gettext): Inline instead of using #define.
14075 (grub_gettext): Likewise.
14076 (_): Likewise.
14077
14078 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
14079
14080 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
14081 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
14082 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
14083 (main): Add a slash after pkglibdirroot.
14084
14085 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
14086
14087 * util/grub-install.in: Add missing "in" keyword.
14088
14089 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
14090
14091 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
14092 Reported by: Seth Goldberg.
14093
14094 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
14095
14096 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
14097
14098 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
14099
14100 * configure.ac: Check for Linux device-mapper support.
14101
14102 * util/hostdisk.c (device_is_mapped): New function.
14103 (find_partition_start): New function, partly broken out from
14104 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
14105 device-mapper support added.
14106 (linux_find_partition): Use find_partition_start.
14107 (convert_system_partition_to_system_disk): Add `st' argument.
14108 Support Linux /dev/mapper/* devices if device-mapper support is
14109 available; only DM-RAID devices are understood at present.
14110 (find_system_device): Add `st' argument. Pass it to
14111 convert_system_partition_to_system_disk.
14112 (grub_util_biosdisk_get_grub_dev): Pass stat result to
14113 find_system_device and convert_system_partition_to_system_disk. Use
14114 find_partition_start.
14115
14116 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
14117 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
14118 * util/deviceiter.c [__linux__]: Define MINOR.
14119 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
14120 * util/mkdevicemap.c (grub_putchar): New function.
14121 (grub_getkey): New function.
14122 (grub_refresh): New function.
14123 (main): Set debug=all if -v -v is used.
14124
14125 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
14126
14127 Fix build with non-GNU libcs.
14128
14129 * util/misc.c (canonicalize_file_name): Move to ...
14130 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
14131 grub_make_system_path_relative_to_its_root.
14132
14133 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
14134
14135 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
14136 we handle finding grub-mkimage. Default to finding grub-mkimage in
14137 ${bindir} with program_transform_name applied, and provide a
14138 --grub-mkimage option to override this.
14139
14140 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
14141
14142 Remove grub-mkisofs.
14143
14144 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
14145 (grub_mkisofs_SOURCES): Removed.
14146 (grub_mkisofs_CFLAGS): Removed.
14147 * util/mkisofs/defaults.h: Removed.
14148 * util/mkisofs/eltorito.c: Likewise.
14149 * util/mkisofs/exclude.h: Likewise.
14150 * util/mkisofs/hash.c: Likewise.
14151 * util/mkisofs/include/: Likewise.
14152 * util/mkisofs/include/fctldefs.h: Likewise.
14153 * util/mkisofs/include/mconfig.h: Likewise.
14154 * util/mkisofs/include/prototyp.h: Likewise.
14155 * util/mkisofs/include/statdefs.h: Likewise.
14156 * util/mkisofs/iso9660.h: Likewise.
14157 * util/mkisofs/joliet.c: Likewise.
14158 * util/mkisofs/match.c: Likewise.
14159 * util/mkisofs/match.h: Likewise.
14160 * util/mkisofs/mkisofs.c: Likewise.
14161 * util/mkisofs/mkisofs.h: Likewise.
14162 * util/mkisofs/msdos_partition.h: Likewise.
14163 * util/mkisofs/multi.c: Likewise.
14164 * util/mkisofs/name.c: Likewise.
14165 * util/mkisofs/rock.c: Likewise.
14166 * util/mkisofs/tree.c: Likewise.
14167 * util/mkisofs/write.c: Likewise.
14168
14169 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
14170
14171 Unify grub-mkimage accross platforms.
14172
14173 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
14174 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
14175 (grub_mkelfimage_SOURCES): Removed.
14176 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
14177 (util/grub-mkimage.c_DEPENDENCIES): .. this.
14178 (bin_UTILITIES): Add grub-mkimage.
14179 (grub_mkimage_SOURCES): New variable.
14180 (kernel_img_HEADERS): Remove machine/kernel.h.
14181 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
14182 (pkglib_PROGRAMS): Add kernel.img.
14183 (kernel_img_HEADERS): Add machine/kernel.h.
14184 (kernel_img_FORMAT): Removed.
14185 (bin_UTILITIES): Remove grub-mkimage.
14186 (grub_mkimage_SOURCES): Removed.
14187 (grub_mkimage_CFLAGS): Likewise.
14188 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
14189 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
14190 (pkglib_PROGRAMS): Add kernel.img.
14191 (bin_UTILITIES): Remove grub-mkimage.
14192 (grub_mkimage_SOURCES): Removed.
14193 (grub_mkimage_CFLAGS): Likewise.
14194 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
14195 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
14196 (pkglib_PROGRAMS): Add kernel.img.
14197 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
14198 (pkglib_PROGRAMS): Add kernel.img.
14199 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
14200 (grub_mkimage_SOURCES): Removed.
14201 (grub_mkimage_CFLAGS): Likewise.
14202 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
14203 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
14204 (pkglib_PROGRAMS): Add kernel.img.
14205 (bin_UTILITIES): Remove grub-mkimage.
14206 (grub_mkimage_SOURCES): Removed.
14207 (grub_mkimage_CFLAGS): Likewise.
14208 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
14209 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
14210 (grub_mkimage_SOURCES): Removed.
14211 (grub_mkimage_CFLAGS): Likewise.
14212 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
14213 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
14214 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
14215 (grub_pe32_optional_header): ... this.
14216 (grub_pe64_optional_header): ... and this. All users updated.
14217 (GRUB_PE32_PE32_MAGIC): Split into ..
14218 (GRUB_PE32_PE32_MAGIC): .. this.
14219 (GRUB_PE32_PE64_MAGIC): .. and this.
14220 (GRUB_PE32_SIGNATURE_SIZE): New definition.
14221 * include/grub/elf.h (PT_GNU_STACK): New definition.
14222 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
14223 * include/grub/i386/efi/kernel.h: Likewise.
14224 * include/grub/i386/kernel.h: Likewise.
14225 * include/grub/i386/pc/kernel.h: Likewise.
14226 * include/grub/i386/qemu/boot.h: Likewise.
14227 * include/grub/mips/kernel.h: Likewise.
14228 * include/grub/mips/qemu-mips/kernel.h: Likewise.
14229 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
14230 * include/grub/powerpc/kernel.h: Likewise.
14231 * include/grub/sparc64/ieee1275/boot.h: Likewise.
14232 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
14233 * include/grub/sparc64/kernel.h: Likewise.
14234 * include/grub/x86_64/efi/kernel.h: Likewise.
14235 * include/grub/x86_64/kernel.h: Likewise.
14236 * include/grub/offsets.h: New file.
14237 * include/grub/kernel.h (grub_module_info): Split into ...
14238 (grub_module_info32): ... this.
14239 (grub_module_info64): ... and this.
14240 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
14241 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
14242 (grub_boot_blocklist): Moved from here ...
14243 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
14244 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
14245 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
14246 * include/grub/types.h (grub_target_to_host16): Removed.
14247 (grub_target_to_host32): Likewise.
14248 (grub_target_to_host64): Likewise.
14249 (grub_host_to_target16): Likewise.
14250 (grub_host_to_target32): Likewise.
14251 (grub_host_to_target64): Likewise.
14252 (grub_host_to_target_addr): Likewise.
14253
14254 Support grub-mkrescue for efi, coreboot and qemu.
14255
14256 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
14257 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
14258 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
14259 * util/grub-mkrawimage.c: Moved from here ...
14260 * util/grub-mkimage.c: ... here. All users updated.
14261 (ALIGN_ADDR): Use image_target.
14262 (TARGET_NO_FIELD): New const.
14263 (image_target_desc): New type.
14264 (image_targets): New array.
14265 (grub_target_to_host64): Use image_target.
14266 (grub_target_to_host32): Likewise.
14267 (grub_target_to_host16): Likewise.
14268 (grub_host_to_target64): Likewise.
14269 (grub_host_to_target32): Likewise.
14270 (grub_host_to_target16): Likewise.
14271 (grub_host_to_target_addr): Likewise.
14272 (generate_image): Handle multiimage.
14273 (main): Require -O parameter. All users updated.
14274 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
14275 util/efi/grub-mkimage.c
14276 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
14277 New option --rom-directory.
14278 Use xorriso.
14279 * util/i386/efi/grub-mkimage.c: Removed.
14280 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
14281 (grub_target_to_host32): Likewise.
14282 (grub_target_to_host64): Likewise.
14283 (grub_host_to_target16): Likewise.
14284 (grub_host_to_target32): Likewise.
14285 (grub_host_to_target64): Likewise.
14286 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
14287 (grub_target_to_host32): Likewise.
14288 (grub_target_to_host64): Likewise.
14289 (grub_host_to_target16): Likewise.
14290 (grub_host_to_target32): Likewise.
14291 (grub_host_to_target64): Likewise.
14292
14293 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
14294
14295 Source tree is reorganized for emu build.
14296
14297 * include/grub/util/console.h: Move from here...
14298 * include/grub/emu/console.h: ...to here.
14299 * include/grub/util/getroot.h: Move from here...
14300 * include/grub/emu/getroot.h: ...to here.
14301 * include/grub/util/hostdisk.h: Move from here...
14302 * include/grub/emu/hostdisk.h: ...to here.
14303 * util/console.c: Move from here...
14304 * kern/emu/console.c: ...to here.
14305 * util/getroot.c: Move from here...
14306 * kern/emu/getroot.c: ...to here.
14307 * util/grub-emu.c: Move from here...
14308 * kern/emu/main.c: ...to here.
14309 * util/hostdisk.c: Move from here...
14310 * kern/emu/hostdisk.c: ...to here.
14311 * util/hostfs.c: Move from here...
14312 * kern/emu/hostfs.c: ...to here.
14313 * util/mm.c: Move from here...
14314 * kern/emu/mm.c: ...to here.
14315 * util/pci.c: Move from here...
14316 * bus/emu/pci.c: ...to here.
14317 * util/sdl.c: Move from here...
14318 * video/emu/sdl.c: ...to here.
14319 * util/time.c: Move from here...
14320 * kern/emu/time.c: ...to here.
14321 * util/usb.c: Move from here...
14322 * bus/usb/emu/usb.c: ...to here.
14323
14324 * include/grub/emu/misc.h: New header for grub-emu functions.
14325 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
14326
14327 * conf/any-emu.rmk: Rule updates for above renames.
14328 * conf/common.rmk: Likewise.
14329 * conf/i386-pc.rmk: Likewise.
14330 * conf/i386-qemu.rmk: Likewise.
14331 * conf/mips.rmk: Likewise.
14332 * conf/sparc64-ieee1275.rmk: Likewise.
14333 * conf/x86-efi.rmk: Likewise.
14334
14335 * disk/lvm.h: #include updates for above renames.
14336 * util/grub-mkrelpath.c: Likewise.
14337 * util/grub-probe.c: Likewise.
14338 * util/i386/pc/grub-setup.c: Likewise.
14339 * util/sparc64/ieee1275/grub-setup.c: Likewise.
14340 * kern/emu/console.c: Likewise.
14341 * kern/emu/getroot.c: Likewise.
14342 * kern/emu/hostdisk.c: Likewise.
14343 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
14344
14345 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
14346 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
14347 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
14348 * util/misc.c: Remove grub-emu functions.
14349
14350 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
14351
14352 Fix gfxmenu crash.
14353 Reported by: Thorsten Grützmacher.
14354
14355 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
14356 timeout hook.
14357 (circprog_set_property): Register and unregister timeout hook.
14358 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
14359 (label_destroy): Free template. and unregister hook.
14360 (label_set_state): New function.
14361 (label_set_property): Handle templates and hooks.
14362 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
14363 timeout hook.
14364 (progress_bar_set_property): Register and unregister timeout hook.
14365 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
14366 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
14367 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
14368 (update_timeout_visit): Removed.
14369 (update_timeouts): New function.
14370 (redraw_timeouts): Likewise.
14371 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
14372 (grub_gfxmenu_clear_timeout): Likewise.
14373 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
14374 (grub_gfxmenu_timeout_notify): Likewise.
14375 (grub_gfxmenu_timeout_notifications): New external variable.
14376 (grub_gfxmenu_timeout_register): New function.
14377 (grub_gfxmenu_timeout_unregister): Likewise.
14378
14379 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
14380
14381 Transform (broken) vga terminal into (working) vga video driver.
14382
14383 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
14384 video/i386/pc/vga.c.
14385 * include/grub/video.h (grub_video_driver_id):
14386 Add GRUB_VIDEO_DRIVER_VGA.
14387 * term/i386/pc/vga.c: Renamed to ...
14388 * video/i386/pc/vga.c: ...this
14389 (DEBUG_VGA): Removed.
14390 (CHAR_WIDTH): Likewise.
14391 (CHAR_HEIGHT): Likewise.
14392 (TEXT_WIDTH): Likewise.
14393 (TEXT_HEIGHT): Likewise.
14394 (DEFAULT_FG_COLOR): Likewise.
14395 (DEFAULT_BG_COLOR): Likewise.
14396 (colored_char): Likewise.
14397 (xpos): Likewise.
14398 (ypos): Likewise.
14399 (cursor_state): Likewise.
14400 (fg_color): Likewise.
14401 (bg_color): Likewise.
14402 (text_buf): Likewise.
14403 (page): Likewise.
14404 (font): Likewise.
14405 (framebuffer): New variable.
14406 (set_read_map): Disabled.
14407 (setup): New variable.
14408 (is_target): Likewise.
14409 (grub_vga_mod_init): Likewise.
14410 (grub_vga_mod_fini): Likewise.
14411 (check_vga_mem): Likewise.
14412 (write_char): Likewise.
14413 (write_cursor): Likewise.
14414 (scroll_up): Likewise.
14415 (grub_vga_putchar): Likewise.
14416 (grub_vga_getcharwidth): Likewise.
14417 (grub_vga_getwh): Likewise.
14418 (grub_vga_getxy): Likewise.
14419 (grub_vga_gotoxy): Likewise.
14420 (grub_vga_cls): Likewise.
14421 (grub_vga_setcolorstate): Likewise.
14422 (grub_vga_setcursor): Likewise.
14423 (grub_video_vga_init): New function.
14424 (grub_video_vga_setup): Likewise.
14425 (grub_video_vga_fini): Likewise.
14426 (update_target): Likewise.
14427 (grub_video_vga_blit_bitmap): Likewise.
14428 (grub_video_vga_blit_render_target): Likewise.
14429 (grub_video_vga_set_active_render_target): Likewise.
14430 (grub_video_vga_get_active_render_target): Likewise.
14431 (grub_video_vga_swap_buffers): Likewise.
14432 (grub_video_vga_set_palette): Likewise.
14433 (grub_video_vga_get_info_and_fini): Likewise.
14434 (grub_vga_term): Removed.
14435 (grub_video_vga_adapter): New variable.
14436 (GRUB_MOD_INIT): Register a video driver instead of terminal.
14437 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
14438
14439 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
14440
14441 * video/readers/jpeg.c: Indented.
14442
14443 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
14444
14445 Various jpeg cleanups.
14446
14447 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
14448 (grub_jpeg_decode_quan_table): Use sizeof.
14449 (grub_jpeg_decode_du): Use ARRAY_SIZE.
14450
14451 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
14452
14453 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
14454 tables. Ignore non-last ac bit.
14455 (grub_jpeg_decode_quan_table): Likewise.
14456
14457 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
14458
14459 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
14460 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
14461 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
14462 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
14463 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
14464 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
14465
14466 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
14467
14468 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
14469 error.
14470
14471 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
14472
14473 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
14474
14475 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
14476
14477 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
14478 condition.
14479
14480 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
14481
14482 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
14483 part.
14484
14485 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
14486
14487 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
14488 pointers.
14489
14490 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
14491
14492 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
14493
14494 2010-05-01 Christian Franke <franke@computer.org>
14495
14496 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
14497 Remove broken Cygwin path conversion.
14498 * util/misc.c: [__CYGWIN__] Add include and define.
14499 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
14500 for Cygwin 1.7.
14501 (make_system_path_relative_to_its_root): Simplify loop, replace early
14502 return by break.
14503 [__CYGWIN__] Add conversion to win32 path.
14504 Include "/" case in trailing slash removal.
14505
14506 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
14507
14508 * kern/main.c (grub_load_config): Fix copy-pasted comment.
14509 Reported by: Seth Goldberg
14510
14511 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
14512
14513 * commands/help.c (grub_cmd_help): Fix a typo.
14514 Reported by: Seth Goldberg
14515
14516 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
14517
14518 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
14519 name and add N_.
14520 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
14521 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
14522 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
14523 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
14524 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
14525 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
14526 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
14527 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
14528 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
14529 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
14530 * normal/context.c (GRUB_MOD_INIT): Likewise.
14531 * normal/main.c (GRUB_MOD_INIT): Likewise.
14532 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
14533 * term/serial.c (GRUB_MOD_INIT): Likewise.
14534 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
14535
14536 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
14537
14538 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
14539 extra == 0.
14540
14541 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
14542
14543 * commands/iorw.c: New file.
14544 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
14545 (iorw_mod_SOURCES): New variable.
14546 (iorw_mod_CFLAGS): Likewise.
14547 (iorw_mod_LDFLAGS): Likewise.
14548
14549 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
14550
14551 Hotkey support
14552
14553 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
14554 * normal/main.c (hotkey_aliases): New variable.
14555 (grub_normal_add_menu_entry): Parse "--hotkey".
14556 * normal/menu_text.c (run_menu): Handle hotkeys.
14557
14558 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
14559
14560 * kern/i386/coreboot/init.c (grub_machine_init): Call
14561 grub_machine_mmap_init on qemu.
14562
14563 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
14564
14565 * boot/i386/qemu/boot.S: Add a missing .code16.
14566
14567 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
14568
14569 Use LBIO on coreboot.
14570
14571 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
14572 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
14573 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
14574 New declaration.
14575 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
14576 grub_machine_mmap_init on coreboot.
14577 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
14578 GRUB_LINUXBIOS_MEMBER_LINK.
14579 (grub_machine_mmap_iterate): Fix declaration.
14580 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
14581
14582 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
14583
14584 Split coreboot and multiboot ports.
14585
14586 * conf/i386-multiboot.rmk: New file.
14587 * configure.ac: Add multiboot port.
14588 * include/grub/i386/multiboot/boot.h: New file.
14589 * include/grub/i386/multiboot/console.h: Likewise.
14590 * include/grub/i386/multiboot/init.h: Likewise.
14591 * include/grub/i386/multiboot/kernel.h: Likewise.
14592 * include/grub/i386/multiboot/loader.h: Likewise.
14593 * include/grub/i386/multiboot/memory.h: Likewise.
14594 * include/grub/i386/multiboot/serial.h: Likewise.
14595 * include/grub/i386/multiboot/time.h: Likewise.
14596 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
14597 * loader/multiboot.c: Likewise.
14598 * loader/multiboot_mbi2.c: Likewise.
14599 * util/grub-mkrescue.in: Generate multiboot rescue.
14600
14601 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
14602
14603 * kern/parser.c (grub_parser_execute): Cope with read-only config.
14604
14605 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
14606
14607 Merge handling of input and output terminals. Fix a hang.
14608
14609 * commands/terminal.c (abstract_terminal): New struct.
14610 (handle_command): New function. Based on grub_cmd_terminal_input.
14611 (grub_cmd_terminal_input): Use handle_command.
14612 (grub_cmd_terminal_output): Use handle_command.
14613
14614 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
14615
14616 Fix comment handling.
14617
14618 * tests/grub_script_comments.in: New testcase.
14619 * conf/tests.rmk: Rules for new testcase.
14620 * script/yylex.l: Updated flex rules.
14621
14622 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
14623
14624 * docs/grub.texi (play): Document that zero pitches produce rests.
14625 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
14626 if argc is 1.
14627
14628 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
14629
14630 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
14631 autogen issues.
14632
14633 2010-04-26 Christian Franke <franke@computer.org>
14634
14635 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
14636 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
14637 (grub_get_prefix): Remove function.
14638 * util/grub-emu.c (main): Replace grub_get_prefix () call by
14639 make_system_path_relative_to_its_root ().
14640 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
14641
14642 2010-04-24 Christian Franke <franke@computer.org>
14643
14644 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
14645 (kernel_img_LDFLAGS): Remove -static-libgcc.
14646
14647 2010-04-24 Christian Franke <franke@computer.org>
14648
14649 * configure.ac: Do not CHECK_BSS_START_SYMBOL
14650 and CHECK_END_SYMBOL if grub-emu is built.
14651 Unset TARGET_OBJ2ELF if grub-emu is built
14652 without module support.
14653
14654 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
14655
14656 Nilfs2 support.
14657
14658 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
14659 (grub_fstest_SOURCES): Likewise.
14660 (pkglib_MODULES): Add nilfs2.mod.
14661 (nilfs2_mod_SOURCES): New variable.
14662 (nilfs2_mod_CFLAGS): Likewise.
14663 (nilfs2_mod_LDFLAGS): Likewise.
14664 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
14665 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
14666 * fs/nilfs2.c: New file.
14667
14668 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
14669
14670 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
14671 is not supported.
14672
14673 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
14674
14675 Add grub-mkconfig support for NetBSD.
14676
14677 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
14678 * util/grub-mkconfig.in: export new NetBSD specific variables.
14679 * po/POTFILES-shell: added 10_netbsd.in.
14680 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
14681
14682 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
14683
14684 Fix emu build with grub-emu-pci and grub-emu-modules.
14685
14686 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
14687 functions.
14688 * include/grub/libpciaccess.h: New file.
14689 * conf/any-emu.rmk: Update kernel headers for emu build.
14690
14691 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
14692
14693 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
14694
14695 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
14696
14697 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
14698
14699 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
14700
14701 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
14702 Retrieve chosen/bootpath if bootpath isn't hardcoded.
14703 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
14704 util/ieee1275/ofpath.c.
14705 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
14706 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
14707 * include/grub/sparc64/ieee1275/boot.h
14708 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
14709 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
14710 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
14711 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
14712 const char *.
14713 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
14714 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
14715 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
14716 install.
14717
14718 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
14719
14720 * util/grub-mkconfig.in: Corrected two == equality tests.
14721 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
14722 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
14723 expect a number appended to it.
14724 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
14725 expects a number appended to it.
14726
14727 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
14728
14729 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
14730
14731 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
14732
14733 * util/hostdisk.c (make_device_name): Change to new partition naming.
14734
14735 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
14736
14737 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
14738
14739 2010-04-17 Christian Franke <franke@computer.org>
14740
14741 * Makefile.in: Add missing localedir setting.
14742
14743 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
14744
14745 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
14746 mistake in r2156. Noticed by Anthony Fok.
14747
14748 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
14749 @localedir@.
14750 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
14751
14752 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
14753
14754 Fix a spurious, uninitialized variable warning.
14755
14756 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
14757 Initialize variable, shdr.
14758 (grub_freebsd_load_elfmodule): Likewise.
14759 (grub_freebsd_load_elf_meta): Likewise.
14760
14761 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
14762
14763 Fix for escaped dollar in double quoted strings.
14764
14765 * script/yylex.l: Updated flex rules.
14766 * conf/tests.rmk: Rule for new testcase.
14767 * tests/grub_script_dollar.in: New testcase.
14768
14769 2010-04-13 Carles Pina i Estany <carles@pina.cat>
14770 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
14771
14772 Enclose all translated strings in grub.cfg in single quotes, and
14773 escape them appropriately (Ubuntu bug #552921).
14774
14775 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
14776 * util/grub.d/10_hurd.in: Use it.
14777 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
14778 * util/grub.d/10_linux.in (linux_entry): Likewise.
14779
14780 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
14781
14782 Fix cygwin compilation.
14783
14784 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
14785 * include/grub/misc.h (__register_frame_info)
14786 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
14787 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
14788 * kern/misc.c (__register_frame_info)
14789 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
14790 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
14791
14792 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
14793
14794 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
14795
14796 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
14797
14798 Unify libgcc processing.
14799
14800 * Makefile.in (kernel_img_LDFLAGS): New variable.
14801 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
14802 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
14803 overwriting.
14804 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
14805 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
14806 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
14807 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
14808 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
14809 overwriting. Remove -lgcc and -static-libgcc
14810 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
14811 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
14812 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
14813 (kernel_img_LDFLAGS): Append instead of overwriting.
14814 Remove -lgcc and -static-libgcc
14815 * conf/sparc64-ieee1275.rmk: Likewise.
14816 * include/grub/powerpc/libgcc.h: Move to ...
14817 * include/grub/libgcc.h: .. this.
14818 * include/grub/libgcc.h: Don't export most of the function on x86.
14819 (__bswapsi2): New export.
14820 (__bswapdi2): Likewise.
14821 * include/grub/mips/libgcc.h: Removed.
14822 * include/grub/sparc64/libgcc.h: Likewise.
14823
14824 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
14825
14826 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
14827 disk_info_msg (conflicts with gettexting into languages with cases).
14828
14829 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
14830
14831 Add grub-probe support for NetBSD.
14832
14833 * util/getroot.c (find_root_device): Convert block device to
14834 character device on NetBSD.
14835 * util/probe.c (probe): Require character device on NetBSD.
14836 * util/hostdisk.c: NetBSD specific headers.
14837 (configure_device_driver): new function to tune device driver
14838 parameters (currently only for NetBSD floppy driver).
14839 (grub_util_biosdisk_open): NetBSD specific code (get disk size
14840 via disklabel ioctl).
14841 (open_device): call configure_device_driver on NetBSD.
14842 (convert_system_partition_to_system_disk): NetBSD specific code.
14843 (device_is_wholedisk): Likewise.
14844 (grub_util_biosdisk_get_grub_dev): Likewise.
14845 (make_device_name): Fixed a typo in bsd_part_str.
14846 * configure.ac: check for opendisk() and getrawpartition() on
14847 NetBSD and set LIBUTIL.
14848 * Makefile.in: add LIBUTIL to LIBS.
14849
14850 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
14851
14852 Documentation fix.
14853
14854 * util/grub-script-check.c: Better help message.
14855
14856 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
14857
14858 Fix FreeBSD build.
14859
14860 * configure.ac: Flex version check.
14861 * conf/common.rmk: Add -Wno-error to sh.mod.
14862 * script/yylex.l: Remove all #pragma.
14863
14864 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
14865
14866 * include/grub/util/misc.h (canonicalise_file_name): Add missing
14867 prototype.
14868 Reported by: Seth Goldberg.
14869
14870 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
14871
14872 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
14873 Rename "module" to "module2".
14874 Reported by: Seth Goldberg.
14875
14876 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
14877
14878 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
14879 EXPORT_FUNC.
14880 Reported by: Seth Goldberg.
14881
14882 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
14883
14884 * lib/posix_wrap/locale.h: Add missing file.
14885 Reported by: Seth Goldberg.
14886
14887 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
14888
14889 grub-emu module load support.
14890
14891 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
14892 NO_DYNAMIC_MODULES switched to this.
14893 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
14894 (CFLAGS): Likewise.
14895 * conf/any-emu.rmk: Generate symlist.
14896 (kernel_img_HEADERS): Add util/datetime.h.
14897 (kernel_img_HEADERS) [sdl]: Add sdl.h.
14898 (kernel_img_HEADERS) [libusb]: Add libusb.h.
14899 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
14900 kern/$(target_cpu)/cache.S.
14901 * configure.ac (grub-emu-modules): New option.
14902 * genmk.rb: Handle multiple source lists.
14903 * include/grub/sdl.h: New file.
14904 * include/grub/libusb.h: Likewise.
14905 * util/grub-emu.c (main): Hanle (host) root.
14906 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
14907 GRUB_ERR_UNKNOWN_DEVICE.
14908 * util/misc.c: Move mm functions to ...
14909 * util/mm.c: ... here. All users updated.
14910
14911 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
14912
14913 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
14914 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
14915 missing files.
14916 (maintainer-clean): Remove libgcrypt-grub.
14917
14918 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
14919
14920 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
14921
14922 2010-04-09 EFI Coder <eficoder@hotmail.com>
14923
14924 * normal/menu_text.c (print_message): Clean up the message and show
14925 the Fn information when on EFI
14926 * term/efi/console.c (grub_console_checkkey): Add F4 support.
14927
14928 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
14929
14930 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
14931 All users updated.
14932 * normal/crypto.c (read_crypto_list): Likewise.
14933 * normal/dyncmd.c (read_command_list): Likewise.
14934 * normal/term.c (read_terminal_list): Likewise.
14935 * normal/main.c (read_lists): Use explicit prefix.
14936 (read_lists_hook): Use read_lists.
14937 (grub_normal_execute): Likewise.
14938
14939 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
14940
14941 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
14942 Reported by: Thomas Schmitt.
14943 Add -no-emul-boot to grub-mkisofs parameters.
14944
14945 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
14946
14947 * font/font.c: Indented.
14948
14949 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
14950
14951 Elif support to GRUB script (by Deepak Vankadaru).
14952
14953 * tests/grub_script_if.in: New testcase.
14954 * conf/tests.rmk: Rule for new testcase.
14955 * script/parser.y: Grammar rules for elif.
14956
14957 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
14958
14959 While and until loops support to GRUB script.
14960
14961 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
14962 (grub_script_create_cmdwhile): New function prototype.
14963 (grub_script_execute_cmdwhile): New function prototype.
14964 * script/execute.c (grub_script_execute_cmdwhile): New function.
14965 * script/parser.y (command): New commands.
14966 (whilecmd): New grammar rule.
14967 (untilcmd): New grammar rule.
14968 * script/script.c (grub_script_create_cmdwhile): New function.
14969 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
14970 function.
14971
14972 * tests/grub_script_while1.in: New testcase.
14973 * conf/tests.rmk: Rule for new testcase.
14974
14975 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
14976
14977 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
14978 as *.jpg.
14979
14980 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
14981
14982 GRUB_BACKGROUND support.
14983
14984 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
14985 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
14986
14987 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
14988
14989 Load fonts and modules for gfxmenu in grub-mkconfig.
14990 Idea by: Mario Vazquez
14991
14992 * util/grub.d/00_header.in: Load pf2 and image modules.
14993
14994 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
14995
14996 grub-mkconfig multiple terminal support.
14997
14998 * util/grub-mkconfig.in: Handle multiple terminals correctly.
14999 * util/grub.d/00_header.in: Likewise.
15000
15001 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
15002
15003 * Makefile.in: Specify files explicitly instead of using $< and $@ since
15004 we use cd $(srcdir).
15005
15006 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
15007
15008 * util/grub.d/10_linux.in: Only use the first word of
15009 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
15010 spaces in GRUB_DISTRIBUTOR.
15011 * util/grub.d/10_kfreebsd.in: Likewise.
15012 * util/grub.d/10_hurd.in: Likewise.
15013
15014 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
15015
15016 Fix unit testing framework for Qemu 0.12.
15017
15018 * tests/util/grub-shell.in: Remove -serial stdio option.
15019
15020 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
15021
15022 POSIX header file wrappers.
15023
15024 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
15025 equivalents.
15026 * lib/posix_wrap/ctype.h: Likewise.
15027 * lib/posix_wrap/errno.h: Likewise.
15028 * lib/posix_wrap/langinfo.h: Likewise.
15029 * lib/posix_wrap/limits.h: Likewise.
15030 * lib/posix_wrap/localcharset.h: Likewise.
15031 * lib/posix_wrap/stdint.h: Likewise.
15032 * lib/posix_wrap/stdio.h: Likewise.
15033 * lib/posix_wrap/stdlib.h: Likewise.
15034 * lib/posix_wrap/string.h: Likewise.
15035 * lib/posix_wrap/sys/types.h: Likewise.
15036 * lib/posix_wrap/unistd.h: Likewise.
15037 * lib/posix_wrap/wchar.h: Likewise.
15038 * lib/posix_wrap/wctype.h: Likewise.
15039 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
15040 (grub_script.yy.h): Likewise.
15041 * script/yylex.l: Remove POSIX emulation #defines.
15042 * Makefile.in (POSIX_CFLAGS): New variable.
15043 (GNULIB_UTIL_CFLAGS): Likewise.
15044
15045 Regexp support.
15046
15047 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
15048 (regexp_mod_SOURCES): New variable.
15049 (regexp_mod_CFLAGS): Likewise.
15050 (regexp_mod_LDFLAGS): Likewise.
15051 * commands/regexp.c: New file.
15052 * gnulib/regcomp.c: New file. Imported from gnulib.
15053 * gnulib/regex.c: Likewise.
15054 * gnulib/regex_internal.c: Likewise.
15055 * gnulib/regex_internal.h: Likewise.
15056 * gnulib/regexec.c: Likewise.
15057 * gnulib/regex.h: Likewise.
15058
15059 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
15060
15061 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
15062 unsupported video mode types.
15063
15064 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
15065
15066 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
15067
15068 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
15069
15070 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
15071 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
15072
15073 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
15074
15075 Remove unused grub_vga_get_font.
15076
15077 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
15078 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
15079
15080 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
15081
15082 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
15083 * include/grub/misc.h: Likewise.
15084
15085 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
15086
15087 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
15088 for which failure is fatal.
15089
15090 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
15091
15092 * util/grub-install.in: Use mkdir -p to create grub directory.
15093 * util/i386/efi/grub-install.in: Likewise.
15094 * util/ieee1275/grub-install.in: Likewise.
15095
15096 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
15097
15098 * Makefile.in (LEX): new variable.
15099
15100 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
15101
15102 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
15103 `=' and added double quotes on operands of this equality test.
15104
15105 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
15106
15107 * Makefile.in (uninstall): Remove a leftover debug echo.
15108 Reported by: Grégoire Sutre
15109
15110 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
15111
15112 MIPS multiboot2 support.
15113
15114 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
15115 (multiboot2_mod_SOURCES): New variable.
15116 (multiboot2_mod_CFLAGS): Likewise.
15117 (multiboot2_mod_LDFLAGS): Likewise.
15118 (multiboot2_mod_ASFLAGS): Likewise.
15119 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
15120 definition.
15121 (MULTIBOOT_ENTRY_REGISTER): Likewise.
15122 (MULTIBOOT_MBI_REGISTER): Likewise.
15123 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
15124 (MULTIBOOT_ELF32_MACHINE): Likewise.
15125 (MULTIBOOT_ELF64_MACHINE): Likewise.
15126 * include/grub/mips/multiboot.h: New file.
15127 * include/grub/video.h (grub_video_driver_id): New type
15128 GRUB_VIDEO_DRIVER_SM712.
15129 (grub_video_get_info_and_fini): Export.
15130 (grub_video_get_palette): Likewise.
15131 (grub_video_get_driver_id): Likewise.
15132 * include/multiboot2.h: Resynced with spec.
15133 * loader/i386/multiboot.c: Moved from here ...
15134 * loader/multiboot.c: ... here. All users updated.
15135 (grub_multiboot_boot): Use platform-specific macros.
15136 * loader/i386/multiboot_elfxx.c: Moved from here ...
15137 * loader/multiboot_elfxx.c: ... here. All users updated.
15138 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
15139 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
15140 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
15141
15142 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
15143
15144 Import gnulib argp module.
15145
15146 * gnulib/argp-ba.c: New file.
15147 * gnulib/argp-eexst.c: Likewise.
15148 * gnulib/argp-fmtstream.c: Likewise.
15149 * gnulib/argp-fmtstream.h: Likewise.
15150 * gnulib/argp-fs-xinl.c: Likewise.
15151 * gnulib/argp-help.c: Likewise.
15152 * gnulib/argp-namefrob.h: Likewise.
15153 * gnulib/argp-parse.c: Likewise.
15154 * gnulib/argp-pin.c: Likewise.
15155 * gnulib/argp-pv.c: Likewise.
15156 * gnulib/argp-pvh.c: Likewise.
15157 * gnulib/argp-version-etc.c: Likewise.
15158 * gnulib/argp-version-etc.h: Likewise.
15159 * gnulib/argp-xinl.c: Likewise.
15160 * gnulib/argp.h: Likewise.
15161
15162 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
15163
15164 * kern/device.c (grub_device_iterate): Clear errors after failed
15165 opening device.
15166
15167 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
15168
15169 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
15170 returned by firmware.
15171
15172 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
15173
15174 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
15175 compilation on coreboot and qemu
15176
15177 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
15178
15179 * include/multiboot2.h: Resync with spec.
15180
15181 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
15182
15183 Multiboot2 tag support
15184
15185 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
15186 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
15187 Remove loader/multiboot_loader.c.
15188 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
15189 (grub_multiboot2_real_boot): Likewise.
15190 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
15191 (grub_get_multiboot_mmap_count): New proto.
15192 (grub_fill_multiboot_mmap): Likewise.
15193 (grub_multiboot_set_video_mode): Likewise.
15194 (grub_multiboot_set_console): Likewise.
15195 (grub_multiboot_load): Likewise.
15196 (grub_multiboot_load_elf): Likewise.
15197 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
15198 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
15199 * include/multiboot.h: Resynced with specification.
15200 * include/multiboot2.h: Resynced with specification.
15201 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
15202 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
15203 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
15204 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
15205 users updated.
15206 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
15207 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
15208 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
15209 Removed.
15210 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
15211 Moved from here...
15212 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
15213 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
15214 Moved from here...
15215 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
15216 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
15217 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
15218 All users updated.
15219 * loader/i386/multiboot_mbi2.c: New file.
15220
15221 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
15222
15223 Resync with gnulib.
15224
15225 * Makefile.in (GNULIB_CFLAGS): New variable.
15226 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
15227 (grub_script_check_CFLAGS): New variable.
15228 * gnulib/alloca.h: Resync with gnulib.
15229 * gnulib/error.c: Likewise.
15230 * gnulib/error.h: Likewise.
15231 * gnulib/fnmatch.c: Likewise.
15232 * gnulib/fnmatch_loop.c: Likewise.
15233 * gnulib/getdelim.c: Likewise.
15234 * gnulib/getline.c: Likewise.
15235 * gnulib/getopt.c: Likewise.
15236 * gnulib/getopt1.c: Likewise.
15237 * gnulib/getopt_int.h: Likewise.
15238 * gnulib/gettext.h: Likewise.
15239 * gnulib/progname.c: Likewise.
15240 * gnulib/progname.h: Likewise.
15241
15242 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
15243
15244 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
15245 which is the case with --disabled-nls.
15246
15247 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
15248 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
15249 * util/misc.c: Likewise.
15250 * util/mkisofs/mkisofs.c: Likewise.
15251 * util/mkisofs/mkisofs.h: Likewise.
15252
15253 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
15254
15255 Simplify Apple CC support.
15256
15257 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
15258 Add 0 byte at the end not to have a symbol with empty target.
15259 * mmap/i386/pc/mmap_helper.S: Likewise.
15260 * genmk.rb: Ignore errors 2030 and 2050.
15261 * kern/i386/pc/startup.S: Use LOCAL when possible.
15262
15263 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
15264
15265 Testcase and the fix for final semicolon on cmdline.
15266
15267 * tests/grub_script_final_semicolon.in: New testcase.
15268 * conf/tests.rmk: Rules for the new testcase.
15269 * script/parser.y: Grammar fix.
15270
15271 2010-03-26 BVK Chaitanya <bvk@localhost>
15272
15273 Blank lines testcase for GRUB script.
15274
15275 * tests/grub_script_blanklines.in: New testcase.
15276 * conf/tests.rmk: Rules for the new testcase.
15277
15278 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
15279
15280 Don't use __FILE__.
15281
15282 * genmk.rb: Add -DGRUB_FILE to all C targets.
15283 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
15284 * include/grub/list.h: Likewise.
15285 * include/grub/misc.h: Likewise.
15286 * include/grub/mm.h: Likewise.
15287 * include/grub/test.h: Likewise.
15288 * kern/mm.c: Likewise.
15289 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
15290
15291 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
15292
15293 Sunpc partitions support.
15294
15295 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
15296 (grub_fstest_SOURCES): Likewise.
15297 (pkglib_MODULES): Add part_sunpc.mod.
15298 (part_sunpc_mod_SOURCES): New variable.
15299 (part_sunpc_mod_CFLAGS): Likewise.
15300 (part_sunpc_mod_LDFLAGS): Likewise.
15301 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
15302 * partmap/sunpc.c: New file.
15303
15304 2010-03-26 BVK Chaitanya <bvk@localhost>
15305
15306 For loop support to GRUB script.
15307
15308 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
15309 (grub_script_create_cmdfor): New function prototype.
15310 (grub_script_execute_cmdfor): New function prototype.
15311 * script/execute.c (grub_script_execute_cmdfor): New function.
15312 * script/parser.y (command): New for command.
15313 (forcmd): New grammar rule.
15314 * script/script.c (grub_script_create_cmdfor): New function.
15315 * util/grub-script-check.c (grub_script_execute_cmdfor): New
15316 function.
15317 * tests/grub_script_for1.in: New testcase.
15318 * conf/tests.rmk: Rules for new testcase.
15319
15320 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
15321
15322 Nested partitions
15323
15324 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
15325 'partition' is NULL, grub_partition_get_start already does that.
15326 * commands/loadenv.c (check_blocklists): Likewise.
15327 (write_blocklists): Likewise.
15328 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
15329 (grub_fstest_SOURCES): Likewise.
15330 (pkglib_MODULES): Add part_bsd.mod.
15331 (part_bsd_mod_SOURCES): New variable.
15332 (part_bsd_mod_CFLAGS): Likewise.
15333 (part_bsd_mod_LDFLAGS): Likewise.
15334 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
15335 (grub_emu_SOURCES): Likewise.
15336 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15337 * include/grub/bsdlabel.h: New file.
15338 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
15339 'get_name'.
15340 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
15341 (grub_partition_map_list): New variable.
15342 (grub_partition_map_register): Inline.
15343 (grub_partition_map_unregister): Likewise.
15344 (FOR_PARTITION_MAPS): New macro.
15345 (grub_partition_map_iterate): Removed.
15346 (grub_partition_get_start): Handle nested partitions.
15347 * include/grub/msdos_partition.h: Remove bsd-related entries.
15348 (grub_pc_partition): Remove.
15349 * kern/disk.c (grub_disk_close): Free partition data.
15350 (grub_disk_adjust_range): Handle nested partitions.
15351 * kern/partition.c (grub_partition_map_probe): New function.
15352 (grub_partition_probe): Parse name to number, handle subpartitions.
15353 (get_partmap): New function.
15354 (grub_partition_iterate): Handle subpartitions.
15355 (grub_partition_get_name): Likewise.
15356 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
15357 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
15358 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
15359 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
15360 Set 'number'.
15361 (acorn_partition_map_probe): Remove.
15362 (acorn_partition_map_get_name): Likewise.
15363 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
15364 Set 'number'.
15365 Set 'index' to 0 since there can be only one partition entry per sector.
15366 (amiga_partition_map_probe): Remove.
15367 (amiga_partition_map_get_name): Likewise.
15368 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
15369 Set 'number'.
15370 Set 'offset' and 'index' to real positions of partitions.
15371 (apple_partition_map_probe): Remove.
15372 (apple_partition_map_get_name): Likewise.
15373 * partmap/bsdlabel.c: New file.
15374 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
15375 Set 'number'.
15376 Allocate 'data' so it can be correctly freed.
15377 Set 'index' to offset inside sector.
15378 (gpt_partition_map_probe): Remove.
15379 (gpt_partition_map_get_name): Likewise.
15380 * partmap/msdos.c (grub_partition_parse): Remove.
15381 (pc_partition_map_iterate): Don't force raw access.
15382 Set 'number'.
15383 Make 'ext_offset' a local variable.
15384 (pc_partition_map_probe): Remove.
15385 (pc_partition_map_get_name): Remove.
15386 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
15387 Set 'number'.
15388 (sun_partition_map_probe): Remove.
15389 (sun_partition_map_get_name): Likewise.
15390 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
15391 (grub_pcpart_type): Likewise.
15392 * util/hostdisk.c (open_device): Handle new numbering scheme.
15393 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
15394 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
15395 * util/grub-probe.c (probe_partmap): Handle nested paritions.
15396 * util/grub-install.in: Insert all subpartition modules.
15397 * util/ieee1275/grub-install.in: Likewise.
15398
15399 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
15400
15401 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
15402 grammar.
15403
15404 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
15405
15406 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
15407
15408 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
15409
15410 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
15411 match where 'make install' puts them.
15412 * util/i386/efi/grub-install.in: Likewise.
15413
15414 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
15415
15416 * .bzrignore: Add gentrigtables, grub-script-check,
15417 grub_script_check_init.c, grub_script_check_init.h, and
15418 trigtables.c.
15419
15420 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
15421
15422 * kern/parser.c: Indented.
15423
15424 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
15425
15426 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
15427
15428 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
15429
15430 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
15431 alpha_mask_size == 0 case.
15432
15433 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
15434
15435 GRUB shell lexer and parser improvements.
15436
15437 * conf/any-emu.rmk: Build rule updates.
15438 * conf/common.rmk: Likewise.
15439 * conf/i386-coreboot.rmk: Likewise.
15440 * conf/i386-efi.rmk: Likewise.
15441 * conf/i386-ieee1275.rmk: Likewise.
15442 * conf/i386-pc.rmk: Likewise.
15443 * conf/powerpc-ieee1275.rmk: Likewise.
15444 * conf/x86_64-efi.rmk: Likewise.
15445
15446 * configure.ac: Configure check for flex.
15447
15448 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
15449 types.
15450 (grub_lexer_param): Struct member updates.
15451 (grub_parser_param): Likewise.
15452 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
15453 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
15454 (grub_script_lexer_init): Prototype update.
15455 (grub_script_lexer_record_start): Likewise.
15456 (grub_script_lexer_record_stop): Likewise.
15457 (grub_script_lexer_yywrap): New function prototype.
15458 (grub_script_lexer_fini): Likewise.
15459 (grub_script_execute_argument_to_string): Removed by...
15460 (grub_script_execute_argument_to_argv): ...better version.
15461
15462 * script/execute.c (ROUND_UPTO): New macro.
15463 (grub_script_execute_cmdline): Out of memory fixes.
15464 (grub_script_execute_menuentry): Likewise.
15465 (grub_script_execute_argument_to_string): Removed. Update all
15466 users by...
15467 (grub_script_execute_argument_to_argv): ...better version.
15468 * script/function.c (grub_script_function_create): Use
15469 grub_script_execute_argument_to_argv instead of
15470 grub_script_execute_argument_to_string.
15471
15472 * script/lexer.c (check_varstate): Removed.
15473 (check_textstate): Removed.
15474 (grub_script_lexer_record_start): Likewise.
15475 (grub_script_lexer_record_stop): Likewise.
15476 (recordchar): Replaced with...
15477 (grub_script_lexer_record): ...new function.
15478 (nextchar): Removed.
15479 (grub_script_lexer_init): Rewritten.
15480 (grub_script_yylex): Rewritten.
15481 (append_newline): New function.
15482 (grub_script_lexer_yywrap): New function.
15483 (grub_script_lexer_fini): New function.
15484 (grub_script_yyerror): Sets error flag.
15485
15486 * script/yylex.l: New file.
15487 (grub_lexer_yyfree): Wrapper for flex yyffre.
15488 (grub_lexer_yyalloc): Likewise.
15489 (grub_lexer_yyrealloc): Likewise.
15490 * script/parser.y: Refactored.
15491
15492 * script/script.c (grub_script_arg_add): Out of memory fixes.
15493 (grub_script_add_arglist): Likewise.
15494 (grub_script_create_cmdline): Likewise.
15495 (grub_script_create_cmdmenu): Likewise.
15496 (grub_script_add_cmd): Likewise.
15497 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
15498 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
15499 unnecessary code.
15500
15501 * tests/grub_script_echo1.in: New testcase.
15502 * tests/grub_script_vars1.in: New testcase.
15503 * tests/grub_script_echo_keywords.in: New testcase.
15504
15505 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
15506
15507 Remove some redundancy in build system.
15508
15509 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
15510 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
15511 (TARGET_LDFLAGS): Add -nostdlib.
15512 (TARGET_IMG_LDFLAGS): Likewise.
15513 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
15514 anything since mmap isn't available.
15515 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
15516 Add util/time.c.
15517 (pkglib_MODULES): Remove reboot.mod.
15518 (reboot_mod_SOURCES): Removed.
15519 (reboot_mod_CFLAGS): Likewise.
15520 (reboot_mod_LDFLAGS): Likewise.
15521 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
15522 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
15523 (DEFSYMFILES): Add kernel_syms.lst.
15524 (kernel_img_HEADERS): Add common headers.
15525 (symlist.c): New target.
15526 (kernel_syms.lst): Likewise.
15527 (pkglib_MODULES): Add memdisk.mod.
15528 (memdisk_mod_SOURCES): New variable.
15529 (memdisk_mod_CFLAGS): Likewise.
15530 (memdisk_mod_LDFLAGS): Likewise.
15531 (pkglib_MODULES): Add reboot.mod.
15532 (reboot_mod_SOURCES): New variable.
15533 (reboot_mod_CFLAGS): Likewise.
15534 (reboot_mod_LDFLAGS): Likewise.
15535 (pkglib_MODULES): Add date.mod.
15536 (date_mod_SOURCES): New variable.
15537 (date_mod_CFLAGS): Likewise.
15538 (date_mod_LDFLAGS): Likewise.
15539 (pkglib_MODULES): Add datehook.mod.
15540 (datehook_mod_SOURCES): New variable.
15541 (datehook_mod_CFLAGS): Likewise.
15542 (datehook_mod_LDFLAGS): Likewise.
15543 (pkglib_MODULES): Add lsmmap.mod.
15544 (lsmmap_mod_SOURCES): New variable.
15545 (lsmmap_mod_CFLAGS): Likewise.
15546 (lsmmap_mod_LDFLAGS): Likewise.
15547 (pkglib_MODULES): Add boot.mod.
15548 (boot_mod_SOURCES): New variable.
15549 (boot_mod_CFLAGS): Likewise.
15550 (boot_mod_LDFLAGS): Likewise.
15551 * conf/i386-coreboot.rmk: Removed redundant parts.
15552 * conf/i386-ieee1275.rmk: Likewise.
15553 * conf/i386-pc.rmk: Likewise.
15554 * conf/mips-yeeloong.rmk: Likewise.
15555 * conf/mips.rmk: Likewise.
15556 * conf/powerpc-ieee1275.rmk: Likewise.
15557 * conf/sparc64-ieee1275.rmk: Likewise.
15558 * conf/x86_64-efi.rmk: Likewise.
15559 * conf/i386-coreboot.rmk: Moved qemu parts ..
15560 * conf/i386-qemu.rmk: ... here
15561 * conf/i386-efi.rmk: Moved common parts to...
15562 * conf/x86-efi.rmk: ... here.
15563 * conf/i386.rmk: Added modules common to all x86 variants.
15564 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
15565 * disk/memdisk.c: Remove grub/machine/kernel.h.
15566 * gensymlist.sh.in: Include symbol.h.
15567 * hook/datehook.c: Correct module name.
15568 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
15569 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
15570 * include/grub/i386/efi/serial.h: New file.
15571 * include/grub/x86_64/efi/serial.h: Likewise.
15572 * util/time.c: Likewise.
15573 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
15574
15575 2010-03-14 Colin King <colin.king@ubuntu.com>
15576 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
15577
15578 Shrink the pre-partition-table part of boot.img by eight bytes.
15579
15580 * boot/i386/pc/boot.S (ERR): New macro.
15581 (chs_mode): Use ERR.
15582 (geometry_error): Likewise.
15583 (hd_probe_error): Remove. This is only used once, so we wrwite
15584 it inline instead.
15585 (read_error): Instead of printing read_error_string, just set up
15586 %si and fall through to ...
15587 (error_message): ... this new function, also used by ERR.
15588
15589 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
15590
15591 Speed up consecutive hostdisk operations on the same device.
15592
15593 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
15594 (grub_util_biosdisk_open): Initialise disk->data.
15595 (struct linux_partition_cache): New structure.
15596 (linux_find_partition): Cache partition start positions; these are
15597 expensive to compute on every read and write.
15598 (open_device): Cache open file descriptor in disk->data, so that we
15599 don't have to reopen it and flush the buffer cache for consecutive
15600 operations on the same device.
15601 (grub_util_biosdisk_close): New function.
15602 (grub_util_biosdisk_dev): Set `close' member.
15603
15604 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
15605 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
15606 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
15607 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
15608 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
15609
15610 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
15611
15612 Compile parts of grub-emu as modules.
15613
15614 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
15615 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
15616 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
15617 (all-local): Add $(GRUB_EMU).
15618 (install-local): Install $(GRUB_EMU).
15619 (uninstall): Uninstall $(GRUB_EMU).
15620 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
15621 * kern/dl.c: Likewise.
15622 * commands/sleep.c: Not include machine/time.h.
15623 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
15624 (COMMON_CFLAGS): Likewise.
15625 (sbin_UTILITIES): Remove grub-emu.
15626 (grub_emu_SOURCES): Removed.
15627 (kernel_img_RELOCATABLE): New variable.
15628 (pkglib_PROGRAMS): Add kernel.img.
15629 (kernel_img_SOURCES): New variable
15630 (kernel_img_CFLAGS): Likewise.
15631 (kernel_img_LDFLAGS): Likewise.
15632 (TARGET_NO_STRIP): Likewise.
15633 (TARGET_NO_DYNAMIC_MODULES): Likewise.
15634 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
15635 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
15636 (grub-emu): New target.
15637 (GRUB_EMU): New variable.
15638 * configure.ac: Whitelist -emu as possible x86_64 architecture.
15639 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
15640 * loader/xnu.c: Likewise.
15641 * include/grub/pci.h: Likewise.
15642 * genemuinit.sh: New file.
15643 * genemuinitheader.sh: Likewise.
15644 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
15645 Support TARGET_NO_DYNAMIC_MODULES.
15646 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
15647 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
15648 * disk/loopback.c: Likewise.
15649 * font/font_cmd.c: Likewise.
15650 * partmap/acorn.c: Likewise.
15651 * partmap/amiga.c: Likewise.
15652 * partmap/apple.c: Likewise.
15653 * partmap/gpt.c: Likewise.
15654 * partmap/msdos.c: Likewise.
15655 * partmap/sun.c: Likewise.
15656 * parttool/msdospart.c: Likewise.
15657 * term/gfxterm.c: Likewise.
15658 * video/bitmap.c: Likewise.
15659 * video/readers/jpeg.c: Likewise.
15660 * video/readers/png.c: Likewise.
15661 * video/readers/tga.c: Likewise.
15662 * video/video.c: Likewise.
15663 * util/grub-emu.c (read_command_list): Removed.
15664 (main): Don't call util_init_nls.
15665 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
15666 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
15667
15668 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
15669
15670 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
15671 date.mod, datehook.mod.
15672 (datetime_mod_SOURCES): New variable.
15673 (datetime_mod_CFLAGS): Likewise.
15674 (datetime_mod_LDFLAGS): Likewise.
15675 (date_mod_SOURCES): Likewise.
15676 (date_mod_CFLAGS): Likewise.
15677 (date_mod_LDFLAGS): Likewise.
15678 (datehook_mod_SOURCES): Likewise.
15679 (datehook_mod_CFLAGS): Likewise.
15680 (datehook_mod_LDFLAGS): Likewise.
15681 * conf/sparc64-ieee1275.rmk: Likewise.
15682 * lib/ieee1275/datetime.c: New file.
15683
15684 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
15685
15686 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
15687 (ieee1275_fb_mod_SOURCES): New variable.
15688 (ieee1275_fb_mod_CFLAGS): Likewise.
15689 (ieee1275_fb_mod_LDFLAGS): Likewise.
15690 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
15691 New proto.
15692 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
15693 (HEAP_MAX_ADDR): Likewise.
15694 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
15695 type.
15696 Correct stop condition.
15697 (grub_ieee1275_devices_iterate): New function.
15698 * video/ieee1275.c: New file.
15699
15700 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
15701
15702 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
15703
15704 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
15705 as scratch.
15706 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
15707 SCRATCH_PAD_DISKBOOT as scratch.
15708 (bootit): Pass Openfirmware pointer in %o4.
15709 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
15710 of 0x200000.
15711 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
15712 with util/grub-mkrawimage.c.
15713 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
15714 * include/grub/aout.h (AOUT_MID_SUN): New definition.
15715 (grub_aout_get_type) [GRUB_UTIL]: Removed.
15716 (grub_aout_load) [GRUB_UTIL]: Likewise.
15717 * include/grub/kernel.h (grub_modules_get_end): New proto.
15718 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
15719 (SCRATCH_PAD_BOOT): New definition.
15720 (SCRATCH_PAD_DISKBOOT): Likewise.
15721 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
15722 * include/grub/sparc64/ieee1275/ieee1275.h
15723 (grub_ieee1275_original_stack): New variable
15724 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
15725 New definition
15726 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
15727 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
15728 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
15729 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
15730 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
15731 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
15732 (grub_platform_image_format_t): New type.
15733 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
15734 * kern/main.c (grub_modules_get_end)
15735 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
15736 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
15737 (codestart): Switch stacks.
15738 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
15739 variable.
15740 (grub_heap_init): Use grub_modules_get_end.
15741 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
15742 stack.
15743 * util/grub-mkrawimage.c (generate_image): Support sparc64.
15744 (main): Likewise.
15745 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
15746
15747 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
15748
15749 * util/grub-mkrescue.in: Base ISO UUID on UTC.
15750
15751 2010-03-08 Matt Kraai <kraai@ftbfs.org>
15752
15753 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
15754 bug #559005).
15755
15756 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
15757
15758 * genmoddep.awk: Output all missing symbols and not only first.
15759
15760 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
15761
15762 * NEWS: Put the date of 1.98 release.
15763
15764 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
15765
15766 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
15767 ft2build.h.
15768
15769 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
15770
15771 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
15772 completition in the middle of string.
15773
15774 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
15775
15776 * util/grub-mkrescue.in: Use mktemp with explicit template.
15777
15778 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
15779
15780 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
15781
15782 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
15783
15784 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
15785 right pointer.
15786
15787 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
15788
15789 Fix FreeBSD compilation.
15790
15791 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
15792 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
15793
15794 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
15795
15796 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
15797
15798 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
15799
15800 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
15801
15802 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
15803
15804 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
15805
15806 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
15807
15808 Support relative image path in theme file.
15809
15810 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
15811 (image_set_property): Handle theme_dir and relative path.
15812
15813 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
15814
15815 * configure.ac: Alias amd64 to x86_64.
15816
15817 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
15818
15819 * NEWS: mention multiboot on EFI.
15820
15821 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
15822
15823 * kern/main.c (grub_load_modules): Handle errors from init functions of
15824 embeded modules.
15825
15826 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
15827
15828 * normal/autofs.c (autoload_fs_module): Handle errors.
15829
15830 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
15831
15832 Disable linux.mod on qemu-mips since it's not functional and leads
15833 to compilation failure.
15834
15835 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
15836 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
15837 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
15838 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
15839 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
15840 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
15841 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
15842 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
15843 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
15844 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
15845 Reported by: BVK Chaitanya
15846
15847 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
15848
15849 * INSTALL: Add gettext as a dependency and add qemu to a new section
15850 "Prerequisites for make-check".
15851
15852 2010-03-04 Christian Franke <franke@computer.org>
15853
15854 * util/grub-pe2elf.c: Add missing include "progname.h".
15855
15856 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
15857
15858 * normal/crypto.c (read_crypto_list): Fix a typo.
15859 Reported by: Seth Goldberg.
15860
15861 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
15862
15863 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
15864 Reported by: Seth Goldberg.
15865
15866 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
15867
15868 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
15869 ascii.bitmaps.
15870
15871 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
15872
15873 * genmk.rb: Remove terminal*.lst in make clean.
15874 Reported by: Seth Goldberg.
15875
15876 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
15877
15878 * util/i386/efi/grub-install.in: Copy gettext files.
15879
15880 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
15881
15882 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
15883
15884 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
15885
15886 Wait for user entry basing on presence of output rather than on errors.
15887
15888 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
15889 (grub_install_newline_hook): Likewise.
15890 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
15891 * normal/menu.c (show_menu): Check line_counter to determine presence
15892 of output.
15893 * normal/term.c (grub_normal_line_counter): New variable.
15894 (grub_normal_get_line_counter): New function.
15895 (grub_install_newline_hook): Likewise.
15896
15897 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
15898
15899 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
15900
15901 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
15902
15903 * configure.ac: Update version to 1.98.
15904
15905 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
15906
15907 * util/grub.d/10_linux.in (linux_entry): Don't default to
15908 gfxpayload=keep if Linux doesn't support video handover.
15909
15910 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
15911
15912 Don't compile video modules on yeeloong since video subsystem is part
15913 of kernel.
15914
15915 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
15916 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
15917 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
15918 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
15919 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
15920 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
15921 * include/grub/bitmap_scale.h: Likewise.
15922 * include/grub/bufio.h: Likewise.
15923 * include/grub/font.h: Likewise.
15924 * include/grub/gfxterm.h: Likewise.
15925 * include/grub/video.h: Likewise.
15926 * include/grub/vbe.h: Don't include video_fb.h.
15927 * video/i386/pc/vbe.c: Include video_fb.h.
15928 * commands/i386/pc/vbetest.c: Include video.h.
15929
15930 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
15931
15932 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
15933 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
15934 default entry if GRUB_SAVEDEFAULT=true. This allows using
15935 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
15936 saving a new default on every boot.
15937
15938 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
15939
15940 * normal/crypto.c (read_crypto_list): Fix a memory leak.
15941 * normal/term.c (read_terminal_list): Likewise.
15942 * normal/main.c (grub_normal_init_page): Likewise.
15943 (grub_normal_read_line_real): Likewise.
15944
15945 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
15946
15947 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
15948 memory leak.
15949 Reported by: Seth Goldberg.
15950
15951 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
15952
15953 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
15954 duplicate declaration of `start'.
15955
15956 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
15957
15958 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
15959 filename.
15960 Reported by: Georgy Buranov
15961
15962 2010-02-20 Carles Pina i Estany <carles@pina.cat>
15963
15964 * util/grub-mkrawimage.c (usage): Change string formatting to
15965 improve gettext.
15966
15967 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
15968
15969 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
15970 backspace keys.
15971
15972 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
15973
15974 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
15975 Reported by: Michael Suchanek.
15976
15977 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
15978
15979 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
15980 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
15981
15982 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
15983
15984 Remove any reference to non-free fonts.
15985
15986 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
15987 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
15988 uses non-free components.
15989 * font/font.c (grub_font_get_name): Remove example name.
15990 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
15991 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
15992 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
15993 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
15994
15995 2010-02-16 Georgy Buranov <gburanov@gmail.com>
15996
15997 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
15998
15999 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
16000
16001 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
16002 Double divisor.
16003 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
16004 features.
16005 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
16006
16007 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
16008
16009 * gensymlist.sh.in: Use TARGET_CC instead of CC.
16010
16011 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
16012
16013 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
16014 * docs/grub.texi (Command-line and menu entry commands): Document play
16015 command.
16016
16017 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
16018
16019 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
16020 parse arguments as inline tempo and notes. Move code for playing notes
16021 to...
16022 (play): ... new function.
16023
16024 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
16025
16026 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
16027 grub_uint16_t instead of short.
16028 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
16029 disk from little endian to cpu endianness.
16030
16031 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
16032
16033 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
16034 GRUB_TICKS_PER_SECOND instead of 120.
16035
16036 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
16037
16038 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
16039 escape sequence after \e.
16040
16041 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
16042
16043 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
16044 non-ASCII characters.
16045
16046 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
16047
16048 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
16049 set root in single quotes to prevent \, from being unescaped.
16050
16051 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
16052
16053 Prevent unknown commands from stopping menuentry execution.
16054
16055 * script/execute.c (grub_script_execute_cmdline): Print error after
16056 unknown command.
16057
16058 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
16059
16060 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
16061 Reported by: Pavel Pisa.
16062
16063 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
16064
16065 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
16066
16067 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
16068
16069 Merge grub_ieee1275_map_physical into grub_map and rename to
16070 grub_ieee1275_map
16071
16072 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
16073 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
16074 Remove.
16075 * kern/ieee1275/openfw.c (grub_map): Rename to ...
16076 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
16077 necessary.
16078 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
16079
16080 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
16081
16082 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
16083 opening and not after.
16084
16085 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
16086
16087 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
16088 constants.
16089
16090 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
16091
16092 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
16093 (alloc_phys): Use ALIGN_UP instead of align_addr.
16094
16095 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
16096
16097 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
16098
16099 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
16100
16101 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
16102
16103 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
16104
16105 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
16106 verbose dprintf.
16107
16108 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
16109
16110 Fix over-4GiB seek on sparc64.
16111
16112 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
16113 Replace pos_i and pos_lo with pos. All users updated.
16114 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
16115 New constant.
16116 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
16117 Likewise.
16118 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
16119 and pos_lo.
16120
16121 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
16122
16123 * util/grub-mkrawimage.c (main): Call set_program_name.
16124
16125 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
16126
16127 Properly align 64-bit targets.
16128
16129 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
16130 (generate_image): Use ALIGN_ADDR.
16131
16132 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
16133
16134 Properly create cross-endian images.
16135
16136 * include/grub/types.h (grub_host_to_target_addr): New macro
16137 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
16138
16139 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
16140
16141 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
16142
16143 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
16144
16145 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
16146
16147 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
16148 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
16149 (grub_linux_boot): Divide by 64K when on VESA.
16150
16151 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
16152
16153 Support GRUB_GFXPAYLOAD_LINUX.
16154
16155 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
16156 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
16157
16158 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
16159
16160 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
16161 to show messages instead of discarding them.
16162 Process errors after executing command and not before. Keep old method
16163 too as precaution.
16164
16165 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
16166
16167 * configure.ac: Check for ft2build.h.
16168
16169 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
16170
16171 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
16172
16173 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
16174
16175 * genkernsyms.sh.in: Use TARGET_CC.
16176
16177 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
16178
16179 * NEWS: Update.
16180
16181 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
16182
16183 * include/grub/multiboot2.h: Remove leftover file.
16184 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
16185 * include/grub/partition.h [GRUB_UTIL]: Likewise.
16186
16187 2010-02-07 Yves Blusseau <blusseau@zetam.org>
16188
16189 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
16190
16191 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
16192
16193 Fix warnings in grub-emu when compiling with maximum warning options.
16194
16195 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
16196 (grub_arch_modules_addr): Return 0 and not NULL.
16197 * util/misc.c (ENABLE_RELOCATABLE): New definition.
16198 (xstrdup): Use newstr instead of dup.
16199 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
16200 of disk to dsk to avoid shadowing.
16201 (find_free_slot): Fix prototype.
16202 * util/getroot.c (grub_util_is_dmraid): Make static.
16203 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
16204 Add missing prototype.
16205 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
16206
16207 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
16208
16209 * loader/i386/linux.c (grub_linux_setup_video): Handle error
16210 appropriately.
16211
16212 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
16213
16214 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
16215 code out.
16216
16217 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
16218
16219 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
16220 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
16221 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
16222 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
16223 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
16224 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
16225
16226 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
16227
16228 * include/grub/err.h (grub_err_printf): Don't export.
16229
16230 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
16231
16232 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
16233
16234 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
16235
16236 * include/grub/i18n.h (grub_gettext_dummy): Removed.
16237 * kern/misc.c (grub_gettext_dummy): Make static.
16238
16239 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
16240
16241 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
16242 by non-valid ones.
16243 * kern/term.c (grub_putchar): Likewise.
16244
16245 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
16246
16247 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
16248 buggy hook call and memory leak.
16249
16250 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
16251
16252 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
16253
16254 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
16255
16256 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
16257
16258 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
16259
16260 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
16261 modevar.
16262 Return grub_errno on allocation error.
16263
16264 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
16265
16266 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
16267
16268 2010-02-06 Yves Blusseau <blusseau@zetam.org>
16269
16270 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
16271 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
16272
16273 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
16274
16275 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
16276 non-pxe disk.
16277 (grub_pxefs_open): Likewise.
16278
16279 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
16280
16281 * util/grub.d/10_hurd.in: Add --class information to menuentries.
16282 * util/grub.d/10_kfreebsd.in: Likewise.
16283 * util/grub.d/10_linux.in: Likewise.
16284
16285 2010-02-06 Colin D Bennett <colin@gibibit.com>
16286
16287 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
16288 (gfxmenu_mod_SOURCES): New variable.
16289 (gfxmenu_mod_CFLAGS): Likewise.
16290 (gfxmenu_mod_LDFLAGS): Likewise.
16291 * include/grub/term.h (grub_term_set_current_output): Declare
16292 argument as const.
16293 * docs/gfxmenu-theme-example.txt: New file.
16294 * gfxmenu/gfxmenu.c: Likewise.
16295 * gfxmenu/gui_box.c: Likewise.
16296 * gfxmenu/gui_canvas.c: Likewise.
16297 * gfxmenu/gui_circular_progress.c: Likewise.
16298 * gfxmenu/gui_image.c: Likewise.
16299 * gfxmenu/gui_label.c: Likewise.
16300 * gfxmenu/gui_list.c: Likewise.
16301 * gfxmenu/gui_progress_bar.c: Likewise.
16302 * gfxmenu/gui_string_util.c: Likewise.
16303 * gfxmenu/gui_util.c: Likewise.
16304 * gfxmenu/icon_manager.c: Likewise.
16305 * gfxmenu/model.c: Likewise.
16306 * gfxmenu/named_colors.c: Likewise.
16307 * gfxmenu/theme_loader.c: Likewise.
16308 * gfxmenu/view.c: Likewise.
16309 * gfxmenu/widget-box.c: Likewise.
16310 * include/grub/gfxmenu_model.h: Likewise.
16311 * include/grub/gfxmenu_view.h: Likewise.
16312 * include/grub/gfxwidgets.h: Likewise.
16313 * include/grub/gui.h: Likewise.
16314 * include/grub/gui_string_util.h: Likewise.
16315 * include/grub/icon_manager.h: Likewise.
16316
16317 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
16318
16319 Agglomerate scrolling in gfxterm.
16320
16321 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
16322 (grub_virtual_screen_setup): Initialise 'total_screen'.
16323 (write_char): Split to ...
16324 (paint_char): ... this ...
16325 (write_char): ... and this.
16326 (paint_char): Handle delayed scrolling.
16327 (draw_cursor): Likewise.
16328 (scroll_up): Split to ...
16329 (real_scroll): ... this ...
16330 (scroll_up): ... and this.
16331 (real_scroll): Handle multi-line scroll and draw below-the-bottom
16332 characters.
16333 (grub_gfxterm_refresh): Call real_scroll.
16334
16335 2010-02-06 Colin D Bennett <colin@gibibit.com>
16336
16337 * include/grub/misc.h (grub_iscntrl): New inline function.
16338 (grub_isalnum): Likewise.
16339 (grub_strtol): Likewise.
16340
16341 2010-02-06 Colin D Bennett <colin@gibibit.com>
16342
16343 * normal/menu_text.c (get_entry_number): Move from here ...
16344 * normal/menu.c (get_entry_number): ... moved here.
16345 * include/grub/menu.h (grub_menu_get_default_entry_index):
16346 New prototype.
16347 * normal/menu.c (grub_menu_get_default_entry_index): New function.
16348 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
16349 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
16350 (grub_menu_viewer_should_return): Likewise.
16351 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
16352 * normal/menu_text.c (run_menu): Enable menu switching.
16353 * normal/menu_viewer.c (should_return): New variable.
16354 (menu_viewer_changed): Likewise.
16355 (grub_menu_viewer_show_menu): Handle menu viewer changes.
16356 (grub_menu_viewer_should_return): New function.
16357 (menuviewer_write_hook): Likewise.
16358 (grub_menu_viewer_init): Likewise.
16359
16360 2010-02-06 Colin D Bennet <colin@gibibit.com>
16361 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
16362
16363 Support for gfxterm in a window.
16364
16365 * include/grub/gfxterm.h: New file.
16366 * include/grub/video.h (struct grub_video_rect): New declaration.
16367 (grub_video_rect_t): Likewise.
16368 * term/gfxterm.c (struct grub_gfxterm_window): New type.
16369 (refcount): New variable.
16370 (render_target): Likewise.
16371 (window): Likewise.
16372 (repaint_callback): Likewise.
16373 (grub_virtual_screen_setup): Use 'render_target'.
16374 (init_window): New function.
16375 (grub_gfxterm_init_window): Likewise.
16376 (grub_gfxterm_init): Check reference counter.
16377 Use init_window.
16378 (destroy_window): New function.
16379 (grub_gfxterm_destroy_window): Likewise.
16380 (grub_gfxterm_fini): Check reference counter.
16381 Use destroy_window.
16382 (redraw_screen_rect): Restore viewport.
16383 Use 'render_target' and 'window'.
16384 Call 'repaint_callback'.
16385 (write_char): Use 'render_target'.
16386 (draw_cursor): Likewise.
16387 (scroll_up): Restore viewport.
16388 Use 'render_target' and 'window'.
16389 Call 'repaint_callback'.
16390 (grub_gfxterm_cls): Likewise.
16391 (grub_gfxterm_refresh): Use 'window'.
16392 (grub_gfxterm_set_repaint_callback): New function.
16393 (grub_gfxterm_background_image_cmd): Use 'window'.
16394 (grub_gfxterm_get_term): New function.
16395 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
16396
16397 2010-02-06 Colin D Bennett <colin@gibibit.com>
16398
16399 Bitmap scaling support.
16400
16401 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
16402 (bitmap_scale_mod_SOURCES): New variable.
16403 (bitmap_scale_mod_CFLAGS): Likewise.
16404 (bitmap_scale_mod_LDFLAGS): Likewise.
16405 * include/grub/bitmap_scale.h: New file.
16406 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
16407 (background_image_cmd_options): New variable.
16408 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
16409 (cmd): Rename and change type to ...
16410 (background_image_cmd_handle): ... this. All users updated.
16411 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
16412 * video/bitmap_scale.c: New file.
16413
16414 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
16415
16416 SDL support.
16417
16418 * Makefile.in (LIBSDL): New variable.
16419 (enable_grub_emu_sdl): Likewise.
16420 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
16421 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
16422 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
16423 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
16424 * util/sdl.c: New file.
16425
16426 2010-02-06 Colin D Bennett <colin@gibibit.com>
16427 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
16428
16429 Double buffering support.
16430
16431 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
16432 * include/grub/video.h: Update comment.
16433 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
16434 New type.
16435 (grub_video_fb_doublebuf_blit_init): New prototype.
16436 * term/gfxterm.c (scroll_up): Support double buffering.
16437 (grub_gfxterm_refresh): Likewise.
16438 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
16439 (grub_video_fb_doublebuf_blit_init): Likewise.
16440 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
16441 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
16442 'displayed_page', 'render_page' and 'update_screen'.
16443 (grub_video_vbe_fini): Free offscreen buffer.
16444 (doublebuf_pageflipping_commit): New function.
16445 (doublebuf_pageflipping_update_screen): Likewise.
16446 (doublebuf_pageflipping_init): Likewise.
16447 (double_buffering_init): Likewise.
16448 (grub_video_vbe_setup): Enable doublebuffering.
16449 (grub_video_vbe_swap_buffers): Implement.
16450 (grub_video_vbe_set_active_render_target): Handle double buffering.
16451 (grub_video_vbe_get_active_render_target): Likewise.
16452 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
16453 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
16454 (grub_video_vbe_enable_double_buffering): Likewise.
16455 (grub_video_vbe_swap_buffers): Use update_screen.
16456 (grub_video_set_mode): Use double buffering.
16457
16458 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
16459
16460 * maintainance/gentrigtables.py: Remove.
16461 * lib/trig.c: Likewise.
16462
16463 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
16464
16465 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
16466 `trigtables.c'.
16467 (trigtables.c): New rule.
16468 (gentrigtables): Likewise.
16469 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
16470
16471 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
16472
16473 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
16474 integer constants.
16475
16476 2010-02-06 Colin D Bennet <colin@gibibit.com>
16477
16478 Trigonometry support.
16479
16480 * include/grub/trig.h: New file.
16481 * lib/trig.c: Likewise.
16482 * maintainance/gentrigtables.py: Likewise.
16483 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
16484 (trig_mod_SOURCES): New variable.
16485 (trig_mod_CFLAGS): Likewise.
16486 (trig_mod_LDFLAGS): Likewise.
16487
16488 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
16489
16490 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
16491 disk devices.
16492
16493 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
16494
16495 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
16496 error.
16497
16498 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
16499
16500 * util/hostdisk.c (open_device): Don't use partition device when reading
16501 before the partition.
16502 (grub_util_biosdisk_read): Don't read from partition and before the
16503 partition in single operation.
16504 (grub_util_biosdisk_write): Don't write to partition and before the
16505 partition in single operation.
16506
16507 2010-02-03 Torsten Landschoff <torsten@debian.org>
16508
16509 * kern/disk.c (grub_disk_read): Fix offset computation when reading
16510 last sectors.
16511
16512 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
16513
16514 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
16515 CDROM reads.
16516 (grub_biosdisk_write): Refuse to write to CDROM.
16517
16518 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
16519
16520 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
16521
16522 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
16523
16524 * font/font.c (find_glyph): Check that bmp_idx is available before
16525 using it.
16526 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
16527 with (font == NULL).
16528
16529 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
16530
16531 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
16532
16533 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
16534
16535 * include/grub/script_sh.h (sourcecode): Add const qualifier.
16536 * util/grub-script-check.c (getline): Fix empty lines case.
16537
16538 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
16539
16540 * Makefile.in (check): Exit with fail status when one of the tests
16541 fails.
16542 * tests/example_functional_test.c (example_test): Fix reversed assert.
16543 * tests/example_unit_test.c (example_test): Likewise.
16544
16545 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
16546
16547 * util/grub.d/10_linux.in: This script does not use any of the
16548 contents of gettext.sh, only the external command `gettext', so stop
16549 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
16550 the same prefix as GRUB.)
16551 * util/grub.d/10_kfreebsd.in: Likewise.
16552
16553 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
16554
16555 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
16556 of the line.
16557
16558 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
16559
16560 * kern/disk.c (grub_disk_read): Fix offset computation when reading
16561 last sectors.
16562
16563 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
16564
16565 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
16566 having a 4KiB and not 32KiB buffer size.
16567
16568 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
16569
16570 * util/hostfs.c: Include `<errno.h>'.
16571 (grub_hostfs_read): Handle errors from fseeko() and fread().
16572
16573 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
16574
16575 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
16576 loop when using read hooks on files whose size isn't sector-aligned.
16577
16578 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
16579
16580 Remove unused parameter.
16581
16582 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
16583 (grub_iso9660_open): Remove initialization of `data->length'.
16584
16585 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
16586
16587 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
16588 memleak conditions.
16589
16590 2010-01-27 Carles Pina i Estany <carles@pina.cat>
16591
16592 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
16593 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
16594
16595 2010-01-26 Carles Pina i Estany <carles@pina.cat>
16596
16597 * util/bin2h.c (usage): Fix warning (space after backslash).
16598
16599 2010-01-26 Carles Pina i Estany <carles@pina.cat>
16600
16601 * font/font.c: Include `grub/fontformat.h.
16602 Remove font file format constants.
16603 (grub_font_load): Use the new macros.
16604 * include/grub/fontformat.h: New file.
16605 * util/grub-mkfont.c: Include `grub/fontformat.c'.
16606 (write_font_pf2): Use the new macros.
16607
16608 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
16609
16610 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
16611 does.
16612
16613 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
16614
16615 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
16616
16617 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
16618 (_start): Macroify `0x7F'.
16619
16620 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
16621 (make_install_device): Use "(pxe)" as fallback prefix when booting
16622 via PXE.
16623
16624 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
16625
16626 * configure.ac: Reset LIBS after check for libgcc symbols.
16627
16628 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
16629
16630 * util/hostdisk.c (open_device): Add trailing newline to debug
16631 message.
16632
16633 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
16634
16635 * configure.ac: Check for `limits.h'.
16636 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
16637
16638 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
16639
16640 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
16641 capitalize error strings.
16642
16643 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
16644
16645 * util/grub.d/10_hurd.in: Add a recovery mode.
16646
16647 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
16648
16649 * configure.ac: Check for libgcc symbols with -nostdlib.
16650
16651 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
16652
16653 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
16654
16655 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
16656
16657 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
16658 stack since heap may be unavailable at that point.
16659 (grub_ofconsole_gotoxy): Likewise.
16660
16661 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
16662
16663 * configure.ac: Check for _restgpr_14_x.
16664 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
16665 and _savegpr_* prototypes.
16666
16667 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
16668
16669 Use generic grub_reboot() for i386-efi.
16670
16671 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
16672 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
16673 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
16674
16675 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
16676
16677 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
16678 presence of "prefix" variable as it breaks when normal.mod is
16679 embedded.
16680
16681 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
16682
16683 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
16684 stack since heap is unavailable at that point.
16685
16686 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
16687
16688 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
16689 (grub_freebsd_bootinfo): Rewritten.
16690 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
16691
16692 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
16693
16694 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
16695
16696 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
16697
16698 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
16699 domain now.
16700
16701 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
16702
16703 * util/misc.c (make_system_path_relative_to_its_root): Change the work
16704 around for handling "/" to the correct fix. Fix a memory leak. Use
16705 xstrdup instead of strdup.
16706
16707 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16708
16709 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
16710
16711 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16712
16713 Optimise glyph lookup by Basic Multilingual Plane lookup array.
16714
16715 * font/font.c (struct grub_font): New member 'bmp_idx'.
16716 (font_init): Initialise 'bmp_idx'.
16717 (load_font_index): Fill 'bmp_idx'.
16718 (find_glyph): Make inline. Use bmp_idx for BMP characters.
16719
16720 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16721
16722 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
16723 unnecessary calls.
16724
16725 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16726
16727 Move context handling out of the kernel.
16728
16729 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
16730 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
16731 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
16732 * conf/i386-efi.rmk: Likewise.
16733 * conf/i386-ieee1275.rmk: Likewise.
16734 * conf/i386-pc.rmk: Likewise.
16735 * conf/powerpc-ieee1275.rmk: Likewise.
16736 * conf/sparc64-ieee1275.rmk: Likewise.
16737 * conf/x86_64-efi.rmk: Likewise.
16738 * include/grub/env.h: Include grub/menu.h.
16739 (grub_env_var_type): Removed.
16740 (grub_env_var): Replaced field 'type' with 'global'.
16741 (grub_env_find): New prototype.
16742 (grub_env_context_open): Remove EXPORT_FUNC.
16743 (grub_env_context_close): Likewise.
16744 (grub_env_export): Likewise.
16745 (grub_env_set_data_slot): Removed.
16746 (grub_env_get_data_slot): Likewise.
16747 (grub_env_unset_data_slot): Likewise.
16748 (grub_env_unset_menu): New prototype.
16749 (grub_env_set_menu): Likewise.
16750 (grub_env_get_menu): Likewise.
16751 * include/grub/env_private.h: New file.
16752 * include/grub/normal.h (grub_context_init): New prototype.
16753 (grub_context_fini): Likewise.
16754 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
16755 * normal/context.c (grub_cmd_export): ... to here.
16756 * kern/env.c: Include env_private.h.
16757 (HASHSZ): Moved to include/grub/env_private.h.
16758 (grub_env_context): Likewise.
16759 (grub_env_sorted_var): Likewise.
16760 (current_context): Renamed from this ...
16761 (grub_current_context): ...to this. 'static' removed. All users updated.
16762 (grub_env_find): Removed 'static'.
16763 (grub_env_context_open): Moved to normal/context.c.
16764 (grub_env_context_close): Likewise.
16765 (grub_env_export): Likewise.
16766 (mangle_data_slot_name): Removed.
16767 (grub_env_set_data_slot): Likewise.
16768 (grub_env_get_data_slot): Likewise.
16769 (grub_env_unset_data_slot): Likewise.
16770 * kern/main.c (grub_set_root_dev): Don't export root.
16771 It will be done later.
16772 (grub_main): Don't export prefix.
16773 It will be done later.
16774 * normal/context.c: New file.
16775 * normal/main.c (free_menu): Use grub_env_unset_menu.
16776 (grub_normal_add_menu_entry): Use grub_env_get_menu.
16777 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
16778 (GRUB_MOD_INIT(normal)): Call grub_context_init.
16779 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
16780
16781 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16782
16783 setpci support.
16784
16785 * commands/setpci.c: New file.
16786 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
16787 (setpci_mod_SOURCES): New variable.
16788 (setpci_mod_CFLAGS): Likewise.
16789 (setpci_mod_LDFLAGS): Likewise.
16790
16791 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16792
16793 Byte-addressable PCI configuration space.
16794
16795 * bus/pci.c (grub_pci_make_address): Use byte address instead of
16796 dword address.
16797 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
16798 GRUB_PCI_REG_CACHELINE.
16799 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
16800 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
16801 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
16802 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
16803 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
16804 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
16805 grub_pci_make_address.
16806 (lock_rom_area): Likewise.
16807 * commands/lspci.c (grub_lspci_iter): Use macroses
16808 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
16809 of grub_pci_make_address.
16810 * disk/ata.c (grub_ata_pciinit): Likewise.
16811 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
16812 (GRUB_PCI_REG_VENDOR): Likewise.
16813 (GRUB_PCI_REG_DEVICE): Likewise.
16814 (GRUB_PCI_REG_COMMAND): Likewise.
16815 (GRUB_PCI_REG_STATUS): Likewise.
16816 (GRUB_PCI_REG_REVISION): Likewise.
16817 (GRUB_PCI_REG_CLASS): Likewise.
16818 (GRUB_PCI_REG_CACHELINE): Likewise.
16819 (GRUB_PCI_REG_LAT_TIMER): Likewise.
16820 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
16821 (GRUB_PCI_REG_BIST): Likewise.
16822 (GRUB_PCI_REG_ADDRESSES): Likewise.
16823 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
16824 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
16825 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
16826 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
16827 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
16828 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
16829 (GRUB_PCI_REG_CIS_POINTER): Likewise.
16830 (GRUB_PCI_REG_SUBVENDOR): Likewise.
16831 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
16832 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
16833 (GRUB_PCI_REG_CAP_POINTER): Likewise.
16834 (GRUB_PCI_REG_IRQ_LINE): Likewise.
16835 (GRUB_PCI_REG_IRQ_PIN): Likewise.
16836 (GRUB_PCI_REG_MIN_GNT): Likewise.
16837 (GRUB_PCI_REG_MAX_LAT): Likewise.
16838 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
16839 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
16840 * video/efi_uga.c (find_framebuf): Likewise.
16841 * video/sm712.c (grub_video_sm712_setup): Likewise.
16842 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
16843 space.
16844
16845 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
16846
16847 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
16848 can be reliably determined to be supported.
16849
16850 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
16851
16852 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
16853 that VESA is supported.
16854 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
16855 supported.
16856
16857 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16858
16859 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
16860
16861 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
16862
16863 * util/misc.c (make_system_path_relative_to_its_root): Work around
16864 special-casing of "/", as previous incarnation of this routine did.
16865
16866 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16867
16868 Fix any-emu compilation.
16869
16870 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
16871 * grub_bin2h_SOURCES: New variable.
16872
16873 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
16874
16875 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
16876
16877 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
16878
16879 * util/grub.d/00_header.in: Fix handling of locale_dir.
16880
16881 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16882
16883 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
16884 as possible unifont location (Gentoo).
16885 Reported by: Alexander Brüning
16886
16887 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16888
16889 Don't try to generate lists for kernel.img.
16890
16891 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
16892 (pkglib_MODULES): Remove kernel.img.
16893 (kernel_img_EXPORTS): Removed.
16894 (kernel_img_RELOCATABLE): New variable.
16895 * conf/x86_64-efi.rmk: Likewise.
16896 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
16897
16898 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16899
16900 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
16901 grub_xasprintf or grub_snprintf.
16902 (grub_vsprintf): Likewise.
16903 (grub_snprintf): New proto.
16904 (grub_vsnprintf): Likewise.
16905 (grub_xasprintf): Likewise.
16906 (grub_xvasprintf): Likewise.
16907 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
16908 (grub_sprintf): Removed.
16909 (grub_vsnprintf): New function.
16910 (grub_snprintf): Likewise.
16911 (grub_xvasprintf): Likewise.
16912 (grub_xasprintf): Likewise.
16913 (grub_vsprintf): Renamed to ...
16914 (grub_vsnprintf_real): ...this. New argument max_len.
16915
16916 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
16917
16918 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
16919 fix grub-script-check warning.
16920
16921 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16922
16923 * include/grub/font.h (grub_font_load): Fix prototype.
16924
16925 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16926
16927 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
16928
16929 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16930
16931 * include/grub/x86_64/at_keyboard.h: New file.
16932
16933 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16934
16935 * loader/mips/linux.c: Include missing grub/i18n.h.
16936
16937 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
16938
16939 * normal/menu.c (notify_execution_failure): Clarify error message.
16940
16941 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
16942
16943 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
16944 return value (and revert all return statements). Update users.
16945
16946 2010-01-20 Dan Merillat <debian@dan.merillat.org>
16947
16948 * kern/device.c (grub_device_iterate): Allocate new part_ent
16949 structure based on sizeof (*p) rather than sizeof (p->next), to
16950 account for structure padding.
16951
16952 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
16953 disk is NULL, which might happen for LVM physical volumes with no
16954 LVM signature.
16955
16956 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
16957
16958 * loader/mips/linux.c (grub_cmd_initrd)
16959 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
16960
16961 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
16962
16963 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
16964 (grub_video_video_init, grub_video_bitmap_init)
16965 (grub_font_manager_init, grub_term_gfxterm_init)
16966 (grub_at_keyboard_init): New extern declarations.
16967 (grub_machine_init): Initialize gfxterm and at_keyboard.
16968
16969 * kern/main.c (grub_main): Revert grub_printf delay kludge.
16970
16971 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
16972 `gfxterm.mod' into core image.
16973
16974 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
16975 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
16976 (kernel_img_FORMAT): Copy to ...
16977
16978 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
16979 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
16980 (kernel_img_FORMAT): ... here, and ...
16981
16982 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
16983 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
16984 (kernel_img_FORMAT): ... here.
16985
16986 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
16987 and input (at_keyboard) terminals in kernel.
16988 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
16989
16990 (pkglib_MODULES): Remove `pci.mod'.
16991 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
16992 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
16993 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
16994 (at_keyboard_mod_LDFLAGS): Remove variables.
16995
16996 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
16997
16998 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
16999
17000 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
17001
17002 * include/grub/mips/libgcc.h: Only export symbols for functions
17003 that libgcc provides.
17004
17005 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
17006
17007 MIPS support.
17008
17009 * bus/bonito.c: New file.
17010 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
17011 GRUB_PCI_NUM_DEVICES.
17012 * term/i386/pc/serial.c: Move to ...
17013 * term/serial.c: ... here. All users updated.
17014 * util/i386/pc/grub-mkimage.c: Move to ...
17015 * util/grub-mkrawimage.c: ... here. All users updated.
17016 * term/i386/pc/at_keyboard.c: Move to ...
17017 * term/at_keyboard.c: ... here. All users updated.
17018 * conf/mips-qemu-mips.rmk: New file.
17019 * conf/mips-yeeloong.rmk: Likewise.
17020 * conf/mips.rmk: Likewise.
17021 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
17022 mipsel-qemu-mips.
17023 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
17024 to port addresses.
17025 (grub_ata_pciinit): Support CS5536.
17026 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
17027 * font/font_cmd.c (loadfont_command): Open file before passing it to
17028 grub_font_load.
17029 (pseudo_file_read): New function.
17030 (pseudo_file_close): Likewise.
17031 (pseudo_fs): New structure.
17032 (load_font_module): New function.
17033 (GRUB_MOD_INIT(font_manager)): Load embedded font.
17034 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
17035 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
17036 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
17037 * include/grub/i386/at_keyboard.h: Split into ...
17038 * include/grub/at_keyboard.h: ... this ...
17039 * include/grub/i386/at_keyboard.h: ... and this.
17040 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
17041 New prototype.
17042 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
17043 updated.
17044 (grub_elf64_size): Likewise.
17045 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
17046 filename.
17047 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
17048 * include/grub/i386/coreboot/serial.h: Rewritten.
17049 * include/grub/i386/ieee1275/serial.h: Include
17050 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
17051 * include/grub/i386/pc/serial.h: Moved from here ...
17052 * include/grub/serial.h: ... to here. All users updated.
17053 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
17054 (GRUB_PCI_NUM_BUS): Likewise.
17055 (GRUB_PCI_NUM_DEVICES): Likewise.
17056 (grub_pci_device_map_range): Add missing volatile keyword.
17057 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
17058 * include/grub/mips/at_keyboard.h: New file.
17059 * include/grub/mips/cache.h: Likewise.
17060 * include/grub/mips/io.h: Likewise.
17061 * include/grub/mips/kernel.h: Likewise.
17062 * include/grub/mips/libgcc.h: Likewise.
17063 * include/grub/mips/pci.h: Likewise.
17064 * include/grub/mips/qemu-mips/boot.h: Likewise.
17065 * include/grub/mips/qemu-mips/kernel.h: Likewise.
17066 * include/grub/mips/qemu-mips/loader.h: Likewise.
17067 * include/grub/mips/qemu-mips/memory.h: Likewise.
17068 * include/grub/mips/qemu-mips/serial.h: Likewise.
17069 * include/grub/mips/qemu-mips/time.h: Likewise.
17070 * include/grub/mips/relocator.h: Likewise.
17071 * include/grub/mips/time.h: Likewise.
17072 * include/grub/mips/types.h: Likewise.
17073 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
17074 * include/grub/mips/yeeloong/boot.h: Likewise.
17075 * include/grub/mips/yeeloong/kernel.h: Likewise.
17076 * include/grub/mips/yeeloong/loader.h: Likewise.
17077 * include/grub/mips/yeeloong/memory.h: Likewise.
17078 * include/grub/mips/yeeloong/pci.h: Likewise.
17079 * include/grub/mips/yeeloong/serial.h: Likewise.
17080 * include/grub/mips/yeeloong/time.h: Likewise.
17081 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
17082 * kern/elf.c (grub_elf32_size): New parameter. All users
17083 updated.
17084 (grub_elf64_size): Likewise.
17085 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
17086 Load modules before saying "Welcome to GRUB!".
17087 Call grub_refresh after saying "Welcome to GRUB!".
17088 * kern/mips/cache.S: New file.
17089 * kern/mips/cache_flush.S: Likewise.
17090 * kern/mips/dl.c: Likewise.
17091 * kern/mips/init.c: Likewise.
17092 * kern/mips/qemu-mips/init.c: Likewise.
17093 * kern/mips/startup.S: Likewise.
17094 * kern/mips/yeeloong/init.c: Likewise.
17095 * kern/term.c (grub_putcode): Handle NULL terminal.
17096 (grub_getcharwidth): Likewise.
17097 (grub_getkey): Likewise.
17098 (grub_checkkey): Likewise.
17099 (grub_getkeystatus): Likewise.
17100 (grub_getxy): Likewise.
17101 (grub_getwh): Likewise.
17102 (grub_gotoxy): Likewise.
17103 (grub_cls): Likewise.
17104 (grub_setcolorstate): Likewise.
17105 (grub_setcolor): Likewise.
17106 (grub_getcolor): Likewise.
17107 (grub_refresh): Likewise.
17108 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
17109 (write_jump): Add hatch nop.
17110 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
17111 * lib/mips/setjmp.S: New file.
17112 * loader/mips/linux.c: Likewise.
17113 * term/i386/pc/at_keyboard.c: Move from here ...
17114 * term/at_keyboard.c: ... to here.
17115 * term/i386/pc/serial.c: Moved from here ...
17116 * term/serial.c: ... to here. All users updated.
17117 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
17118 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
17119 (serial_translate_key_sequence): Avoid deadlock.
17120 (grub_serial_getkey): Handle backspace.
17121 (grub_serial_putchar): Fix newline handling.
17122 * util/i386/pc/grub-mkimage.c: Move from here ...
17123 * util/grub-mkrawimage.c: ... to here. All users updated.
17124 (generate_image): New parameters 'font_path' and 'format'.
17125 Support embedding font.
17126 Use grub_host_to_target* instead of grub_cpu_to_le*.
17127 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
17128 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
17129 (options): New option "--font".
17130 (usage): Likewise.
17131 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
17132 (main): Handle "--font".
17133 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
17134 (grub_virtual_screen_setup): Set bg_color_display.
17135 (redraw_screen_rect): Use bg_color_display instead of incorrect
17136 bg_color.
17137 (grub_gfxterm_cls): Likewise.
17138 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
17139 Support embedding config file.
17140 (add_segments): Likewise.
17141 (options): New option "--config".
17142 (main): Handle "--config".
17143 * video/sm712.c: New file.
17144
17145 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
17146
17147 Fix parallel builds.
17148
17149 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
17150 font.c depend on ascii.h).
17151
17152 2010-01-12 Carles Pina i Estany <carles@pina.cat>
17153
17154 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
17155
17156 2010-01-11 Carles Pina i Estany <carles@pina.cat>
17157
17158 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
17159 By default: disabled.
17160 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
17161 parameter.
17162
17163 2010-01-10 Carles Pina i Estany <carles@pina.cat>
17164
17165 * font/font.c: Update copyright years.
17166 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
17167
17168 2010-01-10 Carles Pina i Estany <carles@pina.cat>
17169
17170 * font/font.c: Include `ascii.h'.
17171 (ASCII_BITMAP_SIZE): New macro.
17172 (ascii_font_glyph): Define.
17173 (ascii_glyph_lookup): New function.
17174 (grub_font_get_string_width): Change comment. If glyph not found, use
17175 ascii_glyph_lookup.
17176 (grub_font_get_glyph_with_fallback): If glyph not available returns
17177 ascii_glyph_lookup.
17178 * util/grub-mkfont.c (file_formats): New enum.
17179 (options): Add `ascii-bitmaps' new option.
17180 (usage): Add `asii-bitmaps' new option.
17181 (write_font_ascii_bitmap): New function.
17182 (write_font): Rename to ...
17183 (write_font_p2): ... this. Remove print_glyphs call.
17184 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
17185 used. Call print_glyphs.
17186 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
17187
17188 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
17189
17190 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
17191 (grub_bin2h_SOURCES): New variable.
17192 * util/bin2h.c: New file.
17193
17194 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
17195
17196 * include/multiboot.h: Resynced with spec.
17197 * include/multiboot2.h: Likewise.
17198 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
17199 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
17200
17201 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
17202
17203 * include/grub/term.h (grub_term_register_input,
17204 grub_term_register_output): Check return of terminal init()
17205 routines, and abort if errors are raised.
17206
17207 * commands/terminal.c: Update copyright year.
17208
17209 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
17210
17211 * commands/terminal.c (grub_cmd_terminal_input)
17212 (grub_cmd_terminal_output): Check return of terminal init()
17213 routines, and abort if errors are raised.
17214
17215 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
17216
17217 * include/grub/i386/bsd.h: Fix include pathes.
17218
17219 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
17220
17221 Add missing *BSD copyright headers.
17222
17223 * include/grub/aout.h: Add BSD licence.
17224 * include/grub/i386/bsd.h: Parts under different licences moved to ...
17225 * include/grub/i386/freebsd_linker.h: ... here,
17226 * include/grub/i386/freebsd_reboot.h: ... here,
17227 * include/grub/i386/netbsd_bootinfo.h: ... here,
17228 * include/grub/i386/netbsd_reboot.h: ... here,
17229 * include/grub/i386/openbsd_bootarg.h: ... here,
17230 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
17231 licence to each file.
17232
17233 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
17234
17235 * acinclude.m4: Remove `nop' assembly instruction; it's not
17236 implemented by all architectures.
17237
17238 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
17239
17240 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
17241 ELILO. This is no longer necessary.
17242
17243 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
17244
17245 Added new tool, grub-scrit-check to verify grub.cfg syntax.
17246
17247 * util/grub-script-check.c: grub-script-check tool.
17248 * conf/common.rmk: Make rules for grub-script-check.
17249
17250 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
17251
17252 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
17253 spotting it back in 2008. Shame on me for forgetting he did.
17254
17255 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
17256
17257 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
17258
17259 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
17260 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
17261 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
17262 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
17263 (GRUB_VIDEO_TYPE_EFI): Rename to ...
17264 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
17265
17266 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
17267
17268 * include/grub/test.h: Add license header.
17269 * tests/example_functional_test.c: Likewise.
17270 * tests/example_unit_test.c: Likewise.
17271 * tests/lib/functional_test.c: Likewise.
17272 * tests/lib/test.c: Likewise.
17273 * tests/lib/unit_test.c: Likewise.
17274
17275 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
17276
17277 Use flag-based instead of hook-based video mode selection and "auto"
17278 keyword.
17279
17280 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
17281 (grub_video_set_mode): Changed prototype. All users updated.
17282 (grub_video_check_mode_flag): New inline function.
17283 * video/video.c (parse_modespec): New function.
17284 (grub_video_set_mode): Parse flags and keywords.
17285
17286 2010-01-17 Carles Pina i Estany <carles@pina.cat>
17287
17288 * util/misc.c (grub_util_info): Fix the order of the parameters in a
17289 fprintf call.
17290
17291 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
17292
17293 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
17294
17295 2010-01-16 Carles Pina i Estany <carles@pina.cat>
17296
17297 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
17298 string.
17299 * util/grub-emu.c (usage): Likewise.
17300 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
17301 * util/i386/efi/grub-mkimage.c (usage): Likewise.
17302 * util/i386/pc/grub-mkimage.c (usage): Likewise.
17303 * util/i386/pc/grub-setup.c (usage): Likewise.
17304
17305 2010-01-16 Carles Pina i Estany <carles@pina.cat>
17306
17307 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
17308 the message.
17309 (grub_util_info): Likewise.
17310 (grub_util_error): Likewise.
17311 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
17312 and/or new lines in `grub_util_warna', `grub_util_info',
17313 `grub_util_error' calls.
17314 * util/getroot.c: Likewise.
17315 * util/grub-editenv.c: Likewise.
17316 * util/grub-emu.c: Likewise.
17317 * util/grub-fstest.c: Likewise.
17318 * util/grub-mkdevicemap.c: Likewise.
17319 * util/grub-mkfont.c: Likewise.
17320 * util/grub-mkpasswd-pbkdf2.c: Likewise.
17321 * util/grub-mkrelpath.c: Likewise.
17322 * util/grub-pe2elf.c: Likewise.
17323 * util/grub-probe.c: Likewise.
17324 * util/hostdisk.c: Likewise.
17325 * util/i386/efi/grub-mkimage.c: Likewise.
17326 * util/i386/pc/grub-mkimage.c: Likewise.
17327 * util/i386/pc/grub-setup.c: Likewise.
17328 * util/ieee1275/ofpath.c: Likewise.
17329 * util/mkisofs/eltorito.c: Likewise.
17330 * util/mkisofs/rock.c: Likewise.
17331 * util/mkisofs/write.c: Likewise.
17332 * util/raid.c: Likewise.
17333 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
17334 * util/sparc64/ieee1275/grub-setup.c: Likewise.
17335
17336 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
17337
17338 Enable multiboot on non-pc.
17339
17340 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
17341 multiboot.mod and multiboot2.mod to ...
17342 * conf/i386.rmk (pkglib_MODULES): ... here.
17343 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
17344 Moved to ...
17345 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
17346 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
17347 Moved to ...
17348 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
17349 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
17350 Moved to ...
17351 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
17352 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
17353 Moved to ...
17354 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
17355 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
17356 relocator.mod.
17357 (ata_mod_SOURCES): Removed.
17358 (ata_mod_CFLAGS): Likewise.
17359 (ata_mod_LDFLAGS): Likewise.
17360 (relocator_mod_SOURCES): Removed.
17361 (relocator_mod_CFLAGS): Likewise.
17362 (relocator_mod_ASFLAGS): Likewise.
17363 (relocator_mod_LDFLAGS): Likewise.
17364 Include i386.mk.
17365 * include/grub/x86_64/multiboot.h: New file.
17366 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
17367 Terminate EFI.
17368
17369 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
17370
17371 Video multiboot support.
17372
17373 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
17374 New prototype.
17375 * include/multiboot.h: Resynced with multiboot specification.
17376 * include/multiboot2.h: Likewise.
17377 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
17378 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
17379 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
17380 (HAS_VGA_TEXT): Likewise.
17381 (accepts_video): New variable.
17382 (grub_multiboot_set_accepts_video): New function.
17383 (grub_multiboot_get_mbi_size): Account for video structures.
17384 (set_video_mode): New function.
17385 (retrieve_video_parameters): Likewise.
17386 (grub_multiboot_make_mbi): Fill video fields.
17387
17388 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
17389
17390 Video driver ids.
17391
17392 * include/grub/video.h (grub_video_driver_id): New type.
17393 (grub_video_adapter): New member 'id'. All users updated.
17394 (grub_video_get_driver_id): New proto.
17395 * video/video.c (grub_video_get_driver_id): New function.
17396
17397 2010-01-14 Carles Pina i Estany <carles@pina.cat>
17398
17399 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
17400 `var=val'.
17401
17402 2010-01-14 Carles Pina i Estany <carles@pina.cat>
17403
17404 * normal/cmdline.c (print_completion): Gettextizze.
17405
17406 2001-01-14 Carles Pina i Estany <carles@pina.cat>
17407
17408 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
17409
17410 2010-01-14 Carles Pina i Estany <carles@pina.cat>
17411
17412 * gettext/gettext.c (grub_gettext_translate): Push and pop
17413 grub_errno.
17414 (grub_gettext_delete_list): Change comment style.
17415 * kern/err.c (grub_error): Gettextizze.
17416 (grub_fatal): Gettextizze.
17417
17418 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
17419
17420 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
17421 (grub_linux16_real_boot): ... this.
17422 * kern/i386/loader.S: Likewise.
17423 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
17424 (grub_linux16_boot): New function. Switches to text mode and calls
17425 grub_linux16_real_boot().
17426
17427 * loader/i386/bsd.c: Include `<grub/video.h>'.
17428 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
17429 text mode before calling grub_unix_real_boot().
17430
17431 * loader/i386/multiboot.c: Include `<grub/video.h>'.
17432 (grub_multiboot_boot): Switch to text mode before calling
17433 grub_relocator32_boot().
17434
17435 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
17436 (grub_chainloader_boot): Switch to text mode before calling
17437 grub_chainloader_real_boot().
17438
17439 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
17440 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
17441
17442 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
17443 non-empty value.
17444
17445 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
17446 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
17447
17448 * util/grub.d/00_header.in: Define a "savedefault" function for use
17449 in menu entries.
17450 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
17451
17452 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
17453 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
17454
17455 * util/grub-mkconfig_lib.in (save_default_entry): Only set
17456 saved_entry if boot_once is unset.
17457 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
17458 previous saved entry (i.e. grub-reboot).
17459
17460 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
17461
17462 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
17463
17464 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
17465
17466 * util/grub.d/00_header.in: Use `set var=val' rather than plain
17467 `var=val'.
17468 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
17469
17470 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
17471
17472 * util/grub-reboot.in: Fix --version output.
17473 * util/grub-set-default.in: Likewise.
17474
17475 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
17476
17477 * util/grub.d/00_header.in: Silently ignore zero-sized environment
17478 blocks.
17479
17480 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
17481
17482 * util/grub.d/00_header.in: Quote the value assigned to `default',
17483 in case it contains spaces.
17484
17485 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
17486
17487 * util/grub.d/30_os-prober.in: Fix merge error that moved a
17488 `save_default_entry' call from the macosx case to the linux case.
17489
17490 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17491 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
17492
17493 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
17494 in `chosen' environment variable.
17495 * normal/menu_text.c (get_entry_number): Check if the variable
17496 matches the title of a menu entry.
17497 (run_menu): Pass menu to get_entry_number.
17498
17499 * util/grub-reboot.in: New file.
17500 * util/grub-set-default.in: New file.
17501 * conf/common.rmk (grub-reboot): New utility.
17502 (grub-set-default): New utility.
17503
17504 * util/grub-mkconfig_lib.in (save_default_entry): New function.
17505 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
17506 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
17507 move it to `saved_entry' for the next boot. Load environment on
17508 initialisation.
17509 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
17510 * util/grub.d/10_hurd.in: Likewise.
17511 * util/grub.d/10_linux.in (linux_entry): Likewise.
17512 * util/grub.d/10_windows.in: Likewise.
17513 * util/grub.d/30_os-prober.in: Likewise.
17514
17515 * util/grub-install.in: Create environment block.
17516 * util/i386/efi/grub-install.in: Likewise.
17517 * util/ieee1275/grub-install.in: Likewise.
17518 * util/sparc64/ieee1275/grub-install.in: Likewise.
17519
17520 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
17521
17522 Unit testing framework for GRUB.
17523
17524 * Makefile.in: Test framework build rules for 'make check'.
17525 * conf/tests.rmk: Build rules for individual tests and framework.
17526
17527 * include/grub/test.h: Header file for whitebox tests.
17528 * tests/lib/functional_test.c: Framework support for whitebox
17529 functional tests.
17530 * tests/lib/test.c: Common whitebox testing code for unit and
17531 functional tests.
17532 * tests/lib/unit_test.c: Framework support for whitebox unit
17533 tests.
17534
17535 * tests/util/grub-shell-tester.in: Support utility for grub-script
17536 tests.
17537 * tests/util/grub-shell.in: Utility to execute grub-script
17538 commands in a Qemu instance.
17539
17540 * tests/example_functional_test.c: Example whitebox functional
17541 test.
17542 * tests/example_grub_script_test.in: Example grub-script test.
17543 * tests/example_scripted_test.in: Example scripted test.
17544 * tests/example_unit_test.c: Example whitebox unit test.
17545
17546 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
17547
17548 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
17549 Add loader/i386/multiboot_mbi.c.
17550 (multiboot2_mod_SOURCES): Likewise.
17551 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
17552 (multiboot2_mod_SOURCES): Likewise.
17553 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
17554 (grub_multiboot_make_mbi): Likewise.
17555 (grub_multiboot_free_mbi): Likewise.
17556 (grub_multiboot_init_mbi): Likewise.
17557 (grub_multiboot_add_module): Likewise.
17558 (grub_multiboot_set_bootdev): Likewise.
17559 * loader/i386/multiboot.c (mbi): Removed.
17560 (mbi_dest): Likewise.
17561 (alloc_mbi): New variable.
17562 (grub_multiboot_payload_size): Removed. All users updated.
17563 (grub_multiboot_pure_size): New variable.
17564 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
17565 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
17566 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
17567 (grub_fill_multiboot_mmap): Likewise.
17568 (grub_multiboot_get_bootdev): Likewise.
17569 (grub_multiboot): Use multiboot_mbi functions.
17570 * loader/i386/multiboot_mbi.c: New file.
17571
17572 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
17573
17574 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
17575 it would result in module crash.
17576
17577 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
17578
17579 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
17580 (grub_ofconsole_getwh): Split to ...
17581 (grub_ofconsole_getwh): ... this.
17582 (grub_ofconsole_dimensions): ...and this.
17583 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
17584
17585 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
17586
17587 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
17588
17589 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
17590
17591 * loader/i386/pc/multiboot2.c: Removed stalled file.
17592
17593 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
17594
17595 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
17596 Reported by: Grégoire Sutre
17597
17598 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
17599
17600 * util/misc.c (canonicalize_file_name): New function.
17601 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
17602 instead of realpath().
17603
17604 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
17605
17606 * util/grub-install.in (usage): Clarify meaning of --root-directory,
17607 and make it clearer that it's optional. Based on confusion
17608 witnessed on IRC.
17609
17610 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
17611
17612 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
17613 in premature implicit newline.
17614
17615 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
17616
17617 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
17618 which resulted in garbled command line at the end of screen.
17619
17620 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
17621
17622 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
17623 initialization with similar approach as with other Linux loaders.
17624
17625 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
17626
17627 Fix i386-ieee1275 build.
17628
17629 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
17630 and grub_term_height() for video_{width,height} initialization.
17631
17632 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
17633
17634 Fix grub-emu build.
17635
17636 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
17637
17638 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
17639 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
17640
17641 Support for multiple terminals.
17642
17643 * Makefile.in (pkglib_DATA): terminal.lst.
17644 (terminal.lst): New target.
17645 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
17646 (GRUB_MOD_INIT(handler)): Likewise.
17647 (GRUB_MOD_FINI(handler)): Likewise.
17648 * commands/help.c (grub_cmd_help): Handle multiple terminals.
17649 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
17650 * commands/sleep.c (do_print): Use grub_term_restore_pos.
17651 (grub_cmd_sleep): Use grub_term_save_pos.
17652 * commands/terminal.c: New file.
17653 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
17654 commands/terminal.c and lib/charset.c.
17655 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
17656 (pkglib_MODULES): Add terminal.mod.
17657 (terminal_mod_SOURCES): New variable.
17658 (terminal_mod_CFLAGS): Likewise.
17659 (terminal_mod_LDFLAGS): Likewise.
17660 * genhandlerlist.sh: Don't handle terminals.
17661 * genmk.rb: Generate terminal-*.lst.
17662 * genterminallist.sh: New file.
17663 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
17664 (grub_is_valid_utf8): Likewise.
17665 (grub_utf8_to_ucs4_alloc): Likewise.
17666 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
17667 (grub_menu_register_viewer): Changed argument.
17668 (grub_menu_try_text): New proto.
17669 (grub_gfxmenu_try_hook): New declaration.
17670 * include/grub/normal.h (grub_normal_exit_level): New declaration.
17671 (grub_menu_init_page): Additional argument term.
17672 (grub_normal_init_page): Likewise.
17673 (grub_cmdline_get): Arguments simplified.
17674 (grub_utf8_to_ucs4_alloc): Removed.
17675 (grub_print_ucs4): Additional argument term.
17676 (grub_getstringwidth): Likewise.
17677 (grub_print_message_indented): Likewise.
17678 (grub_menu_text_register_instances): New proto.
17679 (grub_show_menu): Likewise.
17680 (read_terminal_list): Likewise.
17681 (grub_set_more): Likewise.
17682 * include/grub/parser.h: Include handler.h.
17683 * include/grub/reader.h: Rewritten.
17684 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
17685 (GRUB_TERM_WIDTH): Changed to function.
17686 (GRUB_TERM_HEIGHT): Likewise.
17687 (GRUB_TERM_BORDER_WIDTH): Likewise.
17688 (GRUB_TERM_BORDER_HEIGHT): Likewise.
17689 (GRUB_TERM_NUM_ENTRIES): Likewise.
17690 (GRUB_TERM_ENTRY_WIDTH): Likewise.
17691 (GRUB_TERM_CURSOR_X): Likewise.
17692 (grub_term_input_class): Likewise.
17693 (grub_term_output_class): Likewise.
17694 (grub_term_outputs_disabled): New declaration.
17695 (grub_term_inputs_disabled): Likewise.
17696 (grub_term_outputs): Likewise.
17697 (grub_term_inputs): Likewise.
17698 (grub_term_register_input): Rewritten.
17699 (grub_term_register_output): Likewise.
17700 (grub_term_unregister_input): Likewise.
17701 (grub_term_unregister_output): Likewise.
17702 (FOR_ACTIVE_TERM_INPUTS): New macro.
17703 (FOR_DISABLED_TERM_INPUTS): Likewise.
17704 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
17705 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
17706 * include/grub/terminfo.h: Add oterm argument to all protypes.
17707 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
17708 Use grub_rescue_run.
17709 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
17710 All users updated.
17711 * kern/reader.c: Removed. All users updated.
17712 * kern/rescue_reader.c (grub_rescue_init): Removed.
17713 (grub_rescue_reader): Likewise.
17714 (grub_register_rescue_reader): Likewise.
17715 (grub_rescue_run): New function based on kern/reader.c.
17716 * kern/term.c: Adapted for multiterm.
17717 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
17718 (grub_is_valid_utf8): Likewise.
17719 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
17720 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
17721 right terminal.
17722 * loader/i386/linux.c (grub_linux_boot): Likewise.
17723 * normal/auth.c (grub_username_get): New function.
17724 (grub_auth_check_authentication): Use grub_username_get.
17725 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
17726 * normal/color.c: Adapt for multiterm.
17727 * normal/main.c (read_config_file): Don't use grub_reader_loop.
17728 (grub_normal_init_page): Additional argument term.
17729 (read_lists): Call read_terminal_lists.
17730 (grub_enter_normal_mode): Call grub_cmdline_run.
17731 Handle grub_normal_exit_level.
17732 (grub_cmd_normal): Make reentrant.
17733 (grub_cmd_normal_exit): New function.
17734 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
17735 * normal/menu.c: Adapt for multiterm.
17736 * normal/menu_entry.c: Likewise.
17737 * normal/menu_text.c: Likewise.
17738 * normal/menu_viewer.c: Removed. All users updated.
17739 * normal/term.c: New file.
17740 * util/console.c: Change order of includes to workaround a bug in
17741 ncurses headers.
17742 * term/terminfo.c: New argument oterm on all exported functions.
17743 All users updated.
17744 * util/grub-editenv.c (grub_term_input_class): Removed.
17745 (grub_term_output_class): Likewise.
17746
17747 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
17748
17749 Make loader output a bit more user-friendly.
17750
17751 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
17752 is being loaded. Likewise for the Hurd.
17753
17754 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
17755 that kernel of FreeBSD ${version} is being loaded.
17756
17757 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
17758 grub_dprintf().
17759 (grub_cmd_initrd): Likewise.
17760 * util/grub.d/10_linux.in (linux_entry): Print message indicating
17761 that Linux ${version} is being loaded. Likewise for initrd.
17762
17763 2010-01-09 Carles Pina i Estany <carles@pina.cat>
17764
17765 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
17766
17767 2010-01-08 Carles Pina i Estany <carles@pina.cat>
17768
17769 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
17770 (GRUB_MOD_INIT): Gettextizze.
17771 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
17772 (GRUB_MOD_INIT): Gettextizze.
17773 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
17774 (grub_cmd_linux): Capitalise Linux.
17775 (GRUB_MOD_INIT): Gettextizze.
17776 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
17777 (grub_cmd_linux): Capitalise Linux.
17778 (GRUB_MOD_INIT): Gettextizze.
17779 * loader/i386/linux.c: Include `<grub/i18n.h>'.
17780 (grub_cmd_linux): Capitalise Linux.
17781 (GRUB_MOD_INIT): Gettextizze.
17782 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
17783 (GRUB_MOD_INIT): Gettextizze.
17784 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
17785 (grub_cmd_linux): Capitalise Linux.
17786 (GRUB_MOD_INIT): Gettextizze.
17787 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
17788 (grub_cpu_xnu_init): Gettextizze.
17789 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
17790 (GRUB_MOD_INIT): Gettextizze.
17791 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
17792 (GRUB_MOD_INIT): Gettextizze.
17793 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
17794 (grub_linux_load64): Capitalise Linux.
17795 (GRUB_MOD_INIT): Gettextizze.
17796 * loader/xnu.c: Include `<grub/i18n.h>'.
17797 (GRUB_MOD_INIT): Gettextizze.
17798 * po/POTFILES: Add `loader/efi/appleloader.c',
17799 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
17800 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
17801 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
17802 `loader/i386/xnu.c', `loader/multiboot_loader.c',
17803 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
17804 and `loader/xnu.c'.
17805
17806 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
17807
17808 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
17809
17810 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
17811
17812 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
17813 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
17814 * util/mkisofs/mkisofs.c (main): Readjust --version output.
17815
17816 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
17817
17818 Reset Multiboot 2 support. New loader implements the draft in
17819 /branches/multiboot2 and shares as much code as possible with the
17820 production Multiboot 1 implementation.
17821
17822 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
17823 * loader/multiboot2.c: Likewise.
17824 * loader/i386/multiboot_helper.S: Likewise.
17825 * include/multiboot2.h: Replace with latest version from the draft
17826 in /branches/multiboot2.
17827
17828 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
17829 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
17830 and `loader/multiboot2.c'.
17831 (pkglib_MODULES): Add `multiboot2.mod'.
17832 (multiboot2_mod_SOURCES): New variable.
17833 (multiboot2_mod_LDFLAGS): Likewise.
17834 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
17835
17836 * conf/i386-pc.rmk: Likewise.
17837
17838 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
17839 (multiboot_mod_SOURCES): Remove variable.
17840 (multiboot_mod_LDFLAGS): Likewise.
17841 (multiboot_mod_CFLAGS): Likewise.
17842
17843 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
17844 `<multiboot2.h>' instead of `<multiboot.h>'.
17845 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
17846 (MULTIBOOT_HEADER_MAGIC): New macros.
17847
17848 * loader/multiboot_loader.c (module_version_status): Remove variable.
17849 (find_multi_boot2_header): Remove function.
17850 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
17851 logic. Always check for the Multiboot version we're compiling for.
17852 (grub_cmd_module_loader): Likewise.
17853 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
17854 command instead of `multiboot'.
17855
17856 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
17857
17858 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
17859 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
17860 all users.
17861
17862 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
17863 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
17864
17865 Fix breakage introduced with previous commit.
17866
17867 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
17868 commands.
17869 * normal/handler.c (read_handler_list): Revert part of previous commit
17870 affecting this file.
17871 * normal/main.c (read_lists): Move read_handler_list() call back to ...
17872 (grub_normal_execute): ... here.
17873
17874 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
17875
17876 Merge prefix-redefinition-fix branch.
17877
17878 * normal/autofs.c (read_fs_list): Make function capable of being
17879 run multiple times, gracefuly replacing the previous data
17880 structures.
17881 * normal/dyncmd.c (read_command_list): Likewise.
17882 * normal/handler.c (read_handler_list): Likewise.
17883 * normal/main.c (read_lists): New function. Calls all the
17884 list reading functions.
17885 (grub_normal_execute): Use read_lists() instead of calling all
17886 list reading functions explicitly. Register read_lists() as a
17887 variable hook attached to ${prefix}.
17888
17889 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
17890
17891 Merge crypto branch.
17892
17893 * Makefile.in (pkglib_DATA): Add crypto.lst.
17894 (crypto.lst): New target.
17895 * commands/hashsum.c: New file.
17896 * commands/password.c (check_password): Use grub_crypto_memcmp.
17897 * commands/password_pbkdf2.c: New file.
17898 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
17899 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
17900 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
17901 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
17902 -I$(srcdir)/lib/libgcrypt_wrap.
17903 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
17904 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
17905 password_pbkdf2.mod.
17906 (crypto_mod_SOURCES): New variable.
17907 (crypto_mod_CFLAGS): Likewise.
17908 (crypto_mod_LDFLAGS): Likewise.
17909 (hashsum_mod_SOURCES): New variable.
17910 (hashsum_mod_CFLAGS): Likewise.
17911 (hashsum_mod_LDFLAGS): Likewise.
17912 (pbkdf2_mod_SOURCES): New variable.
17913 (pbkdf2_mod_CFLAGS): Likewise.
17914 (pbkdf2_mod_LDFLAGS): Likewise.
17915 (password_pbkdf2_mod_SOURCES): New variable.
17916 (password_pbkdf2_mod_CFLAGS): Likewise.
17917 (password_pbkdf2_mod_LDFLAGS): Likewise.
17918 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
17919 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
17920 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
17921 Include conf/gcry.rmk.
17922 * include/grub/auth.h: Rewritten.
17923 * include/grub/crypto.h: New file.
17924 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
17925 * include/grub/normal.h (read_crypto_list): New prototype.
17926 * lib/crypto.c: New file.
17927 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
17928 * lib/pbkdf2.c: Likewise.
17929 * normal/auth.c (grub_auth_strcmp): Removed.
17930 (grub_iswordseparator): Likewise.
17931 (grub_auth_strword): Likewise.
17932 (is_authenticated): Use grub_strword.
17933 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
17934 and grub_strword. Pass entered password to authentication callback.
17935 * normal/crypto.c: New file.
17936 * normal/main.c: Call read_crypto_list.
17937 * util/grub-mkpasswd-pbkdf2.c: New file.
17938 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
17939
17940 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
17941
17942 Fix descent and ascent calculation.
17943
17944 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
17945 (options): New option "asce".
17946 (usage): Likewise.
17947 (add_char): Ignore invalid glyphs for descent calculation.
17948 Calculate ascent from actual content.
17949 (print_glyphs): Use 'asce'.
17950 (write_font): Likewise. Allow ascent override.
17951 (main): Handle "asce" option.
17952
17953 2010-01-06 Carles Pina i Estany <carles@pina.cat>
17954
17955 * kern/err.c: Include `<grub/i18n.h>'.
17956 (grub_print_error): Add full stop. Gettextizze.
17957 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
17958 (grub_bsd_load_elf): Capitalise ELF.
17959 (grub_cmd_freebsd_loadenv): Add `s' in error string.
17960 (grub_cmd_freebsd_module): Likewise.
17961 (grub_cmd_freebsd_module_elf): Likewise.
17962 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
17963
17964 2010-01-06 Carles Pina i Estany <carles@pina.cat>
17965
17966 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
17967 * commands/search_file.c (HELP_MESSAGE): New macro.
17968 * commands/search_label.c (HELP_MESSAGE): Likewise.
17969 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
17970 * po/POTFILES: Add `commands/search_file.c',
17971 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
17972 `commands/search.c'.
17973
17974 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
17975
17976 * config.rpath: Update from Gnulib.
17977
17978 2010-01-05 Yves Blusseau <blusseau@zetam.org>
17979
17980 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
17981
17982 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
17983
17984 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
17985
17986 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
17987
17988 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
17989 arguments to fread so that we get a return value in bytes, rather
17990 than something that will normally be rounded down to 0.
17991 Adjust error handling to avoid producing garbage when size_t is not
17992 the same size as long long.
17993
17994 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
17995
17996 * util/mkisofs/write.c (padblock_write): Check return value of
17997 fread.
17998
17999 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
18000
18001 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
18002 floppy images now.
18003
18004 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
18005
18006 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
18007
18008 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
18009 instead of manual alignment.
18010 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
18011 verbose). Avoid attempts to read past end of the device
18012 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
18013 but GRUB_DISK_CACHE_SIZE may exceed that).
18014
18015 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
18016
18017 * commands/crc.c (grub_cmd_crc): Abort on read errors.
18018 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
18019 it to upper layer.
18020
18021 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
18022
18023 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
18024 New constant.
18025 (grub_efi_piwg_device_path): New structure
18026 (grub_efi_piwg_device_path_t): New type.
18027 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
18028 (devpath_1): Transform to a structure. All users updated.
18029 (devpath_2): Likewise.
18030 (devpath_3): Likewise.
18031 (devpath_4): Likewise.
18032 (devpath_5): Likewise.
18033
18034 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
18035
18036 * loader/efi/appleloader.c: Restored. Update all users.
18037
18038 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
18039
18040 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
18041
18042 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
18043 (struct boot_blocklist): Move from here ...
18044 * include/grub/i386/pc/boot.h [ASM_FILE]
18045 (struct grub_boot_blocklist): ... to here. Update all users.
18046 (setup): Only initialize `start' member of `first_block'
18047 structure. Add assert() calls to verify the other members.
18048
18049 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
18050 (generate_image): Fix broken blocklist length initialization.
18051 Add assert() call to verify blocklist `segment' field.
18052
18053 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
18054
18055 * loader/efi/appleloader.c: Remove. Update all users.
18056
18057 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
18058
18059 * boot/i386/pc/boot.S: Update copyright year.
18060 * boot/i386/pc/cdboot.S: Likewise.
18061 * boot/i386/pc/diskboot.S: Likewise.
18062 * boot/i386/pc/lnxboot.S: Likewise.
18063 * boot/i386/pc/pxeboot.S: Likewise.
18064 * bus/pci.c: Likewise.
18065 * commands/cmp.c: Likewise.
18066 * commands/help.c: Likewise.
18067 * commands/hexdump.c: Likewise.
18068 * commands/i386/pc/halt.c: Likewise.
18069 * commands/i386/pc/play.c: Likewise.
18070 * commands/i386/pc/vbeinfo.c: Likewise.
18071 * commands/ls.c: Likewise.
18072 * commands/test.c: Likewise.
18073 * disk/dmraid_nvidia.c: Likewise.
18074 * disk/i386/pc/biosdisk.c: Likewise.
18075 * disk/ieee1275/nand.c: Likewise.
18076 * disk/ieee1275/ofdisk.c: Likewise.
18077 * disk/lvm.c: Likewise.
18078 * disk/raid.c: Likewise.
18079 * disk/raid6_recover.c: Likewise.
18080 * disk/scsi.c: Likewise.
18081 * fs/affs.c: Likewise.
18082 * fs/cpio.c: Likewise.
18083 * fs/ext2.c: Likewise.
18084 * fs/hfs.c: Likewise.
18085 * fs/iso9660.c: Likewise.
18086 * fs/ntfs.c: Likewise.
18087 * fs/sfs.c: Likewise.
18088 * fs/udf.c: Likewise.
18089 * fs/ufs.c: Likewise.
18090 * fs/xfs.c: Likewise.
18091 * gencmdlist.sh: Likewise.
18092 * genmk.rb: Likewise.
18093 * include/grub/disk.h: Likewise.
18094 * include/grub/efi/api.h: Likewise.
18095 * include/grub/efi/efi.h: Likewise.
18096 * include/grub/efi/pe32.h: Likewise.
18097 * include/grub/elf.h: Likewise.
18098 * include/grub/fs.h: Likewise.
18099 * include/grub/i386/at_keyboard.h: Likewise.
18100 * include/grub/i386/pc/memory.h: Likewise.
18101 * include/grub/i386/pc/vbe.h: Likewise.
18102 * include/grub/i386/pci.h: Likewise.
18103 * include/grub/i386/tsc.h: Likewise.
18104 * include/grub/ieee1275/ieee1275.h: Likewise.
18105 * include/grub/ntfs.h: Likewise.
18106 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
18107 * include/grub/sparc64/libgcc.h: Likewise.
18108 * include/grub/symbol.h: Likewise.
18109 * include/grub/types.h: Likewise.
18110 * include/multiboot2.h: Likewise.
18111 * io/gzio.c: Likewise.
18112 * kern/device.c: Likewise.
18113 * kern/disk.c: Likewise.
18114 * kern/efi/efi.c: Likewise.
18115 * kern/efi/mm.c: Likewise.
18116 * kern/elf.c: Likewise.
18117 * kern/file.c: Likewise.
18118 * kern/i386/dl.c: Likewise.
18119 * kern/i386/pc/init.c: Likewise.
18120 * kern/i386/pc/startup.S: Likewise.
18121 * kern/ieee1275/ieee1275.c: Likewise.
18122 * kern/ieee1275/init.c: Likewise.
18123 * kern/main.c: Likewise.
18124 * kern/mm.c: Likewise.
18125 * kern/powerpc/dl.c: Likewise.
18126 * kern/sparc64/dl.c: Likewise.
18127 * kern/x86_64/dl.c: Likewise.
18128 * lib/hexdump.c: Likewise.
18129 * loader/efi/appleloader.c: Likewise.
18130 * loader/i386/ieee1275/linux.c: Likewise.
18131 * loader/i386/pc/chainloader.c: Likewise.
18132 * loader/i386/pc/linux.c: Likewise.
18133 * loader/i386/pc/multiboot2.c: Likewise.
18134 * loader/ieee1275/multiboot2.c: Likewise.
18135 * loader/multiboot2.c: Likewise.
18136 * loader/multiboot_loader.c: Likewise.
18137 * loader/powerpc/ieee1275/linux.c: Likewise.
18138 * normal/completion.c: Likewise.
18139 * normal/menu_entry.c: Likewise.
18140 * partmap/apple.c: Likewise.
18141 * util/grub.d/10_hurd.in: Likewise.
18142 * util/hostfs.c: Likewise.
18143 * video/readers/png.c: Likewise.
18144
18145 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
18146
18147 * include/grub/misc.h (GNUC_PREREQ): New macro.
18148 (ATTRIBUTE_ERROR): New macro.
18149 * include/grub/list.h (grub_bad_type_cast_real): Use
18150 ATTRIBUTE_ERROR.
18151
18152 2010-01-03 Carles Pina i Estany <carles@pina.cat>
18153
18154 * normal/menu_text.c (print_message): Change messages.
18155
18156 2010-01-03 Carles Pina i Estany <carles@pina.cat>
18157
18158 * normal/menu_entry.c (store_completion): Gettextizze.
18159
18160 2010-01-03 Carles Pina i Estany <carles@pina.cat>
18161
18162 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
18163
18164 2010-01-03 Carles Pina i Estany <carles@pina.cat>
18165
18166 * po/POTFILES: Sort correctly.
18167
18168 2010-01-03 Carles Pina i Estany <carles@pina.cat>
18169
18170 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
18171 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
18172 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
18173 full stop.
18174 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
18175 summary. Gettextizze the strings.
18176 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
18177 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
18178 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
18179 full stop.
18180 (GRUB_MOD_INIT): Remove command name from summary.
18181 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
18182 summary.
18183 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
18184 * term/i386/pc/serial.c (options): Add full stops.
18185 (GRUB_MOD_INIT): Remove command name from the summary.
18186
18187 2010-01-03 Carles Pina i Estany <carles@pina.cat>
18188
18189 * commands/acpi.c: Gettextizze help strings and/or options. Include
18190 `grub/i18n.h' if needed.
18191 * commands/blocklist.c: Likewise.
18192 * commands/boot.c: Likewise.
18193 * commands/cat.c: Likewise.
18194 * commands/cmp.c: Likewise.
18195 * commands/configfile.c: Likewise.
18196 * commands/crc.c: Likewise.
18197 * commands/date.c: Likewise.
18198 * commands/echo.c: Likewise.
18199 * commands/efi/fixvideo.c: Likewise.
18200 * commands/efi/loadbios.c: Likewise.
18201 * commands/gptsync.c: Likewise.
18202 * commands/halt.c: Likewise.
18203 * commands/handler.c: Likewise.
18204 * commands/hdparm.c: Likewise.
18205 * commands/hexdump.c: Likewise.
18206 * commands/i386/cpuid.c: Likewise.
18207 * commands/i386/pc/drivemap.c: Likewise.
18208 * commands/i386/pc/halt.c: Likewise.
18209 * commands/i386/pc/pxecmd.c: Likewise.
18210 * commands/i386/pc/vbeinfo.c: Likewise.
18211 * commands/i386/pc/vbetest.c: Likewise.
18212 * commands/ieee1275/suspend.c: Likewise.
18213 * commands/keystatus.c: Likewise.
18214 * commands/loadenv.c: Likewise.
18215 * commands/ls.c: Likewise.
18216 * commands/lsmmap.c: Likewise.
18217 * commands/lspci.c: Likewise.
18218 * commands/memrw.c: Likewise.
18219 * commands/minicmd.c: Likewise.
18220 * commands/parttool.c: Likewise.
18221 * commands/password.c: Likewise.
18222 * commands/probe.c: Likewise.
18223 * commands/read.c: Likewise.
18224 * commands/reboot.c: Likewise.
18225 * commands/search.c: Likewise.
18226 * commands/sleep.c: Likewise.
18227 * commands/test.c: Likewise.
18228 * commands/true.c: Likewise.
18229 * commands/usbtest.c: Likewise.
18230 * commands/videotest.c: Likewise.
18231 * commands/xnu_uuid.c: Likewise.
18232 * disk/loopback.c: Likewise.
18233 * hello/hello.c: Likewise.
18234 * loader/i386/bsd.c: Likewise.
18235 * term/i386/pc/serial.c: Likewise.
18236 * po/POTFILES: Add new files.
18237
18238 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
18239
18240 * term/i386/pc/at_keyboard.c
18241 (keyboard_controller_wait_untill_ready): Rename to ...
18242 (keyboard_controller_wait_until_ready): ... this. Update all users.
18243
18244 2010-01-01 Carles Pina i Estany <carles@pina.cat>
18245
18246 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
18247 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
18248 string using string width.
18249 * normal/menu_text.c (grub_print_message_indented): Use
18250 grub_print_spaces and not print_spaces.
18251 (print_timeout): Likewise.
18252 (print_spaces): Move to...
18253 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
18254
18255 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
18256
18257 Import from Gnulib.
18258
18259 * gnulib/getdelim.c: New file.
18260 * gnulib/getline.c: Likewise.
18261
18262 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
18263
18264 * include/grub/list.h (grub_assert_fail): Removed.
18265 (grub_bad_type_cast_real): New function.
18266 (grub_bad_type_cast): New macro.
18267 (GRUB_AS_LIST): Use grub_bad_type_cast.
18268 (GRUB_AS_LIST_P): Likewise.
18269 (GRUB_AS_NAMED_LIST): Likewise.
18270 (GRUB_AS_NAMED_LIST_P): Likewise.
18271 (GRUB_AS_PRIO_LIST): Likewise.
18272 (GRUB_AS_PRIO_LIST_P): Likewise.
18273 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
18274
18275 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
18276
18277 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
18278 Fix syntax error.
18279
18280 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
18281
18282 * configure.ac: Check for TARGET_CFLAGS initialization before we
18283 initialize it ourselves (sigh).
18284 Move a few modifications to TARGET_CFLAGS to be unconditional
18285 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
18286 eh_frame)
18287
18288 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
18289 * term/i386/pc/at_keyboard.c
18290 (keyboard_controller_wait_untill_ready): Likewise.
18291 (keyboard_controller_led): Rename `led_status' paramter to avoid
18292 name conflict.
18293
18294 2009-12-28 Carles Pina i Estany <carles@pina.cat>
18295
18296 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
18297 quotes.
18298
18299 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
18300
18301 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
18302
18303 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
18304
18305 * normal/menu_text.c (grub_print_message_indented): Prevent
18306 past-the-end-of-array dereference.
18307
18308 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
18309
18310 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
18311 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
18312
18313 2009-12-27 Carles Pina i Estany <carles@pina.cat>
18314
18315 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
18316 * normal/main.c (grub_normal_read_line): Remove a space from the
18317 default prompt.
18318
18319 2009-12-27 Carles Pina i Estany <carles@pina.cat>
18320
18321 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
18322 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
18323 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
18324 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
18325 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
18326 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
18327 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
18328
18329 2009-12-26 Carles Pina i Estany <carles@pina.cat>
18330
18331 * video/readers/jpeg.c (cmd): Declare.
18332 (grub_cmd_jpegtest): Use `grub_command_t' type.
18333 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
18334 Assign to `cmd'.
18335 (GRUB_MOD_FINI): Use `cmd' to unregister.
18336 * video/readers/png.c (cmd): Declare.
18337 (grub_cmd_pngtest): Use `grub_command_t' type.
18338 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
18339 Assign to `cmd'.
18340 (GRUB_MOD_FINI): Use `cmd' to unregister.
18341 * video/readers/tga.c (cmd): Declare.
18342 (grub_cmd_tgatest): Use `grub_command_t' type.
18343 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
18344 Assign to `cmd'.
18345 (GRUB_MOD_FINI): Use `cmd' to unregister.
18346
18347 2009-12-26 Carles Pina i Estany <carles@pina.cat>
18348
18349 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
18350 stops.
18351 * kern/corecmd.c (grub_register_core_commands): Likewise.
18352 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
18353 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
18354 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
18355 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
18356 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
18357 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
18358 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
18359 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
18360 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
18361 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
18362 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
18363 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
18364 * normal/handler.c (insert_handler): Likewise.
18365 * normal/main.c (GRUB_MOD_INIT): Likewise.
18366 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
18367
18368 2009-12-26 Carles Pina i Estany <carles@pina.cat>
18369
18370 * commands/help.c (grub_cmd_help): Print the command name before the
18371 summary.
18372 (GRUB_MOD_INIT): Remove command name from the summary.
18373 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
18374 string as summary.
18375 * lib/arg.c (find_long): Print the command name before the summary.
18376 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
18377 summary.
18378 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
18379 * commands/cat.c (GRUB_MOD_INIT): Likewise.
18380 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
18381 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
18382 * commands/crc.c (GRUB_MOD_INIT): Likewise.
18383 * commands/date.c (GRUB_MOD_INIT): Likewise.
18384 * commands/echo.c (GRUB_MOD_INIT): Likewise.
18385 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
18386 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
18387 * commands/handler.c (GRUB_MOD_INIT): Likewise.
18388 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
18389 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
18390 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
18391 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
18392 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
18393 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
18394 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
18395 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
18396 * commands/ls.c (GRUB_MOD_INIT): Likewise.
18397 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
18398 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
18399 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
18400 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
18401 * commands/password.c (GRUB_MOD_INIT): Likewise.
18402 * commands/probe.c (GRUB_MOD_INIT): Likewise.
18403 * commands/read.c (GRUB_MOD_INIT): Likewise.
18404 * commands/search.c (GRUB_MOD_INIT): Likewise.
18405 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
18406 * commands/test.c (GRUB_MOD_INIT): Likewise.
18407 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
18408 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
18409 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
18410 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
18411 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
18412 * lib/arg.c (GRUB_MOD_INIT): Likewise.
18413 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
18414 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
18415 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
18416 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
18417 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
18418 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
18419 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
18420 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
18421
18422 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
18423
18424 Use search command for preliminar UUID search.
18425
18426 * commands/search.c: Split into ...
18427 * commands/search_wrap.c: ...this
18428 * commands/search.c: ...and this.
18429 * commands/search_file.c: New file.
18430 * commands/search_label.c: New file.
18431 * commands/search_uuid.c: New file.
18432 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
18433 Add commands/search_wrap.c, commands/search_file.c,
18434 commands/search_label.c and commands/search_uuid.c.
18435 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
18436 (search_mod_SOURCES): Set to commands/search_wrap.c.
18437 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
18438 search_label.mod.
18439 (search_fs_file_mod_SOURCES): New variable.
18440 (search_fs_file_mod_CFLAGS): Likewise.
18441 (search_fs_file_mod_LDFLAGS): Likewise.
18442 (search_label_mod_SOURCES): Likewise.
18443 (search_label_mod_CFLAGS): Likewise.
18444 (search_label_mod_LDFLAGS): Likewise.
18445 (search_fs_uuid_mod_SOURCES): New variable.
18446 (search_fs_uuid_mod_CFLAGS): Likewise.
18447 (search_fs_uuid_mod_LDFLAGS): Likewise.
18448 (fs_file_mod_SOURCES): Removed.
18449 (fs_file_mod_CFLAGS): Likewise.
18450 (fs_file_mod_LDFLAGS): Likewise.
18451 (fs_uuid_mod_SOURCES): Removed.
18452 (fs_uuid_mod_CFLAGS): Likewise.
18453 (fs_uuid_mod_LDFLAGS): Likewise.
18454 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
18455 Set to util/grub-install.in.
18456 * disk/fs_file.c: Removed.
18457 * disk/fs_uuid.c: Likewise.
18458 * include/grub/search.h: New file.
18459 * util/grub-install.in: Handle sparc64.
18460 Create and use load.cfg.
18461 * util/sparc64/ieee1275/grub-install.in: Removed.
18462
18463 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
18464
18465 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
18466 Ignore return status if CF is cleared.
18467 (grub_biosdisk_get_diskinfo_standard): Likewise.
18468
18469 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
18470
18471 * term/i386/pc/at_keyboard.c
18472 (keyboard_controller_wait_untill_ready): New function.
18473 (grub_keyboard_controller_write, grub_keyboard_controller_read)
18474 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
18475 for keyboard polling, rather than duplicate the same loop. This
18476 saves a few bytes in code size.
18477
18478 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
18479
18480 Support for (pxe[:server[:gateway]]) syntax and
18481 use environment variable for PXE.
18482
18483 * commands/i386/pc/pxecmd.c (options): Removed.
18484 (print_ip): Removed.
18485 (grub_cmd_pxe): Removed
18486 (grub_cmd_pxe_unload): New function.
18487 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
18488 (grub_pxe_your_ip): Made static.
18489 (grub_pxe_default_server_ip): Likewise.
18490 (grub_pxe_default_gateway_ip): Likewise.
18491 (grub_pxe_blksize): Likewise.
18492 (parse_ip): New function.
18493 (grub_pxe_open): Support server and gateway specification.
18494 (grub_pxe_close): Free disk->data.
18495 (grub_pxefs_open): Use disk->data.
18496 (grub_pxefs_read): Likewise.
18497 (grub_env_write_readonly): New function.
18498 (set_mac_env): Likewise.
18499 (set_env_limn_ro): Likewise.
18500 (parse_dhcp_vendor): Likewise.
18501 (grub_pxe_detect): Set the environment variables.
18502 (set_ip_env): New function.
18503 (write_ip_env): Likewise.
18504 (grub_env_write_pxe_default_server): Likewise.
18505 (grub_env_write_pxe_default_gateway): Likewise.
18506 (grub_env_write_pxe_blocksize): Likewise.
18507 (GRUB_MOD_INIT(pxe)): Set environment variables.
18508 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
18509 (grub_pxe_mac_addr_t): ... this. All users updated.
18510 (grub_pxe_your_ip): Removed.
18511 (grub_pxe_server_ip): Likewise.
18512 (grub_pxe_gateway_ip): Likewise.
18513 (grub_pxe_blksize): Likewise.
18514
18515 2009-12-25 Carles Pina i Estany <carles@pina.cat>
18516
18517 * commands/help.c: Include `<grub/i18n.h>'.
18518 (grub_cmd_help): Gettextizze.
18519 (GRUB_MOD_INIT): Likewise.
18520 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
18521 (GRUB_MOD_INIT): Gettextizze.
18522 * commands/search.c: Include `<grub/i18n.h>'.
18523 (options): Gettextizze.
18524 (GRUB_MOD_INIT): Gettextizze.
18525 * lib/arg.c: Include `<grub/i18n.h>'.
18526 (help_options): Gettextizze.
18527 (find_long): Likewise.
18528 (grub_arg_show_help): Likewise.
18529 * normal/dyncmd.c: Include `<grub/i18n.h>'.
18530 (read_command_list): Gettextizze.
18531 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
18532 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
18533
18534 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
18535
18536 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
18537 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
18538 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
18539 (led_status): New variable.
18540 (keyboard_controller_led): New function.
18541 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
18542 update led status for caps lock, num lock and scroll lock.
18543
18544 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
18545
18546 * util/hostdisk.c (open_device): Fix a comment.
18547
18548 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
18549
18550 * util/grub-install.in (host_os): New variable.
18551 * util/i386/efi/grub-install.in (host_os): Likewise.
18552
18553 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
18554
18555 * util/mkisofs/write.c (padblock_write): Abort when given an
18556 excedingly large embed image, instead of silently truncating it.
18557
18558 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
18559
18560 * include/multiboot.h: Indentation fixes.
18561
18562 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
18563
18564 * include/multiboot.h (struct multiboot_aout_symbol_table)
18565 (struct multiboot_elf_section_header_table): New structure
18566 declarations (stolen from GRUB Legacy).
18567 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
18568 table information.
18569
18570 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
18571 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
18572 type aliases.
18573
18574 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
18575
18576 * include/multiboot.h: Make comments src2texi-friendly.
18577
18578 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
18579
18580 For consistency with [multiboot]/docs/boot.S.
18581
18582 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
18583 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
18584 (MULTIBOOT_MAGIC2): Rename from this ...
18585 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
18586
18587 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
18588
18589 * include/multiboot.h: Remove `<grub/types.h>'.
18590 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
18591 types. Update all users.
18592
18593 2009-12-25 Carles Pina i Estany <carles@pina.cat>
18594
18595 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
18596 `couldn't' and `can not' by `cannot'.
18597 * commands/i386/pc/drivemap.c: Likewise.
18598 * disk/ata.c: Likewise.
18599 * disk/ieee1275/nand.c: Likewise.
18600 * fs/affs.c: Likewise.
18601 * fs/fat.c: Likewise.
18602 * fs/hfs.c: Likewise.
18603 * fs/hfsplus.c: Likewise.
18604 * fs/iso9660.c: Likewise.
18605 * fs/jfs.c: Likewise.
18606 * fs/minix.c: Likewise.
18607 * fs/reiserfs.c: Likewise.
18608 * fs/sfs.c: Likewise.
18609 * fs/udf.c: Likewise.
18610 * fs/ufs.c: Likewise.
18611 * fs/xfs.c: Likewise.
18612 * loader/powerpc/ieee1275/linux.c: Likewise.
18613 * loader/sparc64/ieee1275/linux.c: Likewise.
18614 * util/grub-probe.c: Likewise.
18615 * util/misc.c: Likewise.
18616
18617 2009-12-24 Carles Pina i Estany <carles@pina.cat>
18618
18619 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
18620 grub_errno calls.
18621 * commands/acpi.c: Likewise.
18622 * commands/blocklist.c: Likewise.
18623 * commands/efi/loadbios.c: Likewise.
18624 * commands/i386/pc/drivemap.c: Likewise.
18625 * commands/loadenv.c: Likewise.
18626 * commands/memrw.c: Likewise.
18627 * commands/password.c: Likewise.
18628 * commands/videotest.c: Likewise.
18629 * disk/ata.c: Likewise.
18630 * disk/ata_pthru.c: Likewise.
18631 * disk/dmraid_nvidia.c: Likewise.
18632 * disk/ieee1275/nand.c: Likewise.
18633 * disk/ieee1275/ofdisk.c: Likewise.
18634 * disk/loopback.c: Likewise.
18635 * disk/lvm.c: Likewise.
18636 * disk/mdraid_linux.c: Likewise.
18637 * disk/raid.c: Likewise.
18638 * disk/raid6_recover.c: Likewise.
18639 * disk/scsi.c: Likewise.
18640 * efiemu/main.c: Likewise.
18641 * efiemu/mm.c: Likewise.
18642 * efiemu/pnvram.c: Likewise.
18643 * efiemu/symbols.c: Likewise.
18644 * font/font.c: Likewise.
18645 * fs/cpio.c: Likewise.
18646 * fs/hfsplus.c: Likewise.
18647 * fs/iso9660.c: Likewise.
18648 * fs/jfs.c: Likewise.
18649 * fs/minix.c: Likewise.
18650 * fs/ntfs.c: Likewise.
18651 * fs/ntfscomp.c: Likewise.
18652 * fs/reiserfs.c: Likewise.
18653 * fs/ufs.c: Likewise.
18654 * fs/xfs.c: Likewise.
18655 * gettext/gettext.c: Likewise.
18656 * include/grub/auth.h: Likewise.
18657 * kern/elf.c: Likewise.
18658 * kern/file.c: Likewise.
18659 * kern/ieee1275/init.c: Likewise.
18660 * kern/ieee1275/mmap.c: Likewise.
18661 * kern/ieee1275/openfw.c: Likewise.
18662 * kern/powerpc/dl.c: Likewise.
18663 * kern/sparc64/dl.c: Likewise.
18664 * lib/arg.c: Likewise.
18665 * loader/i386/bsd.c: Likewise.
18666 * loader/i386/bsdXX.c: Likewise.
18667 * loader/i386/efi/linux.c: Likewise.
18668 * loader/i386/efi/xnu.c: Likewise.
18669 * loader/i386/ieee1275/linux.c: Likewise.
18670 * loader/i386/linux.c: Likewise.
18671 * loader/i386/multiboot.c: Likewise.
18672 * loader/i386/pc/linux.c: Likewise.
18673 * loader/i386/pc/multiboot2.c: Likewise.
18674 * loader/i386/xnu.c: Likewise.
18675 * loader/ieee1275/multiboot2.c: Likewise.
18676 * loader/macho.c: Likewise.
18677 * loader/machoXX.c: Likewise.
18678 * loader/multiboot2.c: Likewise.
18679 * loader/multiboot_loader.c: Likewise.
18680 * loader/powerpc/ieee1275/linux.c: Likewise.
18681 * loader/sparc64/ieee1275/linux.c: Likewise.
18682 * loader/xnu.c: Likewise.
18683 * loader/xnu_resume.c: Likewise.
18684 * mmap/i386/pc/mmap.c: Likewise.
18685 * normal/menu_viewer.c: Likewise.
18686 * partmap/acorn.c: Likewise.
18687 * partmap/amiga.c: Likewise.
18688 * partmap/apple.c: Likewise.
18689 * script/lexer.c: Likewise.
18690 * term/gfxterm.c: Likewise.
18691 * term/i386/pc/serial.c: Likewise.
18692 * term/i386/pc/vga.c: Likewise.
18693 * term/ieee1275/ofconsole.c: Likewise.
18694 * term/terminfo.c: Likewise.
18695 * video/bitmap.c: Likewise.
18696 * video/efi_gop.c: Likewise.
18697 * video/efi_uga.c: Likewise.
18698 * video/fb/video_fb.c: Likewise.
18699 * video/i386/pc/vbe.c: Likewise.
18700 * video/readers/tga.c: Likewise.
18701 * video/video.c: Likewise.
18702
18703 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
18704
18705 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
18706 * commands/lspci.c: Likewise.
18707 * commands/probe.c: Likewise.
18708 * commands/xnu_uuid.c: Likewise.
18709 * conf/i386-coreboot.rmk: Likewise.
18710 * conf/i386-efi.rmk: Likewise.
18711 * conf/i386-ieee1275.rmk: Likewise.
18712 * conf/i386-pc.rmk: Likewise.
18713 * conf/powerpc-ieee1275.rmk: Likewise.
18714 * conf/sparc64-ieee1275.rmk: Likewise.
18715 * conf/x86_64-efi.rmk: Likewise.
18716 * fs/i386/pc/pxe.c: Likewise.
18717 * gettext/gettext.c: Likewise.
18718 * include/grub/efi/graphics_output.h: Likewise.
18719 * include/grub/i386/pc/memory.h: Likewise.
18720 * kern/env.c: Likewise.
18721 * kern/i386/qemu/startup.S: Likewise.
18722 * lib/i386/pc/biosnum.c: Likewise.
18723 * lib/i386/relocator.c: Likewise.
18724 * lib/i386/relocator_asm.S: Likewise.
18725 * lib/relocator.c: Likewise.
18726 * loader/i386/bsd.c: Likewise.
18727 * loader/i386/multiboot.c: Likewise.
18728 * loader/i386/pc/chainloader.c: Likewise.
18729 * loader/i386/xnu.c: Likewise.
18730 * loader/xnu.c: Likewise.
18731 * normal/main.c: Likewise.
18732 * normal/menu_text.c: Likewise.
18733 * util/getroot.c: Likewise.
18734 * util/grub-mkconfig_lib.in: Likewise.
18735 * util/grub.d/00_header.in: Likewise.
18736 * util/i386/pc/grub-mkimage.c: Likewise.
18737 * util/mkisofs/eltorito.c: Likewise.
18738 * util/mkisofs/exclude.h: Likewise.
18739 * util/mkisofs/hash.c: Likewise.
18740 * util/mkisofs/iso9660.h: Likewise.
18741 * util/mkisofs/joliet.c: Likewise.
18742 * util/mkisofs/mkisofs.c: Likewise.
18743 * util/mkisofs/mkisofs.h: Likewise.
18744 * util/mkisofs/multi.c: Likewise.
18745 * util/mkisofs/name.c: Likewise.
18746 * util/mkisofs/rock.c: Likewise.
18747 * util/mkisofs/tree.c: Likewise.
18748 * util/mkisofs/write.c: Likewise.
18749 * video/efi_gop.c: Likewise.
18750
18751 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
18752
18753 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
18754 size counting.
18755
18756 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
18757
18758 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
18759 * genmk.rb (class SCRIPT): Modify the target file instead of source.
18760
18761 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
18762
18763 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
18764 (GRUB_MOD_INIT(memrw)): Update help line.
18765
18766 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
18767
18768 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
18769 Use grub_extcmd_t. All users updated.
18770 (options): New variable.
18771 (grub_cmd_read): Restructure for readability. Support "-v" option.
18772 (grub_cmd_write): Restructure for readability.
18773
18774 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
18775
18776 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
18777
18778 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
18779
18780 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
18781 with the actual contents of the correspondending make variable.
18782 * util/grub-mkrescue.in (pkglib_DATA): New variable.
18783 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
18784 specifying `*.lst' and `efiemu??.o'
18785
18786 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
18787
18788 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
18789 after function name.
18790 Noticed by Rene Engelhard <rene@debian.org>.
18791
18792 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
18793
18794 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
18795 (options): New variable.
18796 (iospace): Likewise.
18797 (grub_lspci_iter): List IO spaces if "-i" was given.
18798 (grub_cmd_lspci): Parse options.
18799 (GRUB_MOD_INIT(lspci)): Use extcmd.
18800 (GRUB_MOD_FINI(lspci)): Likewise.
18801
18802 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
18803
18804 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
18805 `function' keyword.
18806 Patch by Tony Mancill <tmancill@debian.org>.
18807
18808 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
18809
18810 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
18811 (grub_uhci_portstatus): Likewise.
18812 (grub_uhci_portstatus): Add necessary delay.
18813 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
18814
18815 2009-12-21 Carles Pina i Estany <carles@pina.cat>
18816
18817 * commands/acpi.c (options): Fix capitalizations and/or full stops.
18818 (GRUB_MOD_INIT): Likewise.
18819 * commands/boot.c (GRUB_MOD_INIT): Likewise.
18820 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
18821 * commands/echo.c (options): Fix capitalizations and/or full stops.
18822 * commands/efi/loadbios.c (enable_rom_area): Likewise.
18823 (enable_rom_area): Likewise.
18824 (GRUB_MOD_INIT): Likewise.
18825 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
18826 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
18827 * commands/handler.c (GRUB_MOD_INIT): Likewise.
18828 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
18829 * commands/hexdump.c (options): Likewise.
18830 * commands/i386/cpuid.c (options): Likewise.
18831 (GRUB_MOD_INIT): Likewise.
18832 * commands/i386/pc/drivemap.c (options): Likewise.
18833 (GRUB_MOD_INIT): Likewise.
18834 * commands/i386/pc/halt (options): Likewise.
18835 (GRUB_MOD_INIT): Likewise.
18836 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
18837 * commands/i386/pc/pxecmd.c (options): Likewise.
18838 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
18839 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
18840 * commands/keystatus.c (options): Likewise.
18841 (GRUB_MOD_INIT): Likewise.
18842 * commands/loadenv.c (options): Likewise.
18843 * commands/ls.c (options): Likewise.
18844 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
18845 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
18846 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
18847 * commands/parttool.c (helpmsg): Likewise.
18848 * commands/probe.c (options): Likewise.
18849 * commands/read.c (GRUB_MOD_INIT): Likewise.
18850 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
18851 * commands/search.c (options): Likewise.
18852 * commands/sleep.c (options): Likewise.
18853 * commands/test.c (GRUB_MOD_INIT): Likewise.
18854 * commands/true.c (GRUB_MOD_INIT): Likewise.
18855 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
18856 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
18857 * lib/arg.c (help_options): Likewise.
18858 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
18859 `$(XGETTEXT)'.
18860 * po/POTFILES: Add `commands/loadenv.c'.
18861
18862 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
18863
18864 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
18865 instead of specifying them explicit.
18866
18867 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
18868
18869 * NEWS: Add grub-probe support for GNU/Hurd.
18870
18871 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
18872
18873 * NEWS: gettext was added after 1.97.
18874
18875 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
18876
18877 * util/mkisofs/msdos_partition.h: New file (based on
18878 include/grub/msdos_partition.h).
18879 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
18880 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
18881 (ld_options, main): Recognize --protective-msdos-label.
18882 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
18883 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
18884 (padblock_write): If `use_protective_msdos_label' is set, patch a
18885 protective DOS-style label in the output image.
18886
18887 * util/grub-mkrescue.in: Use --protective-msdos-label.
18888
18889 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
18890
18891 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
18892 boot.
18893
18894 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
18895
18896 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
18897 variables.
18898 (ld_options, main): Recognize `--embedded-boot'.
18899 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
18900 declarations.
18901 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
18902 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
18903 (padblock_write): Likewise. Rewrite to support embedded boot image.
18904
18905 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
18906 for BIOS-based disk boot instead of only ElTorito.
18907
18908 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
18909
18910 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
18911 build (not needed for bootstrap).
18912
18913 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
18914
18915 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
18916 from i386-pc build (not needed for bootstrap).
18917 Rewrite a pair of strings.
18918
18919 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
18920
18921 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
18922
18923 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
18924
18925 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
18926
18927 2009-12-21 Andreas Born <futur.andy@googlemail.com>
18928
18929 * kern/env.c (grub_env_context_open): Mark exported variable for
18930 reexport.
18931
18932 2009-12-21 Andreas Born <futur.andy@googlemail.com>
18933
18934 * kern/env.c (grub_env_export): Create nonexistent variables before
18935 exporting.
18936
18937 2009-12-20 Carles Pina i Estany <carles@pina.cat>
18938
18939 * include/grub/auth.h: Include `<grub/i18n.h>'.
18940 (GRUB_GET_PASSWORD): Gettextizze string.
18941 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
18942 menu_text.c.
18943 (grub_utf8_to_ucs4_alloc): Fix indentation.
18944 (grub_print_ucs4): Likewise.
18945 (grub_getstringwidth): Likewise.
18946 (print_message_indented): New declaration.
18947 * normal/auth.c: Include `<grub/i18n.h>'.
18948 (grub_auth_check_authentication): Gettexttize string.
18949 * normal/cmdline.c: Include `<grub/i18n.h>'.
18950 (grub_cmdline_get): Gettextizze.
18951 * normal/color.c: Include `<grub/i18n.h>'.
18952 (grub_parse_color_name_pair): Gettexttize strings.
18953 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
18954 string (use `print_message_indented').
18955 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
18956 `include/grub/normal.h'.
18957 (print_message_indented): Renamed to ...
18958 (grub_print_message_indented): ... this. Remove `static' qualifer (now
18959 used in normal/main.c).
18960 (print_message): Use `grub_print_message_indented' instead of
18961 `print_message_indented'.
18962 (print_timeout): Likewise.
18963 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
18964 (grub_normal_print_device_info): Gettexttize strings.
18965 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
18966
18967 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
18968
18969 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
18970 of arguments. Return number of tokens and not arguments. All users
18971 updated.
18972
18973 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
18974
18975 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
18976 non-MSDOS paritions.
18977
18978 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
18979
18980 * include/grub/types.h (UNUSED): Removed since it conflicts with
18981 NetBSD headers. All users changed to direct __attribute__ ((unused)).
18982 Reported by Grégoire Sutre.
18983
18984 2009-12-19 Carles Pina i Estany <carles@pina.cat>
18985
18986 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
18987 (grub_print_ucs4_alloc): Likewise.
18988 (grub_getstringwidth): Likewise.
18989 * normal/main.c (grub_normal_init_page): Gettextize version string.
18990 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
18991 (getstringwidth): Renamed to ...
18992 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
18993 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
18994 (grub_print_ucs4): Remove `static' qualifer (now used in
18995 normal/main.c).
18996 * po/POTFILES: Add normal/main.c.
18997
18998 2009-12-19 Carles Pina i Estany <carles@pina.cat>
18999
19000 * normal/menu_text.c (STANDARD_MARGIN): New macro.
19001 (print_message_indented): Add `margin_left' and `margin_right'
19002 parameters.
19003 (print_message): Update `print_message_indented' calls. Adds '\n' to the
19004 strings.
19005 (print_timeout): Use `print_message_indented' to print the message.
19006 Deletes `second_stage' parameter.
19007 (run_menu): Update `print_timeout' calls.
19008
19009 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
19010
19011 Fix console palette on OpenFirmware.
19012
19013 * term/ieee1275/ofconsole.c (MAX): Removed.
19014 (colors): Redone based on VGA palette.
19015 (grub_ofconsole_setcolor): Discard brightness bit since only 8
19016 colors are supported.
19017 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
19018
19019 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
19020
19021 Fix potential EfiEmu double prepare.
19022
19023 * efiemu/main.c (prepared): New variable
19024 (grub_efiemu_unload): Set prepare to '0'.
19025 (grub_efiemu_prepare): Return if already prepared. Set prepared.
19026
19027 set_virtual_address_map support.
19028
19029 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
19030 prototype.
19031 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
19032 prototype.
19033 (grub_efiemu_crc32): Likewise.
19034 (grub_efiemu_crc64): Likewise.
19035 (grub_efiemu_set_virtual_address_map): Likewise.
19036 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
19037 New definition.
19038 (grub_autoefi_set_virtual_address_map): Likewise.
19039 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
19040 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
19041 Restructure flow to accomodate it.
19042 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
19043 (grub_efiemu_crc): Recompute CRC32.
19044 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
19045 (efiemu_ptv_relocated): ... this. Made global. All users updated.
19046 * efiemu/symbols.c (relocated_handle): New variable.
19047 (grub_efiemu_free_syms): Free relocated_handle.
19048 (grub_efiemu_alloc_syms): Allocate relocated_handle.
19049 (grub_efiemu_write_sym_markers): New function.
19050 (grub_efiemu_set_virtual_address_map): Likewise.
19051
19052 Newer XNU parameters.
19053
19054 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
19055 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
19056 (grub_xnu_fill_devicetree): New prototype.
19057 (grub_xnu_heap_real_start): New variable.
19058 * loader/xnu.c (get_name_ptr): New function.
19059 (grub_xnu_load_driver): Fill namelen and name.
19060
19061 64-bit xnu support.
19062
19063 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
19064 and 'loader/macho64.c'.
19065 * conf/i386-pc.rmk: Likewise.
19066 * conf/x86_64-efi.rmk: Likewise.
19067 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
19068 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
19069 * include/grub/macho.h (grub_macho_segment64): New structure.
19070 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
19071 (grub_macho_size32): ... to this.
19072 (grub_macho32_get_entry_point): Renamed from ...
19073 (grub_macho_get_entry_point32): ... to this.
19074 (grub_macho_contains_macho64): New prototype.
19075 (grub_macho_size64): Likewise.
19076 (grub_macho_get_entry_point64): Likewise.
19077 (grub_macho32_load): Renamed from ...
19078 (grub_macho_load32): ... to this.
19079 (grub_macho32_filesize): Renamed from ...
19080 (grub_macho_filesize32): ... to this.
19081 (grub_macho32_readfile): Renamed from ...
19082 (grub_macho_readfile32): ... to this.
19083 (grub_macho_filesize64): New prototype.
19084 (grub_macho_readfile64): Likewise.
19085 (grub_macho_parse32): Likewise.
19086 (grub_macho_parse64): Likewise.
19087 * loader/macho.c: Split into ...
19088 * loader/machoXX.c: ... and this. Replace 32 with XX.
19089 * loader/macho32.c: New file.
19090 * loader/macho64.c: Likewise.
19091 * loader/xnu.c (grub_xnu_is_64bit): New variable.
19092 (grub_cmd_xnu_kernel): Make 32-bit only.
19093 (grub_cmd_xnu_kernel64): New function.
19094 (grub_xnu_load_driver): Support Mach-O 64.
19095 (grub_cmd_xnu_mkext): Likewise.
19096 * util/grub.d/30_os-prober.in (osx_entry): New function.
19097 Generate entries for 64-bit boot too.
19098
19099 Eliminate ad-hoc tree format in XNU and EfiEmu.
19100
19101 * efiemu/main.c (grub_efiemu_prepare): Update comment.
19102 * efiemu/pnvram.c: Rewritten to use environment variables.
19103 All users updated.
19104
19105 Inline utf16_to_utf8.
19106
19107 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
19108 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
19109 All users updated.
19110 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
19111
19112 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
19113 * commands/usbtest.c (grub_usb_get_string): ... move here.
19114 (usb_print_str): Fix error handling.
19115 * include/grub/usb.h (grub_usb_get_string): Remove.
19116
19117 UTF-8 to UTF-16 transformation.
19118
19119 * conf/common.rmk (pkglib_MODULES): Add charset.mod
19120 (charset_mod_SOURCES): New variable.
19121 (charset_mod_CFLAGS): Likewise.
19122 (charset_mod_LDFLAGS): Likewise.
19123 * include/grub/utf.h: New file.
19124 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
19125
19126 Support for device properties.
19127
19128 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
19129 (grub_xnu_devprop_device_header): Likewise.
19130 (grub_xnu_devprop_device_descriptor): Likewise.
19131 (grub_xnu_devprop_add_device): New prototype.
19132 (grub_xnu_devprop_remove_device): Likewise.
19133 (grub_xnu_devprop_remove_property): Likewise.
19134 (grub_xnu_devprop_add_property_utf8): Likewise.
19135 (grub_xnu_devprop_add_property_utf16): Likewise.
19136 (grub_cpu_xnu_init): Likewise.
19137 (grub_cpu_xnu_fini): Likewise.
19138 (grub_cpu_xnu_unload): Likewise.
19139 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
19140 (property_descriptor): Likewise.
19141 (devices): New variable.
19142 (grub_xnu_devprop_remove_property): New function.
19143 (grub_xnu_devprop_add_device): Likewise.
19144 (grub_xnu_devprop_remove_device): Likewise.
19145 (grub_xnu_devprop_add_property): Likewise.
19146 (grub_xnu_devprop_add_property_utf8): Likewise.
19147 (grub_xnu_devprop_add_property_utf16): Likewise.
19148 (hextoval): Likewise.
19149 (grub_cpu_xnu_fill_devprop): Likewise.
19150 (grub_cmd_devprop_load): Likewise.
19151 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
19152 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
19153 (cmd_devprop_load): New variable.
19154 (grub_cpu_xnu_init): New function.
19155 (grub_cpu_xnu_fini): Likewise.
19156 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
19157 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
19158 (grub_cmd_xnu_devtree): Likewise.
19159 (hextoval): New function.
19160 (unescape): Likewise.
19161 (grub_xnu_fill_devicetree): Likewise.
19162
19163 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
19164 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
19165
19166 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
19167
19168 Workaround for broken ATI VBE.
19169
19170 * video/i386/pc/vbe.c (last_set_mode): New variable.
19171 (grub_vbe_set_video_mode): Set 'last_set_mode'.
19172 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
19173 (grub_video_vbe_setup): Don't check for reserved flag.
19174
19175 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
19176
19177 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
19178 the `find' command.
19179
19180 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
19181
19182 UUID support for HFS.
19183
19184 * fs/hfs.c (grub_hfs_uuid): New function.
19185 (grub_hfs_fs): New value .uuid.
19186 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
19187
19188 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
19189
19190 Fix a segfault with parsing unknown long options.
19191
19192 * util/grub-mkrelpath.c (options): Zero terminate it.
19193
19194 2009-12-13 Carles Pina i Estany <carles@pina.cat>
19195
19196 * include/grub/misc.h (grub_puts): New declaration.
19197 (grub_puts_): Likewise.
19198 * kern/misc.c (grub_puts): New definition.
19199 (grub_puts_): Likewise.
19200
19201 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
19202
19203 * util/grub-probe.c (probe): Improve error message.
19204
19205 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
19206
19207 * loader/i386/multiboot_elfxx.c
19208 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
19209 initialization.
19210
19211 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
19212
19213 Relocator framework
19214
19215 * loader/i386/xnu_helper.S: Removed. All users updated.
19216 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
19217 (relocator_mod_SOURCES): New variable.
19218 (relocator_mod_CFLAGS): Likewise.
19219 (relocator_mod_LDFLAGS): Likewise.
19220 (relocator_mod_ASFLAGS): Likewise.
19221 * conf/x86_64.rmk: Likewise.
19222 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
19223 (grub_multiboot_payload_entry_offset): Likewise.
19224 (grub_multiboot_forward_relocator): Likewise.
19225 (grub_multiboot_forward_relocator_end): Likewise.
19226 (grub_multiboot_backward_relocator): Likewise.
19227 (grub_multiboot_backward_relocator_end): Likewise.
19228 (grub_multiboot_payload_eip): New variable.
19229 (grub_multiboot_payload_orig): Likewise.
19230 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
19231 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
19232 * include/grub/i386/memory.h
19233 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
19234 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
19235 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
19236 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
19237 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
19238 * include/grub/i386/relocator.h: New file.
19239 * include/grub/x86_64/relocator.h: Likewise.
19240 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
19241 (XNU_RELOCATOR): New macro.
19242 (grub_xnu_launcher_start): Remove.
19243 (grub_xnu_launcher_end): Likewise.
19244 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
19245 (grub_xnu_heap_real_start): Remove.
19246 (grub_xnu_heap_start): Change to void *. All users updated.
19247 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
19248 * lib/i386/relocator.c: New file.
19249 * lib/i386/relocator_asm.S: Likewise.
19250 * lib/i386/relocator_backward.S: Likewise.
19251 * lib/mips/relocator.c: Likewise.
19252 * lib/mips/relocator_asm.S: Likewise.
19253 * lib/relocator.c: Likewise.
19254 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
19255 (entry): Removed.
19256 (playground): Likewise.
19257 (grub_multiboot_payload_orig): New variable.
19258 (grub_multiboot_payload_dest): Likewise.
19259 (grub_multiboot_payload_size): Likewise.
19260 (grub_multiboot_payload_eip): Likewise.
19261 (grub_multiboot_payload_esp): Likewise.
19262 (grub_multiboot_boot): Use grub_relocator32_boot.
19263 (grub_multiboot_unload): Free relocators.
19264 (grub_multiboot): Setup stack. Use relocators.
19265 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
19266 (grub_multiboot_load_elfXX): Use relocators.
19267 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
19268 (grub_multiboot_payload_size): Likewise.
19269 (grub_multiboot_payload_dest): Likewise.
19270 (grub_multiboot_payload_entry_offset): Likewise.
19271 (grub_multiboot_forward_relocator): Likewise.
19272 (grub_multiboot_backward_relocator): Likewise.
19273 (grub_multiboot_real_boot): Likewise.
19274 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
19275 (grub_xnu_entry_point): Likewise.
19276 (grub_xnu_arg1): Likewise.
19277 (grub_xnu_stack): Likewise.
19278 (grub_xnu_launch): Removed.
19279 (grub_xnu_boot_resume): New function.
19280 (grub_xnu_boot): Use relocators.
19281 * loader/i386/xnu_helper.S: Removed.
19282 * loader/xnu.c (grub_xnu_heap_start): New variable.
19283 (grub_xnu_heap_size): Likewise.
19284 (grub_xnu_heap_malloc): Use relocators.
19285 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
19286
19287 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
19288
19289 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
19290 anything.
19291
19292 2009-12-13 Carles Pina i Estany <carles@pina.cat>
19293
19294 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
19295 GRUB_ERR_NONE before calling grub_env_set.
19296
19297 2009-12-12 Robert Millan <rmh@aybabtu.com>
19298
19299 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
19300 * genmk.rb (video): New variable.
19301 (CLEANFILES, VIDEOFILES): Add #{video}.
19302 (#{video}): New target rule.
19303 * genvideolist.sh: New file.
19304 * Makefile.in (pkglib_DATA): Add video.lst.
19305 (video.lst): New target rule.
19306 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
19307 `video.lst'.
19308 * util/grub.d/30_os-prober.in: Replace `vbe' with
19309 ${GRUB_VIDEO_BACKEND}.
19310
19311 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
19312
19313 * THANKS: Add David Miller.
19314
19315 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
19316
19317 libpciaccess support.
19318
19319 * Makefile.in (LIBPCIACCESS): New variable.
19320 (enable_grub_emu_pci): Likewise.
19321 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
19322 util/pci.c and commands/lspci.c.
19323 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
19324 * configure.ac (grub-emu-pci): New option.
19325 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
19326 (grub_pci_device_unmap_range): Likewise.
19327 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
19328 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
19329 (grub_pci_address_t) [!GRUB_UTIL]: New type.
19330 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
19331 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
19332 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
19333 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
19334 * include/grub/pciutils.h: New file.
19335 * util/pci.c: Likewise.
19336
19337 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
19338
19339 * util/misc.c: Don't include <errno.h> twice.
19340
19341 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
19342
19343 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
19344 name in an error message.
19345 (grub_biosdisk_rw): Likewise.
19346
19347 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
19348
19349 Eliminate NTFS 4Gib barrier.
19350
19351 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
19352 (read_run_data): Likewise.
19353 (grub_ntfs_read_run_list): Likewise.
19354 (grub_ntfs_read_block): Likewise.
19355 (grub_ntfs_iterate_dir): Likewise.
19356 (read_mft): Likewise.
19357 (read_data): Likewise.
19358 Use COM_LOG_LEN.
19359 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
19360 to avoid 64-bit division
19361 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
19362 (grub_ntfs_rlst): Use grub_disk_addr_t.
19363
19364 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
19365
19366 Eliminate grub-fstest 4Gib barrier.
19367
19368 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
19369 (read_file): Fix error reporting.
19370
19371 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
19372
19373 Eliminate hexdump 4Gib barrier.
19374
19375 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
19376 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
19377
19378 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
19379
19380 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
19381 Fixes amarsh bug.
19382
19383 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
19384
19385 Remove miscellaneous files in distclean target.
19386
19387 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
19388
19389 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
19390
19391 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
19392 if they're already set. This resolves the conflict between my
19393 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
19394 fixing the --grub-probe option again.
19395 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
19396 change on 2009-10-06, so that we now once again source
19397 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
19398
19399 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
19400
19401 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
19402 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
19403 `util/devicemap.c'.
19404
19405 2009-12-08 Carles Pina i Estany <carles@pina.cat>
19406
19407 * include/grub/misc.h (grub_printf_): New declaration.
19408 * kern/misc.c (grub_printf_): New definition.
19409 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
19410 instead of `grub_printf' and `_'.
19411 * normal/menu_entry.c (store_completion): Likewise.
19412 (run): Likewise.
19413 (grub_menu_entry_run): Likewise.
19414 * normal/menu_text.c (grub_wait_after_message): Likewise.
19415 (notify_booting): Likewise.
19416 (notify_fallback): Likewise.
19417 (notify_execution_failure): Likewise.
19418
19419 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
19420
19421 * configure.ac: Check for vasprintf.
19422 * util/misc.c (asprintf): Move allocation from here ...
19423 (vasprintf): ... to here. New function.
19424 (xasprintf): New function.
19425 * include/grub/util/misc.h (vasprintf, xasprintf): Add
19426 prototypes.
19427 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
19428 * util/grub-mkfont.c (write_font): Likewise.
19429 * util/grub-probe.c (probe): Likewise.
19430 * util/hostdisk.c (make_device_name): Likewise.
19431
19432 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
19433
19434 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
19435 anything even prefixed with 'cdrom' as a cdrom.
19436
19437 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
19438
19439 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
19440 mount points.
19441
19442 2009-12-05 Carles Pina i Estany <carles@pina.cat>
19443
19444 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
19445 grub_gettext_msg_list.
19446 (grub_gettext_gettranslation_from_position): Return const char *
19447 and not char *.
19448 (grub_gettext_translate): Add the translated strings into a list,
19449 returns from the list if existing there.
19450 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
19451 (grub_gettext_delete_list): Delete the list.
19452 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
19453 lang environment variable is changed.
19454 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
19455
19456 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
19457
19458 Rename kernel.mod to kernel.img.
19459
19460 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
19461 (kernel_mod_EXPORTS): Rename to ...
19462 (kernel_img_EXPORTS): ... this.
19463 (kernel_mod_SOURCES): Rename to ...
19464 (kernel_img_SOURCES): ... this.
19465 (kernel_mod_HEADERS): Rename to ...
19466 (kernel_img_HEADERS): ... this. All users updated.
19467 (kernel_mod_CFLAGS): Rename to ...
19468 (kernel_img_CFLAGS): ... this.
19469 (kernel_mod_ASFLAGS): Rename to ...
19470 (kernel_img_ASFLAGS): ... this.
19471 (kernel_mod_LDFLAGS): Rename to ...
19472 (kernel_img_LDFLAGS): ... this.
19473 * conf/x86_64-efi.rmk: Likewise.
19474 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
19475 (read_kernel_image): ... this. All users updated.
19476 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
19477
19478 2009-12-05 Carles Pina i Estany <carles@pina.cat>
19479
19480 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
19481 (print_spaces): New function.
19482 (grub_print_ucs4): New function.
19483 (getstringwidth): New function.
19484 (print_message_indented): New function.
19485 (print_message): Gettexttize strings using print_message_indented.
19486 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
19487 width.
19488 (get_entry_number): Gettextize and uses dynamic terminal width.
19489 (notify_booting, notify_fallback, notify_execution_failure):
19490 Gettextize.
19491 * normal/menu_entry.c (store_completion): Cleanup the gettextized
19492 string.
19493 (run): Likewise.
19494 (grub_menu_entry_run): Likewise.
19495 * PO/POTFILES: Add normal/menu_entry.c.
19496
19497 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
19498
19499 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
19500
19501 2009-12-05 Carles Pina i Estany <carles@pina.cat>
19502
19503 * util/grub-install.in: Install gettext .mo files.
19504 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
19505
19506 2009-12-05 Carles Pina i Estany <carles@pina.cat>
19507
19508 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
19509 grub_dprintf.
19510
19511 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
19512
19513 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
19514 non-firmware-dependant one in realmode.S takes precedence.
19515
19516 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
19517
19518 * commands/halt.c: Replace misc arch-specific headers with
19519 `<grub/misc.h>'.
19520 * commands/reboot.c: Likewise.
19521 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
19522 `<grub/misc.h>'.
19523 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
19524 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
19525 (kernel_img_SOURCES): ... to here.
19526
19527 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
19528 * include/grub/i386/pc/init.h: Likewise.
19529 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
19530 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
19531
19532 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
19533
19534 * include/grub/i386/halt.h: Remove.
19535 * include/grub/i386/reboot.h: Likewise.
19536
19537 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
19538
19539 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
19540
19541 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
19542 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
19543 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
19544 "progname.h"
19545 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
19546 * util/sparc64/ieee1275/grub-setup.c: Likewise.
19547 (usage): Add missing comma in printf.
19548
19549 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
19550
19551 Use the same reboot approach on i386 coreboot and qemu as we do on
19552 BIOS.
19553
19554 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
19555 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
19556 * kern/i386/reboot.c: Remove.
19557 * include/grub/i386/reboot.h (grub_reboot): Export function.
19558 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
19559 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
19560 0xf000:0xfff0 instead of 0xffff:0x0000.
19561 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
19562 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
19563
19564 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
19565
19566 Fix $srcdir != $objdir build.
19567
19568 * Makefile.in (po/%.po): Rewrite as ...
19569 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
19570
19571 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
19572
19573 Fix GNU/Hurd grub-install crash.
19574 * util/grub-probe.c (probe): Try to access `path' only when it is not
19575 NULL.
19576
19577 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
19578
19579 Correct module naming.
19580
19581 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
19582 (GRUB_MOD_INIT(efi_uga)): ... to this
19583 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
19584 (GRUB_MOD_FINI(efi_uga)): ... to this
19585 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
19586 (GRUB_MOD_INIT(efi_gop)): ... to this
19587 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
19588 (GRUB_MOD_FINI(efi_gop)): ... to this
19589
19590 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
19591
19592 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
19593 translatable.
19594 (usage): Translate `arg' strings using gettext().
19595 Thanks to Jordi Mallach for the suggestion.
19596
19597 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
19598
19599 GOP support. Based on patch from Bean
19600 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
19601
19602 * video/efi_gop.c: New file.
19603 * include/grub/efi/graphics_output.h: Likewise.
19604 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
19605 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
19606 variables.
19607 * conf/x86_64-efi.rmk: Likewise.
19608
19609 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
19610
19611 Rename efi_fb to efi_uga.
19612
19613 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
19614 'efi_uga.mod'.
19615 (efi_fb_mod_SOURCES): Rename this ...
19616 (efi_uga_mod_SOURCES): ... to this.
19617 (efi_fb_mod_CFLAGS): Rename this ...
19618 (efi_uga_mod_CFLAGS): ... to this.
19619 (efi_fb_mod_LDFLAGS): Rename this ...
19620 (efi_uga_mod_LDFLAGS): ... to this.
19621 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
19622 'efi_uga.mod'.
19623 (efi_fb_mod_SOURCES): Rename this ...
19624 (efi_uga_mod_SOURCES): ... to this.
19625 (efi_fb_mod_CFLAGS): Rename this ...
19626 (efi_uga_mod_CFLAGS): ... to this.
19627 (efi_fb_mod_LDFLAGS): Rename this ...
19628 (efi_uga_mod_LDFLAGS): ... to this.
19629 * video/efi_fb.c: Move this ...
19630 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
19631
19632 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
19633
19634 * po/README: New file. Explain our PO file workflow.
19635
19636 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
19637
19638 * po/ChangeLog: Remove. Move relevant entries back to ...
19639 * ChangeLog: ... here.
19640 * po/ca.po: Remove (now handled by TLP).
19641 * po/id.po: Likewise.
19642 * po/zh_CN.po: Likewise.
19643 * Makefile.in (LINGUAS): Initialize in a way that supports
19644 empty set.
19645
19646 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
19647
19648 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
19649 reliing on po/LINGUAS.
19650 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
19651 (po/%.po): ... this.
19652
19653 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
19654
19655 * util/i386/efi/grub-mkimage.c: Include "progname.h".
19656 (main): Use `program_name' instead of nonexistent `progname'.
19657
19658 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
19659
19660 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
19661 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
19662
19663 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
19664
19665 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
19666 commit.
19667 * conf/i386-efi.rmk: Likewise.
19668 * conf/i386-ieee1275.rmk: Likewise.
19669 * conf/powerpc-ieee1275.rmk: Likewise.
19670 * conf/sparc64-ieee1275.rmk: Likewise.
19671 * conf/x86_64-efi.rmk: Likewise.
19672
19673 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
19674
19675 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
19676
19677 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
19678
19679 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
19680
19681 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
19682
19683 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
19684 (grub_mkdevicemap_SOURCES): New variable.
19685 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
19686 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
19687 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
19688 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
19689 (grub_mkdevicemap_SOURCES): Remove.
19690 * conf/i386-efi.rmk: Likewise.
19691 * conf/i386-ieee1275.rmk: Likewise.
19692 * conf/i386-pc.rmk: Likewise.
19693 * conf/powerpc-ieee1275.rmk: Likewise.
19694 * conf/sparc64-ieee1275.rmk: Likewise.
19695 * conf/x86_64-efi.rmk: Likewise.
19696 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
19697 (usage): Fix strings to use `program_name'.
19698 (main): Initialize gettext.
19699 * util/grub-editenv.c: Likewise.
19700 * util/grub-emu.c: Likewise.
19701 * util/grub-fstest.c: Likewise.
19702 * util/grub-mkdevicemap.c: Likewise.
19703 * util/grub-mkfont.c: Likewise.
19704 * util/grub-mkrelpath.c: Likewise.
19705 * util/grub-pe2elf.c: Likewise.
19706 * util/grub-probe.c: Likewise.
19707 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
19708 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
19709 * util/sparc64/ieee1275/grub-setup.c: Likewise.
19710
19711 * util/misc.c: Include `"progname.h"'.
19712 (progname): Remove variable.
19713 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
19714
19715 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
19716
19717 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
19718 printf and print a newline after the menuentry header line.
19719 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
19720
19721 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
19722
19723 autoconf >= 2.60 support $(localedir).
19724
19725 * INSTALL: Note that autoconf 2.60 is required.
19726 * configure.ac (AC_PREREQ): Bump to 2.60.
19727 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
19728 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
19729
19730 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
19731
19732 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
19733 aclocal is run.
19734
19735 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
19736
19737 * normal/main.c (grub_normal_read_line): Fix off-by-one
19738 buffer overflow.
19739
19740 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
19741
19742 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
19743 "parser.grub" in grub_command_execute() call.
19744
19745 2009-11-24 Carles Pina i Estany <carles@pina.cat>
19746
19747 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
19748 * conf/i386-efi.rmk: Likewise.
19749 * conf/i386-ieee1275.rmk: Likewise.
19750 * conf/i386-pc.rmk: Likewise.
19751 * conf/powerpc-ieee1275.rmk: Likewise.
19752 * conf/sparc64-ieee1275.rmk: Likewise.
19753 * conf/x86_64-efi.rmk: Likewise.
19754 * gettext/gettex.c: Include <grub/i18n.h>.
19755 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
19756 here ...
19757 * include/grub/i18n.h: ... to here
19758 * include/grub/i18n.h: ... to here.
19759 * kern/misc.c: Include <grub/i18n.h>
19760 (grub_gettext_dummy): Move above user.
19761
19762 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
19763
19764 * util/Makefile.in (install-local): Convert a `for' into a normal
19765 shell expansion.
19766
19767 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
19768
19769 * autogen.sh: Add automake call.
19770 * config.guess: Remove.
19771 * config.sub: Likewise.
19772 * install-sh: Likewise.
19773
19774 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
19775
19776 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
19777
19778 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
19779
19780 * util/Makefile.in (install-local): Convert a make `$(foreach)'
19781 function to a normal shell `for'.
19782
19783 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
19784
19785 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
19786
19787 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
19788
19789 * util/grub-mkrelpath.c: New file.
19790 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
19791 (grub_mkrelpath_SOURCES): New variable.
19792 * include/grub/util/misc.h: New function prototype.
19793 * util/misc.c (make_system_path_relative_to_its_root): New function.
19794
19795 * util/grub-mkconfig_lib.in (bindir): New variable.
19796 (grub_mkrelpath): Likewise.
19797 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
19798
19799 * util/probe.c (probe): Make the file path relative to its root.
19800 Change a info message to use the GRUB path. Enable again the
19801 check if we can read the file with GRUB facilities.
19802
19803 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
19804 to its root.
19805
19806 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
19807
19808 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
19809 platform.
19810
19811 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
19812
19813 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
19814 strncmp().
19815
19816 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
19817
19818 * util/getroot.c (grub_util_is_dmraid): New function.
19819 (grub_util_get_dev_abstraction): Treat dmraid and multipath
19820 devices as normal ones, not as LVM.
19821
19822 2009-11-23 Carles Pina i Estany <carles@pina.cat>
19823
19824 * conf/common.rmk: Add grub-gettext_lib target and updates
19825 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
19826 LDFLAGS.
19827 * gettext/gettext.c: New file. (Reads mo files).
19828 * include/grub/file.h (grub_file_pread): New prototype.
19829 * include/grub/i18n.h (_): New prototype.
19830 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
19831 prototypes.
19832 * kern/misc.c (grub_gettext_dummy): New function.
19833 * normal/menu_text.c: Include <grub/i18n.h>.
19834 * normal/menu_text.c (print_timeout): Gettexttize string.
19835 * normal/menu_text.c (print_message): Gettexttize string.
19836 * po/POTFILES: Add `normal/menu_text.c'.
19837 * po/ca.po: Add new translations.
19838 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
19839 gettext module and defines locale_dir and lang in grub.cfg.
19840 * NEWS: Add gettext support.
19841
19842 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
19843
19844 * util/hostdisk.c: Include `<grub/i18n.h>'.
19845 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
19846 (make_device_name): Rewrite using asprintf.
19847 (convert_system_partition_to_system_disk): Replace 0 with NULL.
19848 (find_system_device): If a device is not found, generate one just
19849 by reusing the OS path name.
19850 (read_device_map): Make it permissible for device.map not to exist.
19851
19852 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
19853
19854 * script/sh/execute.c: Move from here ...
19855 * script/execute.c: ... to here. Update all users.
19856 * script/sh/function.c: Move from here ...
19857 * script/function.c: ... to here. Update all users.
19858 * script/sh/lexer.c: Move from here ...
19859 * script/lexer.c: ... to here. Update all users.
19860 * script/sh/main.c: Move from here ...
19861 * script/main.c: ... to here. Update all users.
19862 * script/sh/parser.y: Move from here ...
19863 * script/parser.y: ... to here. Update all users.
19864 * script/sh/script.c: Move from here ...
19865 * script/script.c: ... to here. Update all users.
19866
19867 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
19868
19869 * configure.ac: Detect all `emu' platforms. Define
19870 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
19871 --enable-grub-emu logic. Disable include/grub/machine
19872 symlink on `emu' platforms.
19873
19874 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
19875 * gensymlist.sh.in: Likewise.
19876
19877 * include/grub/i386/coreboot/machine.h: Remove file.
19878 * include/grub/i386/efi/machine.h: Likewise.
19879 * include/grub/i386/ieee1275/machine.h: Likewise.
19880 * include/grub/i386/pc/machine.h: Likewise.
19881 * include/grub/i386/qemu/machine.h: Likewise.
19882 * include/grub/powerpc/ieee1275/machine.h: Likewise.
19883 * include/grub/sparc64/ieee1275/machine.h: Likewise.
19884 * include/grub/x86_64/efi/machine.h: Likewise.
19885
19886 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
19887 * commands/halt.c: Likewise.
19888 * commands/reboot.c: Likewise.
19889 * include/grub/autoefi.h: Likewise.
19890 * include/grub/i386/at_keyboard.h: Likewise.
19891 * include/grub/i386/kernel.h: Likewise.
19892 * include/grub/i386/loader.h: Likewise.
19893 * include/grub/i386/pc/memory.h: Likewise.
19894 * kern/dl.c: Likewise.
19895 * kern/i386/coreboot/init.c: Likewise.
19896 * loader/i386/bsd.c: Likewise.
19897 * loader/i386/linux.c: Likewise.
19898 * loader/multiboot_loader.c: Likewise.
19899 * term/i386/pc/serial.c: Likewise.
19900 * term/usb_keyboard.c: Likewise.
19901
19902 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
19903 `<grub/machine/machine.h>'
19904 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
19905 * util/misc.c: Remove `<grub/machine/machine.h>' and
19906 `<grub/machine/time.h>'.
19907
19908 * Makefile.in (enable_grub_emu): Remove variable.
19909 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
19910
19911 * conf/any-emu.rmk: New file.
19912 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
19913 (grub_emu_init.c): Move from here ...
19914 * conf/any-emu.rmk: ... to here.
19915
19916 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
19917 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
19918 * conf/any-emu.rmk: ... to here.
19919
19920 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
19921
19922 * include/grub/parser.h (grub_parser_register): Document need
19923 of `name' parameter.
19924 * normal/main.c (grub_normal_read_line): Simplify prompt string.
19925 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
19926 "sh" to "grub".
19927
19928 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
19929
19930 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
19931 `$(XGETTEXT)'.
19932 * include/grub/i18n.h (N_): New macro.
19933 * util/mkisofs/mkisofs.h: Likewise.
19934 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
19935 around N_().
19936 (usage): Use gettext() to translate help strings when printing them.
19937
19938 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
19939
19940 Based on patch from Bean
19941 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
19942
19943 * video/efi_fb.c: New file.
19944 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
19945 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
19946 variables.
19947 * conf/x86_64-efi.rmk: Likewise.
19948
19949 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
19950
19951 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
19952 * util/i386/pc/grub-setup.c: Likewise.
19953
19954 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
19955
19956 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
19957 <hurd/fs.h>
19958 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
19959 file_get_storage_info to implement grub_guess_root_device.
19960
19961 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
19962
19963 * Makefile.in (target): Use make's builtin $(shell) function
19964 instead of calling directly $(SHELL) to create the locale directories,
19965 inside the $(foreach) function.
19966
19967 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
19968
19969 * util/grub-mkrescue.in: Print an error and usage if output option
19970 has not been given.
19971
19972 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
19973
19974 Patch from Loïc Minier <loic.minier@ubuntu.com>.
19975 * util/grub.d/30_os-prober.in: Cope with Linux entries where
19976 root and /boot are on different devices.
19977
19978 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
19979
19980 Fix build for srcdir != objdir.
19981
19982 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
19983 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
19984 $(srcdir).
19985 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
19986 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
19987 reference for input.
19988
19989 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
19990
19991 * util/grub-mkrescue.in: Use source directory direcly (without copiing
19992 or hardlinking it). Remove -J option, Joliet is not compatible with
19993 multiple source directories.
19994
19995 2009-11-21 Carles Pina i Estany <carles@pina.cat>
19996 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
19997
19998 * util/grub-mkrescue.in: Recognize `--override-directory' option.
19999 (process_input_dir): New function. Process an arbitrary input
20000 directory.
20001 Misc adjustments to support both "override mode" and system-wide mode.
20002
20003 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
20004
20005 * configure.ac (UNIFONT_BDF): Rename to ...
20006 (FONT_SOURCE): ... this. Update all users.
20007
20008 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
20009
20010 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
20011 to the list of unifont files to look for.
20012
20013 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
20014
20015 Patch from Joe Auricchio <jauricchio@gmail.com>
20016 * commands/minicmd.c (grub_mini_cmd_clear): New function.
20017 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
20018 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
20019
20020 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
20021
20022 * Makefile.in (install-local): Add a missing backslash.
20023
20024 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
20025
20026 * include/grub/x86_64/io.h: New file.
20027
20028 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
20029
20030 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
20031 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
20032 Include `"progname.h"'.
20033 (main): Initialize gettext.
20034 * util/i386/pc/grub-setup.c: Gettexttize.
20035 * util/i386/pc/grub-mkimage.c: Likewise.
20036
20037 * Makefile.in (po/*.po): Redefine as ...
20038 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
20039
20040 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
20041
20042 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
20043
20044 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
20045 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
20046 (program_name): Remove.
20047 (main): Initialize gettext support.
20048 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
20049 Include `<libintl.h>'.
20050 (_): New macro.
20051
20052 * util/mkisofs/eltorito.c: Gettexttize.
20053 * util/mkisofs/joliet.c: Likewise.
20054 * util/mkisofs/mkisofs.c: Likewise.
20055 * util/mkisofs/multi.c: Likewise.
20056 * util/mkisofs/rock.c: Likewise.
20057 * util/mkisofs/tree.c: Likewise.
20058 * util/mkisofs/write.c: Likewise.
20059
20060 * po/POTFILES: Update with new files.
20061
20062 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
20063
20064 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
20065 * util/mkisofs/iso9660.h: Likewise.
20066 * util/mkisofs/joliet.c: Likewise.
20067 * util/mkisofs/mkisofs.c: Likewise.
20068 * util/mkisofs/mkisofs.h: Likewise.
20069 * util/mkisofs/rock.c: Likewise.
20070 * util/mkisofs/tree.c: Likewise.
20071 * util/mkisofs/write.c: Likewise.
20072
20073 * util/mkisofs/eltorito.c (rcsid): Remove.
20074 * util/mkisofs/hash.c: Likewise.
20075 * util/mkisofs/joliet.c: Likewise.
20076 * util/mkisofs/name.c: Likewise.
20077 * util/mkisofs/rock.c: Likewise.
20078 * util/mkisofs/tree.c: Likewise.
20079 * util/mkisofs/write.c: Likewise.
20080
20081 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
20082
20083 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
20084 instead of static allocation.
20085 * util/mkisofs/match.h: Likewise.
20086
20087 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
20088
20089 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
20090 and `util/grub.d/10_linux.in'.
20091 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
20092 translatable Shell files.
20093
20094 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
20095
20096 * Makefile.in ($(srcdir)/aclocal.m4): New target.
20097
20098 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
20099
20100 * INSTALL: Document Automake is needed for bootstrap.
20101 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
20102 * util/grub.d/10_kfreebsd.in (bindir): New variable.
20103 Add gettext initialization.
20104 (kfreebsd_entry): Make menuentry output translatable.
20105
20106 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
20107
20108 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
20109 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
20110 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
20111 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
20112 (LINGUAS): Auto-generate using `po/LINGUAS'.
20113 * po/LINGUAS: New file.
20114
20115 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
20116
20117 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
20118 other things).
20119 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
20120 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
20121 bindtextdomain() calls for gettext initialization.
20122
20123 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
20124
20125 * gnulib/progname.c: New file (imported from Gnulib).
20126 * gnulib/progname.h: Likewise.
20127 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
20128 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
20129 (usage): Replace `progname' with `program_name'.
20130 (main): Use set_program_name() for program name initialization.
20131
20132 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
20133
20134 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
20135 from here ...
20136 * Makefile.in (CPPFLAGS): ... to here.
20137
20138 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
20139
20140 * aclocal.m4: Move from here ...
20141 * acinclude.m4: ... to here.
20142 * autogen.sh: Add call to `aclocal'.
20143 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
20144
20145 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
20146
20147 * Makefile.in (CLEANFILES): Add `po/*.mo'.
20148 (LINGUAS): New variable.
20149 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
20150 (install-local): Install MO files.
20151 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
20152 * include/grub/i18n.h: New file.
20153 * po/POTFILES: New file.
20154 * po/ca.po: New file.
20155 * util/grub.d/10_linux.in (bindir): New variable.
20156 Add gettext initialization.
20157 (linux_entry): Make menuentry output translatable.
20158 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
20159 (usage): Make --help output translatable.
20160 (main): Initialize gettext.
20161
20162 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
20163
20164 * import_gcry.py: New file (written by Vladimir with minor
20165 adjustments).
20166 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
20167 ciphers.
20168 * INSTALL: Document that Python is required for bootstrap.
20169
20170 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
20171
20172 Import ciphers from libgcrypt 1.4.4.
20173
20174 * lib/libgcrypt/cipher/ChangeLog
20175 * lib/libgcrypt/cipher/ac.c
20176 * lib/libgcrypt/cipher/arcfour.c
20177 * lib/libgcrypt/cipher/bithelp.h
20178 * lib/libgcrypt/cipher/blowfish.c
20179 * lib/libgcrypt/cipher/camellia-glue.c
20180 * lib/libgcrypt/cipher/camellia.c
20181 * lib/libgcrypt/cipher/camellia.h
20182 * lib/libgcrypt/cipher/cast5.c
20183 * lib/libgcrypt/cipher/cipher.c
20184 * lib/libgcrypt/cipher/crc.c
20185 * lib/libgcrypt/cipher/des.c
20186 * lib/libgcrypt/cipher/dsa.c
20187 * lib/libgcrypt/cipher/ecc.c
20188 * lib/libgcrypt/cipher/elgamal.c
20189 * lib/libgcrypt/cipher/hash-common.c
20190 * lib/libgcrypt/cipher/hash-common.h
20191 * lib/libgcrypt/cipher/hmac-tests.c
20192 * lib/libgcrypt/cipher/md.c
20193 * lib/libgcrypt/cipher/md4.c
20194 * lib/libgcrypt/cipher/md5.c
20195 * lib/libgcrypt/cipher/primegen.c
20196 * lib/libgcrypt/cipher/pubkey.c
20197 * lib/libgcrypt/cipher/rfc2268.c
20198 * lib/libgcrypt/cipher/rijndael-tables.h
20199 * lib/libgcrypt/cipher/rijndael.c
20200 * lib/libgcrypt/cipher/rmd.h
20201 * lib/libgcrypt/cipher/rmd160.c
20202 * lib/libgcrypt/cipher/rsa.c
20203 * lib/libgcrypt/cipher/seed.c
20204 * lib/libgcrypt/cipher/serpent.c
20205 * lib/libgcrypt/cipher/sha1.c
20206 * lib/libgcrypt/cipher/sha256.c
20207 * lib/libgcrypt/cipher/sha512.c
20208 * lib/libgcrypt/cipher/tiger.c
20209 * lib/libgcrypt/cipher/twofish.c
20210 * lib/libgcrypt/cipher/whirlpool.c
20211
20212 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
20213
20214 Fix build for systems without error().
20215
20216 * gnulib/error.c: New file (imported from Gnulib).
20217 * gnulib/error.h: Likewise.
20218 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
20219 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
20220 (this variable is now used by error()).
20221
20222 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
20223
20224 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
20225 instead of relying that char is signed.
20226
20227 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
20228
20229 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
20230 blocksize different from specified.
20231 (grub_pxefs_read): Likewise.
20232
20233 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
20234
20235 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
20236
20237 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
20238 (grub_ata_readwrite): Likewise. Update 2 format strings.
20239 (grub_atapi_read): Likewise.
20240
20241 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
20242 * conf/i386.rmk (pkglib_MODULES): ... to here ...
20243 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
20244 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
20245 (ata_mod_LDFLAGS): Move from here ...
20246 * conf/i386.rmk: ... to here ...
20247 * conf/x86_64-efi.rmk: ... and here.
20248 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
20249 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
20250
20251 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
20252
20253 Relicense multiboot.h, with RMS' blessing.
20254
20255 * include/multiboot.h: Change to X11 license.
20256
20257 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
20258
20259 Support --version in grub-mkisofs.
20260
20261 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
20262 (OPTION_VERSION): New macro.
20263 (ld_options): Recognize --version.
20264 (usage): Move `program_name' from here ...
20265 (program_name): ... to here. Add `static' qualifier.
20266 (main): Recognize `OPTION_VERSION'.
20267
20268 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
20269
20270 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
20271 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
20272
20273 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
20274
20275 Fix help2man generation for mkisofs.
20276
20277 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
20278 (usage): Send output to stdout (rather than stderr).
20279
20280 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
20281
20282 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
20283 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
20284 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
20285 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
20286 (bin_SCRIPTS): Add `grub-mkfloppy'.
20287 (grub_mkfloppy_SOURCES): New variable.
20288
20289 * util/grub-mkrescue.in: New file.
20290 * util/i386/pc/grub-mkfloppy.in: New file.
20291
20292 * util/i386/coreboot/grub-mkrescue.in: Remove.
20293 * util/i386/pc/grub-mkrescue.in: Remove.
20294
20295 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
20296
20297 * include/grub/multiboot.h (struct grub_multiboot_header): Move
20298 from here ...
20299 * include/multiboot.h (struct multiboot_header): ... to here. Update
20300 all users.
20301 * include/grub/multiboot.h (struct grub_multiboot_info): Move
20302 from here ...
20303 * include/multiboot.h (struct multiboot_info): ... to here. Update
20304 all users.
20305 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
20306 from here ...
20307 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
20308 Update all users.
20309 * include/grub/multiboot.h (struct grub_mod_list): Move
20310 from here ...
20311 * include/multiboot.h (struct multiboot_mod_list): ... to here.
20312 Update all users.
20313
20314 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
20315
20316 * include/multiboot2.h (multiboot_word): Rename from this ...
20317 (multiboot2_word): ... to this. Update all users.
20318 (multiboot_header): Rename from this ...
20319 (multiboot2_header): ... to this. Update all users.
20320 (multiboot_tag_header): Rename from this ...
20321 (multiboot2_tag_header): ... to this. Update all users.
20322 (multiboot_tag_start): Rename from this ...
20323 (multiboot2_tag_start): ... to this. Update all users.
20324 (multiboot_tag_name): Rename from this ...
20325 (multiboot2_tag_name): ... to this. Update all users.
20326 (multiboot_tag_module): Rename from this ...
20327 (multiboot2_tag_module): ... to this. Update all users.
20328 (multiboot_tag_memory): Rename from this ...
20329 (multiboot2_tag_memory): ... to this. Update all users.
20330 (multiboot_tag_unused): Rename from this ...
20331 (multiboot2_tag_unused): ... to this. Update all users.
20332 (multiboot_tag_end): Rename from this ...
20333 (multiboot2_tag_end): ... to this. Update all users.
20334
20335 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
20336
20337 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
20338 this platform we should support Multiboot1 first.
20339
20340 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
20341 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
20342 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
20343
20344 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
20345
20346 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
20347 of write calls (converting them to fwrite() if they aren't already).
20348 (get_torito_desc): Likewise.
20349 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
20350
20351 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
20352
20353 * util/i386/pc/grub-install.in: Move from here ...
20354 * util/grub-install.in: ... to here. Update all users.
20355
20356 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
20357
20358 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
20359
20360 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
20361
20362 Support for El Torito without floppy emulation.
20363
20364 * util/mkisofs/eltorito.c: Include `<errno.h>'.
20365 (init_boot_catalog): Improve error handling.
20366 (get_torito_desc): Don't use floppy emulation unless requested by
20367 user. Patch boot information table when requested via
20368 `-boot-info-table'.
20369 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
20370 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
20371 (use_boot_info_table): New variables.
20372 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
20373 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
20374 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
20375 `--eltorito-emul-floppy'.
20376 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
20377 and `OPTION_ELTORITO_EMUL_FLOPPY'.
20378 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
20379 (use_boot_info_table, get_731): New prototypes.
20380 * util/mkisofs/write.c (get_731): New function.
20381
20382 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
20383
20384 Fix the generation of the man page.
20385
20386 * util/pc/i386/grub-install.in: Source
20387 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
20388
20389 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
20390
20391 Large file support for grub-mkisofs.
20392
20393 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
20394 * util/mkisofs/mkisofs.c (next_extent, last_extent)
20395 (session_start): Upgrade type to `uint64_t'. Update all users.
20396 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
20397 (struct directory_entry): Upgrade type of `starting_block' and
20398 `size' to `uint64_t'. Update all users.
20399 (struct deferred): Remove unused structure.
20400 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
20401 Update all users.
20402 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
20403 file is larger than `UINT32_MAX'.
20404 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
20405 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
20406 return value.
20407 (struct deferred_write): Upgrade type of `extent' and `size' to
20408 `uint64_t'. Update all users.
20409 (last_extent_written): Upgrade type to `uint64_t'. Update all
20410 users.
20411 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
20412 Update all users. Upgrade type of `remain' to `int64_t' and
20413 `use' to `size_t'. Use error() to handle fread() errors.
20414 (write_files): Rely on write_one_file() rather than calling
20415 xfwrite() directly.
20416
20417 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
20418
20419 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
20420
20421 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
20422
20423 * util/mkisofs/fnmatch.c: Remove.
20424 * util/mkisofs/getopt1.c: Likewise.
20425 * util/mkisofs/getopt.c: Likewise.
20426 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
20427 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
20428 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
20429 `gnulib/getopt1.c' and `gnulib/getopt.c'.
20430 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
20431
20432 * configure.ac: Detect `mingw32msvc' host_os.
20433 Check for lstat(), getuid() and getgid().
20434
20435 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
20436 instances of `u_char' with `uint8_t'.
20437
20438 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
20439 [!HAVE_GETUID] (getuid): New function (stub).
20440 [!HAVE_GETGID] (getgid): Likewise.
20441 [!HAVE_LSTAT] (lstat): Likewise.
20442 [!S_IROTH] (S_IROTH): New macro (dummy).
20443 [!S_IRGRP] (S_IRGRP): Likewise.
20444
20445 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
20446
20447 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
20448 conditional expression).
20449
20450 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
20451
20452 Import from Gnulib.
20453
20454 * gnulib/fnmatch.c: New file.
20455 * gnulib/fnmatch.h: Likewise.
20456 * gnulib/fnmatch_loop.c: Likewise.
20457 * gnulib/getopt.c: Likewise.
20458 * gnulib/getopt.h: Likewise.
20459 * gnulib/getopt1.c: Likewise.
20460 * gnulib/getopt_int.h: Likewise.
20461 * gnulib/gettext.h: Likewise.
20462
20463 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
20464
20465 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
20466 * normal/handler.c (read_handler_list): Likewise.
20467
20468 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
20469
20470 Misc cleanup.
20471
20472 * kern/command.c (grub_register_command_prio): Use
20473 grub_zalloc() instead of explicitly zeroing data.
20474 * kern/list.c: Include `<grub/mm.h>'.
20475 (grub_named_list_find): Replace `0' with `NULL'.
20476 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
20477 (fs_module_list): Change type to `grub_named_list_t'. Update all
20478 users.
20479 * normal/dyncmd.c (read_command_list): Add space between function
20480 call and parenthesis.
20481 * normal/handler.c (read_handler_list): Likewise.
20482
20483 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
20484
20485 * normal/auth.c (punishment_delay): Moved from here ...
20486 (grub_auth_strcmp): ... to here (inside function).
20487
20488 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
20489
20490 * include/grub/list.h (struct grub_named_list): Remove `const'
20491 qualifier from `name'.
20492 (struct grub_prio_list): Likewise.
20493
20494 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
20495
20496 * normal/auth.c: Include `<grub/time.h>'.
20497 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
20498
20499 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
20500
20501 * normal/auth.c (punishment_delay): New variable.
20502 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
20503 (grub_auth_check_authentication): Punish failed login attempts with
20504 an incremental (2^N) delay.
20505
20506 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
20507
20508 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
20509 path with $(srcdir).
20510
20511 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
20512
20513 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
20514
20515 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
20516
20517 * util/i386/coreboot/grub-mkrescue.in: New file.
20518 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
20519 variables.
20520
20521 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
20522 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
20523 * configure.ac: Add header and function checks to satisfy grub-mkisofs
20524 requirements.
20525 * util/mkisofs/defaults.h: New file.
20526 * util/mkisofs/eltorito.c: Likewise.
20527 * util/mkisofs/exclude.h: Likewise.
20528 * util/mkisofs/fnmatch.c: Likewise.
20529 * util/mkisofs/getopt.c: Likewise.
20530 * util/mkisofs/getopt1.c: Likewise.
20531 * util/mkisofs/hash.c: Likewise.
20532 * util/mkisofs/include/fctldefs.h: Likewise.
20533 * util/mkisofs/include/mconfig.h: Likewise.
20534 * util/mkisofs/include/prototyp.h: Likewise.
20535 * util/mkisofs/include/statdefs.h: Likewise.
20536 * util/mkisofs/iso9660.h: Likewise.
20537 * util/mkisofs/joliet.c: Likewise.
20538 * util/mkisofs/match.c: Likewise.
20539 * util/mkisofs/match.h: Likewise.
20540 * util/mkisofs/mkisofs.c: Likewise.
20541 * util/mkisofs/mkisofs.h: Likewise.
20542 * util/mkisofs/multi.c: Likewise.
20543 * util/mkisofs/name.c: Likewise.
20544 * util/mkisofs/rock.c: Likewise.
20545 * util/mkisofs/tree.c: Likewise.
20546 * util/mkisofs/write.c: Likewise.
20547
20548 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
20549
20550 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
20551 being insecure.
20552
20553 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
20554
20555 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
20556 `grub-mkimage' (and use $0 when possible).
20557
20558 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
20559
20560 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
20561 error message for excessively large memory map.
20562
20563 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
20564
20565 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
20566 executable bit.
20567
20568 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
20569
20570 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
20571 message for coreboot users.
20572
20573 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
20574
20575 Fix build with GNU gold.
20576
20577 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
20578 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
20579 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
20580 link addresses.
20581 * aclocal.m4: Likewise.
20582
20583 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
20584
20585 * configure.ac (AC_PREREQ): Bump to 2.59d.
20586 * INSTALL: Make it more clear when Autoconf and Ruby are
20587 needed and when to run `./autogen.sh'.
20588
20589 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
20590
20591 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
20592 OSes.
20593
20594 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
20595
20596 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
20597
20598 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
20599
20600 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
20601 giving it to GNU Mach.
20602
20603 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
20604
20605 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
20606 GNU partition number to get internal GRUB partition number.
20607
20608 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
20609
20610 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
20611 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
20612
20613 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
20614
20615 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
20616 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
20617 case.
20618
20619 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
20620
20621 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
20622
20623 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
20624
20625 Fix build problem.
20626
20627 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
20628 `-isystem=$(srcdir)/include'.
20629
20630 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
20631
20632 * util/i386/pc/grub-install.in: Remove hint that device.map should be
20633 checked (grub-install doesn't currently rely on it).
20634
20635 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
20636
20637 Revert SVN r2660.
20638
20639 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
20640 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
20641 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
20642 * conf/i386-ieee1275.rmk: Likewise.
20643 * conf/i386-pc.rmk: Likewise.
20644 * conf/powerpc-ieee1275.rmk: Likewise.
20645 * conf/sparc64-ieee1275.rmk: Likewise.
20646 * conf/x86_64-efi.rmk: Likewise.
20647
20648 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
20649
20650 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
20651
20652 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
20653
20654 * include/grub/misc.h: Stop checking for APPLE_CC.
20655
20656 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
20657
20658 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
20659 doesn't cause an infinite call loop.
20660
20661 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
20662
20663 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
20664 strings.
20665
20666 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
20667
20668 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
20669 variable.
20670 * Makefile.in: Likewise.
20671
20672 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
20673
20674 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
20675
20676 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
20677
20678 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
20679
20680 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
20681
20682 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
20683
20684 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
20685
20686 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
20687 from here ...
20688 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
20689
20690 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
20691
20692 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
20693 in $(MAKEINFO) invocation. This makes it clear in output that
20694 errors are being ignored.
20695
20696 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
20697
20698 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
20699 from here ...
20700 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
20701 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
20702 * conf/i386-ieee1275.rmk: Likewise.
20703 * conf/i386-pc.rmk: Likewise.
20704 * conf/powerpc-ieee1275.rmk: Likewise.
20705 * conf/sparc64-ieee1275.rmk: Likewise.
20706 * conf/x86_64-efi.rmk: Likewise.
20707
20708 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
20709
20710 * util/grub-editenv.c (main): If only a command is given, use
20711 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
20712 (usage): FILENAME is now optional and has a default.
20713
20714 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
20715
20716 Improve grub-mkconfig performance when there are several menu
20717 entries on a single filesystem.
20718
20719 * util/grub.d/10_linux.in (linux_entry): Cache the output of
20720 prepare_grub_to_access_device.
20721 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
20722 * util/grub.d/30_os-prober.in: Likewise.
20723
20724 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
20725
20726 * util/grub.d/10_freebsd.in: Remove.
20727 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
20728 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
20729
20730 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
20731
20732 * docs/grub.cfg: Fix example usage of *BSD loaders.
20733
20734 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
20735
20736 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
20737 grub_util_error() call.
20738
20739 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
20740
20741 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
20742 `reserved_first_sector' member.
20743 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
20744 `reserved_first_sector' to 1.
20745 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
20746 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
20747 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
20748 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
20749 filesystems which begin at first sector.
20750 (options): New option --skip-fs-probe.
20751 (main): Handle --skip-fs-probe and pass it to setup().
20752
20753 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
20754
20755 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
20756 (memset): Fix function prototype.
20757
20758 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
20759 2009-10-25 Vasily Averin <vvs@parallels.com>
20760
20761 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
20762 `dirent.direntlen == 0'.
20763
20764 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
20765
20766 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
20767 `cpio'.
20768 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
20769
20770 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
20771
20772 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
20773 `__trampoline_setup' and `__ucmpdi2'.
20774 * include/grub/powerpc/libgcc.h: Only export symbols for functions
20775 that libgcc provides.
20776
20777 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
20778
20779 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
20780 * include/grub/sparc64/libgcc.h (memset): Likewise.
20781 * include/grub/misc.h (memset, memcmp): New function prototypes.
20782
20783 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
20784
20785 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
20786 `cpio'.
20787 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
20788
20789 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
20790
20791 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
20792 * docs/grub.cfg: Compensate for recent change in multiboot
20793 loader (since 2009-08-14 it won't pass filename to payload).
20794 * util/grub.d/10_hurd.in: Likewise.
20795
20796 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
20797
20798 * config.guess: Update to latest version from config git
20799 repository.
20800 * config.sub: Likewise.
20801
20802 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
20803
20804 Fix build on sparc64.
20805
20806 * configure.ac: Perform checks for libgcc symbols before
20807 adding `-nostdlib' to LDFLAGS.
20808
20809 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
20810
20811 Let user specify OpenBSD root device.
20812
20813 * loader/i386/bsd.c (openbsd_root): New variable.
20814 (openbsd_opts): New option 'root'.
20815 (OPENBSD_ROOT_ARG): New macro.
20816 (grub_openbsd_boot): Use 'openbsd_root'.
20817 (grub_cmd_openbsd): Fill 'openbsd_root'.
20818
20819 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
20820
20821 * NEWS: Misc adjustments.
20822
20823 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
20824
20825 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
20826
20827 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
20828
20829 * configure.ac: Bump version to 1.97.
20830
20831 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
20832
20833 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
20834 -mno-3dnow on x86 architectures. Some toolchains enable these
20835 features by default, but they rely on registers that aren't enabled
20836 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
20837
20838 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
20839
20840 Make entry text a bit more readable.
20841
20842 * util/grub.d/10_linux.in: Add `with' before `Linux'.
20843
20844 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
20845
20846 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
20847
20848 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
20849
20850 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
20851 operations.
20852
20853 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
20854
20855 * configure.ac: Add missing dollar.
20856
20857 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
20858
20859 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
20860
20861 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
20862 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
20863 exports.
20864 * include/grub/sparc64/libgcc.h: Likewise. Use
20865 preprocessor conditionals.
20866
20867 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
20868
20869 * conf/common.rmk (grub-dumpbios): Remove rule.
20870 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
20871 * util/grub-dumpbios.in: Remove file.
20872
20873 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
20874
20875 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
20876 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
20877
20878 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
20879 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
20880 users.
20881
20882 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
20883 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
20884 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
20885 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
20886 users.
20887
20888 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
20889
20890 * term/tparm.c: Switch to GPLv3.
20891
20892 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
20893
20894 * include/grub/i386/cpuid.h: Add header protection.
20895
20896 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
20897
20898 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
20899
20900 * include/grub/i386/cpuid.h: New file.
20901 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
20902 (has_longmode): Rename to ...
20903 (grub_cpuid_has_longmode): ... this. Update all users. Remove
20904 `static' attribute.
20905 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
20906 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
20907 on a CPU that doesn't implement AMD64 instruction set.
20908
20909 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
20910
20911 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
20912 that version.texi is rebuilt on version number changes.
20913
20914 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
20915
20916 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
20917 Fixes bug #27602.
20918
20919 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
20920
20921 * util/i386/pc/grub-install.in: Source
20922 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
20923 that the --grub-probe option will work.
20924 * util/sparc64/ieee1275/grub-install.in: Likewise.
20925
20926 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
20927
20928 * configure.ac: Bump version to 1.97~beta4.
20929
20930 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
20931
20932 Resync grub-mkdevicemap in x86_64-efi.
20933
20934 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
20935 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
20936 `util/devicemap.c'.
20937
20938 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
20939
20940 * util/grub-editenv.c (create_envblk_file): Write new block with a
20941 .new suffix and then rename it into place, to ensure atomic
20942 creation.
20943
20944 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
20945
20946 Do not automatically install headers.
20947
20948 * Makefile.in (include_DATA): Remove. Update all users.
20949
20950 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
20951
20952 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
20953 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
20954
20955 * util/osdetect.lua: Remove.
20956 * script/lua/lauxlib.c: Likewise.
20957 * script/lua/ldebug.c: Likewise.
20958 * script/lua/grub_main.c: Likewise.
20959 * script/lua/lauxlib.h: Likewise.
20960 * script/lua/ldebug.h: Likewise.
20961 * script/lua/ltablib.c: Likewise.
20962 * script/lua/liolib.c: Likewise.
20963 * script/lua/lstrlib.c: Likewise.
20964 * script/lua/lualib.h: Likewise.
20965 * script/lua/ldo.c: Likewise.
20966 * script/lua/ldump.c: Likewise.
20967 * script/lua/ldo.h: Likewise.
20968 * script/lua/loslib.c: Likewise.
20969 * script/lua/lundump.c: Likewise.
20970 * script/lua/grub_lib.c: Likewise.
20971 * script/lua/ldblib.c: Likewise.
20972 * script/lua/lundump.h: Likewise.
20973 * script/lua/lmem.c: Likewise.
20974 * script/lua/grub_lib.h: Likewise.
20975 * script/lua/lmathlib.c: Likewise.
20976 * script/lua/lstate.c: Likewise.
20977 * script/lua/ltm.c: Likewise.
20978 * script/lua/lvm.c: Likewise.
20979 * script/lua/lmem.h: Likewise.
20980 * script/lua/lstate.h: Likewise.
20981 * script/lua/ltm.h: Likewise.
20982 * script/lua/ltable.c: Likewise.
20983 * script/lua/lvm.h: Likewise.
20984 * script/lua/llex.c: Likewise.
20985 * script/lua/lgc.c: Likewise.
20986 * script/lua/grub_lua.h: Likewise.
20987 * script/lua/loadlib.c: Likewise.
20988 * script/lua/lfunc.c: Likewise.
20989 * script/lua/lopcodes.c: Likewise.
20990 * script/lua/lparser.c: Likewise.
20991 * script/lua/ltable.h: Likewise.
20992 * script/lua/llex.h: Likewise.
20993 * script/lua/lgc.h: Likewise.
20994 * script/lua/lfunc.h: Likewise.
20995 * script/lua/lbaselib.c: Likewise.
20996 * script/lua/lopcodes.h: Likewise.
20997 * script/lua/lparser.h: Likewise.
20998 * script/lua/lzio.c: Likewise.
20999 * script/lua/linit.c: Likewise.
21000 * script/lua/lobject.c: Likewise.
21001 * script/lua/llimits.h: Likewise.
21002 * script/lua/lstring.c: Likewise.
21003 * script/lua/lzio.h: Likewise.
21004 * script/lua/lapi.c: Likewise.
21005 * script/lua/lcode.c: Likewise.
21006 * script/lua/lua.h: Likewise.
21007 * script/lua/lobject.h: Likewise.
21008 * script/lua/lstring.h: Likewise.
21009 * script/lua/lapi.h: Likewise.
21010 * script/lua/lcode.h: Likewise.
21011 * script/lua/luaconf.h: Likewise.
21012
21013 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
21014
21015 * docs/grub.texi (Command-line and menu entry commands): Document
21016 date and echo commands.
21017
21018 2009-09-24 Pavel Roskin <proski@gnu.org>
21019
21020 * include/grub/kernel.h (struct grub_module_header): Remove
21021 `grub_module_header_types'. Make `type' unsigned. Make `size'
21022 32-bit on all platforms.
21023 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
21024 8-bit field. Use grub_host_to_target32() for `size'.
21025 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
21026 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
21027 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
21028
21029 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
21030
21031 Fix "lost keypress" bug in at_keyboard.
21032
21033 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
21034 Checks for readyness of input buffer (without flushing it).
21035 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
21036 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
21037
21038 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
21039
21040 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
21041 size check within GRUB_MACHINE_PCBIOS section.
21042
21043 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
21044
21045 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
21046 return value.
21047 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
21048 KEYBOARD_ISREADY check.
21049 (grub_at_keyboard_checkkey): Rename to ...
21050 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
21051 Remove gratuitous cast.
21052
21053 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
21054
21055 * configure.ac: Call AC_PROG_MKDIR_P.
21056 * Makefile.in (docs/stamp-vti): Create docs directory. Create
21057 version.texi in $(builddir) rather than $(srcdir).
21058 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
21059 to makeinfo's @include search path.
21060
21061 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
21062
21063 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
21064
21065 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
21066
21067 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
21068 for `*.dpkg-new'.
21069
21070 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
21071
21072 Build info documentation. Some code borrowed from Automake.
21073
21074 * configure.ac: Check for makeinfo.
21075 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
21076 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
21077 docs/version.texi.
21078 (MOSTLYCLEANFILES): Add vti.tmp.
21079 (docs/version.texi, docs/stamp-vti): Update automatically.
21080 (docs/grub.info): Build info documentation. Use --force and ignore
21081 errors for now.
21082 (all-local): Add $(INFOS).
21083 (install-local): Install info files.
21084 (uninstall): Uninstall info files.
21085 * docs/version.texi: Remove from revision control. This file is
21086 automatically generated on build now.
21087 * gendistlist.sh: Add `*.info'.
21088
21089 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
21090
21091 * kern/term.c: Fix indentation.
21092
21093 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
21094
21095 * util/hostdisk.c: Fix a comment.
21096
21097 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
21098
21099 Fix regression introduced in r2539.
21100
21101 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
21102 to 0xA1.
21103
21104 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
21105
21106 * util/grub.d/30_os-prober.in: Don't throw away stderr from
21107 os-prober. Under normal operation, it does not print anything to
21108 stderr; if it does, we need to debug it, and throwing away stderr
21109 makes that excessively difficult.
21110
21111 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
21112
21113 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
21114
21115 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
21116
21117 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
21118 AC_LANG_PROGRAM from autoconf.
21119 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
21120 prototypes (fixes warning).
21121
21122 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
21123 `--disable-werror' was used.
21124
21125 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
21126
21127 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
21128 uninitialized `lastaddr'.
21129
21130 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
21131
21132 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
21133
21134 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
21135
21136 * commands/test.c (get_fileinfo): Return immediately if
21137 grub_fs_probe fails.
21138
21139 2009-09-14 José Martínez <xosemp@gmail.com>
21140
21141 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
21142
21143 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
21144
21145 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
21146 output.
21147
21148 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
21149
21150 * configure.ac: Remove --enable-grub-pe2elf. Only build
21151 grub-pe2elf when needed by the build system itself.
21152 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
21153
21154 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
21155
21156 * configure.ac: Bump version to 1.97~beta3.
21157 * docs/version.texi: Likewise.
21158
21159 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
21160
21161 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
21162 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
21163 from here ...
21164 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
21165 (grub_linux_setup_video): ... to here (with some adjustments).
21166
21167 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
21168
21169 Fix memory corruption issue (spotted by Colin Watson).
21170
21171 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
21172 causing returned size to be stored in an incorrect memory location.
21173 Fix use of uninitialized value when storing the returned size.
21174
21175 2009-09-12 Yves Blusseau <blusseau@zetam.org>
21176
21177 Change clean rules to properly remove files
21178
21179 * genmk.rb: add new clean rules
21180 * Makefile.in (clean): add the new targets
21181 (mostlyclean): likewise
21182
21183 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
21184
21185 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
21186 to grub_uint64_t.
21187 * fs/ntfs.c (init_file): Understand 64-bit sizes for
21188 non-resident files.
21189
21190 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
21191
21192 * configure.ac: Don't look for help2man when cross-compiling. Fixes
21193 part of bug #27349.
21194
21195 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
21196
21197 * util/grub-mkconfig.in: Make the created config mode 400 and
21198 print a warning if it fails.
21199
21200 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
21201
21202 * util/grub.d/40_custom.in: Ask user to type custom entries below
21203 comment, rather than below 'exec tail' line.
21204
21205 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
21206
21207 * util/grub.d/40_custom.in: Make sure that the explanatory text is
21208 visible in grub.cfg.
21209
21210 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
21211
21212 * util/grub.d/40_custom.in: Make it a little clearer how to use this
21213 file.
21214
21215 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
21216
21217 * docs/grub.cfg: Add an example menu entry for memtest86+.
21218
21219 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
21220
21221 * config.guess: Update to latest version from config git.
21222 * config.sub: Likewise.
21223
21224 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
21225
21226 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
21227 unknown-command case. Fixes bug #27320.
21228
21229 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
21230
21231 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
21232 `help' if the command exists.
21233
21234 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
21235
21236 * INSTALL: Require GCC 4.1.3 or later.
21237
21238 2009-09-06 Yves Blusseau <blusseau@zetam.org>
21239
21240 * Makefile.in (RMKFILES): add i386-qemu.rmk
21241 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
21242 $(srcdir)/stamp-h.in
21243
21244 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
21245
21246 * util/grub-probe.c (probe): Comment out buggy codepath, which
21247 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
21248 should be re-enabled after 1.97.
21249
21250 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
21251
21252 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
21253 find searches for.
21254
21255 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
21256
21257 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
21258 unnecessary calls to grub_error.
21259
21260 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
21261
21262 * NEWS: Mention `keystatus' and Unicode fonts.
21263
21264 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
21265
21266 * configure.ac: Bump version to 1.97~beta2.
21267 * docs/version.texi: Likewise.
21268
21269 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
21270
21271 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
21272 containing unwind information in some cases where it previously did
21273 not. Use -fno-dwarf2-cfi-asm if available to restore the old
21274 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
21275 discussion.
21276
21277 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
21278
21279 Embedding loadenv module into grub-emu
21280
21281 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
21282 commands/loadenv.c
21283 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
21284 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
21285 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
21286 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
21287 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
21288 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
21289
21290 2009-09-03 Magnus Granberg <zorry@ume.nu>
21291
21292 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
21293 include -fPIE in the default specs.
21294 * configure.ac: Check if pie_possible is yes and add -fno-PIE
21295 to TARGET_CFLAGS.
21296
21297 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
21298
21299 * INSTALL: Note that GNU Bison 2.3 or later is required.
21300
21301 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
21302
21303 * kern/i386/pc/startup.S: Fix typo.
21304
21305 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
21306
21307 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
21308 according to GCS.
21309
21310 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
21311
21312 * docs/grub.texi (Naming convention): Describe one-based partition
21313 numbering.
21314 (Device syntax): Likewise.
21315 (File name syntax): Likewise.
21316 (Block list syntax): Likewise.
21317 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
21318 menu.lst.
21319 (File name syntax): Likewise.
21320 (Command-line and menu entry commands): Document acpi, blocklist,
21321 crc, export, insmod, keystatus, ls, set, and unset commands.
21322
21323 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
21324
21325 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
21326 to avoid implying that only one of --shift, --ctrl, or --alt may be
21327 used.
21328
21329 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
21330
21331 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
21332 rather than comparing against S_IFREG, which will almost never work.
21333
21334 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
21335
21336 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
21337 (write_blocklists): Likewise.
21338
21339 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
21340
21341 * script/lua/grub_lua.h (fputs): Supply a format string as the first
21342 argument to grub_printf.
21343
21344 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
21345
21346 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
21347 non GNU test.
21348
21349 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
21350
21351 * kern/file.c (grub_file_read): Spelling fix
21352
21353 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
21354
21355 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
21356 loading of headers in some cases.
21357
21358 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
21359
21360 * configure.ac: Bump version to 1.97~beta1.
21361 * docs/version.texi: Likewise.
21362
21363 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
21364
21365 * include/grub/i386/xnu.h: Add license header.
21366 include grub/err.h explicitly.
21367
21368 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
21369
21370 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
21371 to `ufs' in the vfs.root.mountfrom kernel parameter.
21372
21373 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
21374
21375 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
21376
21377 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
21378 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
21379
21380 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
21381 `ARRAY_SIZE' macro.
21382
21383 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
21384
21385 * kern/file.c (grub_file_read): Check offset.
21386 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
21387 * fs/jfs.c (grub_jfs_read_file): Likewise.
21388 * fs/ntfs.c (grub_ntfs_read): Likewise.
21389 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
21390 * fs/minix.c (grub_minix_read_file): Correct offset check.
21391 * fs/ufs.c (grub_ufs_read_file): Likewise.
21392
21393 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
21394
21395 * term/i386/pc/console.c (bios_data_area): Cast
21396 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
21397
21398 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
21399
21400 1-bit optimised blitters.
21401
21402 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
21403 prototype.
21404 (grub_video_fbblit_replace_24bit_1bit): Likewise.
21405 (grub_video_fbblit_replace_16bit_1bit): Likewise.
21406 (grub_video_fbblit_replace_8bit_1bit): Likewise.
21407 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
21408 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
21409 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
21410 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
21411 function.
21412 (grub_video_fbblit_replace_24bit_1bit): Likewise.
21413 (grub_video_fbblit_replace_16bit_1bit): Likewise.
21414 (grub_video_fbblit_replace_8bit_1bit): Likewise.
21415 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
21416 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
21417 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
21418 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
21419 when possible.
21420 * video/video.c (grub_video_get_blit_format): Return
21421 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
21422
21423 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
21424
21425 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
21426 the first argument to grub_printf.
21427
21428 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
21429 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
21430
21431 Add `getkeystatus' terminal method. Add a new `keystatus' command
21432 to query it.
21433
21434 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
21435 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
21436 modifier key bitmasks.
21437 (struct grub_term_input): Add `getkeystatus' member.
21438 (grub_getkeystatus): Add prototype.
21439 * kern/term.c (grub_getkeystatus): New function.
21440
21441 * include/grub/i386/pc/memory.h
21442 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
21443 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
21444 Data Area layout.
21445 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
21446 (grub_console_term_input): Set `getkeystatus' member.
21447 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
21448 constants.
21449 (grub_usb_keyboard_getreport): Likewise.
21450 (grub_usb_keyboard_checkkey): Likewise.
21451 (grub_usb_keyboard_getkeystatus): New function.
21452 (grub_usb_keyboard_term): Set `getkeystatus' member.
21453
21454 * commands/keystatus.c: New file.
21455 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
21456 (keystatus_mod_SOURCES): New variable.
21457 (keystatus_mod_CFLAGS): Likewise.
21458 (keystatus_mod_LDFLAGS): Likewise.
21459 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
21460 commands/keystatus.c.
21461 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
21462 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21463 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
21464 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21465 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21466 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
21467
21468 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
21469
21470 Split befs.mod and afs.mod into *_be.mod and *.mod
21471
21472 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
21473 (grub_fstest_SOURCES): Likewise.
21474 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
21475 (afs_be_mod_SOURCES): New variable.
21476 (afs_be_mod_CFLAGS): Likewise.
21477 (afs_be_mod_LDFLAGS): Likewise.
21478 (befs_be_mod_SOURCES): Likewise.
21479 (befs_be_mod_CFLAGS): Likewise.
21480 (befs_be_mod_LDFLAGS): Likewise.
21481 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
21482 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
21483 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21484 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
21485 (grub_emu_SOURCES): Likewise.
21486 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21487 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21488 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
21489 * fs/afs_be.c: New file.
21490 * fs/befs_be.c: New file.
21491 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
21492 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
21493 (U16): Replaced with ...
21494 (grub_afs_to_cpu16): ...this. All users updated.
21495 (U32): Replaced with ...
21496 (grub_afs_to_cpu32): ...this. All users updated.
21497 (U64): Replaced with ...
21498 (grub_afs_to_cpu64): ...this. All users updated.
21499 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
21500 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
21501 (grub_afs_validate_sblock): Check only one endianness.
21502 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
21503 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
21504 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
21505 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
21506 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
21507 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
21508 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
21509 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
21510
21511 2009-08-26 Bean <bean123ch@gmail.com>
21512
21513 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
21514 64-bit number.
21515 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
21516 (grub_xfs_inode_block): Change return type to grub_uint64_t.
21517 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
21518
21519 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
21520
21521 NetBSD memory map support.
21522
21523 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
21524 (grub_netbsd_btinfo_mmap_header): New structure.
21525 (grub_netbsd_btinfo_mmap_entry): Likewise.
21526 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
21527
21528 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
21529
21530 Enable bsd.mod on coreboot.
21531
21532 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
21533 (bsd_mod_SOURCES): New variable.
21534 (bsd_mod_CFLAGS): Likewise.
21535 (bsd_mod_LDFLAGS): Likewise.
21536 (bsd_mod_ASFLAGS): Likewise.
21537 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
21538 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
21539
21540 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
21541
21542 Cleanup NetBSD root support.
21543
21544 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
21545 grub_bsd_get_device.
21546 Fix typo.
21547
21548 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
21549
21550 * util/grub.d/00_header.in: Move check for the video backend of
21551 gfxterm from here ...
21552 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
21553 a suitable video backend.
21554
21555 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
21556
21557 Fix breakage in grub-setup.
21558
21559 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
21560 "msdos_partition_map".
21561
21562 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
21563
21564 Fix breakage in normal/auth.c.
21565
21566 * normal/auth.c (grub_iswordseparator): New function.
21567
21568 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
21569
21570 Authentication support.
21571
21572 * commands/password.c: New file.
21573 * conf/common.rmk (pkglib_MODULES): Add password.mod.
21574 (password_mod_SOURCES): New variable.
21575 (password_mod_CFLAGS): Likewise.
21576 (password_mod_LDFLAGS): Likewise.
21577 (normal_mod_SOURCES): Add normal/auth.c.
21578 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
21579 normal/auth.c.
21580 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
21581 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21582 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
21583 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21584 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21585 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
21586 * include/grub/auth.h: New file.
21587 * include/grub/err.h (grub_err_t): New enum value
21588 GRUB_ERR_ACCESS_DENIED.
21589 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
21590 'users'.
21591 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
21592 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
21593 users updated.
21594 * normal/auth.c: New file.
21595 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
21596 (grub_cmdline_run): Don't allow to go to command line without
21597 authentication.
21598 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
21599 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
21600 menuentry without superuser rights.
21601 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
21602 user isn't a superuser.
21603
21604 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
21605
21606 Save space by inlining misc.c functions.
21607
21608 * kern/misc.c (grub_iswordseparator): Made static.
21609 * kern/misc.c (grub_strcat): Moved from here ...
21610 * include/grub/misc.h (grub_strcat): ... here. Inlined.
21611 * kern/misc.c (grub_strncat): Moved from here ...
21612 * include/grub/misc.h (grub_strncat): ... here. Inlined.
21613 * kern/misc.c (grub_strcasecmp): Moved from here ...
21614 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
21615 * kern/misc.c (grub_strncasecmp): Moved from here ...
21616 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
21617 * kern/misc.c (grub_isalpha): Moved from here ...
21618 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
21619 * kern/misc.c (grub_isdigit): Moved from here ...
21620 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
21621 * kern/misc.c (grub_isgraph): Moved from here ...
21622 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
21623 * kern/misc.c (grub_tolower): Moved from here ...
21624 * include/grub/misc.h (grub_tolower): ... here. Inlined.
21625
21626 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
21627
21628 * script/sh/function.c (grub_script_function_find): Cut error message
21629 not to flood terminal.
21630 * script/sh/lexer.c (grub_script_yylex): Remove command line length
21631 limit.
21632 * script/sh/script.c (grub_script_arg_add): Duplicate string.
21633
21634 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
21635
21636 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
21637 `report' grub_uint8_t *.
21638 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
21639 Use a 50-millisecond timeout rather than just repeating
21640 grub_usb_keyboard_getreport 50 times.
21641 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
21642
21643 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
21644
21645 Rename *_partition_map to part_*
21646
21647 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
21648 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
21649 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
21650 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
21651 All users updated.
21652 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
21653 All users updated.
21654 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
21655 * util/grub-probe.c (probe_partmap): Don't transform partition name
21656 to get module name.
21657
21658 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
21659
21660 Fix OpenBSD and NetBSD support.
21661
21662 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
21663 memory address conflict.
21664 (OPENBSD_MMAP_ACPI): New definition.
21665 (OPENBSD_MMAP_NVS): Likewise.
21666 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
21667 and OPENBSD_MMAP_NVS.
21668 Add memory map terminator
21669 Explicit cast when calling grub_unix_real_boot.
21670 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
21671
21672 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
21673
21674 Let user specify NetBSD root device.
21675
21676 * loader/i386/bsd.c (netbsd_root): New variable.
21677 (netbsd_opts): New option 'root'.
21678 (NETBSD_ROOT_ARG): New macro.
21679 (grub_netbsd_boot): Use 'netbsd_root'.
21680 (grub_bsd_unload): Free 'netbsd_root'.
21681 (grub_cmd_netbsd): Fill 'netbsd_root'.
21682
21683 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
21684
21685 Support for 64-bit NetBSD.
21686
21687 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
21688 point when booting non-FreeBSD.
21689
21690 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
21691
21692 Support --no-smp and --no-acpi for NetBSD.
21693
21694 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
21695 (NETBSD_AB_NOACPI): Likewise.
21696 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
21697 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
21698
21699 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
21700
21701 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
21702 errors.
21703 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
21704 errors. Call grub_error when needed.
21705
21706 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
21707
21708 * commands/search.c (search_fs): Try searching without autoload first.
21709 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
21710 filesystem module explicitly for faster booting.
21711
21712 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
21713
21714 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
21715
21716 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
21717
21718 * util/grub.d/30_os-prober.in: Disable os-prober if
21719 `GRUB_DISABLE_OS_PROBER' was set to true.
21720
21721 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
21722
21723 * partmap/pc.c: Rename to ...
21724 * partmap/msdos.c: ... this. Update all users.
21725 (grub_pc_partition_map): Rename to ...
21726 (grub_msdos_partition_map): ... this. Update all users.
21727
21728 * parttool/pcpart.c: Rename to ...
21729 * parttool/msdospart.c: ... this. Update all users.
21730
21731 * include/grub/pc_partition.h: Rename to ...
21732 * include/grub/msdos_partition.h: ... this. Update all users.
21733 (grub_pc_partition_bsd_entry): Rename to ...
21734 (grub_msdos_partition_bsd_entry): ... this. Update all users.
21735 (grub_pc_partition_disk_label): Rename to ...
21736 (grub_msdos_partition_disk_label): ... this. Update all users.
21737 (grub_pc_partition_entry): Rename to ...
21738 (grub_msdos_partition_entry): ... this. Update all users.
21739 (grub_pc_partition_mbr): Rename to ...
21740 (grub_msdos_partition_mbr): ... this. Update all users.
21741 (grub_pc_partition): Rename to ...
21742 (grub_msdos_partition): ... this. Update all users.
21743 (grub_pc_partition_is_empty): Rename to ...
21744 (grub_msdos_partition_is_empty): ... this. Update all users.
21745 (grub_pc_partition_is_extended): Rename to ...
21746 (grub_msdos_partition_is_extended): ... this. Update all users.
21747 (grub_pc_partition_is_bsd): Rename to ...
21748 (grub_msdos_partition_is_bsd): ... this. Update all users.
21749
21750 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
21751 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
21752 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
21753 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
21754 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
21755 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
21756 (gpt_mod_LDFLAGS): Rename to ...
21757 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
21758 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
21759 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
21760 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
21761 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
21762 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
21763 (part_gpt_mod_LDFLAGS): ... this.
21764 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
21765 `pcpart.mod' to `msdospart.mod'.
21766 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
21767 to ...
21768 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
21769 (msdospart_mod_LDFLAGS): ... this.
21770
21771 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
21772
21773 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
21774 (openbsd_opts): Likewise.
21775 (netbsd_opts): Likewise.
21776 (freebsd_flags): Added 0 terminator.
21777 (openbsd_flags): Likewise.
21778 (netbsd_flags): Likewise.
21779 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
21780 (grub_cmd_freebsd): Transformed into extended command.
21781 (grub_cmd_openbsd): Likewise.
21782 (grub_cmd_netbsd): Likewise.
21783 (cmd_freebsd): Changed type to grub_extcmd_t.
21784 (cmd_openbsd): Likewise.
21785 (cmd_netbsd): Likewise.
21786 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
21787 grub_cmd_openbsd as extended commands.
21788 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
21789 cmd_netbsd and cmd_openbsd
21790
21791 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
21792
21793 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
21794
21795 2009-08-21 Pavel Roskin <proski@gnu.org>
21796
21797 * Makefile.in (install-local): When checking if a file is in the
21798 build directory, use "test -e" to detect symlinks.
21799
21800 * Makefile.in (install-local): Remove all files in
21801 $(DESTDIR)$(pkglibdir) before installing new files there.
21802
21803 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
21804
21805 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
21806 grub-mkelfimage.
21807
21808 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
21809
21810 * util/grub-mkconfig.in: Don't use gfxterm by default if not
21811 explicitly specified by the user.
21812
21813 2009-08-18 Pavel Roskin <proski@gnu.org>
21814
21815 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
21816 grub_uint8_t pointer for data.
21817 * include/grub/fbutil.h (struct grub_video_fbblit_info):
21818 Likewise.
21819 * video/fb/fbutil.c: Remove unnecessary casts.
21820
21821 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
21822
21823 VBE cleanup.
21824
21825 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
21826 (grub_vbe_set_video_mode): Save active mode info
21827 only after setting the mode.
21828 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
21829 second argument.
21830
21831 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
21832
21833 Rename variables for clarity.
21834
21835 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
21836 (active_vbe_mode_info): ... this. All users updated.
21837 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
21838 All users updated.
21839 (initial_mode): Rename to ...
21840 (initial_vbe_mode): ... this. All users updated.
21841 (mode_in_use): Rename to ..
21842 (vbe_mode_in_use): ... this. All users updated.
21843 (mode_list): Rename to ..
21844 (vbe_mode_list): ... this. All users updated.
21845 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
21846 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
21847 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
21848 'mode_list_size' to 'vbe_mode_list_size'.
21849 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
21850 'best_mode_info' to 'best_vbe_mode_info' and
21851 'best_mode' to 'best_vbe_mode'
21852
21853 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
21854
21855 Remove duplicate grub_video_fb_get_video_ptr.
21856
21857 * include/grub/fbutil.h (get_data_ptr): Rename to ...
21858 (grub_video_fb_get_video_ptr): ... this.
21859 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
21860 * video/fb/fbutil.c: Add comment about addressing.
21861 (get_data_ptr): Rename to ...
21862 (grub_video_fb_get_video_ptr): ... this. All users updated.
21863 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
21864
21865 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
21866
21867 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
21868 grub_dprintf() that was just added.
21869
21870 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
21871
21872 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
21873 (DEFAULT_VIDEO_MODE): Remove macros.
21874 (grub_linux_boot): Remove assumption that Linux has FB support,
21875 and use "text" as default video mode.
21876
21877 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
21878
21879 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
21880 grub_dprintf.
21881 * fs/fat.c (grub_fat_read_data): Likewise.
21882
21883 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
21884
21885 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
21886 payload.
21887 (grub_module): Likewise.
21888
21889 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
21890
21891 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
21892 mbi->cmdline but free playground.
21893
21894 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
21895
21896 Handle group offset on UFS1.
21897
21898 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
21899 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
21900
21901 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
21902
21903 Split ufs.mod into ufs1.mod and ufs2.mod.
21904
21905 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
21906 (grub_fstest_SOURCES): Likewise.
21907 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
21908 (ufs_mod_SOURCES): Remove.
21909 (ufs_mod_CFLAGS): Likewise.
21910 (ufs_mod_LDFLAGS): Likewise.
21911 (ufs1_mod_SOURCES): New variable.
21912 (ufs1_mod_CFLAGS): Likewise.
21913 (ufs1_mod_LDFLAGS): Likewise.
21914 (ufs2_mod_SOURCES): New variable.
21915 (ufs2_mod_CFLAGS): Likewise.
21916 (ufs2_mod_LDFLAGS): Likewise.
21917 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
21918 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
21919 Likewise.
21920 (grub_emu_SOURCES): Likewise.
21921 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21922 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
21923 (grub_setup_SOURCES): Likewise.
21924 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21925 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
21926 (grub_setup_SOURCES): Likewise.
21927 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
21928 Likewise.
21929 * fs/ufs2.c: New file.
21930 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
21931
21932 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
21933
21934 Framebuffer split.
21935
21936 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
21937 subsystem at the end.
21938 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
21939 (video_fb_mod_SOURCES): New variable.
21940 (video_fb_mod_CFLAGS): Likewise.
21941 (video_fb_mod_LDFLAGS): Likewise.
21942 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
21943 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
21944 * video/i386/pc/vbeblit.c: Moved from here ...
21945 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
21946 * video/i386/pc/vbefill.c: Moved from here ...
21947 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
21948 * video/i386/pc/vbeutil.c: Moved from here ...
21949 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
21950 * include/grub/i386/pc/vbeblit.h: Moved from here ...
21951 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
21952 * include/grub/i386/pc/vbefill.h: Moved from here ...
21953 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
21954 * include/grub/i386/pc/vbeutil.h: Moved from here ...
21955 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
21956 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
21957 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
21958 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
21959 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
21960 (grub_video_adapter): Added 'get_info_and_fini'.
21961 (grub_video_get_info_and_fini): New prototype.
21962 (grub_video_set_mode): make modestring const char *.
21963 * loader/i386/linux.c (grub_linux_setup_video): Use
21964 grub_video_get_info_and_fini.
21965 (grub_linux_boot): Move modesetting just before booting.
21966 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
21967 grub_video_get_info_and_fini.
21968 * video/i386/pc/vbe.c: Moved framebuffer part ...
21969 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
21970 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
21971 grub_video_fbstd_colors and grub_video_fb_set_palette.
21972 (grub_video_vbe_init): Clear 'framebuffer' variable and use
21973 grub_video_fb_init.
21974 (grub_video_vbe_fini): Use grub_video_fb_fini.
21975 (grub_video_vbe_setup): Use framebuffer.render_target instead of
21976 render_target and use grub_video_fb_set_active_render_target and
21977 grub_video_fb_set_palette.
21978 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
21979 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
21980 (grub_video_vbe_adapter): Use framebuffer.
21981 * video/video.c (grub_video_get_info_and_fini): New function.
21982 (grub_video_set_mode): Make modestring const char *.
21983 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
21984 values are already initialised.
21985
21986 2009-08-14 Pavel Roskin <proski@gnu.org>
21987
21988 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
21989 ABS and APPLE_CC.
21990 * boot/i386/pc/diskboot.S: Likewise.
21991 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
21992 sectors allow compilation on MacOSX.
21993 * conf/i386-pc.rmk: Enable unconditional compilation of
21994 lnxboot.img.
21995
21996 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
21997
21998 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
21999 * util/grub.d/00_header.in: Enter interruptible sleep if
22000 GRUB_HIDDEN_TIMEOUT is set.
22001
22002 2009-08-13 Yves Blusseau <blusseau@zetam.org>
22003
22004 * include/grub/symbol.h: Add the LOCAL macro.
22005 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
22006 starting with "L_".
22007
22008 2009-08-13 Pavel Roskin <proski@gnu.org>
22009
22010 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
22011 any modern compilers we support.
22012
22013 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
22014 Use local labels starting with "L_" so that Apple assembler
22015 knows they are local.
22016
22017 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
22018
22019 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
22020 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
22021 (bsd_kernel_types): ... this enum.
22022
22023 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
22024 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
22025 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
22026
22027 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
22028 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
22029 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
22030 messages.
22031
22032 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
22033
22034 * util/grub-dumpdevtree: Moved from here ...
22035 * util/i386/efi/grub-dumpdevtree: ... to here.
22036 (hexify): New function. Converts a string to its hex version.
22037 Generate hex versions of "efi" and "device-properties" by calling
22038 hexify() on the ASCII strings rather than by hardcoding numbers.
22039
22040 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
22041
22042 * fs/jfs.c: Update copyright year.
22043
22044 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
22045
22046 * util/grub.d/00_header.in: Fix a comment.
22047 * util/grub.d/10_linux.in: Likewise.
22048 * util/grub.d/10_windows.in: Likewise.
22049 * util/grub.d/10_hurd.in: Likewise.
22050
22051 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
22052
22053 * util/grub-mkconfig.in: Allow the user to specify the used font
22054 with GRUB_FONT.
22055
22056 2009-08-08 Pavel Roskin <proski@gnu.org>
22057
22058 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
22059 available, xfs.mod needs it now.
22060
22061 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
22062 the "g" modifier in sed when the intention is to strip something
22063 once. This fixes comparison of kernels with multiple dashes.
22064
22065 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
22066 on it. Add missing space before closing bracket. Fix
22067 misleading formatting.
22068
22069 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
22070
22071 * docs/grub.texi: Major overhaul. Remove all sections that are
22072 specific to GRUB Legacy, or mostly composed of Legacy-specific
22073 information.
22074
22075 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
22076
22077 * docs/version.texi: New file. Provides version information for
22078 grub.texi.
22079
22080 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
22081
22082 * docs/grub.texi: Update CVS information to SVN.
22083 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
22084
22085 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
22086
22087 * util/grub-mkconfig.in: Remove a wrong `fi'.
22088
22089 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
22090
22091 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
22092 (grub_jfs_uuid): New function.
22093 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
22094
22095 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
22096
22097 * util/grub-mkconfig_lib.in (font_path): Move the functionality
22098 of it to ...
22099 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
22100 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
22101
22102 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
22103
22104 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
22105 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
22106 Update all users.
22107
22108 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
22109 not just "vmlinu[zx]".
22110 Moved from here ...
22111 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
22112 all users.
22113
22114 * util/grub.d/10_linux.in (find_latest): Moved from here ...
22115 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
22116 all users.
22117
22118 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
22119
22120 * util/grub.d/10_freebsd.in: Use an absolute device path for
22121 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
22122
22123 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
22124
22125 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
22126 handling of multiple abstraction modules.
22127
22128 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
22129
22130 Fix a bug resulting in black screen when loading Linux using a
22131 packed video mode.
22132
22133 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
22134 function.
22135
22136 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
22137 (grub_vbe_bios_getset_dac_palette_width): New function.
22138 (grub_vbe_bios_get_dac_palette_width)
22139 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
22140 grub_vbe_bios_getset_dac_palette_width()).
22141
22142 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
22143 check for return status.
22144 (grub_vbe_get_video_mode_info): When getting information for a packed
22145 mode (<= 8 bpp), obtain DAC palette width using
22146 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
22147 {red,green,blue}_mark_size.
22148
22149 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
22150
22151 * commands/search.c (options): Fix help output to match actual code.
22152
22153 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
22154
22155 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
22156 of homegrown code.
22157
22158 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
22159
22160 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
22161 on XFS or ReiserFS.
22162
22163 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
22164
22165 Support Apple partition map with sector size different from 512 bytes.
22166
22167 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
22168 (apple_partition_map_iterate): Respect 'aheader.blocksize'
22169 and 'apart.partmap_size'.
22170
22171 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
22172 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
22173
22174 Fix cpuid command.
22175
22176 * commands/i386/cpuid.c (options): New variable.
22177 (grub_cmd_cpuid): Return real error.
22178 (GRUB_MOD_INIT(cpuid)): Declare options.
22179
22180 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
22181
22182 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
22183 valid.
22184
22185 2009-07-31 Bean <bean123ch@gmail.com>
22186
22187 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
22188 log2_inode.
22189 (grub_fshelp_node): Move inode field to the end.
22190 (grub_xfs_data): Remove inode field.
22191 (grub_xfs_inode_block): Calculate inode size using sblock.
22192 (grub_xfs_inode_offset): Likewise.
22193 (grub_xfs_read_inode): Calculate inode size using sblock.
22194 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
22195 (grub_xfs_iterate_dir): Calculate inode size using sblock.
22196 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
22197 to match inode size.
22198 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
22199 not accessible when data is null.
22200 (grub_xfs_open): Likewise.
22201
22202 2009-07-31 Bean <bean123ch@gmail.com>
22203
22204 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
22205 Don't change pv->disk if it's already set.
22206
22207 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
22208 (grub_raid_register): ... here.
22209 (grub_raid_rescan): Removed.
22210
22211 * include/grub/raid.h (grub_raid_rescan): Removed.
22212
22213 * util/grub-fstest.c: Remove include file <grub/raid.h>.
22214 (fstest): Replace grub_raid_rescan with module fini function followed
22215 by init function.
22216
22217 * util/grub-probe.c: Add include file <grub/raid.h>.
22218 (probe_raid_level): New function.
22219 (probe): Detect abstraction by walking the disk device, support two
22220 level of abstraction (LVM on RAID) when detecting partition map.
22221
22222 2009-07-31 Pavel Roskin <proski@gnu.org>
22223
22224 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
22225 to grub_zalloc(), it was erroneous.
22226 Reported by Bean <bean123ch@gmail.com>
22227
22228 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
22229
22230 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
22231 embedding zone, not only the first one.
22232
22233 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
22234
22235 * term/gfxterm.c (clear_char): New function.
22236 (grub_virtual_screen_setup): Use clear_char.
22237 (scroll_up): Likewise.
22238 (grub_virtual_screen_cls): Likewise.
22239
22240 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
22241
22242 * util/deviceiter.c (get_acceleraid_disk_name): New static
22243 function.
22244 (grub_util_iterate_devices): Handle Accelraid devices.
22245 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
22246
22247 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
22248
22249 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
22250 separator for the suggested gfxpayload string (';' collides with the
22251 parser and needs escaping).
22252
22253 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
22254
22255 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
22256 Clear direction flag before jumping to OS.
22257 (grub_multiboot2_real_boot): Likewise.
22258
22259 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
22260
22261 * util/i386/pc/grub-install: Fix parsing of --disk-module
22262 option.
22263
22264 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
22265
22266 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
22267 when embedding.
22268
22269 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
22270
22271 * util/grub-mkconfig.in (package_version): New variable.
22272 Use it do display the version.
22273
22274 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
22275
22276 * kern/file.c (grub_file_open): Revert to previous check with
22277 grub_errno.
22278
22279 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
22280
22281 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
22282 from help line. It's out of sync with code.
22283
22284 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
22285
22286 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
22287 entries on failed boot.
22288
22289 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
22290
22291 * kern/file.c (grub_file_open): Fix an error check.
22292
22293 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
22294
22295 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
22296 partition map couldn't be identified.
22297
22298 2009-07-23 Pavel Roskin <proski@gnu.org>
22299
22300 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
22301 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
22302 case of little endian words becomes just an optimization.
22303 Respect const modifier.
22304 (md5_final): Use code that doesn't depend on endianness.
22305
22306 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
22307 to avoid loss of upper bits if align is unsigned and shorter
22308 than addr.
22309
22310 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
22311
22312 UUID support for UFS
22313
22314 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
22315 (grub_ufs_uuid): New function.
22316 (grub_ufs_fs): add .uuid
22317
22318 2009-07-21 Pavel Roskin <proski@gnu.org>
22319
22320 * kern/dl.c (grub_dl_check_header): Make static.
22321
22322 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
22323
22324 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
22325 add drivemap for Vista. It breaks Windows 7.
22326
22327 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
22328
22329 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
22330 128 bytes
22331
22332 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
22333
22334 Add BFS support
22335
22336 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
22337 (grub_fstest_SOURCES): Likewise.
22338 (pkglib_MODULES): Add befs.mod.
22339 (befs_mod_SOURCES): New variable.
22340 (befs_mod_CFLAGS): Likewise.
22341 (befs_mod_LDFLAGS): Likewise.
22342 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
22343 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
22344 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22345 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
22346 (grub_setup_SOURCES): Likewise.
22347 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22348 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22349 (grub_setup_SOURCES): Likewise.
22350 * fs/befs.c: New file.
22351 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
22352 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
22353 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
22354 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
22355 (B_KEY_INDEX_ALIGN): New declaration.
22356 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
22357 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
22358 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
22359 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
22360 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
22361 (grub_afs_mount) [MODE_BFS]: Likewise.
22362 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
22363 (grub_afs_fs): Use GRUB_AFS_FSNAME
22364 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
22365 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
22366 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
22367 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
22368
22369 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
22370
22371 * util/getroot.c (find_root_device): Add support for MacOSX.
22372 * util/hostdisk.c: Likewise.
22373
22374 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
22375
22376 * font/font.c (find_glyph): Check whether a font is present to avoid
22377 segmentation fault.
22378
22379 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
22380
22381 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
22382
22383 2009-07-20 Pavel Roskin <proski@gnu.org>
22384
22385 * configure.ac: Trim excessively wordy excuses.
22386
22387 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
22388
22389 Add symlink, mtime and label support to AtheFS.
22390
22391 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
22392 (grub_afs_iterate_dir): Handle symlinks.
22393 (grub_afs_open): Use grub_afs_read_symlink.
22394 (grub_afs_dir): Likewise.
22395 Pass mtime.
22396 (grub_afs_label): New function.
22397 (grub_afs_fs): Add grub_afs_label.
22398 (grub_afs_read_symlink): New function.
22399
22400 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
22401
22402 Fix AtheFS support.
22403
22404 * fs/afs.c: Fix comments style.
22405 (grub_afs_blockrun): Declare as packed.
22406 (grub_afs_datastream): Likewise.
22407 (grub_afs_bnode): Likewise.
22408 (grub_afs_btree): Likewise.
22409 (grub_afs_sblock): Likewise.
22410 Declare `name' as char.
22411 (grub_afs_inode): Declare as packed.
22412 Change void *vnode to grub_uint32_t unused.
22413 (grub_afs_iterate_dir): Check that key_size is positive.
22414 (grub_afs_mount): Don't read superblock twice.
22415 (grub_afs_dir): Don't free node in case of error,
22416 grub_fshelp_find_file already handles this.
22417 (grub_afs_open): Likewise.
22418
22419 2009-07-19 Pavel Roskin <proski@gnu.org>
22420
22421 * Makefile.in: Remove LIBLZO and enable_lzo.
22422 * conf/i386-pc.rmk: Remove lzo support.
22423 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
22424 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
22425 support.
22426 * kern/i386/pc/lzo1x.S: Remove.
22427 * kern/i386/pc/startup.S: Remove lzo support.
22428 * util/i386/pc/grub-mkimage.c: Likewise.
22429
22430 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
22431
22432 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
22433 * fs/xfs.c (grub_xfs_dir): Likewise.
22434 * fs/afs.c (grub_afs_dir): Likewise.
22435 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
22436 (grub_iso9660_open): Likewise.
22437 * fs/jfs.c (grub_jfs_open): Likewise.
22438 * fs/ext2.c (grub_ext2_dir): Likewise.
22439 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
22440 * script/sh/lexer.c (grub_script_yylex): Likewise.
22441
22442 2009-07-16 Pavel Roskin <proski@gnu.org>
22443
22444 * configure.ac: Never add "-c" to CFLAGS.
22445
22446 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
22447
22448 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
22449 grub_cv_cc_efiemu should be used.
22450
22451 * configure.ac: Typo fixes.
22452
22453 * kern/mm.c (grub_zalloc): New function.
22454 (grub_debug_zalloc): Likewise.
22455 * include/grub/mm.h: Declare grub_zalloc() and
22456 grub_debug_zalloc().
22457 * util/misc.c (grub_zalloc): New function.
22458 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
22459 instead of grub_malloc(), remove unneeded initializations.
22460 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
22461 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
22462 * commands/parttool.c (grub_cmd_parttool): Likewise.
22463 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
22464 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
22465 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
22466 * disk/usbms.c (grub_usbms_finddevs): Likewise.
22467 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
22468 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
22469 (grub_cmd_efiemu_pnvram): Likewise.
22470 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
22471 * fs/iso9660.c (grub_iso9660_mount): Likewise.
22472 (grub_iso9660_iterate_dir): Likewise.
22473 * fs/jfs.c (grub_jfs_opendir): Likewise.
22474 * fs/ntfs.c (list_file): Likewise.
22475 (grub_ntfs_mount): Likewise.
22476 * kern/disk.c (grub_disk_open): Likewise.
22477 * kern/dl.c (grub_dl_load_core): Likewise.
22478 * kern/elf.c (grub_elf_file): Likewise.
22479 * kern/env.c (grub_env_context_open): Likewise.
22480 (grub_env_set): Likewise.
22481 (grub_env_set_data_slot): Likewise.
22482 * kern/file.c (grub_file_open): Likewise.
22483 * kern/fs.c (grub_fs_blocklist_open): Likewise.
22484 * loader/i386/multiboot.c (grub_module): Likewise.
22485 * loader/xnu.c (grub_xnu_create_key): Likewise.
22486 (grub_xnu_create_value): Likewise.
22487 * normal/main.c (grub_normal_add_menu_entry): Likewise.
22488 (read_config_file): Likewise.
22489 * normal/menu_entry.c (make_screen): Likewise.
22490 * partmap/sun.c (sun_partition_map_iterate): Likewise.
22491 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
22492 * script/sh/script.c (grub_script_parse): Likewise.
22493 * video/bitmap.c (grub_video_bitmap_create): Likewise.
22494 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
22495 * video/readers/png.c (grub_png_output_byte): Likewise.
22496 (grub_video_reader_png): Likewise.
22497
22498 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
22499
22500 Enable all targets that can be built by default
22501
22502 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
22503 grub-mkfont and grub-fstest if they can be built
22504
22505 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
22506
22507 Fix hang and segmentation fault in grub-emu-usb
22508
22509 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
22510 * util/usb.c (grub_libusb_devices): likewise
22511 (grub_libusb_init): rename to ...
22512 (GRUB_MOD_INIT (libusb)):...this
22513 (grub_libusb_fini): rename to ..
22514 (GRUB_MOD_FINI (libusb)):...this
22515 * disk/usbms.c (grub_usbms_transfer): fix retry logic
22516 * include/grub/disk.h (grub_raid_init): removed, it's useless
22517 (grub_raid_fini): likewise
22518 (grub_lvm_init): likewise
22519 (grub_lvm_fini): likewise
22520 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
22521 by grub_init_all
22522
22523 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
22524
22525 Fix libusb
22526
22527 * Makefile.in (LIBUSB): new macro
22528 * genmk.rb (Utility/print_tail): new method
22529 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
22530 (top level): call util.print_tail at the end.
22531
22532 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
22533
22534 Make FreeBSD accept zpool.cache
22535
22536 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
22537 type is /boot/zfs/zpool.cache
22538
22539 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
22540
22541 Fix 64-bit efiemu
22542
22543 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
22544 correct wrong typedef
22545 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
22546
22547 2009-07-15 Pavel Roskin <proski@gnu.org>
22548
22549 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
22550 * kern/disk.c (struct grub_disk_cache): Likewise.
22551
22552 * commands/probe.c (options): Typo fix.
22553
22554 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
22555 Increase to 0x5a to accommodate FAT32. Adjust other offsets
22556 accordingly.
22557 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
22558
22559 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
22560 the end of "Error" to make the message more readable.
22561
22562 * boot/i386/pc/boot.S (kernel_segment): Remove.
22563 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
22564 for destination.
22565
22566 * boot/i386/pc/boot.S (boot_version): Remove.
22567 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
22568 Remove.
22569
22570 * include/grub/i386/pc/boot.h: Sort all offsets.
22571 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
22572 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
22573 * boot/i386/pc/boot.S: Assert location of every offset listed in
22574 include/grub/i386/pc/boot.h.
22575
22576 2009-07-13 Pavel Roskin <proski@gnu.org>
22577
22578 * include/grub/i386/coreboot/machine.h: Rename
22579 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
22580 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
22581 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
22582
22583 * kern/dl.c: Force native word size to suppress warnings when
22584 compiling grub-emu.
22585
22586 * kern/device.c (grub_device_iterate): Change struct part_ent to
22587 hold the name, not a pointer to it. Use one grub_malloc() per
22588 partition, not two. Free partition_name if grub_malloc() fails.
22589 Set ents to NULL only before grub_partition_iterate() is called.
22590
22591 2009-07-11 Bean <bean123ch@gmail.com>
22592
22593 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
22594 childname.
22595
22596 2009-07-10 Bean <bean123ch@gmail.com>
22597 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
22598
22599 * kern/ieee1275/openfw.c (grub_children_iterate)
22600 (grub_devalias_iterate): Fix size evaluation for property or path
22601 strings, which was broken since r2132.
22602
22603 2009-07-07 Pavel Roskin <proski@gnu.org>
22604
22605 * commands/search.c (search_file): Merge into ...
22606 (search_fs): ... this. Accept search type as argument.
22607 (grub_cmd_search): Pass search type to search_fs().
22608
22609 * include/grub/util/console.h: New file.
22610 * util/console.c: Use it instead of grub/machine/console.h.
22611 * util/grub-emu.c: Likewise.
22612
22613 * lib/arg.c (find_long_option): Remove.
22614 (find_long): Add `len' argument, make `s' const char *.
22615 (grub_arg_parse): Parse long options in place, not in a
22616 temporary buffer.
22617
22618 2009-07-06 Pavel Roskin <proski@gnu.org>
22619
22620 * commands/search.c (search_fs): Fix potential NULL pointer
22621 dereference.
22622
22623 * commands/search.c (search_fs): Replace QUID macro with quid_fn
22624 function pointer.
22625
22626 2009-07-06 Daniel Mierswa <impulze@impulze.org>
22627
22628 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
22629 comparison.
22630
22631 2009-07-05 Pavel Roskin <proski@gnu.org>
22632
22633 * include/grub/i386/linux.h (struct linux_kernel_params):
22634 Restore padding3, it's still needed.
22635
22636 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
22637 FreeBSD.
22638 * util/osdetect.lua: Likewise.
22639
22640 2009-07-05 Bean <bean123ch@gmail.com>
22641
22642 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
22643
22644 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
22645 (grub_lua_getenv): Likewise.
22646 (grub_lua_setenv): Likewise.
22647 (save_errno): New function.
22648 (push_result): Likewise.
22649 (grub_lua_enum_device): Likewise.
22650 (grub_lua_enum_file): Likewise.
22651 (grub_lua_file_open): Likewise.
22652 (grub_lua_file_close): Likewise.
22653 (grub_lua_file_seek): Likewise.
22654 (grub_lua_file_read): Likewise.
22655 (grub_lua_file_getline): Likewise.
22656 (grub_lua_file_getsize): Likewise.
22657 (grub_lua_file_getpos): Likewise.
22658 (grub_lua_file_eof): Likewise.
22659 (grub_lua_file_exist): Likewise.
22660 (grub_lua_add_menu): Likewise.
22661
22662 * script/lua/grub_lua.h (isupper): New inline function.
22663 (islower): Likewise.
22664 (ispunct): Likewise.
22665 (isxdigit): Likewise.
22666 (strcspn): Change to normal function.
22667 (strpbkr): New function declaration.
22668 (memchr): Likewise.
22669
22670 * script/lua/grub_main.c (scan_str): New function.
22671 (strcspn): Likewise.
22672 (strpbrk): Likewise.
22673 (memchr): Likewise.
22674
22675 * script/lua/linit.c (lualibs): Enable the string library.
22676
22677 * util/osdetect.lua: New file.
22678
22679 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
22680
22681 * include/grub/i386/linux.h (struct linux_kernel_params): Add
22682 `capabilities' member.
22683
22684 2009-07-02 Pavel Roskin <proski@gnu.org>
22685
22686 * genparttoollist.sh: Add missing newline at the end.
22687
22688 2009-07-01 Pavel Roskin <proski@gnu.org>
22689
22690 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
22691
22692 * util/hostdisk.c (open_device): Remove `const' from
22693 `sysctl_size', as sysctlbyname() can change it (in this case it
22694 doesn't actually happen).
22695
22696 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
22697 using signed long int constants.
22698
22699 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
22700 constant to avoid a warning on FreeBSD.
22701
22702 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
22703 where it's needed.
22704
22705 * Makefile.in: Install include/grub/machine symlink.
22706
22707 * Makefile.in: When installing symlinks, use "cp -fR", which
22708 works on FreeBSD and MacOSX.
22709 From Yves Blusseau <cl7m42e02@sneakemail.com>
22710
22711 * kern/dl.c (grub_dl_resolve_symbol): Make static.
22712 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
22713
22714 * util/misc.c: Move grub_reboot() and grub_halt() ...
22715 * util/grub-emu.c: ... here. Make main_env static.
22716 * include/grub/util/misc.h: Remove main_env.
22717
22718 * kern/mm.c: Use correct format to print size_t.
22719
22720 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
22721 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
22722 * kern/powerpc/dl.c: Likewise.
22723 * kern/sparc64/dl.c: Likewise.
22724 * kern/x86_64/dl.c: Likewise.
22725
22726 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
22727
22728 Fix grub-emu build on sparc64-ieee1275.
22729
22730 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
22731 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
22732
22733 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
22734
22735 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
22736 (grub_reboot, grub_halt): New functions.
22737
22738 * util/i386/pc/misc.c: Delete. Update all users.
22739 * util/sparc64/ieee1275/misc.c: Likewise.
22740 * util/powerpc/ieee1275/misc.c: Likewise.
22741
22742 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
22743
22744 * conf/i386.rmk (setjmp_mod_SOURCES)
22745 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
22746 * conf/common.rmk (setjmp_mod_SOURCES)
22747 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
22748 to use $(target_cpu).
22749 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
22750 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
22751 * conf/powerpc-ieee1275.rmk: Likewise.
22752 * conf/sparc64-ieee1275.rmk: Likewise.
22753
22754 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
22755 $(target_cpu) for kern/$(target_cpu)/dl.c.
22756 * conf/i386-efi.rmk: Likewise.
22757 * conf/i386-ieee1275.rmk: Likewise.
22758 * conf/x86_64-efi.rmk: Likewise.
22759 * conf/i386-coreboot.rmk: Likewise.
22760 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
22761 $(target_cpu) for kern/$(target_cpu)/dl.c and for
22762 kern/$(target_cpu)/cache.S.
22763 * conf/sparc64-ieee1275.rmk: Likewise.
22764
22765 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
22766
22767 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
22768 type to `grub_uint8_t', and adjust `padding9' accordingly.
22769
22770 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
22771
22772 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
22773
22774 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
22775 assembly in final jump, using register constraints.
22776
22777 (grub_linux_boot): For text mode, initialize `have_vga' using
22778 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
22779
22780 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
22781 right before the final jump.
22782
22783 Set `video_mode' to 0x3.
22784
22785 Document initialization of `video_page', `video_mode' and
22786 `video_ega_bx'.
22787
22788 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
22789
22790 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
22791 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
22792 and set GRUB_LINUX_FLAG_QUIET appropriately.
22793
22794 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
22795
22796 Fix build on Debian / sparc.
22797
22798 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
22799
22800 2009-06-28 Pavel Roskin <proski@gnu.org>
22801
22802 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
22803 fix a warning.
22804
22805 * util/grub.d/10_linux.in: Match SUSE style initrd names.
22806
22807 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
22808
22809 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
22810 `err'.
22811
22812 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
22813
22814 Revert r2338.
22815
22816 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
22817 file can't be opened. grub_file_open() is already supposed to set
22818 grub_errno / grub_errmsg appropriately.
22819 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
22820
22821 2009-06-27 Pavel Roskin <proski@gnu.org>
22822 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
22823
22824 * include/grub/dl.h: Include grub/elf.h.
22825 (struct grub_dl): Add symtab field.
22826 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
22827 GRUB_MODULES_MACHINE_READONLY.
22828 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
22829 of the header for read-only modules.
22830 (grub_dl_unload): Free mod->symtab for read-only modules.
22831 * kern/i386/dl.c: Use mod->symtab.
22832 * kern/powerpc/dl.c: Likewise.
22833 * kern/sparc64/dl.c: Likewise.
22834 * kern/x86_64/dl.c: Likewise.
22835
22836 * conf/i386-qemu.rmk: New file.
22837 * kern/i386/qemu/startup.S: Likewise.
22838 * kern/i386/qemu/mmap.c: Likewise.
22839 * boot/i386/qemu/boot.S: Likewise.
22840 * include/grub/i386/qemu/time.h: Likewise.
22841 * include/grub/i386/qemu/serial.h: Likewise.
22842 * include/grub/i386/qemu/kernel.h: Likewise.
22843 * include/grub/i386/qemu/console.h: Likewise.
22844 * include/grub/i386/qemu/boot.h: Likewise.
22845 * include/grub/i386/qemu/init.h: Likewise.
22846 * include/grub/i386/qemu/machine.h: Likewise.
22847 * include/grub/i386/qemu/loader.h: Likewise.
22848 * include/grub/i386/qemu/memory.h: Likewise.
22849
22850 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
22851 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
22852 [qemu] (pkglib_IMAGES): Add `boot.img'.
22853 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
22854 [qemu] (boot_img_FORMAT): New variables.
22855 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
22856 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
22857 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
22858 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
22859 [qemu] (kernel_img_FORMAT): New variables.
22860
22861 * configure.ac: Recognise `i386-qemu'.
22862
22863 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
22864 (for no compression).
22865 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
22866 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
22867 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
22868 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
22869 ifdefs).
22870
22871 2009-06-27 Pavel Roskin <proski@gnu.org>
22872
22873 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
22874 read.
22875 * efiemu/prepare32.c: Likewise.
22876 * efiemu/prepare64.c: Likewise.
22877
22878 2009-06-26 Pavel Roskin <proski@gnu.org>
22879
22880 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
22881 * include/grub/elf.h: Define symbols without "32" or "64" based
22882 on GRUB_TARGET_WORDSIZE.
22883 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
22884 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
22885 ELF definitions.
22886 * efiemu/loadcore64.c: Likewise.
22887 * loader/i386/bsd32.c: Likewise.
22888 * loader/i386/bsd64.c: Likewise.
22889 * kern/dl.c: Remove own ELF definitions.
22890 * util/i386/efi/grub-mkimage.c: Likewise.
22891
22892 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
22893
22894 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
22895 segment 0x0 unconditionally, because the reference generated by
22896 GAS is an absolute address.
22897
22898 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
22899
22900 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
22901 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
22902
22903 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
22904
22905 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
22906 indexes. Check for -f explicitly.
22907 (search_file): Improve error message.
22908 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
22909
22910 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
22911
22912 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
22913 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
22914
22915 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
22916
22917 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
22918 * conf/i386-ieee1275.rmk: Likewise.
22919 * conf/i386-coreboot.rmk: Likewise.
22920
22921 * kern/i386/pc/startup.S (grub_stop): Remove function.
22922 * kern/i386/ieee1275/startup.S: Likewise.
22923 * kern/i386/coreboot/startup.S: Likewise.
22924 * kern/i386/misc.S (grub_stop): New function.
22925
22926 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
22927
22928 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
22929 * kern/i386/realmode.S (real_to_prot): ... to here.
22930
22931 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
22932
22933 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
22934 with `kernel.img'.
22935 (kernel_elf_SOURCES): Rename to ...
22936 (kernel_img_SOURCES): ... this.
22937 (kernel_elf_HEADERS): Rename to ...
22938 (kernel_img_HEADERS): ... this. Update all users.
22939 (kernel_elf_ASFLAGS): Rename to ...
22940 (kernel_img_ASFLAGS): ... this.
22941 (kernel_elf_CFLAGS): Rename to ...
22942 (kernel_img_CFLAGS): ... this.
22943 (kernel_elf_LDFLAGS): Rename to ...
22944 (kernel_img_LDFLAGS): ... this.
22945 * conf/i386-coreboot.rmk: Likewise.
22946 * conf/powerpc-ieee1275.rmk: Likewise.
22947
22948 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
22949 with "kernel.img".
22950
22951 2009-06-21 Pavel Roskin <proski@gnu.org>
22952
22953 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
22954 to match nested functions.
22955 * loader/sparc64/ieee1275/linux.c: Likewise.
22956
22957 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
22958
22959 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
22960
22961 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
22962 all i386 platforms.
22963
22964 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
22965
22966 Fix asm file handling on ELF, and remove workarounds.
22967
22968 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
22969 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
22970 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
22971 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
22972
22973 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
22974
22975 Load BSD ELF modules
22976
22977 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
22978 and loader/i386/bsd64.c
22979 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
22980 (FREEBSD_MODTYPE_ELF_MODULE): New definition
22981 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
22982 (grub_freebsd_load_elfmodule32): New declaration
22983 (grub_freebsd_load_elfmoduleobj64): Likewise
22984 (grub_freebsd_load_elf_meta32): Likewise
22985 (grub_freebsd_load_elf_meta64): Likewise
22986 (grub_freebsd_add_meta): Likewise
22987 (grub_freebsd_add_meta_module): Likewise
22988 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
22989 (grub_freebsd_add_meta_module): Likewise and move module-specific
22990 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
22991 (grub_cmd_freebsd): Add elf-kernel specific parts
22992 based on grub_freebsd_add_meta_module
22993 (grub_cmd_freebsd_module): Add type parsing moved from
22994 grub_freebsd_add_meta_module
22995 (grub_cmd_freebsd_module_elf): New function
22996 (cmd_freebsd_module_elf): New variable
22997 (GRUB_MOD_INIT): Register freebsd_module_elf
22998 * loader/i386/bsd32.c: New file
22999 * loader/i386/bsd64.c: Likewise
23000 * loader/i386/bsdXX.c: Likewise
23001 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
23002 (grub_elf64_load): Likewise
23003 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
23004 All users updated
23005 (grub_elf64_load_hook_t): Likewise
23006
23007 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
23008
23009 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
23010 variable.
23011 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
23012 don't write a menu entry for recovery mode.
23013
23014 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
23015
23016 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
23017 after it's no longer needed.
23018
23019 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
23020
23021 * include/grub/i386/loader.h (grub_linux_prot_size)
23022 (grub_linux_tmp_addr, grub_linux_real_addr)
23023 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
23024 GRUB_MACHINE_PCBIOS.
23025 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
23026 common grub_util_info() call to ...
23027 (generate_image): ... here.
23028 Fix use of uninitialized memory, comparison of signed with
23029 unsigned integers and memory leak.
23030 Remove bogus module address message.
23031
23032 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
23033
23034 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
23035 grub_raid_register
23036 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
23037
23038 2009-06-19 Pavel Roskin <proski@gnu.org>
23039
23040 * configure.ac: Remove stray AC_MSG_CHECKING.
23041
23042 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
23043
23044 * disk/scsi.c (grub_scsi_open): use continue instead of big if
23045
23046 2009-06-18 Pavel Roskin <proski@gnu.org>
23047
23048 * conf/common.rmk: Add fs_file.mod.
23049 * disk/fs_file.c: New file.
23050 * include/grub/disk.h (enum grub_disk_dev_id): Add
23051 GRUB_DISK_DEVICE_FILE_ID.
23052
23053 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
23054
23055 Fix build with Apple's toolchain. Part 2
23056
23057 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
23058 a fake start
23059
23060 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
23061
23062 Fix build with Apple's toolchain. Part 1
23063
23064 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
23065 for long calls
23066 * configure.ac: remove a leftover AC_MSG_RESULT
23067 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
23068 Apple's toolchain
23069
23070 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
23071
23072 Fix warnings
23073
23074 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
23075 (decomp_block): initialize ch
23076 use grub_memcpy instead of memcpy
23077
23078 2009-06-17 Pavel Roskin <proski@gnu.org>
23079
23080 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
23081 version, use declarations needed to use vga_text as the startup
23082 console.
23083
23084 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
23085 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
23086 the kernel.
23087 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
23088 and grub_at_keyboard_fini(), it's done on module load and
23089 unload.
23090
23091 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
23092
23093 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
23094 file can't be found.
23095 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
23096
23097 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
23098
23099 Fix newline handling
23100
23101 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
23102 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
23103 (grub_script_yylex): don't segfault on unterminated script
23104 newline terminates command and variable
23105
23106 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
23107
23108 avoid double grub_adjust_range call. Bug reported by David Simner
23109
23110 * kern/disk.c (grub_disk_write): change to raw disk access before
23111 calling disk_read
23112
23113 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
23114
23115 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
23116 spaces, for the benefit of help2man.
23117 * util/i386/efi/grub-mkimage.c (usage): Likewise.
23118
23119 2009-06-16 Pavel Roskin <proski@gnu.org>
23120
23121 * kern/i386/halt.c: Include grub/machine/init.h.
23122 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
23123
23124 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
23125
23126 * util/grub.d/30_os-prober.in: Use ${root} in the generated
23127 drivemap menuentry.
23128
23129 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
23130
23131 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
23132 `echo' command.
23133
23134 2009-06-16 Pavel Roskin <proski@gnu.org>
23135
23136 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
23137 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
23138 save %dx, we only need %dl and we never change it.
23139 * boot/i386/pc/cdboot.S: Don't set the root drive.
23140 * boot/i386/pc/pxeboot.S: Likewise.
23141 * include/grub/i386/pc/boot.h: Remove
23142 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
23143 GRUB_BOOT_MACHINE_DRIVE_CHECK.
23144 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
23145 * kern/i386/pc/init.c (make_install_device): Remove references
23146 to grub_root_drive.
23147 * kern/i386/pc/startup.S: Likewise.
23148 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
23149
23150 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
23151
23152 xnu_uuid command
23153
23154 * commands/xnu_uuid.c: new file
23155 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
23156 (xnu_uuid_mod_SOURCES): new variable
23157 (xnu_uuid_mod_CFLAGS): likewise
23158 (xnu_uuid_mod_LDFLAGS): likewise
23159 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
23160 * conf/i386-ieee1275.rmk: likewise
23161 * conf/i386-pc.rmk: likewise
23162 * conf/powerpc-ieee1275.rmk: likewise
23163 * conf/sparc64-ieee1275.rmk: likewise
23164 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
23165
23166 2009-06-16 Pavel Roskin <proski@gnu.org>
23167
23168 * configure.ac: Avoid '==' in test command, it's not portable.
23169
23170 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
23171
23172 Probe command
23173
23174 * commands/probe.c: new file
23175 * conf/common.rmk (pkglib_MODULES): add probe.mod
23176 (probe_mod_SOURCES): new variable
23177 (probe_mod_CFLAGS): likewise
23178 (probe_mod_LDFLAGS): likewise
23179 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
23180 * conf/i386-ieee1275.rmk: likewise
23181 * conf/i386-pc.rmk: likewise
23182 * conf/powerpc-ieee1275.rmk: likewise
23183 * conf/sparc64-ieee1275.rmk: likewise
23184
23185 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
23186
23187 Fix handling of string like \"hello\" and "a
23188 b"
23189
23190 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
23191 (grub_script_yylex): fix parsing of quoting, escaping and newline
23192
23193 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
23194
23195 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
23196 handling
23197
23198 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
23199
23200 * util/grub-mkconfig.in: Fix parsing of --output option.
23201
23202 2009-06-12 Pavel Roskin <proski@gnu.org>
23203
23204 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
23205 genmk.rb don't need to be generated or installed.
23206
23207 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
23208
23209 * commands/i386/pc/drivemap_int13h.S: add more comments
23210
23211 2009-06-11 Pavel Roskin <proski@gnu.org>
23212
23213 * Makefile.in (uninstall): Uninstall manuals.
23214
23215 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
23216 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
23217 and update-grub_lib in two places.
23218 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
23219
23220 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
23221 a compiler warning.
23222
23223 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
23224 `entry_lo' to fix variable shadowing.
23225
23226 2009-06-11 Christian Franke <franke@computer.org>
23227
23228 * kern/misc.c (__enable_execute_stack): Add missing return type
23229 to prevent gcc warning.
23230
23231 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
23232
23233 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
23234
23235 2009-06-11 Pavel Roskin <proski@gnu.org>
23236
23237 * Makefile.in: Don't rely on any scripts being executable.
23238 Always use $(SHELL) to run shell scripts.
23239
23240 * configure.ac: Always define ___main if using -nostdlib. This
23241 fixes tests on Cygwin.
23242
23243 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
23244
23245 UDF fix
23246
23247 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
23248 is in bytes and not in blocks
23249
23250 2009-06-11 Pavel Roskin <proski@gnu.org>
23251
23252 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
23253 warning.
23254
23255 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
23256
23257 * util/grub.d/30_os-prober.in: Fix a comment. Source
23258 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
23259 to set the root device. Place drivemap command in the generated
23260 chain entry.
23261
23262 2009-06-11 Pavel Roskin <proski@gnu.org>
23263
23264 * configure.ac: Remove host_m32. Issues with 64-bit utilities
23265 have long been resolved.
23266
23267 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
23268
23269 * util/grub.d/10_linux.in: Capitalise "Linux".
23270
23271 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
23272
23273 2009-06-11 Pavel Roskin <proski@gnu.org>
23274
23275 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
23276 fix a gcc warning and ensure that the function won't ever exit.
23277
23278 * kern/i386/ieee1275/init.c: Add missing prototype for
23279 grub_stop_floppy().
23280
23281 * loader/ieee1275/multiboot2.c [__i386__]: Include
23282 grub/cpu/multiboot.h.
23283
23284 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
23285 casts to short - they are not portable and cause warnings. Fix
23286 use of uninitialized values in input_buf. Use ARRAY_SIZE.
23287
23288 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
23289
23290 Drivemap fixes
23291
23292 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
23293 new function
23294 (grub_get_root_biosnumber_saved): new variable
23295 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
23296 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
23297 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
23298 %dx after the call if necessary
23299 * conf/common.rmk (pkglib_MODULES): remove boot.mod
23300 (boot_mod_SOURCES): remove
23301 (boot_mod_CFLAGS): remove
23302 (boot_mod_LDFLAGS): remove
23303 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
23304 (boot_mod_SOURCES): new variable
23305 (boot_mod_CFLAGS): likewise
23306 (boot_mod_LDFLAGS): likewise
23307 * conf/i386-efi.rmk: likewise
23308 * conf/i386-ieee1275.rmk: likewise
23309 * conf/i386-pc.rmk: likewise
23310 * conf/powerpc-ieee1275.rmk: likewise
23311 * conf/sparc64-ieee1275.rmk: likewise
23312 * conf/x86_64-efi.rmk: likewise
23313 * include/grub/i386/pc/biosnum.h: new file
23314 * lib/i386/pc/biosnum.c: likewise
23315 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
23316 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
23317 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
23318
23319 2009-06-10 Pavel Roskin <proski@gnu.org>
23320
23321 * io/gzio.c (test_header): Don't reuse one buffer for all data.
23322 Use separate variables. Read only the file size at the end, but
23323 not the checksum that we don't use.
23324
23325 * kern/file.c (grub_file_read): Use void pointer for the buffer.
23326 Adjust all callers.
23327
23328 * kern/ieee1275/openfw.c: Remove libc includes.
23329 * kern/ieee1275/cmain.c: Likewise.
23330 * include/grub/ieee1275/ieee1275.h: Likewise.
23331
23332 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
23333 compiler warnings.
23334
23335 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
23336
23337 * Makefile.in: Remove all trailing whitespace.
23338 * conf/i386-pc.rmk: Likewise.
23339 * conf/powerpc-ieee1275.rmk: Likewise.
23340 * conf/sparc64-ieee1275.rmk: Likewise.
23341 * docs/grub.texi: Likewise.
23342 * docs/texinfo.tex: Likewise.
23343 * disk/fs_uuid.c: Likewise.
23344 * disk/lvm.c: Likewise.
23345 * disk/scsi.c: Likewise.
23346 * disk/ata.c: Likewise.
23347 * disk/ieee1275/ofdisk.c: Likewise.
23348 * disk/i386/pc/biosdisk.c: Likewise.
23349 * disk/host.c: Likewise.
23350 * disk/raid.c: Likewise.
23351 * disk/efi/efidisk.c: Likewise.
23352 * disk/usbms.c: Likewise.
23353 * disk/memdisk.c: Likewise.
23354 * disk/loopback.c: Likewise.
23355 * kern/powerpc/dl.c: Likewise.
23356 * kern/device.c: Likewise.
23357 * kern/dl.c: Likewise.
23358 * kern/sparc64/dl.c: Likewise.
23359 * kern/ieee1275/ieee1275.c: Likewise.
23360 * kern/term.c: Likewise.
23361 * kern/fs.c: Likewise.
23362 * kern/i386/dl.c: Likewise.
23363 * kern/i386/pc/startup.S: Likewise.
23364 * kern/i386/pc/init.c: Likewise.
23365 * kern/i386/pc/mmap.c: Likewise.
23366 * kern/i386/pc/lzo1x.S: Likewise.
23367 * kern/i386/ieee1275/init.c: Likewise.
23368 * kern/i386/realmode.S: Likewise.
23369 * kern/i386/tsc.c: Likewise.
23370 * kern/partition.c: Likewise.
23371 * kern/corecmd.c: Likewise.
23372 * kern/file.c: Likewise.
23373 * kern/efi/efi.c: Likewise.
23374 * kern/efi/init.c: Likewise.
23375 * kern/efi/mm.c: Likewise.
23376 * kern/main.c: Likewise.
23377 * kern/err.c: Likewise.
23378 * kern/env.c: Likewise.
23379 * kern/disk.c: Likewise.
23380 * kern/generic/millisleep.c: Likewise.
23381 * kern/generic/rtc_get_time_ms.c: Likewise.
23382 * kern/misc.c: Likewise.
23383 * kern/parser.c: Likewise.
23384 * genmk.rb: Likewise.
23385 * configure.ac: Likewise.
23386 * boot/i386/pc/diskboot.S: Likewise.
23387 * boot/i386/pc/pxeboot.S: Likewise.
23388 * boot/i386/pc/boot.S: Likewise.
23389 * boot/i386/pc/lnxboot.S: Likewise.
23390 * boot/i386/pc/cdboot.S: Likewise.
23391 * parttool/pcpart.c: Likewise.
23392 * video/readers/tga.c: Likewise.
23393 * video/video.c: Likewise.
23394 * video/bitmap.c: Likewise.
23395 * lib/envblk.c: Likewise.
23396 * lib/i386/setjmp.S: Likewise.
23397 * fs/xfs.c: Likewise.
23398 * fs/afs.c: Likewise.
23399 * fs/fat.c: Likewise.
23400 * fs/ntfs.c: Likewise.
23401 * fs/udf.c: Likewise.
23402 * fs/affs.c: Likewise.
23403 * fs/iso9660.c: Likewise.
23404 * fs/hfs.c: Likewise.
23405 * fs/fshelp.c: Likewise.
23406 * fs/ext2.c: Likewise.
23407 * fs/jfs.c: Likewise.
23408 * fs/reiserfs.c: Likewise.
23409 * fs/hfsplus.c: Likewise.
23410 * fs/minix.c: Likewise.
23411 * fs/cpio.c: Likewise.
23412 * fs/sfs.c: Likewise.
23413 * fs/ufs.c: Likewise.
23414 * efiemu/prepare.c: Likewise.
23415 * efiemu/loadcore_common.c: Likewise.
23416 * efiemu/runtime/efiemu.sh: Likewise.
23417 * efiemu/runtime/efiemu.S: Likewise.
23418 * efiemu/runtime/efiemu.c: Likewise.
23419 * efiemu/pnvram.c: Likewise.
23420 * efiemu/main.c: Likewise.
23421 * efiemu/i386/pc/cfgtables.c: Likewise.
23422 * efiemu/i386/loadcore64.c: Likewise.
23423 * efiemu/i386/loadcore32.c: Likewise.
23424 * efiemu/loadcore.c: Likewise.
23425 * efiemu/symbols.c: Likewise.
23426 * efiemu/mm.c: Likewise.
23427 * include/grub/autoefi.h: Likewise.
23428 * include/grub/datetime.h: Likewise.
23429 * include/grub/term.h: Likewise.
23430 * include/grub/hfs.h: Likewise.
23431 * include/grub/lvm.h: Likewise.
23432 * include/grub/i386/tsc.h: Likewise.
23433 * include/grub/i386/linux.h: Likewise.
23434 * include/grub/i386/xnu.h: Likewise.
23435 * include/grub/i386/efiemu.h: Likewise.
23436 * include/grub/i386/pc/biosdisk.h: Likewise.
23437 * include/grub/i386/pc/memory.h: Likewise.
23438 * include/grub/i386/pc/vbe.h: Likewise.
23439 * include/grub/parttool.h: Likewise.
23440 * include/grub/video.h: Likewise.
23441 * include/grub/memory.h: Likewise.
23442 * include/grub/fs.h: Likewise.
23443 * include/grub/partition.h: Likewise.
23444 * include/grub/xnu.h: Likewise.
23445 * include/grub/efi/api.h: Likewise.
23446 * include/grub/efi/pe32.h: Likewise.
23447 * include/grub/efi/memory.h: Likewise.
23448 * include/grub/multiboot.h: Likewise.
23449 * include/grub/usbdesc.h: Likewise.
23450 * include/grub/multiboot2.h: Likewise.
23451 * include/grub/acpi.h: Likewise.
23452 * include/grub/efiemu/efiemu.h: Likewise.
23453 * include/grub/disk.h: Likewise.
23454 * include/grub/ieee1275/ieee1275.h: Likewise.
23455 * include/grub/net.h: Likewise.
23456 * include/grub/machoload.h: Likewise.
23457 * include/grub/macho.h: Likewise.
23458 * include/multiboot.h: Likewise.
23459 * genmoddep.awk: Likewise.
23460 * normal/main.c: Likewise.
23461 * normal/menu_entry.c: Likewise.
23462 * normal/menu_viewer.c: Likewise.
23463 * normal/completion.c: Likewise.
23464 * normal/cmdline.c: Likewise.
23465 * normal/misc.c: Likewise.
23466 * normal/datetime.c: Likewise.
23467 * bus/usb/usbtrans.c: Likewise.
23468 * bus/usb/ohci.c: Likewise.
23469 * bus/usb/uhci.c: Likewise.
23470 * bus/usb/usb.c: Likewise.
23471 * mmap/efi/mmap.c: Likewise.
23472 * mmap/i386/pc/mmap_helper.S: Likewise.
23473 * mmap/i386/pc/mmap.c: Likewise.
23474 * mmap/i386/mmap.c: Likewise.
23475 * mmap/i386/uppermem.c: Likewise.
23476 * mmap/mmap.c: Likewise.
23477 * commands/acpi.c: Likewise.
23478 * commands/echo.c: Likewise.
23479 * commands/blocklist.c: Likewise.
23480 * commands/loadenv.c: Likewise.
23481 * commands/usbtest.c: Likewise.
23482 * commands/boot.c: Likewise.
23483 * commands/parttool.c: Likewise.
23484 * commands/search.c: Likewise.
23485 * commands/cat.c: Likewise.
23486 * commands/i386/pc/play.c: Likewise.
23487 * commands/i386/pc/drivemap.c: Likewise.
23488 * commands/i386/pc/vbeinfo.c: Likewise.
23489 * commands/i386/pc/acpi.c: Likewise.
23490 * commands/i386/pc/vbetest.c: Likewise.
23491 * commands/ls.c: Likewise.
23492 * commands/cmp.c: Likewise.
23493 * commands/test.c: Likewise.
23494 * commands/efi/acpi.c: Likewise.
23495 * commands/gptsync.c: Likewise.
23496 * commands/help.c: Likewise.
23497 * partmap/amiga.c: Likewise.
23498 * partmap/apple.c: Likewise.
23499 * partmap/acorn.c: Likewise.
23500 * partmap/pc.c: Likewise.
23501 * partmap/sun.c: Likewise.
23502 * partmap/gpt.c: Likewise.
23503 * script/sh/lexer.c: Likewise.
23504 * script/sh/function.c: Likewise.
23505 * font/font.c: Likewise.
23506 * font/font_cmd.c: Likewise.
23507 * loader/powerpc/ieee1275/linux.c: Likewise.
23508 * loader/efi/chainloader.c: Likewise.
23509 * loader/multiboot_loader.c: Likewise.
23510 * loader/macho.c: Likewise.
23511 * loader/i386/multiboot.c: Likewise.
23512 * loader/i386/linux.c: Likewise.
23513 * loader/i386/pc/linux.c: Likewise.
23514 * loader/i386/pc/multiboot2.c: Likewise.
23515 * loader/i386/pc/chainloader.c: Likewise.
23516 * loader/i386/pc/xnu.c: Likewise.
23517 * loader/i386/bsd_trampoline.S: Likewise.
23518 * loader/i386/efi/linux.c: Likewise.
23519 * loader/i386/multiboot_elfxx.c: Likewise.
23520 * loader/i386/bsd_helper.S: Likewise.
23521 * loader/i386/bsd.c: Likewise.
23522 * loader/i386/linux_trampoline.S: Likewise.
23523 * loader/i386/xnu_helper.S: Likewise.
23524 * loader/i386/xnu.c: Likewise.
23525 * loader/i386/bsd_pagetable.c: Likewise.
23526 * loader/i386/multiboot_helper.S: Likewise.
23527 * loader/xnu.c: Likewise.
23528 * loader/xnu_resume.c: Likewise.
23529 * io/gzio.c: Likewise.
23530 * term/efi/console.c: Likewise.
23531 * term/terminfo.c: Likewise.
23532 * term/ieee1275/ofconsole.c: Likewise.
23533 * term/i386/pc/serial.c: Likewise.
23534 * term/i386/pc/vesafb.c: Likewise.
23535 * term/i386/pc/vga.c: Likewise.
23536 * term/usb_keyboard.c: Likewise.
23537 * term/gfxterm.c: Likewise.
23538 * aclocal.m4: Likewise.
23539 * util/lvm.c: Likewise.
23540 * util/grub.d/30_os-prober.in: Likewise.
23541 * util/grub.d/10_hurd.in: Likewise.
23542 * util/console.c: Likewise.
23543 * util/grub-macho2img.c: Likewise.
23544 * util/grub-probe.c: Likewise.
23545 * util/hostfs.c: Likewise.
23546 * util/i386/pc/grub-mkimage.c: Likewise.
23547 * util/i386/pc/grub-setup.c: Likewise.
23548 * util/i386/efi/grub-mkimage.c: Likewise.
23549 * util/grub-mkconfig.in: Likewise.
23550 * util/raid.c: Likewise.
23551 * util/resolve.c: Likewise.
23552 * util/grub-mkdevicemap.c: Likewise.
23553 * util/grub-emu.c: Likewise.
23554 * util/getroot.c: Likewise.
23555 * util/hostdisk.c: Likewise.
23556 * util/usb.c: Likewise.
23557 * util/grub-editenv.c: Likewise.
23558 * util/misc.c: Likewise.
23559
23560 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
23561
23562 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
23563 `genparttoollist.sh'.
23564 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
23565 Add `*.sh' to the list find searches for and change `mdate.sh'
23566 to `mdate-sh'.
23567
23568 2009-06-10 Pavel Roskin <proski@gnu.org>
23569
23570 * include/grub/multiboot2.h: Provide compatibility defines for
23571 multiboot2.h.
23572 * include/multiboot2.h: Include stdint.h only if needed, using
23573 angle brackets.
23574 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
23575 grub/multiboot2.h.
23576 * loader/ieee1275/multiboot2.c: Likewise.
23577 * loader/multiboot2.c: Likewise.
23578 * loader/multiboot_loader.c: Likewise.
23579
23580 * configure.ac: Use -nostdlib when probing for the target. It
23581 should not be required to have libc for the target.
23582
23583 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
23584 they fail without libc headers for the target.
23585 * include/grub/powerpc/libgcc.h: Use weak attribute for all
23586 exports.
23587 * include/grub/sparc64/libgcc.h: Likewise. Don't use
23588 preprocessor conditionals.
23589
23590 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
23591 build system doesn't need to be aware of the tar.c internals.
23592
23593 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
23594
23595 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
23596
23597 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
23598
23599 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
23600 disk limit to 26 for IDE, Virtio, Xen and SCSI.
23601
23602 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
23603
23604 * util/i386/pc/grub-install.in: Change the error message if UUIDs
23605 aren't available if ata.mod gets used.
23606
23607 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
23608
23609 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
23610 initialising controller.
23611 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
23612
23613 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
23614
23615 * util/i386/pc/grub-install.in: Add a parameter --disk-module
23616 to choose between ata and biosdisk module on i386-pc.
23617
23618 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
23619
23620 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
23621 Subclass and Programming Interface fields in terms of the 3 byte
23622 Class Code register.
23623 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
23624
23625 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
23626 interface is OHCI. Add grub_dprintf for symmetry with
23627 bus/usb/uhci.c.
23628 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
23629 interface is UHCI. Add interf variable for programming
23630 interface. Print interface with class/subclass.
23631
23632 * bus/usb/ohci.c: Set interf with correct field.
23633
23634 * bus/usb/uhci.c: Remove unneeded doubled lines.
23635 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
23636 Remove whitespace inside comment.
23637
23638 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
23639
23640 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
23641 as fallback an equivalent option without depth.
23642
23643 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
23644
23645 Not fail if unable to retrieve C/H/S on LBA disks
23646
23647 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
23648 if unable to retrieve C/H/S on LBA disks
23649
23650 2009-06-08 Pavel Roskin <proski@gnu.org>
23651
23652 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
23653 about aliasing.
23654
23655 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
23656
23657 * Makefile.in (uninstall): Remove all $lib_DATA files.
23658
23659 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
23660
23661 Bugfix: install on partitionless device
23662
23663 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
23664 is a whole disk
23665
23666 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
23667
23668 * Makefile.in (uninstall): Remove all $include_DATA files.
23669
23670 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
23671
23672 * commands/true.c: New file. Implement the true and false commands.
23673 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
23674 (true_mod_SOURCES): New variable.
23675 (true_mod_CFLAGS): Likewise.
23676 (true_mod_LDFLAGS): Likewise.
23677
23678 2009-06-05 Colin D Bennett <colin@gibibit.com>
23679
23680 Optimized font character lookup using binary search instead of linear
23681 search. Fonts now are required to have the character index ordered by
23682 code point.
23683
23684 * font/font.c (load_font_index): Verify that fonts have ordered
23685 character indices.
23686 (find_glyph): Use binary search instead of linear search to find a
23687 character in a font.
23688
23689 2009-06-05 Michael Scherer <misc@mandriva.org>
23690
23691 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
23692 uses case sensitive btree.
23693 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
23694 only for case insensitive filesystems.
23695
23696 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
23697
23698 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
23699 * conf/common.rmk (search_mod_CFLAGS): likewise
23700
23701 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23702
23703 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
23704 compensate a compiler bug
23705
23706 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23707
23708 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
23709 instead of '\b'
23710
23711 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23712
23713 Definitions for creating asm symbols with Apple's CC
23714
23715 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
23716 [APPLE_CC] (VARIABLE): likewise
23717
23718 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23719
23720 Disable lnxboot.img when compiled
23721 with Apple's CC
23722
23723 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
23724 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
23725 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
23726 [! APPLE_CC] (CODE_LENG): skip
23727 [! APPLE_CC] (setup_sects): likewise
23728 [! APPLE_CC]: skip filling
23729
23730 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23731
23732 Address in trampolines based on 32-bit registers when compiled
23733 with Apple's CC
23734
23735 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
23736 for addresses
23737 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
23738
23739 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23740
23741 Avoid aliases when compiling with Apple's CC for PCBIOS machine
23742
23743 * kern/misc.c [APPLE_CC] (memcpy): new function
23744 [APPLE_CC] (memmove): likewise
23745 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
23746 (memcpy): define alias conditionally on !APPLE_CC
23747 (memset): likewise
23748 (abort): likewise
23749 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
23750 APPLE_CC are defined
23751 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
23752 (grub_assert_fail): make prototype conditional
23753
23754 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23755
23756 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
23757
23758 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
23759 grub-macho2img
23760 (CLEANFILES): add grub-macho2img
23761 (grub_macho2img_SOURCES): new variable
23762 * kern/i386/pc/startup.S (bss_start): new variable
23763 (bss_end): likewise
23764 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
23765 * util/grub-macho2img.c: new file
23766
23767 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23768
23769 Use objconv when compiling with Apple's CC
23770
23771 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
23772 (efiemu64.o): likewise
23773 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
23774 when compiling with Apple's CC
23775 (efiemu64_s.o): likewise
23776 * configure.ac: check for objconv when compiling with Apple's CC
23777 * genmk.rb: use objconv for modules when compiled with Apple's CC
23778
23779 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23780
23781 Define segment as well as section when compiling with
23782 Apple's CC
23783
23784 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
23785 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
23786 (efiemu_convert_pointer): likewise
23787 (efiemu_set_virtual_address_map): likewise
23788 (efiemu_convert_pointer): likewise
23789 (efiemu_getcrc32): likewise
23790 (init_crc32_table): likewise
23791 (reflect): likewise
23792 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
23793 (GRUB_MOD_DEP): likewise
23794
23795 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23796
23797 Allow a compilation without -mcmodel=large
23798
23799 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
23800 when compiled without -mcmodel=large
23801 (filter_memory_map): remove memory post 4 GiB when compiled
23802 without -mcmodel=large
23803 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
23804 TARGET_CFLAGS when -mcmodel=large isn't supported
23805
23806 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23807
23808 Remove nested functions in efiemu core
23809
23810 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
23811
23812 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23813
23814 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
23815
23816 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
23817 temporary storage
23818 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
23819 using Apple's CC
23820 (grub_cpu_is_tsc_supported): likewise
23821 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
23822
23823 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23824
23825 Absolute addressing through constant with Apple's cc
23826
23827 * kern/i386/pc/startup.S: Define necessary constants
23828 and address through it when using ABS with Apple's CC
23829 * boot/i386/pc/diskboot.S: likewise
23830 * boot/i386/pc/boot.S: likewise
23831 * boot/i386/pc/lnxboot.S: likewise
23832 * boot/i386/pc/cdboot.S: likewise
23833 * mmap/i386/pc/mmap_helper.S: likewise
23834 * commands/i386/pc/drivemap_int13h.S: likewise
23835
23836 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23837
23838 Check if compiler is apple cc
23839
23840 * Makefile.in (ASFLAGS): new variable
23841 (TARGET_ASFLAGS): likewise
23842 (TARGET_MODULE_FORMAT): likewise
23843 (TARGET_APPLE_CC): likewise
23844 (OBJCONV): likewise
23845 (TARGET_IMG_CFLAGS): likewise
23846 (TARGET_CPPFLAGS): add includedir
23847 * configure.ac: call grub_apple_cc and grub_apple_target_cc
23848 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
23849 Check for linker script only if compiler isn't Apple's CC
23850 (TARGET_MODULE_FORMAT): set
23851 (TARGET_APPLE_CC): likewise
23852 (TARGET_ASFLAGS): likewise
23853 (ASFLAGS): likewise
23854 Check for objcopy only if compiler isn't Apple's CC
23855 Check for BSS symbol only if compiler isn't Apple's CC
23856 * genmk.rb: adapt nm options if we use Apple's utils
23857 * aclocal.m4 (grub_apple_cc): new test
23858 (grub_apple_target_cc): likewise
23859
23860 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23861
23862 Simplify sed expressions and improve awk
23863
23864 * Makefile.in (install-local): simplify sed expression
23865 * gencmdlist.sh: likewise
23866 * genmoddep.awk: avoid adding module as a dependency of itself
23867
23868 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23869
23870 Add missing start symbols
23871
23872 * boot/i386/pc/boot.S: add start
23873 * boot/i386/pc/pxeboot.S: likewise
23874
23875 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23876
23877 Fix wrong assumptions with grub-mkimage on EFI
23878
23879 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
23880 (relocate_addresses): consider both r_addend and value at offset
23881 (make_mods_section): zerofill modinfo and header
23882 (convert_elf): write prefix here
23883
23884 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23885
23886 Use .asciz instead of .string
23887
23888 * i386/pc/diskboot.S: use .asciz instead of .string
23889 * i386/pc/boot.S: likewise
23890 * include/grub/dl.h (GRUB_MOD_DEP): likewise
23891 (GRUB_MOD_NAME): likewise
23892
23893 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23894
23895 gfxpayload support
23896
23897 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
23898 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
23899 (grub_video_setup): remove
23900 (grub_video_set_mode): new prototype
23901 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
23902 (vid_mode): remove
23903 (linux_vesafb_res): compile only on PCBIOS
23904 (grub_linux_boot): support gfxpayload
23905 * loader/i386/pc/xnu.c (video_hook): new function
23906 (grub_xnu_set_video): support gfxpayload
23907 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
23908 (DEFAULT_VIDEO_HEIGHT): likewise
23909 (DEFAULT_VIDEO_FLAGS): likewise
23910 (DEFAULT_VIDEO_MODE): new definition
23911 (video_hook): new function
23912 (grub_gfxterm_init): use grub_video_set_mode
23913 * util/grub.d/30_os-prober.in: remove explicit modesetting before
23914 loading xnu
23915 * video/video.c (grub_video_setup): removed
23916 (grub_video_set_mode): new function based on grub_gfxterm_init and
23917 grub_video_setup
23918
23919 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23920
23921 Avoid calling biosdisk in drivemap
23922
23923 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
23924 (revparse_biosdisk): likewise
23925 (list_mappings): derive name from id directly
23926 (grub_cmd_drivemap): use tryparse_diskstring
23927
23928 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23929
23930 Script fixes
23931
23932 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
23933 (grub_lexer_param): add tokenonhold
23934 (grub_script_create_cmdline): remove cmdline. All callers updated
23935 (grub_script_function_create): make functionname
23936 grub_script_arg. All callers updated
23937 (grub_script_execute_argument_to_string): new prototype
23938 * kern/parser.c (state_transitions): reorder
23939 (grub_parser_cmdline_state): fix a bug and make more compact
23940 * script/sh/execute.c (grub_script_execute_argument_to_string):
23941 make global
23942 (grub_script_execute_cmdline): use new format
23943 * script/sh/function.c (grub_script_function_create): make functionname
23944 grub_script_arg. All callers updated
23945 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
23946 (grub_script_yylex): remove
23947 (grub_script_yylex2): renamed to ...
23948 (grub_script_yylex): ...renamed
23949 parse the expressions like a${b}c
23950 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
23951 (GRUB_PARSER_TOKEN_VAR): remove
23952 (GRUB_PARSER_TOKEN_NAME): likewise
23953 ("if"): declare as typeless
23954 ("while"): likewise
23955 ("function"): likewise
23956 ("else"): likewise
23957 ("then"): likewise
23958 ("fi"): likewise
23959 (text): remove
23960 (argument): likewise
23961 (script): accept empty scripts and make exit on error
23962 (arguments): use GRUB_PARSER_TOKEN_ARG
23963 (function): likewise
23964 (command): move error handling to script
23965 (menuentry): move grub_script_lexer_ref before
23966 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
23967 argument. All callers updated
23968
23969 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
23970
23971 Prevent GRUB from probing floppies during boot.
23972
23973 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
23974 * commands/search.c (options): Add --no-floppy.
23975 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
23976 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
23977 --no-floppy when searching for UUIDs.
23978
23979 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
23980
23981 Simplify the code duplication in commands/search.c.
23982
23983 * commands/search.c (search_label, search_fs_uuid): Merge into ...
23984 (search_fs): ... this. Update all users.
23985
23986 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
23987
23988 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
23989
23990 2009-05-28 Pavel Roskin <proski@gnu.org>
23991
23992 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
23993 Remove the original symlink explicitly.
23994
23995 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
23996 just one slash. That's how grub_fshelp_find_file() does it.
23997
23998 2009-05-26 Pavel Roskin <proski@gnu.org>
23999
24000 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
24001 to `str'.
24002
24003 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
24004 possibly unused.
24005
24006 2009-05-25 Christian Franke <franke@computer.org>
24007
24008 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
24009 register.
24010 (grub_atapi_identify): Add wait after drive select.
24011 (grub_ata_identify): Do more strict status register check before
24012 calling grub_atapi_identify (). Suppress error message if status
24013 register is 0x00 after command failure. Add status register
24014 check after PIO read to avoid bogus identify due to stuck DRQ.
24015 Thanks to Pavel Roskin for testing.
24016 (grub_device_initialize): Remove unsafe status register check.
24017 Thanks to 'phcoder' for problem report and patch.
24018 Prevent sign extension in debug message.
24019
24020 2009-05-23 Colin D Bennett <colin@gibibit.com>
24021
24022 Cleaned up `include/grub/normal.h'. Grouped prototypes by
24023 definition file, and functions defined in `normal/menu.c' have had
24024 their prototypes moved to `include/grub/menu.h' for consistency.
24025
24026 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
24027 from normal.h.
24028 (grub_menu_get_entry): Likewise.
24029 (grub_menu_get_timeout): Likewise.
24030 (grub_menu_set_timeout): Likewise.
24031 (grub_menu_execute_entry): Likewise.
24032 (grub_menu_execute_with_fallback): Likewise.
24033 (grub_menu_entry_run): Likewise.
24034
24035 * include/grub/normal.h: Re-ordered and grouped function
24036 prototypes by file that the function is defined in.
24037 (grub_menu_execute_callback): Removed; moved to menu.h.
24038 (grub_menu_get_entry): Likewise.
24039 (grub_menu_get_timeout): Likewise.
24040 (grub_menu_set_timeout): Likewise.
24041 (grub_menu_execute_entry): Likewise.
24042 (grub_menu_execute_with_fallback): Likewise.
24043 (grub_menu_entry_run): Likewise.
24044 (grub_menu_addentry): Renamed from this ...
24045 (grub_normal_add_menu_entry): ... to this.
24046
24047 * normal/main.c (grub_menu_addentry): Renamed from this ...
24048 (grub_normal_add_menu_entry): ... to this.
24049
24050 * script/sh/execute.c (grub_script_execute_menuentry): Update
24051 reference to renamed grub_menu_addentry function.
24052
24053 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
24054
24055 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
24056
24057 2009-05-22 Pavel Roskin <proski@gnu.org>
24058
24059 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
24060 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
24061 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
24062 compiling for the i386 targets, but not for the utilities.
24063
24064 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
24065 to grub_uint8_t.
24066 (grub_root_drive): Likewise.
24067 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
24068 remove alignment.
24069 (grub_root_drive): Change size to byte.
24070 (grub_start_addr): Remove.
24071 (grub_end_addr): Likewise.
24072 (grub_apm_bios_info): Likewise.
24073
24074 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
24075
24076 * normal/i386: Remove.
24077 * normal/powerpc: Likewise.
24078 * normal/sparc64: Likewise.
24079 * normal/x86_64: Likewise.
24080
24081 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
24082
24083 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
24084 * loader/i386/linux_trampoline.S: Fix indentation
24085 * loader/i386/xnu_helper.S: Likewise
24086
24087 2009-05-18 Colin D Bennett <colin@gibibit.com>
24088
24089 Display error messages when parsing a Lua statement fails.
24090 Previously, executing a syntactically invalid statement like
24091 ")foo" or "bar;" would silently fail.
24092
24093 * script/lua/grub_main.c (handle_lua_error): New function.
24094 (grub_lua_parse_line): Improved reporting of Lua parser and
24095 execution errors.
24096
24097 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
24098
24099 Remove -Werror which causes build to fail on some systems
24100
24101 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
24102 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
24103 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
24104
24105 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
24106
24107 trampoline for linux on 64-bit platform
24108
24109 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
24110 loader/i386/efi/linux_trampoline.S
24111 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
24112 declaration
24113 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
24114 here
24115 * loader/i386/linux_trampoline.S: moved here
24116 * loader/i386/efi/linux.c (allocate_pages): reserve space for
24117 trampoline
24118 (jumpvector): removed
24119 (grub_linux_trampoline_start): new declaration
24120 (grub_linux_trampoline_end): likewise
24121 (grub_linux_boot): use trampoline when on 64-bit platform
24122 * loader/i386/linux.c: likewise
24123
24124 2009-05-16 Pavel Roskin <proski@gnu.org>
24125
24126 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
24127 const to avoid a warning.
24128 (grub_lua_setenv): Likewise.
24129 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
24130 lmsg to fix a warning.
24131
24132 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
24133
24134 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
24135 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
24136 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
24137 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
24138 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
24139 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
24140 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
24141 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
24142
24143 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
24144
24145 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
24146
24147 2009-05-16 Bean <bean123ch@gmail.com>
24148
24149 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
24150 (lua_mod_SOURCES): New variable.
24151 (lua_mod_CFLAGS): Likewise.
24152 (lua_mod_LDFLAGS): Likewise.
24153
24154 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
24155 (setjmp_mod_SOURCES): New variable.
24156 (setjmp_mod_CFLAGS): Likewise.
24157 (setjmp_LDFLAGS): Likewise.
24158
24159 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
24160 (setjmp_mod_SOURCES): New variable.
24161 (setjmp_mod_CFLAGS): Likewise.
24162 (setjmp_LDFLAGS): Likewise.
24163
24164 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
24165 (setjmp_mod_SOURCES): New variable.
24166 (setjmp_mod_CFLAGS): Likewise.
24167 (setjmp_LDFLAGS): Likewise.
24168
24169 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
24170 (setjmp_mod_SOURCES): New variable.
24171 (setjmp_mod_CFLAGS): Likewise.
24172 (setjmp_LDFLAGS): Likewise.
24173
24174 * normal/i386/setjmp.S: Moved from here ...
24175 * lib/i386/setjmp.S: ... Moved here
24176 * normal/x86_64/setjmp.S: Moved from here ...
24177 * lib/x86_64/setjmp.S: ... Moved here
24178 * normal/powerpc/setjmp.S: Moved from here ...
24179 * lib/powerpc/setjmp.S: ... Moved here
24180 * normal/sparc64/setjmp.S: Moved from here ...
24181 * lib/sparc64/setjmp.S: ... Moved here
24182
24183 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
24184 returns_twice in mingw.
24185
24186 * script/lua/grub_lib.c: New file.
24187 * script/lua/grub_lib.h: Likewise.
24188 * script/lua/grub_lua.h: Likewise.
24189 * script/lua/grub_main.c: Likewise.
24190 * script/lua/lapi.c: Likewise.
24191 * script/lua/lapi.h: Likewise.
24192 * script/lua/lauxlib.c: Likewise.
24193 * script/lua/lauxlib.h: Likewise.
24194 * script/lua/lbaselib.c: Likewise.
24195 * script/lua/lcode.c: Likewise.
24196 * script/lua/lcode.h: Likewise.
24197 * script/lua/ldblib.c: Likewise.
24198 * script/lua/ldebug.c: Likewise.
24199 * script/lua/ldebug.h: Likewise.
24200 * script/lua/ldo.c: Likewise.
24201 * script/lua/ldo.h: Likewise.
24202 * script/lua/ldump.c: Likewise.
24203 * script/lua/lfunc.c: Likewise.
24204 * script/lua/lfunc.h: Likewise.
24205 * script/lua/lgc.c: Likewise.
24206 * script/lua/lgc.h: Likewise.
24207 * script/lua/linit.c: Likewise.
24208 * script/lua/liolib.c: Likewise.
24209 * script/lua/llex.c: Likewise.
24210 * script/lua/llex.h: Likewise.
24211 * script/lua/llimits.h: Likewise.
24212 * script/lua/lmathlib.c: Likewise.
24213 * script/lua/lmem.c: Likewise.
24214 * script/lua/lmem.h: Likewise.
24215 * script/lua/loadlib.c: Likewise.
24216 * script/lua/lobject.c: Likewise.
24217 * script/lua/lobject.h: Likewise.
24218 * script/lua/lopcodes.c: Likewise.
24219 * script/lua/lopcodes.h: Likewise.
24220 * script/lua/loslib.c: Likewise.
24221 * script/lua/lparser.c: Likewise.
24222 * script/lua/lparser.h: Likewise.
24223 * script/lua/lstate.c: Likewise.
24224 * script/lua/lstate.h: Likewise.
24225 * script/lua/lstring.c: Likewise.
24226 * script/lua/lstring.h: Likewise.
24227 * script/lua/lstrlib.c: Likewise.
24228 * script/lua/ltable.c: Likewise.
24229 * script/lua/ltable.h: Likewise.
24230 * script/lua/ltablib.c: Likewise.
24231 * script/lua/ltm.c: Likewise.
24232 * script/lua/ltm.h: Likewise.
24233 * script/lua/lua.h: Likewise.
24234 * script/lua/luaconf.h: Likewise.
24235 * script/lua/lualib.h: Likewise.
24236 * script/lua/lundump.c: Likewise.
24237 * script/lua/lundump.h: Likewise.
24238 * script/lua/lvm.c: Likewise.
24239 * script/lua/lvm.h: Likewise.
24240 * script/lua/lzio.c: Likewise.
24241 * script/lua/lzio.h: Likewise.
24242
24243 2009-05-16 Bean <bean123ch@gmail.com>
24244
24245 * include/grub/kernel.h (grub_module_header_types): Add type
24246 OBJ_TYPE_CONFIG.
24247
24248 * kern/main.c (grub_load_config): New function.
24249 (grub_main): Call grub_load_config to read boot config.
24250
24251 * grub-mkimage (generate_image): New parameter config_path.
24252 (options): New option --config.
24253 (main): Parse --config option, and pass it to generate_image.
24254
24255 2009-05-14 Christian Franke <franke@computer.org>
24256
24257 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
24258 This fixes build on Cygwin.
24259
24260 2009-05-14 Pavel Roskin <proski@gnu.org>
24261
24262 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
24263 jump. This saves two bytes, so the typical case of 2 swapped
24264 drives would fit 32 bytes.
24265
24266 2009-05-13 Pavel Roskin <proski@gnu.org>
24267
24268 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
24269 grub_uint32_t to avoid a warning.
24270
24271 * loader/i386/linux.c (allocate_pages): When assigning
24272 real_mode_mem, cast through grub_size_t to fix a warning. The
24273 code already makes sure that the value would fit a pointer.
24274 (grub_linux_setup_video): Cast render_target->data to
24275 grub_size_t to fix a warning.
24276
24277 2009-05-13 Javier Martín <lordhabbit@gmail.com>
24278
24279 * commands/i386/pc/drivemap.c: New file - implement drivemap
24280 command.
24281 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
24282 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
24283
24284 2009-05-13 Pavel Roskin <proski@gnu.org>
24285
24286 * util/i386/pc/grub-setup.c (setup): Remove unused variable
24287 embedding_area_exists.
24288
24289 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
24290
24291 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
24292 it easier to understand / work with.
24293 Improve warning messages for cases where there's no embedding area,
24294 or when it is too small (or core.img too large).
24295
24296 2009-05-13 Pavel Roskin <proski@gnu.org>
24297
24298 * loader/i386/pc/multiboot2.c: Add necessary includes for
24299 grub_multiboot2_real_boot().
24300
24301 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
24302 PX record is always little-endian. We only need the lower 2
24303 bytes of the mode.
24304
24305 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
24306 facilitate code reuse.
24307 (grub_cpio_mount): Use "struct head", not a char buffer. This
24308 fixes a warning reported by gcc 4.4.
24309
24310 * kernel/disk.c (grub_disk_read): Use void pointer for the
24311 buffer.
24312 (grub_disk_write): Use const void pointer for the buffer.
24313 Adjust all callers. Remove unnecessary casts.
24314
24315 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
24316
24317 * util/i386/pc/grub-install.in: Update copyright year.
24318
24319 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
24320
24321 gptsync
24322
24323 * commands/gptsync.c: new file
24324 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
24325 (gptsync_mod_SOURCES): new variable
24326 (gptsync_mod_CFLAGS): likewise
24327 (gptsync_mod_LDFLAGS): likewise
24328 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
24329 new definition
24330 (GRUB_PC_PARTITION_TYPE_HFS): likewise
24331 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
24332 * conf/i386-ieee1275.rmk: likewise
24333 * conf/i386-pc.rmk: likewise
24334 * conf/powerpc-ieee1275.rmk: likewise
24335
24336 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
24337
24338 Fixed grub-emu
24339
24340 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
24341 (grub_dl_ref): likewise
24342
24343 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
24344
24345 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
24346 split in two functions (one for msdos and one for gpt).
24347
24348 2009-05-08 Pavel Roskin <proski@gnu.org>
24349
24350 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
24351 not modified.
24352
24353 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
24354 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
24355 Initialize them with -1. Add sanity check for bad1. Eliminate
24356 nerr variable.
24357
24358 2009-05-08 David S. Miller <davem@davemloft.net>
24359
24360 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
24361
24362 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
24363
24364 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
24365 existence.
24366
24367 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
24368
24369 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
24370 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
24371
24372 2009-05-05 David S. Miller <davem@davemloft.net>
24373
24374 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
24375
24376 2009-05-05 Pavel Roskin <proski@gnu.org>
24377
24378 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
24379 of grub_dl_ref() and grub_dl_unref().
24380 * commands/parttool.c: Remove preprocessor conditionals around
24381 grub_dl_ref() and grub_dl_unref().
24382 * fs/affs.c: Likewise.
24383 * fs/afs.c: Likewise.
24384 * fs/cpio.c: Likewise.
24385 * fs/ext2.c: Likewise.
24386 * fs/fat.c: Likewise.
24387 * fs/hfs.c: Likewise.
24388 * fs/hfsplus.c: Likewise.
24389 * fs/iso9660.c: Likewise.
24390 * fs/jfs.c: Likewise.
24391 * fs/minix.c: Likewise.
24392 * fs/ntfs.c: Likewise.
24393 * fs/reiserfs.c: Likewise.
24394 * fs/sfs.c: Likewise.
24395 * fs/udf.c: Likewise.
24396 * fs/ufs.c: Likewise.
24397 * fs/xfs.c: Likewise.
24398 * include/grub/dl.h: Likewise.
24399 * loader/xnu.c: Likewise.
24400
24401 2009-05-04 Pavel Roskin <proski@gnu.org>
24402
24403 * commands/acpi.c: Remove unused variable my_mod.
24404 * partmap/amiga.c: Likewise.
24405 * partmap/apple.c: Likewise.
24406 * partmap/gpt.c: Likewise.
24407 * partmap/pc.c: Likewise.
24408 * partmap/sun.c: Likewise.
24409 * term/gfxterm.c: Likewise.
24410 * term/i386/pc/vesafb.c: Likewise.
24411 * term/i386/pc/vga.c: Likewise.
24412
24413 2009-05-04 David S. Miller <davem@davemloft.net>
24414
24415 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
24416 pointer args to grub_ieee1275_get_property().
24417
24418 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
24419
24420 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
24421 devices, and do not traverse down under controller nodes.
24422
24423 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
24424 (grub_ofdisk_open): Use it to un-escape "," characters.
24425 * kern/disk.c (find_part_sep): New.
24426 (grub_disk_open): Use it to find the first non-escaped ','
24427 character in the disk name.
24428 * util/ieee1275/devicemap.c (escape_of_path): New.
24429 (grub_util_emit_devicemap_entry): Use it.
24430 * util/sparc64/ieee1275/grub-install.in: Update script to
24431 strip partition specifiers properly by not triggering on
24432 '\' escaped ',' characters.
24433
24434 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
24435
24436 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
24437 to 0x300.
24438 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
24439 resolutions.
24440 (linux_vesafb_modes): Add a lot of additional modes to the list (based
24441 on documentation from Wikipedia).
24442
24443 2009-05-04 Pavel Roskin <proski@gnu.org>
24444
24445 * disk/ata.c: Spelling fixes.
24446 * disk/raid.c: Likewise.
24447 * disk/usbms.c: Likewise.
24448 * disk/dmraid_nvidia.c: Likewise.
24449 * kern/ieee1275/openfw.c: Likewise.
24450 * kern/ieee1275/init.c: Likewise.
24451 * kern/ieee1275/cmain.c: Likewise.
24452 * boot/i386/pc/cdboot.S: Likewise.
24453 * video/readers/png.c: Likewise.
24454 * video/i386/pc/vbe.c: Likewise.
24455 * fs/udf.c: Likewise.
24456 * fs/hfs.c: Likewise.
24457 * fs/reiserfs.c: Likewise.
24458 * efiemu/runtime/efiemu.c: Likewise.
24459 * efiemu/main.c: Likewise.
24460 * efiemu/mm.c: Likewise.
24461 * include/grub/elf.h: Likewise.
24462 * include/grub/xnu.h: Likewise.
24463 * include/grub/usbdesc.h: Likewise.
24464 * include/grub/usb.h: Likewise.
24465 * include/grub/script_sh.h: Likewise.
24466 * include/grub/lib/LzmaEnc.h: Likewise.
24467 * include/grub/efiemu/efiemu.h: Likewise.
24468 * include/grub/command.h: Likewise.
24469 * normal/menu.c: Likewise.
24470 * normal/main.c: Likewise.
24471 * normal/datetime.c: Likewise.
24472 * bus/usb/uhci.c: Likewise.
24473 * mmap/i386/uppermem.c: Likewise.
24474 * mmap/mmap.c: Likewise.
24475 * commands/acpi.c: Likewise.
24476 * commands/test.c: Likewise.
24477 * partmap/apple.c: Likewise.
24478 * font/font.c: Likewise.
24479 * loader/sparc64/ieee1275/linux.c: Likewise.
24480 * loader/macho.c: Likewise.
24481 * loader/i386/bsd_trampoline.S: Likewise.
24482 * loader/i386/bsd.c: Likewise.
24483 * loader/xnu.c: Likewise.
24484 * term/i386/pc/vesafb.c: Likewise.
24485 * term/usb_keyboard.c: Likewise.
24486 * util/resolve.c: Likewise.
24487 * util/getroot.c: Likewise.
24488
24489 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
24490
24491 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
24492
24493 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
24494
24495 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
24496 build error.
24497
24498 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
24499
24500 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
24501 parameter only available on BIOS.
24502
24503 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
24504
24505 Removed wrong semicolon in declaration
24506
24507 * grub/misc.h (grub_dprintf): remove semicolon
24508
24509 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
24510
24511 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
24512 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
24513 is done by grub_cmd_linux() now).
24514 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
24515 restore video to text mode.
24516 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
24517 indicates lack of "vga=" parameter. "vga=0" is mapped to
24518 `GRUB_LINUX_VID_MODE_NORMAL'.
24519
24520 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
24521
24522 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
24523 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
24524 and `normal/script.c'. Add `kern/rescue_reader.c',
24525 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
24526 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
24527 `grub_script.tab.c'.
24528
24529 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24530 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
24531 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24532 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
24533 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24534
24535 * Makefile.in: Remove duplicated 2008 in Copyright line.
24536
24537 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
24538
24539 * util/misc.c (grub_util_warn): New function. Emits a warning
24540 unconditionally.
24541 * include/grub/util/misc.h (grub_util_warn): New declaration.
24542
24543 * util/i386/pc/grub-install.in: Understand --force and pass it down
24544 to grub-setup.
24545
24546 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
24547 down to setup().
24548 (setup): Improve error messages and add warnings when requested to
24549 install in odd layouts. Refuse to install using blocklists unless
24550 --force was set.
24551
24552 2009-05-04 martin f. krafft <madduck@madduck.net>
24553
24554 * disk/raid.c (grub_raid_scan_device): Improve debug message.
24555
24556 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
24557
24558 Updated copyright year
24559
24560 * fs/hfsplus.c: updated copyright year
24561
24562 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
24563
24564 HFS+ UUID
24565
24566 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
24567 in the space previously used by unused3
24568 (grub_hfsplus_uuid): new function
24569 (grub_hfsplus_fs): added uuid field
24570
24571 2009-05-03 Pavel Roskin <proski@gnu.org>
24572
24573 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
24574 suppress warnings. It's no longer needed.
24575 * disk/host.c: Likewise.
24576 * disk/ata_pthru.c: Likewise.
24577 * disk/loopback.c: Likewise.
24578 * hook/datehook.c: Likewise.
24579 * parttool/pcpart.c: Likewise.
24580 * fs/i386/pc/pxe.c: Likewise.
24581 * fs/ntfscomp.c: Likewise.
24582 * efiemu/main.c: Likewise.
24583 * mmap/mmap.c: Likewise.
24584 * commands/crc.c: Likewise.
24585 * commands/hexdump.c: Likewise.
24586 * commands/hdparm.c: Likewise.
24587 * commands/acpi.c: Likewise.
24588 * commands/echo.c: Likewise.
24589 * commands/minicmd.c: Likewise.
24590 * commands/blocklist.c: Likewise.
24591 * commands/memrw.c: Likewise.
24592 * commands/loadenv.c: Likewise.
24593 * commands/usbtest.c: Likewise.
24594 * commands/lsmmap.c: Likewise.
24595 * commands/boot.c: Likewise.
24596 * commands/parttool.c: Likewise.
24597 * commands/configfile.c: Likewise.
24598 * commands/search.c: Likewise.
24599 * commands/ieee1275/suspend.c: Likewise.
24600 * commands/cat.c: Likewise.
24601 * commands/i386/pc/pxecmd.c: Likewise.
24602 * commands/i386/pc/play.c: Likewise.
24603 * commands/i386/pc/halt.c: Likewise.
24604 * commands/i386/pc/vbeinfo.c: Likewise.
24605 * commands/i386/pc/vbetest.c: Likewise.
24606 * commands/lspci.c: Likewise.
24607 * commands/date.c: Likewise.
24608 * commands/handler.c: Likewise.
24609 * commands/ls.c: Likewise.
24610 * commands/test.c: Likewise.
24611 * commands/cmp.c: Likewise.
24612 * commands/efi/loadbios.c: Likewise.
24613 * commands/efi/fixvideo.c: Likewise.
24614 * commands/halt.c: Likewise.
24615 * commands/help.c: Likewise.
24616 * commands/reboot.c: Likewise.
24617 * hello/hello.c: Likewise.
24618 * script/sh/main.c: Likewise.
24619 * loader/xnu.c: Likewise.
24620 * term/terminfo.c: Likewise.
24621 * term/i386/pc/serial.c: Likewise.
24622 * term/usb_keyboard.c: Likewise.
24623
24624 2009-05-03 David S. Miller <davem@davemloft.net>
24625
24626 * normal/menu.c: Include grub/parser.h
24627
24628 2009-05-03 Pavel Roskin <proski@gnu.org>
24629
24630 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
24631 not char*.
24632 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
24633 Suggested by Javier Martín <lordhabbit@gmail.com>
24634
24635 * util/i386/pc/grub-mkrescue.in: Allow for the case when
24636 efiemu??.o doesn't exist.
24637 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
24638 copying.
24639
24640 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
24641
24642 FreeBSD 64-bit support
24643
24644 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
24645 and loader/i386/bsd_trampoline.S
24646 (bsd_mod_ASFLAGS): new variable
24647 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
24648 (FREEBSD_MODTYPE_KERNEL64): likewise
24649 (grub_bsd64_trampoline_start): likewise
24650 (grub_bsd64_trampoline_end): likewise
24651 (grub_bsd64_trampoline_selfjump): likewise
24652 (grub_bsd64_trampoline_gdt): likewise
24653 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
24654 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
24655 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
24656 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
24657 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
24658 of "attrib" member
24659 * loader/i386/bsd_pagetable.c: new file
24660 * loader/i386/bsd_trampoline.S: likewise
24661 * loader/i386/bsd.c (ALIGN_QWORD): new macro
24662 (ALIGN_VAR): likewise
24663 (entry_hi): new variable
24664 (kern_end_mdofs): likewise
24665 (is_64bit): likewise
24666 (grub_freebsd_add_meta): use ALIGN_VAR
24667 (grub_e820_mmap): new declaration
24668 (grub_freebsd_add_mmap): new function
24669 (grub_freebsd_add_meta_module): support 64 bit kernels
24670 (grub_freebsd_list_modules): use ALIGN_VAR
24671 (gdt_descriptor): new declaration
24672 (grub_freebsd_boot): support 64 bit kernels
24673 (grub_bsd_elf64_hook): new function
24674 (grub_bsd_load_elf): support elf64
24675
24676 2009-05-03 Bean <bean123ch@gmail.com>
24677
24678 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
24679 after we get the result of if statement.
24680
24681 2009-05-03 Bean <bean123ch@gmail.com>
24682
24683 * Makefile.in (enable_efiemu): New variable.
24684
24685 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
24686 set.
24687 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
24688 path.
24689 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
24690 path, add -mno-red-zone option.
24691 (efiemu64_s.o): Likewise.
24692 (efiemu64.o): Use macro $^ for source file.
24693
24694 * configure.ac (--enable-efiemu): New option.
24695
24696 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
24697
24698 xnu support
24699
24700 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
24701 (pkglib_MODULES): add xnu.mod
24702 (xnu_mod_SOURCES): new variable
24703 (xnu_mod_CFLAGS): likewise
24704 (xnu_mod_LDFLAGS): likewise
24705 (xnu_mod_ASFLAGS): likewise
24706 * conf/i386-pc.rmk: likewise
24707 * conf/x86_64-efi.rmk: likewise
24708 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
24709 new declaration
24710 * include/grub/i386/macho.h: new file
24711 * include/grub/i386/xnu.h: likewise
24712 * include/grub/macho.h: likewise
24713 * include/grub/machoload.h: likewise
24714 * include/grub/x86_64/macho.h: likewise
24715 * include/grub/x86_64/xnu.h: likewise
24716 * include/grub/xnu.h: likewise
24717 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
24718 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
24719 * loader/i386/efi/xnu.c: new file
24720 * loader/i386/pc/xnu.c: likewise
24721 * loader/i386/xnu.c: likewise
24722 * loader/i386/xnu_helper.S: likewise
24723 * loader/macho.c: likewise
24724 * loader/xnu.c: likewise
24725 * loader/xnu_resume.c: likewise
24726 * util/grub-dumpdevtree: likewise
24727 * include/grub/i386/pit.h: include grub/err.h
24728 (grub_pit_wait): export
24729 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
24730
24731 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
24732
24733 Efiemu
24734
24735 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
24736 _linux_efi, linux_efi.
24737 new files in grub-emu
24738 new targets efiemu32.o and efiemu64.o
24739 * loader/linux_normal_efiemu.c: likewise
24740 * loader/i386/efi/linux.c: added preliminary efiemu support
24741 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
24742 files to copy
24743 * include/grub/autoefi.h: new file
24744 * include/grub/i386/efiemu.h: likewise
24745 * include/grub/i386/pc/efiemu.h: likewise
24746 * include/grub/efi/api.h: add LL suffix when necessary
24747 new definitions relating to tables
24748 * include/grub/efiemu/efiemu.h: new file
24749 * include/grub/efiemu/runtime.h: likewise
24750 * efiemu/prepare.c: likewise
24751 * efiemu/loadcore_common.c: likewise
24752 * efiemu/loadcore64.c: likewise
24753 * efiemu/runtime/efiemu.sh: likewise
24754 * efiemu/runtime/efiemu.S: likewise
24755 * efiemu/runtime/efiemu.c: likewise
24756 * efiemu/runtime/config.h: likewise
24757 * efiemu/prepare32.c: likewise
24758 * efiemu/main.c: likewise
24759 * efiemu/modules/pnvram.c: likewise
24760 * efiemu/modules/i386: likewise
24761 * efiemu/modules/i386/pc: likewise
24762 * efiemu/modules/acpi.c: likewise
24763 * efiemu/i386/pc/cfgtables.c: likewise
24764 * efiemu/i386/loadcore64.c: likewise
24765 * efiemu/i386/loadcore32.c: likewise
24766 * efiemu/prepare64.c: likewise
24767 * efiemu/loadcore.c: likewise
24768 * efiemu/symbols.c: likewise
24769 * efiemu/mm.c: likewise
24770 * efiemu/loadcore32.c: likewise
24771
24772 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
24773
24774 ACPI spoofing
24775
24776 * commands/acpi.c: new file
24777 * commands/i386/pc/acpi.c: likewise
24778 * commands/efi/acpi.c: likewise
24779 * include/grub/acpi.h: likewise
24780 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
24781 (acpi_mod_SOURCES): new variable
24782 (acpi_mod_CFLAGS): likewise
24783 (acpi_mod_LDFLAGS): likewise
24784 * conf/i386-efi.rmk: likewise
24785 * conf/x86_64-efi.rmk: likewise
24786
24787 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
24788
24789 Missing part from mmap patch
24790
24791 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
24792 (grub_mmap_unregister)
24793 (grub_mmap_free_and_unregister): use grub_mmap_register
24794
24795 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
24796
24797 Mmap services
24798
24799 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
24800 * loader/i386/linux.c (find_mmap_size): likewise
24801 (allocate_pages): likewise
24802 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
24803 (grub_fill_multiboot_mmap): likewise
24804 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
24805 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
24806 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
24807 (OPENBSD_MMAP_RESERVED): likewise
24808 * include/grub/i386/pc/memory.h: include grub/memory.h
24809 (grub_lower_mem): removed
24810 (grub_upper_mem): likewise
24811 (GRUB_MACHINE_MEMORY_ACPI): new definition
24812 (GRUB_MACHINE_MEMORY_NVS): likewise
24813 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
24814 (GRUB_MACHINE_MEMORY_HOLE): likewise
24815 (grub_machine_mmap_register): likewise
24816 (grub_machine_mmap_unregister): likewise
24817 (grub_machine_get_upper): likewise
24818 (grub_machine_get_lower): likewise
24819 (grub_machine_get_post64): likewise
24820 * include/grub/i386/efi/memory.h: new file
24821 * include/grub/x86_64/efi/memory.h: likewise
24822 * include/grub/efi/memory.h: likewise
24823 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
24824 (mmap_mod_SOURCES): new variable
24825 (mmap_mod_LDFLAGS): likewise
24826 (mmap_mod_ASFLAGS): likewise
24827 * conf/i386-coreboot.rmk: likewise
24828 * conf/i386-ieee1275.rmk: likewise
24829 * conf/i386-efi.rmk: likewise
24830 * conf/x86_64-efi.rmk: likewise
24831 * include/grub/types.h (UINT_TO_PTR): new macro
24832 (PTR_TO_UINT32): likewise
24833 (PTR_TO_UINT64): likewise
24834 * include/grub/memory.h: new file
24835 * mmap/i386/pc/mmap.c: likewise
24836 * mmap/i386/pc/mmap_helper.S: likewise
24837 * mmap/i386/uppermem.c: likewise
24838 * mmap/mmap.c: likewise
24839 * mmap/efi/mmap.c: likewise
24840 * kern/i386/coreboot/init.c (grub_machine_init): don't use
24841 grub_upper_mem
24842 * kern/i386/pc/init.c (grub_lower_mem): removed variable
24843 (grub_upper_mem): likewise
24844 (grub_machine_init): don't use grub_upper_mem,
24845 make grub_lower_mem local
24846 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
24847 grub_mmap_iterate and grub_mmap_get_upper
24848 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
24849
24850 2009-05-02 Bean <bean123ch@gmail.com>
24851
24852 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
24853 script/sh/parser.y.
24854 (pkglib_MODULES): Add normal.mod and sh.mod.
24855 (normal_SOURCES): New variable.
24856 (normal_mod_CFLAGS): Likewise.
24857 (normal_mod_LDFLAGS): Likewise.
24858 (sh_mod_SOURCES): Likewise.
24859 (sh_mod_CFLAGS): Likewise.
24860 (sh_mod_LDFLAGS): Likewise.
24861
24862 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
24863 script/sh/lexer.c_DEPENDENCIES.
24864 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
24865 kern/rescue_reader.c and kern/rescue_parser.c.
24866 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
24867 (grub_emu_SOURCES): Change source files.
24868 (pkglib_MODULES): Remove normal.mod.
24869 (normal_SOURCES): Removed.
24870 (normal_mod_CFLAGS): Likewise.
24871 (normal_mod_LDFLAGS): Likewise.
24872 * conf/i386-coreboot.rmk: Likewise.
24873 * conf/i386-efi.rmk: Likewise.
24874 * conf/i386-ieee1276.rmk: Likewise.
24875 * conf/powerpc-ieee1275.rmk: Likewise.
24876 * conf/sparc64-ieee1275.rmk: Likewise.
24877 * conf/x86_64-efi.rmk: Likewise.
24878
24879 * include/grub/command.h (grub_command_execute): New inline function.
24880
24881 * include/grub/menu.h (grub_menu_entry): Removed commands field.
24882
24883 * include/grub/normal.h: Remove <grub/setjmp.h>.
24884 (grub_fs_module_list): Moved to normal/autofs.c.
24885 (grub_exit_env): Removed.
24886 (grub_command_execute): Likewise.
24887 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
24888 parameter script.
24889 (read_command_list): New function declaration.
24890 (read_fs_list): Likewise.
24891
24892 * include/parser.h: Include <grub/reader.h>.
24893 (grub_parser_split_cmdline): Change type of getline parameter.
24894 (grub_parser): New structure.
24895 (grub_parser_class): New variable.
24896 (grub_parser_execute): New function declaration.
24897 (grub_register_rescue_parser): Likewise.
24898 (grub_parser_register): New inline function.
24899 (grub_parser_unregister): Likewise.
24900 (grub_parser_get_current): Likewise.
24901 (grub_parser_set_current): Likewise.
24902
24903 * include/grub/reader.h: New file.
24904 * kern/reader.c: Likewise.
24905 * kern/rescue_parser.c: Likewise.
24906 * kern/rescue_reader.c: Likewise.
24907 * normal/autofs.c: Likewise.
24908 * normal/dyncmd.c: Likewise.
24909
24910 * include/grub/rescue.h: Removed.
24911 * normal/command.h: Likewise.
24912
24913 * include/grub/script.h: Moved to ...
24914 * include/grub/script_sh.h: ... Moved here.
24915 * normal/execute.c: Moved to ...
24916 * script/sh/execute.c: ... Moved here.
24917 * normal/function.c: Moved to ...
24918 * script/sh/function.c: ... Moved here.
24919 * normal/lexer.c: Moved to ...
24920 * script/sh/lexer.c: ... Moved here.
24921 * normal/parser.y: Moved to ...
24922 * script/sh/parser.y: ... Moved here.
24923 * normal/script.c: Moved to ...
24924 * script/sh/script.c: ... Moved here.
24925
24926 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
24927 <grub/reader.h>.
24928 (grub_exit_env): Removed.
24929 (fs_module_list): Moved to normal/autofs.c.
24930 (grub_file_getline): Don't handle comment here.
24931 (free_menu): Skip removed field entry->commands.
24932 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
24933 script parameter.
24934 (read_config_file): Removed nested parameter, change getline function.
24935 (grub_enter_normal_mode): Removed.
24936 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
24937 (read_command_list): Likewise.
24938 (autoload_fs_module): Moved to normal/autofs.c.
24939 (read_fs_list): Likewise.
24940 (reader_nested): New variable.
24941 (grub_normal_execute): Run parser.sh to switch to sh parser.
24942 (grub_cmd_rescue): Removed.
24943 (cmd_normal): Removed.
24944 (grub_cmd_normal): Unregister itself at the beginning. Don't register
24945 rescue command.
24946 (grub_cmdline_run): New function.
24947 (grub_normal_reader_init): Likewise.
24948 (grub_normal_read_line): Likewise.
24949 (grub_env_write_pager): Likewise.
24950 (cmdline): New variable.
24951 (grub_normal_reader): Likewise.
24952 (GRUB_MOD_INIT): Register normal reader and set as current, register
24953 pager hook, register normal command with grub_register_command_prio,
24954 so that it won't show up in command.lst.
24955 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
24956 grub_fs_autoload_hook.
24957
24958 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
24959 (grub_menu_execute_entry): Replace grub_script_execute with
24960 grub_parser_execute, change parameter to grub_command_execute.
24961
24962 * normal/menu_text.c: Remove <grub/script.h>.
24963
24964 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
24965 and <grub/parser.h>.
24966 (run): Change editor_getline to use new parser interface. Change
24967 parameter to grub_command_execute.
24968
24969 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
24970 <grub/reader.h> and <grub/parser.h>.
24971 (grub_load_normal_mode): Execute normal command.
24972 (grub_main): Call grub_register_core_commands,
24973 grub_register_rescue_parser and grub_register_rescue_reader, use
24974 grub_reader_loop to enter input loop.
24975
24976 * kern/parser.c (grub_parser_split_cmdline): Change type of
24977 getline parameter.
24978 (grub_parser_class): New variable.
24979 (grub_parser_execute): New function.
24980
24981 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
24982 * loader/multiboot2.c: Likewise.
24983 * loader/sparc64/ieee1275/linux.c: Likewise.
24984
24985 * util/grub-emu.c (read_command_list): New dummy function.
24986
24987 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
24988
24989 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
24990 count to 16 for CCISS and IDA.
24991
24992 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
24993
24994 * normal/menu_text.c (grub_wait_after_message): Print a newline
24995 after waiting for user input.
24996
24997 * loader/i386/linux.c: Include `<grub/normal.h>'.
24998 (grub_cmd_linux): Improve the error message about `ask' mode, by
24999 waiting for user input so it's not missed (we can do this, since
25000 user requested interaction).
25001
25002 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
25003
25004 Added missing lst to grub-mkrescue
25005
25006 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
25007 and ${input_dir}/parttool.lst
25008
25009 2009-04-30 David S. Miller <davem@davemloft.net>
25010
25011 * util/hostdisk.c (device_is_wholedisk): New function.
25012 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
25013 zero only if device_is_wholedisk() returns true.
25014
25015 * util/hostdisk.c (convert_system_partition_to_system_disk):
25016 Handle virtual disk devices named /dev/vdiskX as found on sparc
25017 and powerpc.
25018
25019 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
25020 lettered partition specifier is found, convert to numbered.
25021
25022 2009-04-29 David S. Miller <davem@davemloft.net>
25023
25024 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
25025 * include/grub/sparc64/ieee1275/memory.h: Likewise.
25026
25027 * normal/command.c: Add missing newline at end of file.
25028
25029 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
25030 warnings.
25031 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
25032 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
25033 grub_ofdisk_read): Likewise, and deal similarly with the fact that
25034 ihandles have a 32-bit type but need to be stored in a "void *".
25035
25036 2009-04-28 Pavel Roskin <proski@gnu.org>
25037
25038 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
25039 not disk. Adjust all dependencies.
25040 (grub_fs_uuid_close): Use grub_device_close(), not
25041 grub_disk_close().
25042
25043 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
25044 parent's partition, don't copy it by reference, as it gets freed
25045 on close.
25046
25047 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
25048
25049 Preboot hooks support
25050
25051 * commands/boot.c (struct grub_preboot_t): new declaration
25052 (preboots_head): new variable
25053 (preboots_tail): likewise
25054 (grub_loader_register_preboot_hook): new function
25055 (grub_loader_unregister_preboot_hook): likewise
25056 (grub_loader_set): launch preboot hooks
25057 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
25058 (grub_loader_register_preboot_hook): new declaration
25059 (grub_loader_unregister_preboot_hook): likewise
25060
25061 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
25062
25063 Warning fix
25064
25065 * disk/scsi.c (grub_scsi_open): added missing cast when
25066 calling grub_dprintf
25067
25068 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
25069
25070 Bug and warning fixes
25071
25072 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
25073 declaration
25074 * commands/test.c (test_parse): fixed bug with file tests and corrected
25075 declaration of find_file
25076
25077 2009-04-26 Pavel Roskin <proski@gnu.org>
25078
25079 * Makefile.in: Don't install empty manual pages if help2man is
25080 missing. Use help2man option for output, not shell redirection.
25081
25082 2009-04-26 David S. Miller <davem@davemloft.net>
25083
25084 * util/grub-mkdevicemap.c (make_device_map): Add missing
25085 NESTED_FUNC_ATTR to process_device().
25086
25087 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
25088
25089 Test command
25090
25091 * commands/test.c: rewritten to use bash-like test
25092
25093 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
25094
25095 Parttool autoloading and improvements
25096
25097 * Makefile.in (pkglib_DATA): add parttool.lst
25098 (parttool.lst): new target
25099 * genmk.rb: generate parttool-*
25100 (CLEANFILES): add #{parttool}
25101 (PARTTOOLFILES): new variable
25102 * genparttoollist.sh: new file
25103 * parttool/pcpart.c (grub_pcpart_boot): more feedback
25104 (grub_pcpart_type): likewise
25105 * commands/parttool.c (helpmsg): new variable
25106 (grub_cmd_parttool): output help if not enough arguments are supplied
25107 autoload modules
25108 (GRUB_MOD_INIT(parttool)): use helpmsg
25109
25110 2009-04-24 David S. Miller <davem@davemloft.net>
25111
25112 Avoiding opening same device multiple times in device iterator.
25113
25114 * kern/device.c: (grub_device_iterate): Define struct part_ent,
25115 and use it to build a list of partitions in iterate_disk() and
25116 iterate_partition().
25117
25118 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
25119 on disk->data.
25120
25121 * disk/ieee1275/nand.c (grub_nand_iterate): Return
25122 grub_devalias_iterate() result instead of unconditional 0.
25123 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
25124 Also, capture hook return value, either directly or via
25125 grub_children_iterate(), and propagate to caller.
25126 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
25127 grub_children_iterate): Return value is now 'int' instead of
25128 'grub_err_t'.
25129 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
25130 like a proper iterator, stopping when hooks return non-zero.
25131 (grub_devalias_iterate): Likewise.
25132
25133 2009-04-23 David S. Miller <davem@davemloft.net>
25134
25135 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
25136
25137 2009-04-22 David S. Miller <davem@davemloft.net>
25138
25139 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
25140 is larger than address_cells, use that value for address_cells too.
25141
25142 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
25143 IEEE1275_MAX_PATH_LEN): Define.
25144 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
25145 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
25146 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
25147 'devtype'. Explicitly NULL terminate devalias expansion.
25148
25149 * util/sparc64/ieee1275/misc.c: New file.
25150 * util/sparc64/ieee1275/grub-setup.c: New file.
25151 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
25152 * util/sparc64/ieee1275/grub-mkimage.c: New file.
25153 * util/sparc64/ieee1275/grub-install.in: New file.
25154 * util/ieee1275/ofpath.c: New file.
25155 * util/ieee1275/devicemap.c: New file.
25156 * util/devicemap.c: New file.
25157 * util/deviceiter.c: New file.
25158 * kern/sparc64/ieee1275/init.c: New file.
25159 * include/grub/util/ofpath.h: New file.
25160 * include/grub/util/deviceiter.h: New file.
25161 * util/grub-mkdevicemap.c: Include deviceiter.h.
25162 Implement using grub_util_emit_devicemap_entry and
25163 grub_util_iterate_devices.
25164 * conf/i386-corebook.rmk: Build util/deviceiter.c and
25165 util/devicemap.c into grub-mkdevicemap
25166 * conf/i386-efi.rmk: Likewise.
25167 * conf/i386-ieee1275.rmk: Likewise.
25168 * conf/i386-pc.rmk: Likewise.
25169 * conf/powerpc-ieee1275.rmk: Likewise.
25170 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
25171 images and installation utilities. Build kernel as image
25172 instead of as elf binary. Use common rules as much as possible.
25173
25174 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
25175
25176 Correct GPT definition
25177
25178 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
25179 of "attrib" member
25180
25181 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
25182
25183 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
25184
25185 2009-04-19 David S. Miller <davem@davemloft.net>
25186
25187 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
25188 (grub_rescue_cmd_linux): Rename to...
25189 (grub_cmd_linux): and fix prototype.
25190 (grub_rescue_cmd_initrd): Rename to...
25191 (grub_cmd_initrd): and fix prototype.
25192 (cmd_linux, cmd_initrd): New.
25193 (GRUB_MOD_INIT(linux)): Use grub_register_command().
25194 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
25195
25196 2009-04-17 Pavel Roskin <proski@gnu.org>
25197
25198 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
25199 format.
25200 (grub_ohci_transfer): Likewise.
25201
25202 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
25203
25204 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
25205 return without a value. Fix inconsistent indentation.
25206
25207 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
25208 match struct grub_fs.
25209
25210 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
25211 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
25212 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
25213 * commands/lspci.c (grub_lspci_iter): Likewise.
25214
25215 2009-04-16 Bean <bean123ch@gmail.com>
25216
25217 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
25218 value.
25219
25220 2009-04-15 Pavel Roskin <proski@gnu.org>
25221
25222 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
25223 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
25224 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
25225 definitions.
25226
25227 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
25228
25229 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
25230 that no multiple data or metadata areas are supported and `Unknown
25231 metadata header'.
25232
25233 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
25234
25235 Move loader out of the kernel
25236
25237 * kern/loader.c: moved to ...
25238 * commands/boot.c: ... moved here
25239 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
25240 * commands/boot.c (grub_cmd_boot): moved here. All users updated
25241 * include/grub/kernel.h (grub_machine_fini): export
25242 * include/grub/loader.h (grub_loader_is_loaded): update declaration
25243 (grub_loader_set): likewise
25244 (grub_loader_unset): likewise
25245 (grub_loader_boot): likewise
25246 * conf/common.rmk: new module boot.mod
25247 (pkglib_MODULES): add boot.mod
25248 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
25249 (grub_emu_SOURCES): likewise
25250 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
25251 (grub_emu_SOURCES): likewise
25252 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
25253 (grub_emu_SOURCES): likewise
25254 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
25255 (grub_emu_SOURCES): likewise
25256 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
25257 (grub_emu_SOURCES): likewise
25258 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
25259 (grub_emu_SOURCES): likewise
25260 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
25261 (grub_emu_SOURCES): likewise
25262
25263 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
25264
25265 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
25266
25267 * kern/misc.c (grub_itoa): Removed function
25268 (grub_ltoa): likewise
25269 (grub_vsprintf): use grub_lltoa
25270
25271 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
25272
25273 Restore grub-emu
25274
25275 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
25276 * conf/i386-coreboot.rmk: likewise
25277 * conf/i386-ieee1275.rmk: likewise
25278 * conf/powerpc-ieee1275.rmk: likewise
25279
25280 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
25281
25282 * INSTALL: Add that `./autogen.sh' needs to be run before
25283 `./configure.'.
25284
25285 2009-04-14 Bean <bean123ch@gmail.com>
25286
25287 * Makefile.in (pkglib_DATA): Add handler.lst.
25288 (handler.lst): New rule.
25289
25290 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
25291 * conf/i386-coreboot.rmk: Likewise.
25292 * conf/i386-ieee1275.rmk: Likewise.
25293 * conf/i386-efi.rmk: Likewise.
25294 * conf/x86_64-efi.rmk: Likewise.
25295 * conf/powerpc-ieee1275.rmk: Likewise.
25296 * conf/sparc64-ieee1275.rmk: Likewise.
25297
25298 * genhandlerlist.sh: New file.
25299
25300 * genmk.rb: Add rules to generate handler.lst.
25301
25302 * include/grub/normal.h (grub_file_getline): New function definition.
25303 (read_handler_list): Likewise.
25304 (free_handler_list): Likewise.
25305
25306 * include/grub/term.h (grub_term_register_input): Add name parameter
25307 for auto generation of handler.lst.
25308 (grub_term_register_output): Likewise.
25309
25310 * normal/handler.c: New file.
25311
25312 * normal/main.c (get_line): Renamed to grub_file_getline.
25313 (read_config_file): Use the newly renamed grub_file_getline.
25314 (read_command_list): Likewise.
25315 (read_fs_list): Likewise.
25316 (grub_normal_execute): Call read_handler_list to parse handler.lst.
25317 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
25318
25319 * term/efi/console.c (grub_console_init): Add name parameter for auto
25320 generation of handler.lst.
25321 * term/gfxterm.c: Likewise.
25322 * term/i386/pc/at_keyboard.c: Likewise.
25323 * term/i386/pc/console.c: Likewise.
25324 * term/i386/pc/serial.c: Likewise.
25325 * term/i386/pc/vesafb.c: Likewise.
25326 * term/i386/pc/vga.c: Likewise.
25327 * term/i386/pc/vga_text.c: Likewise.
25328 * term/ieee1275/ofconsole.c: Likewise.
25329 * term/usb_keyboard.c: Likewise.
25330
25331 2009-04-14 Bean <bean123ch@gmail.com>
25332
25333 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
25334 properly with null character.
25335
25336 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
25337
25338 * configure: Remove.
25339 * config.h.in: Likewise.
25340 * stamp-h.in: Likewise.
25341 * DISTLIST: Likewise.
25342 * conf/common.mk: Likewise.
25343 * conf/i386-coreboot.mk: Likewise.
25344 * conf/i386-efi.mk: Likewise.
25345 * conf/i386-ieee1275.mk: Likewise.
25346 * conf/i386.mk: Likewise.
25347 * conf/i386-pc.mk: Likewise.
25348 * conf/powerpc-ieee1275.mk: Likewise.
25349 * conf/sparc64-ieee1275.mk: Likewise.
25350 * conf/x86_64-efi.mk: Likewise.
25351
25352 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
25353 develop on GRUB.
25354
25355 2009-04-14 John Stanley <jpsinthemix@verizon.net>
25356 David S. Miller <davem@davemloft.net>
25357
25358 * util/hostdisk.c (make_device_name): Fix buffer length
25359 calculations.
25360
25361 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
25362
25363 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
25364 <sys/param.h> and <sys/sysctl.h>.
25365 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
25366 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
25367 opening the device and reset them afterwards.
25368
25369 2009-04-13 Pavel Roskin <proski@gnu.org>
25370
25371 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
25372 Reported by John Stanley <jpsinthemix@verizon.net>
25373
25374 2009-04-13 Robert Millan <rmh@aybabtu.com>
25375
25376 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
25377 that name for menuentries when appropriate.
25378
25379 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
25380
25381 * util/grub.d/10_freebsd.in: Add a missing `fi'.
25382
25383 2009-04-13 Robert Millan <rmh@aybabtu.com>
25384
25385 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
25386 to Linux, simply abort telling the user it's no longer supported.
25387
25388 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
25389
25390 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
25391 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
25392 `freebsd_loadenv' only when devices.hints exist.
25393
25394 2009-04-13 Pavel Roskin <proski@gnu.org>
25395
25396 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
25397
25398 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
25399
25400 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
25401 partition number.
25402 (grub_drive): Likewise.
25403
25404 2009-04-13 David S. Miller <davem@davemloft.net>
25405
25406 * kern/sparc64/ieee1275/ieee1275.c: New file.
25407 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
25408 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
25409 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
25410 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
25411 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
25412 grub_ieee1275_alloc_physmem): Declare new exported functions.
25413
25414 * include/grub/sparc64/ieee1275/loader.h: New file.
25415 * include/grub/sparc64/ieee1275/memory.h: Likewise.
25416 * include/grub/sparc64/kernel.h: Likewise.
25417 * loader/sparc64/ieee1275/linux.c: Likewise.
25418
25419 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
25420 (grub_fstest_SOURCES): Likewise.
25421
25422 * util/hostdisk.c (make_device_name): Do not make any assumptions
25423 about the length of drive names.
25424
25425 * kern/dl.c (grub_dl_load_file): Close file immediately when
25426 we are done using it.
25427
25428 2009-04-12 David S. Miller <davem@davemloft.net>
25429
25430 * kern/misc.c (grub_ltoa): Fix cast when handling negative
25431 values. Noticed by Pavel Roskin.
25432
25433 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
25434 target compiler.
25435
25436 * genmk.rb: Add more flexible image type specification, also
25437 pass --strip-unneeded to objcopy.
25438 * conf/i386-pc.rmk: Use *_FORMAT.
25439 * conf/i386-pc.mk: Rebuilt.
25440
25441 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
25442 (OFDISK_HASH_SZ): Define.
25443 (ofdisk_hash): New hash table.
25444 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
25445 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
25446 instead of device phandle which is not unique.
25447
25448 * kern/sparc64/ieee1275/init.c: Delete, replace with...
25449 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
25450 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
25451 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
25452 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
25453 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
25454 GRUB_KERNEL_MACHINE_DATA_END): Define.
25455 (grub_kernel_image_size, grub_total_module_size): Declare.
25456
25457 2009-04-12 Pavel Roskin <proski@gnu.org>
25458
25459 * configure.ac: Change the logic when we check for target tools.
25460 Do it when the target is specified and it's different from the
25461 specified value of the host.
25462
25463 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
25464
25465 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
25466 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
25467 GNU/kFreeBSD. Check if a device is a character device. Use
25468 DIOCGMEDIASIZE to get the size.
25469 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
25470 support for GNU/kFreeBSD.
25471 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
25472 is a character device instead of a block device. Add support for
25473 FreeBSD device names.
25474
25475 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
25476 is a character device instead of a block device.
25477
25478 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
25479 is a character device instead of a block device.
25480
25481 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
25482
25483 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
25484 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
25485 FreeBSD. Check if a device is a character device. Use
25486 DIOCGMEDIASIZE to get the size.
25487 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
25488 support for FreeBSD.
25489 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
25490 is a character device instead of a block device. Add support for
25491 FreeBSD device names.
25492
25493 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
25494 a character device instead of a block device.
25495 (grub_util_check_char_device): New function.
25496
25497 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
25498 a character device instead of a block device.
25499
25500 * include/grub/util/getroot.h (grub_util_check_char_device): New
25501 prototype.
25502
25503 2009-04-11 David S. Miller <davem@davemloft.net>
25504
25505 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
25506 static libgcc.
25507 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
25508 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
25509 function, if present.
25510 (__bswapdi2): Likewise.
25511
25512 * include/grub/sparc64/ieee1275/boot.h: New file.
25513 * boot/sparc64/ieee1275/boot.S: Likewise.
25514 * boot/sparc64/ieee1275/diskboot.S: Likewise.
25515
25516 * kern/misc.c (grub_ltoa): New function.
25517 (grub_vsprintf): Use it to format 'long' integers.
25518
25519 2009-04-10 David S. Miller <davem@davemloft.net>
25520
25521 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
25522 slots are of type grub_ieee1275_cell_t.
25523 (grub_nand_read): Likewise.
25524 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
25525 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
25526 macros are used to compare values in arg/ret block of the call.
25527 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
25528 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
25529 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
25530 grub_ieee1275_instance_to_path, grub_ieee1275_write,
25531 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
25532 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
25533 grub_ieee1275_close, grub_ieee1275_set_property,
25534 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
25535 grub_ieee1275_cell_t.
25536 * kern/ieee1275/openfw.c (grub_map): Likewise.
25537 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
25538 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
25539
25540 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
25541 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
25542 (grub_devalias_iterate): Likewise.
25543
25544 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
25545
25546 UFS improvements
25547
25548 * fs/ufs.c (INODE_NBLOCKS): new definition
25549 (struct grub_ufs_dirent): added fields for non-BSD dirents
25550 (grub_ufs_get_file_block): fixed double indirect handling
25551 (grub_ufs_lookup_symlink): use more robust way to determine whether
25552 symlink is inline
25553 (grub_ufs_find_file): support for non-BSD dirents
25554 (grub_ufs_dir): support for non-BSD dirents
25555
25556 2009-04-10 Bean <bean123ch@gnail.com>
25557
25558 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
25559 attribute, otherwise the size would be wrong for i386 platform.
25560
25561 * include/grub/pci.h (grub_pci_read_word): New inline function.
25562 (grub_pci_read_byte): Likewise.
25563 (grub_pci_write): Likewise.
25564 (grub_pci_write_word): Likewise.
25565 (grub_pci_write_byte): Likewise.
25566
25567 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
25568
25569 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
25570 (find_framebuf): Scan pci to locate the frame buffer address.
25571
25572 * commands/efi/fixvideo.c: New file.
25573
25574 * commands/efi/loadbios.c: Likewise.
25575
25576 * commands/memrw.c: Likewise.
25577
25578 * util/grub-dumpbios.in: Likewise.
25579
25580 * conf/common.rmk (grub-dumpbios): New utility.
25581 (pkglib_MODULES): New module memrw.mod.
25582 (memrw_mod_SOURCE): New macro.
25583 (memrw_mod_CFLAGS): Likewise.
25584 (memrw_mod_LDFLAGS): Likewise.
25585
25586 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
25587 fixvideo.mod.
25588 (loadbios_mod_SOURCE): New macro.
25589 (loadbios_mod_CFLAGS): Likewise.
25590 (loadbios_mod_LDFLAGS): Likewise.
25591 (fixvideo_mod_SOURCE): Likewise.
25592 (fixvideo_mod_CFLAGS): Likewise.
25593 (fixvideo_mod_LDFLAGS): Likewise.
25594
25595 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
25596 fixvideo.mod.
25597 (loadbios_mod_SOURCE): New macro.
25598 (loadbios_mod_CFLAGS): Likewise.
25599 (loadbios_mod_LDFLAGS): Likewise.
25600 (fixvideo_mod_SOURCE): Likewise.
25601 (fixvideo_mod_CFLAGS): Likewise.
25602 (fixvideo_mod_LDFLAGS): Likewise.
25603
25604 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
25605
25606 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
25607
25608 2009-04-07 David S. Miller <davem@davemloft.net>
25609
25610 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
25611 support for R_SPARC_OLO10 relocations. Fix compile warning for
25612 R_SPARC_WDISP30 case.
25613 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
25614
25615 2009-04-06 Pavel Roskin <proski@gnu.org>
25616
25617 * include/grub/misc.h (ARRAY_SIZE): New macro.
25618 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
25619 New macro.
25620 * loader/i386/linux.c (allocate_pages): Use free_pages().
25621 (grub_linux_unload): Don't use free_pages().
25622 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
25623 wrong index. Treat all other modes as text modes.
25624 (grub_cmd_linux): Initialize vid_mode unconditionally to
25625 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
25626
25627 * commands/help.c (print_command_help): Use cmd->prio, not
25628 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
25629
25630 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
25631
25632 Parttool
25633
25634 * parttool/pcpart.c: new file
25635 * commands/parttool.c: likewise
25636 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
25637 (parttool_mod_SOURCES): new variable
25638 (parttool_mod_CFLAGS): likewise
25639 (parttool_mod_LDFLAGS): likewise
25640 (pcpart_mod_SOURCES): likewise
25641 (pcpart_mod_CFLAGS): likewise
25642 (pcpart_mod_LDFLAGS): likewise
25643 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
25644 and parttool/pcpart.c
25645 * conf/i386-efi.rmk: likewise
25646 * conf/i386-ieee1275.rmk: likewise
25647 * conf/i386-pc.rmk: likewise
25648 * conf/powerpc-ieee1275.rmk: likewise
25649 * conf/sparc64-ieee1275.rmk: likewise
25650 * conf/x86_64-ieee1275.rmk: likewise
25651
25652 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
25653
25654 Support for mtime and further expandability of dir command
25655
25656 * include/grub/lib/datetime.h: moved to ...
25657 * include/grub/datetime.h: ... moved here and added
25658 declaration of grub_unixtime2datetime. All users updated
25659 * include/grub/fs.h: new syntax for dir and mtime functions in
25660 struct grub_fs
25661 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
25662 and GRUB_FSHELP_FLAGS_MASK
25663 * commands/ls.c (grub_ls_list_files): Write mtime in long format
25664 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
25665 (grub_ext2_mtime): new function
25666 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
25667 (grub_hfsplus_mtime): new function
25668 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
25669 (GRUB_UFS_ATTR_FILE): likewise
25670 (GRUB_UFS_ATTR_LNK): likewise
25671 (struct grub_ufs_sblock): new fields mtime
25672 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
25673 all users updated
25674 (grub_ufs_dir): mtime support
25675 (grub_ufs_mtime): new function
25676 * fs/affs.c (grub_affs_dir): use new dir syntax
25677 * fs/afs.c (grub_afs_dir): likewise
25678 * fs/cpio.c (grub_cpio_dir): likewise
25679 * fs/fat.c (grub_fat_find_dir): likewise
25680 * fs/hfs.c (grub_hfs_dir): likewise
25681 * fs/iso9660.c (grub_iso9660_dir): likewise
25682 * fs/jfs.c (grub_jfs_dir): likewise
25683 * fs/minix.c (grub_minix_dir): likewise
25684 * fs/ntfs.c (grub_ntfs_dir): likewise
25685 * fs/reiserfs.c (grub_reiserfs_dir): likewise
25686 * fs/sfs.c (grub_sfs_dir): likewise
25687 * fs/xfs.c (grub_xfs_dir): likewise
25688 * util/hostfs.c (grub_hostfs_dir): likewise
25689 * lib/datetime.c: moved to ...
25690 * normal/datetime.c: ... moved here
25691 (grub_unixtime2datetime): new function
25692 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
25693 * normal/completion.c (iterate_dir): use new dir syntax
25694 * normal/misc.c (grub_normal_print_device_info): tell the
25695 last modification time of a volume
25696 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
25697 * conf/common.rmk: added lib/datetime.c to ls.mod
25698 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
25699 (normal_mod_SOURCES): likewise
25700 (datetime_mod_SOURCES): Removed lib/datetime.c
25701 * conf/i386-efi.rmk: likewise
25702 * conf/i386-ieee1275.rmk: likewise
25703 * conf/i386-pc.rmk: likewise
25704 * conf/powerpc-ieee1275.rmk: likewise
25705 * conf/sparc64-ieee1275.rmk: likewise
25706 * conf/x86_64-efi.rmk: likewise
25707
25708 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
25709
25710 Trim trailing spaces in FAT label and support mtools-like labels
25711
25712 * fs/fat.c (grub_fat_iterate_dir): New function based
25713 on grub_fat_find_dir
25714 (grub_fat_find_dir): use grub_fat_iterate_dir
25715 (grub_fat_label): likewise
25716
25717 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
25718
25719 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
25720 and command.h
25721 remove extraneous kernel_elf_HEADERS
25722
25723 2009-04-04 Bean <bean123ch@gnail.com>
25724
25725 * include/grub/util/misc.h: Add dummy function fsync for mingw.
25726
25727 * util/misc.c: Likewise.
25728
25729 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
25730
25731 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
25732 instead of grub_printf.
25733
25734 2009-04-03 Robert Millan <rmh@aybabtu.com>
25735
25736 * loader/i386/linux.c (grub_linux_setup_video): Fill
25737 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
25738 values from `mode info' structure instead of hardcoded
25739 values.
25740
25741 2009-04-01 Pavel Roskin <proski@gnu.org>
25742
25743 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
25744 unused now.
25745 * genmk.rb: Likewise.
25746 * configure.ac: Likewise.
25747
25748 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
25749
25750 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
25751 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
25752
25753 2009-04-01 David S. Miller <davem@davemloft.net>
25754
25755 * normal/sparc64/setjmp.S: Fix setjmp implementation.
25756 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
25757 (grub_setjmp): Mark with 'returns_twice' attribute.
25758 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
25759 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
25760 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
25761
25762 2009-04-01 Robert Millan <rmh@aybabtu.com>
25763
25764 Reapply fix from 2008-07-28 which was accidentally reverted; also
25765 perform the same fix to a similar check in same function.
25766
25767 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
25768 with the same number are found, just use issue a warning with
25769 grub_dprintf(), as this error has been reported to be non-fatal.
25770
25771 2009-03-31 Pavel Roskin <proski@gnu.org>
25772
25773 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
25774 for cross-compilation.
25775
25776 2009-03-30 Robert Millan <rmh@aybabtu.com>
25777
25778 Fix i386-ieee1275 build.
25779
25780 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
25781 Remove declaration.
25782
25783 2009-03-30 Pavel Roskin <proski@gnu.org>
25784
25785 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
25786 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
25787 zero-terminated, rely only on the strlen value. Fix comparison
25788 of strings differing in length.
25789
25790 2009-03-30 Robert Millan <rmh@aybabtu.com>
25791
25792 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
25793 checking for abi version. Improve error messages on BIOS to notify
25794 user about `linux16' command.
25795
25796 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
25797
25798 Leak fixes
25799
25800 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
25801 in case of collision
25802 * disk/scsi.c (grub_scsi_open): free scsi in case of error
25803
25804 2009-03-29 Robert Millan <rmh@aybabtu.com>
25805
25806 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
25807 set `vid_mode' accordingly.
25808 (grub_linux_boot): Process `vid_mode' and set video mode.
25809
25810 2009-03-29 Robert Millan <rmh@aybabtu.com>
25811
25812 * util/grub.d/10_linux.in (linux_entry): New function.
25813 Factorize generation of Linux boot entries.
25814
25815 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
25816
25817 Make the format of Environment Block plain text. The boot loader
25818 part is not tested well yet.
25819
25820 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
25821 (buffer): Removed.
25822 (envblk): Likewise.
25823 (usage): Remove "info" and "clear". Add "unset". Update the
25824 description of "set", as this does not delete variables any
25825 longer.
25826 (create_envblk_file): Complete rewrite.
25827 (open_envblk_file): Likewise.
25828 (cmd_info): Removed.
25829 (cmd_list): Likewise.
25830 (cmd_set): Likewise.
25831 (cmd_clear): Likewise.
25832 (list_variables): New function.
25833 (write_envblk): Likewise.
25834 (set_variables): Likewise.
25835 (unset_variables): Likewise.
25836 (main): Complete rewrite.
25837
25838 * commands/loadenv.c (buffer): Removed.
25839 (envblk): Likewise.
25840 (open_envblk_file): New function.
25841 (read_envblk_file): Complete rewrite.
25842 (grub_cmd_load_env): Likewise.
25843 (grub_cmd_list_env): Likewise.
25844 (struct blocklist): New struct.
25845 (free_blocklists): New function.
25846 (check_blocklists): Likewise.
25847 (write_blocklists): Likewise.
25848 (grub_cmd_save_env): Complete rewrite.
25849
25850 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
25851 a plain text signature.
25852 (GRUB_ENVBLK_MAXLEN): Removed.
25853 (struct grub_envblk): Complete rewrite.
25854 (grub_envblk_find): Removed.
25855 (grub_envblk_insert): Likewise.
25856 (grub_envblk_open): New prototype.
25857 (grub_envblk_set): Likewise.
25858 (grub_envblk_delete): Put const to VALUE.
25859 (grub_envblk_iterate): Put const to NAME and VALUE.
25860 (grub_envblk_close): New prototype.
25861 (grub_envblk_buffer): New inline function.
25862 (grub_envblk_size): Likewise.
25863
25864 * lib/envblk.c: Include grub/mm.h.
25865 (grub_env_find): Removed.
25866 (grub_envblk_open): New function.
25867 (grub_envblk_close): Likewise.
25868 (escaped_value_len): Likewise.
25869 (find_next_line): Likewise.
25870 (grub_envblk_insert): Removed.
25871 (grub_envblk_set): New function.
25872 (grub_envblk_delete): Complete rewrite.
25873 (grub_envblk_iterate): Likewise.
25874
25875 2009-03-28 Robert Millan <rmh@aybabtu.com>
25876
25877 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
25878 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
25879 variables. Use 16-bit loader.
25880 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
25881 loader.
25882 * kern/i386/loader.S (grub_linux_boot): Rename to ...
25883 (grub_linux16_boot): ... this. Update all users.
25884 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
25885 (grub_linux_boot): ... this. Update all users.
25886
25887 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
25888 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
25889 commands to `linux16' and `initrd16'.
25890 (GRUB_MOD_FINI(linux)): Rename to ...
25891 (GRUB_MOD_FINI(linux16)): ... this.
25892
25893 2009-03-24 Pavel Roskin <proski@gnu.org>
25894
25895 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
25896 not just for compilation.
25897
25898 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
25899
25900 Move multiboot helper out of kernel
25901
25902 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
25903 `loader/i386/multiboot_helper.S'.
25904 * conf/i386-coreboot.rmk: Likewise
25905 * conf/i386-ieee1275.rmk: Likewise
25906
25907 * kern/i386/loader.S: Move multiboot helpers from here...
25908 * loader/i386/multiboot_helper.S: ...moved here
25909 * include/grub/i386/loader.h: Move declarations of multiboot
25910 helpers from here...
25911 * include/grub/i386/multiboot.h: ...moved here
25912 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
25913
25914 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
25915
25916 * kern/env.c (grub_env_context_open): Added an argument to specify
25917 whether a new context inherits exported variables from current
25918 one. This is useful when making a sandbox to interpret a config
25919 file.
25920 All callers updated.
25921
25922 * include/grub/env.h (grub_env_context_open): Updated the prototype.
25923
25924 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
25925
25926 * kern/env.c (grub_env_context_close): Fix memory leaks.
25927
25928 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
25929
25930 * normal/main.c (grub_normal_execute): Added an argument
25931 BATCH to specify if an interactive interface should be provided
25932 after reading a config file.
25933 All callers updated.
25934 (read_command_list): Prevent being executed twice.
25935 (read_fs_list): Likewise.
25936
25937 * include/grub/normal.h (grub_normal_execute): Updated the
25938 prototype.
25939
25940 2009-03-22 Pavel Roskin <proski@gno.org>
25941
25942 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
25943 _start.
25944 * kern/i386/pc/startup.S: Likewise.
25945 * kern/i386/efi/startup.S: Likewise.
25946 * kern/i386/ieee1275/startup.S: Likewise.
25947 * kern/i386/coreboot/startup.S: Likewise.
25948 * kern/x86_64/efi/startup.S: Likewise.
25949
25950 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
25951 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
25952 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
25953
25954 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
25955
25956 Bugfixes in multiboot for bugs uncovered by solaris kernel.
25957
25958 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
25959 limit detection.
25960 Use vaddr of correct segment for entry_point.
25961
25962 2009-03-21 Bean <bean123ch@gmail.com>
25963
25964 * commands/blocklist.c: Add include file <grub/command.h>, remove
25965 <grub/normal.h> and <grub/arg.h>.
25966 (grub_cmd_blocklist): Use the new command interface.
25967 (GRUB_MOD_INIT): Likewise.
25968 (GRUB_MOD_FINI): Likewise.
25969 * commands/boot.c: Likewise.
25970 * commands/cat.c: Likewise.
25971 * commands/cmp.c: Likewise.
25972 * commands/configfile.c: Likewise.
25973 * commands/crc.c: Likewise.
25974 * commands/echo.c: Likewise.
25975 * commands/halt.c: Likewise.
25976 * commands/handler.c: Likewise.
25977 * commands/hdparm.c: Likewise.
25978 * commands/help.c: Likewise.
25979 * commands/hexdump.c: Likewise.
25980 * commands/loadenv.c: Likewise.
25981 * commands/ls.c: Likewise.
25982 * commands/lsmmap.c: Likewise.
25983 * commands/lspci.c: Likewise.
25984 * commands/loadenv.c: Likewise.
25985 * commands/read.c: Likewise.
25986 * commands/reboot.c: Likewise.
25987 * commands/search.c: Likewise.
25988 * commands/sleep.c: Likewise.
25989 * commands/test.c: Likewise.
25990 * commands/usbtest.c: Likewise.
25991 * commands/videotest.c: Likewise.
25992 * commands/i386/cpuid.c: Likewise.
25993 * commands/i386/pc/halt.c: Likewise.
25994 * commands/i386/pc/play.c: Likewise.
25995 * commands/i386/pc/pxecmd.c: Likewise.
25996 * commands/i386/pc/vbeinfo.c: Likewise.
25997 * commands/i386/pc/vbetest.c: Likewise.
25998 * commands/ieee1275/suspend.c: Likewise.
25999 * disk/loopback.c: Likewise.
26000 * font/font_cmd.c: Likewise.
26001 * hello/hello.c: Likewise.
26002 * loader/efi/appleloader.c: Likewise.
26003 * loader/efi/chainloader.c: Likewise.
26004 * loader/i386/bsd.c: Likewise.
26005 * loader/i386/efi/linux.c: Likewise.
26006 * loader/i386/ieee1275/linux.c: Likewise.
26007 * loader/i386/linux.c: Likewise.
26008 * loader/i386/pc/chainloader.c: Likewise.
26009 * loader/i386/pc/linux.c: Likewise.
26010 * loader/powerpc/ieee1275/linux.c: Likewise.
26011 * loader/multiboot_loader.c: Likewise.
26012 * term/gfxterm.c: Likewise.
26013 * term/i386/pc/serial.c: Likewise.
26014 * term/terminfo.c: Likewise.
26015
26016 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
26017 * term/i386/pc/vga.c: Likewise.
26018 * video/readers/jpeg.c: Likewise.
26019 * video/readers/png.c: Likewise.
26020 * video/readers/tga.c: Likewise.
26021
26022 * util/grub-fstest (cmd_loopback): Removed.
26023 (cmd_blocklist): Likewise.
26024 (cmd_ls): Likewise.
26025 (grub_register_command): Likewise.
26026 (grub_unregister_command): Likewise.
26027 (execute_command): Use grub_command_find to locate command and execute
26028 it.
26029
26030 * include/grub/efi/chainloader.h: Removed.
26031 * loader/efi/chainloader_normal.c: Likewise.
26032 * loader/i386/bsd_normal.c: Likewise.
26033 * loader/i386/pc/chainloader_normal.c: Likewise.
26034 * loader/i386/pc/multiboot_normal.c: Likewise.
26035 * loader/linux_normal.c: Likewise.
26036 * loader/multiboot_loader_normal.c: Likewise.
26037 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
26038
26039 * gencmdlist.sh: Scan new registration command grub_register_extcmd
26040 and grub_register_command_p1.
26041
26042 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
26043 kern/command.c, lib/arg.c and commands/extcmd.c.
26044 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
26045 (minicmd_mod_SOURCES): New variable.
26046 (minicmd_mod_CFLAGS): Likewise.
26047 (minicmd_mod_LDFLAGS): Likewise.
26048 (extcmd_mod_SOURCES): Likewise.
26049 (extcmd_mod_CFLAGS): Likewise.
26050 (extcmd_mod_LDFLAGS): Likewise.
26051 (boot_mod_SOURCES): Removed.
26052 (boot_mod_CFLAGS): Likewise.
26053 (boot_mod_LDFLAGS): Likewise.
26054
26055 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
26056 kern/corecmd.c.
26057 (kernel_img_HEADERS): Add command.h.
26058 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
26059 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
26060 and lib/arg.c.
26061 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
26062 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
26063 remove the corresponding normal mode command.
26064 (normal_mod_SOURCES): Remove normal/arg.c.
26065 * conf/i386-coreboot.rmk: Likewise.
26066 * conf/i386-efi.rmk: Likewise.
26067 * conf/i386-ieee1275.rmk: Likewise.
26068 * conf/powerpc-ieee1275.rmk: Likewise.
26069 * conf/x86_64-efi.rmk: Likewise.
26070
26071 * include/grub/arg.h: Move from here ...
26072 * include/grub/lib/arg.h: ... to here.
26073
26074 * normal/arg.c: Move from here ...
26075 * lib/arg.c: ... to here.
26076
26077 * commands/extcmd.c: New file.
26078 * commands/minicmd.c: Likewise.
26079 * include/grub/command.h: Likewise.
26080 * include/grub/extcmd.h: Likewise.
26081 * kern/command.c: Likewise.
26082 * kern/corecmd.c: Likewise.
26083
26084 * kern/list.c (grub_list_iterate): Return int instead of void.
26085 (grub_list_insert): New function.
26086 (grub_prio_list_insert): Likewise.
26087
26088 * kern/rescue.c (grub_rescue_command): Removed.
26089 (grub_rescue_command_list): Likewise.
26090 (grub_rescue_register_command): Likewise.
26091 (grub_rescue_unregister_command): Likewise.
26092 (grub_rescue_cmd_boot): Move to minicmd.c
26093 (grub_rescue_cmd_help): Likewise.
26094 (grub_rescue_cmd_info): Likewise.
26095 (grub_rescue_cmd_boot): Likewise.
26096 (grub_rescue_cmd_testload): Likewise.
26097 (grub_rescue_cmd_dump): Likewise.
26098 (grub_rescue_cmd_rmmod): Likewise.
26099 (grub_rescue_cmd_lsmod): Likewise.
26100 (grub_rescue_cmd_exit): Likewise.
26101 (grub_rescue_print_devices): Moved to corecmd.c.
26102 (grub_rescue_print_files): Likewise.
26103 (grub_rescue_cmd_ls): Likewise.
26104 (grub_rescue_cmd_insmod): Likewise.
26105 (grub_rescue_cmd_set): Likewise.
26106 (grub_rescue_cmd_unset): Likewise.
26107 (attempt_normal_mode): Use grub_command_find to get normal module.
26108 (grub_enter_rescue_mode): Use grub_register_core_commands to register
26109 commands, remove grub_rescue_register_command calls.
26110
26111 * normal/command.c (grub_register_command): Removed.
26112 (grub_unregister_command): Likewise.
26113 (grub_command_find): Likewise.
26114 (grub_iterate_commands): Likewise.
26115 (rescue_command): Likewise.
26116 (export_command): Moved to corecmd.c.
26117 (set_command): Removed.
26118 (unset_command): Likewise.
26119 (insmod_command): Likewise.
26120 (rmmod_command): Likewise.
26121 (lsmod_command): Likewise.
26122 (grub_command_init): Likewise.
26123
26124 * normal/completion.c (iterate_command): Use cmd->prio to check for
26125 active command.
26126 (complete_arguments): Use grub_extcmd_t structure to find options.
26127 (grub_normal_do_completion): Change function grub_iterate_commands to
26128 grub_command_iterate.
26129
26130 * normal/execute.c (grub_script_execute_cmd): No need to parse
26131 argument here.
26132
26133 * normal/main.c (grub_dyncmd_dispatcher): New function.
26134 (read_command_list): Register unload commands as dyncmd.
26135 (grub_cmd_normal): Use new command interface, register rescue,
26136 unregister normal at entry, register normal, unregister rescue at exit.
26137
26138 * include/grub/list.h (grub_list_test_t): New type.
26139 (grub_list_iterate): Return int instead of void.
26140 (grub_list_insert): New function.
26141 (GRUB_AS_NAMED_LIST_P): New macro.
26142 (GRUB_AS_PRIO_LIST): Likewise.
26143 (GRUB_AS_PRIO_LIST_P): Likewise.
26144 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
26145 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
26146 (grub_prio_list): New structure.
26147 (grub_prio_list_insert): New function.
26148 (grub_prio_list_remove): New inline function.
26149
26150 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
26151 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
26152 (GRUB_COMMAND_FLAG_MENU): Likewise.
26153 (GRUB_COMMAND_FLAG_BOTH): Likewise.
26154 (GRUB_COMMAND_FLAG_TITLE): Likewise.
26155 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
26156 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
26157 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
26158 (grub_command): Likewise.
26159 (grub_register_command): Likewise.
26160 (grub_command_find): Likewise.
26161 (grub_iterate_commands): Likewise.
26162 (grub_command_init): Likewise.
26163 (grub_arg_parse): Likewise.
26164 (grub_arg_show_help): Likewise.
26165
26166 * include/grub/rescue.h (grub_rescue_register_command): Removed.
26167 (grub_rescue_unregister_command): Likewise.
26168
26169 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
26170 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
26171 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
26172
26173 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
26174 grub_rescue_cmd_initrd.
26175 * include/grub/i386/loader.h: Likewise.
26176 * include/grub/x86_64/loader.h: Likewise.
26177
26178 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
26179
26180 2009-03-21 Bean <bean123ch@gmail.com>
26181
26182 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
26183 instead of stat in mingw environment.
26184
26185 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
26186
26187 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
26188
26189 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
26190 AC_CONFIG_LINKS.
26191
26192 2009-03-21 Bean <bean123ch@gmail.com>
26193
26194 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
26195 out of range error.
26196
26197 2009-03-18 Michel Dänzer <michel@daenzer.net>
26198
26199 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
26200 checking inode flags for EXT4_EXTENTS_FLAG.
26201
26202 2009-03-18 Robert Millan <rmh@aybabtu.com>
26203
26204 * loader/i386/linux.c: Include `<grub/video.h>' and
26205 `<grub/i386/pc/vbe.h>'..
26206 (grub_linux_setup_video): New function. Loosely based on the EFI one.
26207 (grub_linux32_boot): Attempt to configure video settings with
26208 grub_linux_setup_video().
26209 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
26210 to avoid grub_console_fini() which would step out of graphical mode
26211 unconditionally.
26212
26213 2009-03-14 Robert Millan <rmh@aybabtu.com>
26214
26215 Fix build on powerpc.
26216 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
26217
26218 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
26219
26220 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
26221 background image command.
26222
26223 2009-03-12 Colin D Bennett <colin@gibibit.com>
26224
26225 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
26226 (grub_gfxterm_putchar): Extract pairs of identical calls to
26227 draw_cursor out of conditional blocks.
26228
26229 2009-03-11 Pavel Roskin <proski@gnu.org>
26230
26231 * fs/hfs.c (grub_hfs_strncasecmp): New function.
26232 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
26233
26234 2009-03-11 Robert Millan <rmh@aybabtu.com>
26235
26236 * loader/i386/multiboot_elfxx.c
26237 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
26238
26239 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
26240
26241 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
26242 `kern/handler.c'.
26243
26244 2009-03-11 Robert Millan <rmh@aybabtu.com>
26245
26246 * loader/i386/multiboot.c (code_size): New variable.
26247 (grub_multiboot): Define offsets by adding to `code_size' rather
26248 than subtracting from `grub_multiboot_payload_size'. Provide
26249 4-byte alignment to MBI and others by increasing
26250 `boot_loader_name_length' appropriately.
26251
26252 * loader/i386/multiboot_elfxx.c
26253 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
26254
26255 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
26256
26257 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
26258 `fs/ext2.c'.
26259
26260 2009-03-08 Robert Millan <rmh@aybabtu.com>
26261
26262 Make loader/i386/linux.c usable on i386-pc again.
26263
26264 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
26265 memory to heap.
26266 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
26267 `#error' stanza.
26268
26269 2009-03-07 Bean <bean123ch@gmail.com>
26270
26271 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
26272 allocation.
26273
26274 2009-03-06 Robert Millan <rmh@aybabtu.com>
26275
26276 Fix display issue on terminals with screen size other than 80x25
26277 (e.g. gfxterm with resolution higher than 640x480).
26278
26279 * normal/main.c (grub_normal_init_page): Display title text in a
26280 position relative to the center of the terminal instead of relying
26281 on a hardcoded offset.
26282
26283 2009-03-04 Robert Millan <rmh@aybabtu.com>
26284
26285 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
26286 installed.
26287
26288 * Makefile.in (host_kernel): New variable.
26289 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
26290 scripts instead of just the windows one.
26291 * configure.ac: Initialize and AC_SUBST `host_kernel'.
26292
26293 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
26294
26295 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
26296 `kern/handler.c'.
26297 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
26298 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
26299 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
26300 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26301 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26302 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26303
26304 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
26305
26306 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
26307 or if there's no space for the disk label and print the partition number on a
26308 invalid magic.
26309
26310 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
26311
26312 * util/misc.c: Include <time.h>.
26313 (grub_millisleep): New function.
26314
26315 2009-03-04 Bean <bean123ch@gmail.com>
26316
26317 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
26318 another option -mno-red-zone.
26319
26320 * commands/handler.c: Change module description.
26321
26322 * kern/handler.c: Add missing space at the end of description line.
26323
26324 * kern/list.c: Likewise.
26325
26326 2009-03-03 Robert Millan <rmh@aybabtu.com>
26327
26328 Move more components to the relocation area, and fix mbi pointer
26329 handling to use the destination rather than the origin (thanks to
26330 Vladimir Serbinenko for spotting).
26331
26332 * loader/i386/multiboot.c (mbi_dest): New variable.
26333 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
26334 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
26335 relocation area.
26336
26337 2009-03-01 Bean <bean123ch@gmail.com>
26338
26339 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
26340 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
26341 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
26342 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
26343
26344 * loader/i386/efi/linux.c (acpi_guid): New variable.
26345 (acpi_guid): Likewise.
26346 (EBDA_SEG_ADDR): New constant.
26347 (LOW_MEM_ADDR): Likewise.
26348 (FAKE_EBDA_SEG): Likewise.
26349 (fake_bios_data): New function.
26350 (grub_linux_boot): Call fake_bios_data.
26351
26352 2009-03-01 Bean <bean123ch@gmail.com>
26353
26354 * commands/terminal.c: Removed.
26355
26356 * commands/handler.c: New file.
26357
26358 * include/grub/list.h: Likewise.
26359
26360 * include/grub/handler.h: Likewise.
26361
26362 * kern/list.c: Likewise.
26363
26364 * kern/handler.c: Likewise.
26365
26366 * kern/term.h: Include header file <grub/handler.h>.
26367 (grub_term_input): Move next field to the beginning.
26368 (grub_term_output): Likewise.
26369 (grub_term_input_class): New variable.
26370 (grub_term_output_class): Likewise.
26371 (grub_term_register_input): Changed to inline function.
26372 (grub_term_register_output): Likewise.
26373 (grub_term_unregister_input): Likewise.
26374 (grub_term_unregister_output): Likewise.
26375 (grub_term_set_current_input): Likewise.
26376 (grub_term_set_current_output): Likewise.
26377 (grub_term_get_current_input): Likewise.
26378 (grub_term_get_current_output): Likewise.
26379 (grub_term_iterate_input): Removed.
26380 (grub_term_iterate_output): Likewise.
26381
26382 * kern/term.c (grub_term_list_input): Removed.
26383 (grub_term_list_output): Likewise.
26384 (grub_term_input_class): New variable.
26385 (grub_term_output_class): Likewise.
26386 (grub_cur_term_input): Change variable as macro.
26387 (grub_cur_term_output): Likewise.
26388 (grub_term_register_input): Removed.
26389 (grub_term_register_output): Likewise.
26390 (grub_term_unregister_input): Likewise.
26391 (grub_term_unregister_output): Likewise.
26392 (grub_term_set_current_input): Likewise.
26393 (grub_term_set_current_output): Likewise.
26394 (grub_term_iterate_input): Likewise.
26395 (grub_term_iterate_output): Likewise.
26396 (grub_term_get_current_input): Likewise.
26397 (grub_term_get_current_output): Likewise.
26398
26399 * util/grub-editenv.c: Include header file <grub/handler.h>.
26400 (grub_term_get_current_input): Removed.
26401 (grub_term_get_current_output): Likewise.
26402 (grub_term_input_class): New variable.
26403 (grub_term_output_class): Likewise.
26404
26405 * util/grub-fstest.c (grub_term_get_current_input): Removed.
26406 (grub_term_get_current_output): Likewise.
26407 (grub_term_input_class): New variable.
26408 (grub_term_output_class): Likewise.
26409
26410 * util/grub-probe.c (grub_term_get_current_input): Removed.
26411 (grub_term_get_current_output): Likewise.
26412 (grub_term_input_class): New variable.
26413 (grub_term_output_class): Likewise.
26414
26415 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
26416 (grub_term_get_current_output): Likewise.
26417 (grub_term_input_class): New variable.
26418 (grub_term_output_class): Likewise.
26419
26420 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
26421 (terminal_mod_SOURCES): Likewise.
26422 (terminal_mod_CFLAGS): Likewise.
26423 (terminal_mod_LDFLAGS): Likewise.
26424
26425 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
26426 handler.c.
26427 (kernel_img_SOURCES): Add list.c and handler.c.
26428 (kernel_img_HEADERS): Add list.h and handler.h.
26429
26430 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
26431 handler.c.
26432 (kernel_mod_SOURCES): Add list.c and handler.c.
26433 (kernel_mod_HEADERS): Add list.h and handler.h.
26434
26435 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
26436 handler.c.
26437 (kernel_elf_SOURCES): Add list.c and handler.c.
26438 (kernel_elf_HEADERS): Add list.h and handler.h.
26439
26440 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
26441 handler.c.
26442 (kernel_elf_SOURCES): Add list.c and handler.c.
26443 (kernel_elf_HEADERS): Add list.h and handler.h.
26444
26445 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
26446 handler.c.
26447 (kernel_mod_SOURCES): Add list.c and handler.c.
26448 (kernel_mod_HEADERS): Add list.h and handler.h.
26449
26450 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
26451 handler.c.
26452 (kernel_elf_SOURCES): Add list.c and handler.c.
26453 (kernel_elf_HEADERS): Add list.h and handler.h.
26454
26455 2009-02-27 Robert Millan <rmh@aybabtu.com>
26456
26457 Factorize elf32 / elf64 code in Multiboot loader. This will
26458 prevent it from getting out of sync again.
26459
26460 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
26461 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
26462 grub_multiboot_load_elf64): Move from here ...
26463 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
26464 grub_multiboot_load_elf): ... to here (new file).
26465
26466 2009-02-27 Robert Millan <rmh@aybabtu.com>
26467
26468 * util/grub.d/10_linux.in: Rename "single-user mode" to
26469 "recovery mode".
26470
26471 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
26472
26473 Don't leak in SCSI code.
26474 * disk/scsi.c (grub_scsi_close): free `scsi'.
26475
26476 2009-02-27 Robert Millan <rmh@aybabtu.com>
26477
26478 * loader/i386/pc/multiboot.c: Move from here ...
26479 * loader/i386/multiboot.c: ... to here. Update all users.
26480
26481 2009-02-27 Robert Millan <rmh@aybabtu.com>
26482
26483 Patch from Alexandre Bique <bique.alexandre@gmail.com>
26484 * util/i386/pc/grub-setup.c (setup): Fix directory path.
26485
26486 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
26487
26488 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
26489 b-tree.
26490
26491 2009-02-27 Robert Millan <rmh@aybabtu.com>
26492
26493 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
26494 `0x' qualifier as 0 when base is specified as parameter).
26495
26496 2009-02-24 Bean <bean123ch@gmail.com>
26497
26498 * configure.ac: Check for -mcmodel=large in x86_64 target.
26499
26500 * include/grub/efi/api.h (efi_call_10): New macro.
26501 (efi_wrap_10): New function.
26502
26503 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
26504 (GRUB_PE32_REL_BASED_HIGH): Likewise.
26505 (GRUB_PE32_REL_BASED_LOW): Likewise.
26506 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
26507 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
26508 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
26509 (GRUB_PE32_REL_BASED_SECTION): Likewise.
26510 (GRUB_PE32_REL_BASED_REL): Likewise.
26511 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
26512 (GRUB_PE32_REL_BASED_DIR64): Likewise.
26513 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
26514
26515 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
26516 issue.
26517
26518 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
26519 (efi_wrap_10): New function.
26520
26521 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
26522
26523 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
26524 MB/MBP model (NV chipset).
26525 (devdata_devs): Add devpath_5 to the list.
26526
26527 * load/i386/efi/linux.c (video_base): Remove variable.
26528 (RGB_MASK): New macro.
26529 (RGB_MAGIC): Likewise.
26530 (LINE_MIN): Likewise.
26531 (LINE_MAX): Likewise.
26532 (FBTEST_STEP): Likewise.
26533 (FBTEST_COUNT): Likewise.
26534 (fb_list): New variable.
26535 (grub_find_video_card): Remove function.
26536 (find_framebuf): New function.
26537 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
26538 line length.
26539
26540 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
26541 problem for x86_64.
26542
26543 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
26544
26545 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
26546
26547 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
26548 coding tool name.
26549
26550 2009-02-22 Robert Millan <rmh@aybabtu.com>
26551
26552 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
26553 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
26554 in our relocation, instead of using it directly from heap. Also
26555 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
26556
26557 2009-02-21 Robert Millan <rmh@aybabtu.com>
26558
26559 Implement USB keyboard support (based on patch by Marco Gerards)
26560
26561 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
26562 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
26563 (usb_keyboard_mod_LDFLAGS): New variables.
26564
26565 * term/usb_keyboard.c: New file.
26566
26567 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
26568
26569 Corrected wrong declaration
26570
26571 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
26572
26573 2009-02-14 Christian Franke <franke@computer.org>
26574
26575 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
26576 (grub_lspci_iter): Print class code and programming interface byte.
26577
26578 2009-02-14 Christian Franke <franke@computer.org>
26579
26580 * gendistlist.sh: Ignore `.svn' directories.
26581
26582 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
26583
26584 * fs/fat.c: Add 2009 to Copyright line.
26585
26586 2009-02-14 Christian Franke <franke@computer.org>
26587
26588 * commands/hdparm.c: New file. Provides `hdparm' command
26589 which sends ATA commands via grub_disk_ata_pass_through ().
26590
26591 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
26592
26593 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
26594 and <grub/cpu/io.h> to include/grub/ata.h.
26595 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
26596 (GRUB_CDROM_SECTOR_SIZE): Remove.
26597 (GRUB_ATA_*): Move to include/grub/ata.h.
26598 (GRUB_ATAPI_*): Likewise.
26599 (enum grub_ata_commands): Likewise.
26600 (enum grub_ata_timeout_milliseconds): Likewise.
26601 (struct grub_ata_device): Likewise.
26602 (grub_ata_regset): Likewise.
26603 (grub_ata_regget): Likewise.
26604 (grub_ata_regset2): Likewise.
26605 (grub_ata_regget2): Likewise.
26606 (grub_ata_check_ready): Likewise.
26607 (grub_ata_wait_not_busy): Remove static, exported in
26608 include/grub/ata.h.
26609 (grub_ata_wait_drq): Likewise.
26610 (grub_ata_pio_read): Likewise.
26611
26612 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
26613 function for hdparm.mod.
26614
26615 * include/grub/ata.h: New file, contains declarations from
26616 disk/ata.c.
26617 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
26618
26619 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
26620 (grub_disk_ata_pass_through): New exported variable.
26621
26622 * kern/disk.c (grub_disk_ata_pass_through): New variable.
26623
26624 2009-02-13 Colin D Bennett <colin@gibibit.com>
26625
26626 Support multiple fallback entries, and provide an API to support
26627 executing default+fallback menu entries. Renamed the `terminal' menu
26628 viewer to `text'.
26629
26630 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
26631 variable declaration.
26632 (grub_menu_execute_callback): New structure declaration.
26633 (grub_menu_execute_callback_t): New typedef.
26634 (grub_menu_execute_with_fallback): New function declaration.
26635 (grub_menu_get_entry): Likewise.
26636 (grub_menu_get_timeout): Likewise.
26637 (grub_menu_set_timeout): Likewise.
26638
26639 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
26640
26641 * normal/menu.c (grub_wait_after_message): Moved to
26642 `normal/menu_text.c'.
26643 (draw_border): Likewise.
26644 (print_message): Likewise.
26645 (print_entry): Likewise.
26646 (print_entries): Likewise.
26647 (grub_menu_init_page): Likewise.
26648 (get_entry_number): Likewise.
26649 (print_timeout): Likewise.
26650 (run_menu): Likewise.
26651 (grub_menu_execute_entry): Likewise.
26652 (show_text_menu): Likewise.
26653 (get_and_remove_first_entry_number): New function.
26654 (grub_menu_execute_with_fallback): Likewise.
26655 (get_entry): Renamed to ...
26656 (grub_menu_get_entry): .. this and made it global.
26657 (get_timeout): Renamed to ...
26658 (grub_menu_get_timeout): ... this and made it global.
26659 (set_timeout): Renamed to ...
26660 (grub_menu_set_timeout): ... this and made it global.
26661 (grub_normal_terminal_menu_viewer): Renamed to ...
26662 (grub_normal_text_menu_viewer): ... this.
26663
26664 * normal/menu_text.c: New file. Extracted text-menu-specific code
26665 from normal/menu.c.
26666
26667 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
26668 (normal_mod_SOURCES): Likewise.
26669
26670 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
26671 (normal_mod_SOURCES): Likewise.
26672
26673 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26674 (normal_mod_SOURCES): Likewise.
26675
26676 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
26677 (normal_mod_SOURCES): Likewise.
26678
26679 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26680 (normal_mod_SOURCES): Likewise.
26681
26682 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26683 (normal_mod_SOURCES): Likewise.
26684
26685 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
26686 (normal_mod_SOURCES): Likewise.
26687
26688 2009-02-11 Robert Millan <rmh@aybabtu.com>
26689
26690 * util/grub.d/00_header.in: Update old reference to `font' command.
26691
26692 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
26693
26694 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
26695
26696 Based on patch from Javier Martín.
26697
26698 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
26699
26700 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
26701 to avoid false positives with FAT.
26702 (grub_fstest_SOURCES): Likewise.
26703 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
26704 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
26705 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26706 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
26707 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26708 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26709
26710 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
26711
26712 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
26713 bpb.version_specific.fat12_or_fat16.fstype and
26714 bpb.version_specific.fat32.fstype.
26715
26716 2009-02-08 Robert Millan <rmh@aybabtu.com>
26717
26718 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
26719
26720 2009-02-08 Robert Millan <rmh@aybabtu.com>
26721
26722 * Makefile.in (host_os, host_cpu): New variables.
26723 (target_os): Remove. Update all users.
26724
26725 2009-02-08 Marco Gerards <marco@gnu.org>
26726
26727 * Makefile.in (enable_grub_emu_usb): New variable.
26728 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
26729 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
26730 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
26731 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
26732 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
26733 `usbtest.mod' and `usbms.mod'.
26734 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
26735 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
26736 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
26737 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
26738 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
26739 variables.
26740
26741 * disk/usbms.c: New file.
26742
26743 * include/grub/usb.h: Likewise.
26744
26745 * include/grub/usbtrans.h: Likewise.
26746
26747 * include/grub/usbdesc.h: Likewise.
26748
26749 * bus/usb/usbtrans.c: Likewise.
26750
26751 * bus/usb/ohci.c: Likewise.
26752
26753 * bus/usb/uhci.c: Likewise.
26754
26755 * bus/usb/usbhub.c: Likewise.
26756
26757 * bus/usb/usb.c: Likewise.
26758
26759 * commands/usbtest.c: Likewise.
26760
26761 * util/usb.c: Likewise.
26762
26763 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
26764
26765 * configure.ac: Test for libusb presence.
26766
26767 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
26768
26769 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
26770
26771 * kern/mm.c: Add more comments.
26772
26773 2009-02-08 Robert Millan <rmh@aybabtu.com>
26774
26775 Patch from Javier Martín.
26776 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
26777 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
26778
26779 2009-02-08 Robert Millan <rmh@aybabtu.com>
26780
26781 * fs/cpio.c: Split tar functionality to ...
26782 * fs/tar.c: ... here (new file). Update all users.
26783
26784 2009-02-07 Robert Millan <rmh@aybabtu.com>
26785
26786 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
26787 backward-incompatible features.
26788
26789 Based on patch from Javier Martín, with some adjustments.
26790
26791 2009-02-07 Michael Scherer <misc@mandriva.org>
26792
26793 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
26794
26795 2009-02-07 Robert Millan <rmh@aybabtu.com>
26796
26797 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
26798 position of `disk/lvm.c' to ensure grub_init_all() always picks it
26799 after the RAID stuff.
26800
26801 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
26802
26803 Fixes problem when running vbetest command as reported by
26804 Vladimir Serbinenko <phcoder@gmail.com>.
26805
26806 * (grub_vbe_set_video_mode): Fixed problem with text modes.
26807
26808 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
26809
26810 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
26811 /dev/md/NpN style mdraid devices.
26812
26813 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
26814
26815 * util/unifont2pff.rb: Remove.
26816
26817 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
26818
26819 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
26820 `#'.
26821
26822 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
26823
26824 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
26825 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
26826 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
26827 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
26828 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26829 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26830 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26831
26832 2009-02-02 Christian Franke <franke@computer.org>
26833
26834 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
26835
26836 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
26837
26838 * INSTALL: Note that we now require at least autoconf 2.59 and
26839 that LZO is optional.
26840
26841 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
26842
26843 Base on patch on bug #24154 created by Tomas Tintera
26844 <trosos@seznam.cz>.
26845
26846 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
26847
26848 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
26849
26850 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
26851 <bero@arklinux.org>.
26852
26853 * normal/parser.y (script_init): Add missing semicolon.
26854
26855 2009-01-31 Colin D Bennett <colin@gibibit.com>
26856
26857 * normal/main.c: Add include to grub/menu_viewer.h.
26858 (free_menu_entry_classes): Added.
26859 (grub_normal_menu_addentry): Added class property handling.
26860 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
26861 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
26862
26863 * normal/menu_viewer.c: New file.
26864
26865 * normal/menu.c (run_menu_entry): Renamed to ...
26866 (grub_menu_execute_entry): ... this and made it as global.
26867 (grub_menu_run): Renamed to ...
26868 (show_text_menu): ... this and made it local.
26869 (show_text_menu): Adapt to new function names.
26870 (grub_normal_terminal_menu_viewer): New global variable.
26871
26872 * include/grub/menu.h: New file.
26873
26874 * include/grub/menu_viewer.h: New file.
26875
26876 * include/grub/normal.h: Added include to grub/menu.h.
26877 (grub_menu_entry): Moved to include/grub/menu.h.
26878 (grub_menu_entry_t): Likewise.
26879 (grub_menu): Likewise.
26880 (grub_menu_t): Likewise.
26881 (grub_normal_terminal_menu_viewer): Added.
26882 (grub_menu_execute_entry): Likewise.
26883 (grub_menu_run): Removed.
26884
26885 * DISTLIST: Added include/grub/menu.h.
26886 Added include/grub/menu_viewer.h.
26887 Added normal/menu_viewer.c.
26888
26889 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
26890
26891 * normal/execute.c (grub_script_execute_menuentry): Changed to use
26892 arglist for menutitle arguments.
26893
26894 * normal/main.c (grub_normal_menu_addentry): Likewise.
26895
26896 * normal/parser.y (menuentry): Likewise.
26897
26898 * normal/script.c (grub_script_create_cmdmenu): Likewise.
26899
26900 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
26901 (grub_script_create_cmdmenu): Likewise.
26902
26903 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
26904
26905 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
26906 changes.
26907
26908 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
26909
26910 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
26911
26912 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
26913
26914 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
26915
26916 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
26917
26918 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
26919
26920 2009-01-30 Christian Franke <franke@computer.org>
26921
26922 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
26923 in option help text.
26924
26925 2009-01-27 Pavel Roskin <proski@gnu.org>
26926
26927 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
26928
26929 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
26930
26931 * commands/lsmmap.c: Add include to grub/machine/memory.h.
26932
26933 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
26934
26935 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
26936 unregister function.
26937
26938 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
26939
26940 * disk/scsi.c (grub_scsi_read): Fix sign problem.
26941
26942 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
26943
26944 * util/grub-mkfont.c (usage): Fix typo.
26945
26946 * util/elf/grub-mkimage.c (load_modules): Fix warning.
26947
26948 2009-01-26 Daniel Mierswa <impulze@impulze.org>
26949
26950 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
26951
26952 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
26953
26954 * kern/misc.c (grub_strcasecmp): New function.
26955 (grub_strcasecmp): Use grub_size_t instead of int for length.
26956 Fix return value.
26957 * include/grub/misc.h: Update function prototypes.
26958
26959 2009-01-26 Robert Millan <rmh@aybabtu.com>
26960
26961 * configure.ac: Fix cross-compilation check.
26962
26963 2009-01-22 Christian Franke <franke@computer.org>
26964
26965 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
26966 (precision) digit string. Allow `.format2' without `format1' (width).
26967 Limit input chars for `%s' output to `format2' if specified. This is
26968 compatible with standard printf ().
26969
26970 2009-01-22 Christian Franke <franke@computer.org>
26971
26972 * disk/ata.c (grub_ata_wait_status): Replace by ...
26973 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
26974 other status bits may be invalid while BSY is asserted.
26975 (grub_ata_check_ready): New function.
26976 (grub_ata_cmd): Removed.
26977 (grub_ata_wait_drq): New function.
26978 (grub_ata_strncpy): Remove inline.
26979 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
26980 and error check now done by grub_ata_wait_drq ().
26981 (grub_ata_pio_write): Likewise.
26982 (grub_atapi_identify): Set DEV before check for !BSY. Use
26983 grub_ata_wait_drq () to wait for data.
26984 (grub_ata_device_initialize): Add status register check to
26985 detect missing SATA slave devices. Add debug messages.
26986 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
26987 (grub_atapi_packet): Set DEV before check for !BSY. Replace
26988 transfer loop by grub_ata_pio_write ().
26989 (grub_ata_identify): Set DEV before check for !BSY. Use
26990 grub_ata_wait_drq () to wait for data.
26991 (grub_ata_setaddress): Set DEV before check for !BSY.
26992 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
26993 read/write in one loop. Fix invalid command on write. Fix incomplete
26994 command on (size % batch) == 0. Add missing error check after write of
26995 last block. Add debug messages.
26996 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
26997
26998 2009-01-19 Christian Franke <franke@computer.org>
26999
27000 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
27001 (GRUB_ATAPI_IREASON_*): Likewise.
27002 (grub_ata_pio_write): Fix timeout error return.
27003 (grub_atapi_identify): Add grub_ata_wait () after cmd.
27004 (grub_atapi_wait_drq): New function.
27005 (grub_atapi_packet): New parameter `size'.
27006 Use grub_atapi_wait_drq () and direct write instead of
27007 grub_ata_pio_write ().
27008 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
27009 reads the number of bytes requested by the device for each DRQ
27010 assertion.
27011 (grub_atapi_write): Remove old implementation, return not
27012 implemented instead.
27013
27014 2009-01-19 Christian Franke <franke@computer.org>
27015
27016 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
27017 of 512 to calculate data size.
27018 (grub_scsi_read12): Likewise.
27019 (grub_scsi_write10): Likewise.
27020 (grub_scsi_write12): Likewise.
27021 (grub_scsi_read): Adjust size according to blocksize.
27022 Add checks for invalid blocksize and unaligned transfer.
27023
27024 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
27025
27026 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
27027
27028 * term/gfxterm.c (write_char): Fix background rendering for wide
27029 width glyphs.
27030
27031 2009-01-19 Robert Millan <rmh@aybabtu.com>
27032
27033 * config.guess: Update to latest version from config git.
27034 * config.sub: Likewise.
27035
27036 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
27037
27038 * Makefile.in: Change font compilation to use new grub-mkfont instead
27039 of java version.
27040
27041 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
27042 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
27043 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
27044 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
27045 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
27046 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
27047 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
27048 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
27049 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
27050
27051 2009-01-16 Christian Franke <franke@computer.org>
27052
27053 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
27054 (enum grub_ata_timeout_milliseconds): New enum.
27055 (grub_ata_wait_status): Add parameter milliseconds.
27056 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
27057 recovery from timed-out commands.
27058 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
27059 return grub_errno instead of REG_ERROR.
27060 (grub_ata_pio_write): Add parameter milliseconds.
27061 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
27062 Pass milliseconds to grub_ata_wait_status () and
27063 grub_ata_pio_read ().
27064 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
27065 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
27066 grub_ata_wait_status (). Fix IDENTIFY timeout check.
27067 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
27068 It is not suitable for device detection, because DEV bit is ignored,
27069 the command may run too long, and not all devices set the signature
27070 properly.
27071 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
27072 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
27073 Fix device selection, DEV bit must be set first to address the registers
27074 of the correct device.
27075 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
27076 grub_ata_pio_read/write ().
27077 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
27078 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
27079
27080 2009-01-13 Carles Pina i Estany <carles@pina.cat>
27081
27082 * util/grub-editenv.c (main): Use fseeko(), not fseek().
27083
27084 2009-01-13 Bean <bean123ch@gmail.com>
27085
27086 * util/grub-mkfont.c (write_font): forget to remove some debug code.
27087
27088 2009-01-13 Bean <bean123ch@gmail.com>
27089
27090 * Makefile.in: (enable_grub_mkfont): New variable.
27091 (freetype_cflags): Likewise.
27092 (freetype_libs): Likewise.
27093
27094 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
27095 (grub_mkfont_SOURCES): New variable.
27096 (grub_mkfont_CFLAGS): Likewise.
27097 (grub_mkfont_LDFLAGS): Likewise.
27098
27099 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
27100 library if `--enable-grub-mkfont' is requested.
27101 (enable_grub_mkfont): New variable.
27102 (freetype_cflags): Likewise.
27103 (freetype_libs): Likewise.
27104
27105 * util/grub-mkfont.c: New file.
27106
27107 2009-01-12 Christian Franke <franke@computer.org>
27108
27109 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
27110 mode check. Fix setting of compat_use[].
27111
27112 2009-01-10 Robert Millan <rmh@aybabtu.com>
27113
27114 Update a few copyright years which we forgot to do in 2008 (only for
27115 files whose changes made in 2008 were copyright-significant)
27116
27117 * Makefile.in: Add 2008 to Copyright line.
27118 * disk/ieee1275/ofdisk.c: Likewise.
27119 * disk/efi/efidisk.c: Likewise.
27120 * kern/dl.c: Likewise.
27121 * kern/sparc64/ieee1275/init.c: Likewise.
27122 * kern/mm.c: Likewise.
27123 * kern/efi/mm.c: Likewise.
27124 * boot/i386/pc/boot.S: Likewise.
27125 * genfslist.sh: Likewise.
27126 * fs/iso9660.c: Likewise.
27127 * fs/hfs.c: Likewise.
27128 * fs/jfs.c: Likewise.
27129 * fs/minix.c: Likewise.
27130 * fs/ufs.c: Likewise.
27131 * gensymlist.sh.in: Likewise.
27132 * genkernsyms.sh.in: Likewise.
27133 * include/grub/misc.h: Likewise.
27134 * include/grub/types.h: Likewise.
27135 * include/grub/symbol.h: Likewise.
27136 * include/grub/elf.h: Likewise.
27137 * include/grub/kernel.h: Likewise.
27138 * include/grub/disk.h: Likewise.
27139 * include/grub/dl.h: Likewise.
27140 * include/grub/i386/linux.h: Likewise.
27141 * include/grub/i386/pc/biosdisk.h: Likewise.
27142 * include/grub/efi/api.h: Likewise.
27143 * include/grub/efi/pe32.h: Likewise.
27144 * include/grub/util/misc.h: Likewise.
27145 * normal/execute.c: Likewise.
27146 * normal/arg.c: Likewise.
27147 * normal/completion.c: Likewise.
27148 * normal/lexer.c: Likewise.
27149 * normal/parser.y: Likewise.
27150 * normal/misc.c: Likewise.
27151 * commands/i386/pc/vbeinfo.c: Likewise.
27152 * commands/hexdump.c: Likewise.
27153 * commands/terminal.c: Likewise.
27154 * commands/ls.c: Likewise.
27155 * commands/help.c: Likewise.
27156 * partmap/pc.c: Likewise.
27157 * loader/efi/chainloader.c: Likewise.
27158 * loader/multiboot_loader.c: Likewise.
27159 * loader/i386/pc/multiboot2.c: Likewise.
27160 * term/efi/console.c: Likewise.
27161 * term/i386/pc/serial.c: Likewise.
27162 * util/lvm.c: Likewise.
27163 * util/console.c: Likewise.
27164 * util/i386/efi/grub-mkimage.c: Likewise.
27165 * util/raid.c: Likewise.
27166
27167 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
27168
27169 * commands/videotest.c: Removed include to grub/machine/memory.h.
27170
27171 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
27172 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
27173 (video_mod_SOURCES): Removed.
27174 (video_mod_CFLAGS): Likewise.
27175 (video_mod_LDFLAGS): Likewise.
27176 (gfxterm_mod_SOURCES): Likewise.
27177 (gfxterm_mod_CFLAGS): Likewise.
27178 (gfxterm_mod_LDFLAGS): Likewise.
27179 (videotest_mod_SOURCES): Likewise.
27180 (videotest_mod_CFLAGS): Likewise.
27181 (videotest_mod_LDFLAGS): Likewise.
27182 (bitmap_mod_SOURCES): Likewise.
27183 (bitmap_mod_CFLAGS): Likewise.
27184 (bitmap_mod_LDFLAGS): Likewise.
27185 (tga_mod_SOURCES): Likewise.
27186 (tga_mod_CFLAGS): Likewise.
27187 (tga_mod_LDFLAGS): Likewise.
27188 (jpeg_mod_SOURCES): Likewise.
27189 (jpeg_mod_CFLAGS): Likewise.
27190 (jpeg_mod_LDFLAGS): Likewise.
27191 (png_mod_SOURCES): Likewise.
27192 (png_mod_CFLAGS): Likewise.
27193 (png_mod_LDFLAGS): Likewise.
27194
27195 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
27196 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
27197 (video_mod_SOURCES): Added.
27198 (video_mod_CFLAGS): Likewise.
27199 (video_mod_LDFLAGS): Likewise.
27200 (videotest_mod_SOURCES): Likewise.
27201 (videotest_mod_CFLAGS): Likewise.
27202 (videotest_mod_LDFLAGS): Likewise.
27203 (bitmap_mod_SOURCES): Likewise.
27204 (bitmap_mod_CFLAGS): Likewise.
27205 (bitmap_mod_LDFLAGS): Likewise.
27206 (tga_mod_SOURCES): Likewise.
27207 (tga_mod_CFLAGS): Likewise.
27208 (tga_mod_LDFLAGS): Likewise.
27209 (jpeg_mod_SOURCES): Likewise.
27210 (jpeg_mod_CFLAGS): Likewise.
27211 (jpeg_mod_LDFLAGS): Likewise.
27212 (png_mod_SOURCES): Likewise.
27213 (png_mod_CFLAGS): Likewise.
27214 (png_mod_LDFLAGS): Likewise.
27215 (gfxterm_mod_SOURCES): Likewise.
27216 (gfxterm_mod_CFLAGS): Likewise.
27217 (gfxterm_mod_LDFLAGS): Likewise.
27218
27219 * term/gfxterm.c: Removed include to grub/machine/memory.h,
27220 grub/machine/console.h.
27221
27222 2009-01-04 Jerone Young <jerone@gmail.com>
27223
27224 Make on screen instructions clearer
27225
27226 Based on patch created by Jidanni <jidanni@jidanni.org>
27227
27228 * normal/menu.c: print clearer instructions on the screen
27229
27230 2009-01-02 Colin D Bennett <colin@gibibit.com>
27231
27232 New font engine.
27233
27234 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
27235 build system and fixed gfxterm.c to work with different sized fonts.
27236
27237 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
27238
27239 * configure: Re-generated.
27240
27241 * DISTLIST: Removed font/manager.c.
27242 Added font/font.c.
27243 Added font/font_cmd.c.
27244
27245 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
27246 compilation.
27247
27248 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
27249
27250 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
27251
27252 * kern/term.c: Changed users of grub_utf8_to_ucs4.
27253
27254 * normal/menu.c: Likewise.
27255
27256 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
27257 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
27258
27259 * include/grub/font.h: Replaced with new file.
27260
27261 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
27262 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
27263 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
27264 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
27265 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
27266 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
27267 fg_red, fg_green, fg_blue, fg_alpha.
27268 (grub_video_adapter): Removed blit_glyph.
27269 (grub_video_blit_glyph): Removed.
27270
27271 * font/manager.c: Removed file.
27272
27273 * font/font.c: New file.
27274
27275 * font/font_cmd.c: Likewise.
27276
27277 * video/video.c (grub_video_blit_glyph): Removed.
27278
27279 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
27280 (grub_video_vbe_map_rgba): Likewise.
27281 (grub_video_vbe_unmap_color_int): Likewise.
27282 (grub_video_vbe_blit_glyph): Removed.
27283 (grub_video_vbe_adapter): Removed blit_glyph.
27284
27285 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
27286 (get_pixel): Likewise.
27287 (set_pixel): Likewise.
27288
27289 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
27290
27291 * term/gfxterm.c: Adapted to new font engine.
27292
27293 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
27294
27295 * term/i386/pc/vga.c: Likewise.
27296
27297 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
27298
27299 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
27300
27301 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
27302
27303 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
27304
27305 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
27306
27307 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
27308
27309 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
27310
27311 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
27312
27313 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
27314
27315 * util/grub.d/00_header.in: Changed to use new loadfont command.
27316
27317 * util/grub-mkconfig_lib.in: Changed font extension.
27318
27319 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
27320
27321 * util/getroot.c (grub_util_get_grub_dev): Add support for
27322 /dev/md/dNNpNN style partitionable mdraid devices.
27323
27324 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
27325
27326 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
27327 at a time limit of the PXE TFTP API correctly.
27328 (grub_pxefs_close): Likewise.
27329
27330 2008-11-29 Robert Millan <rmh@aybabtu.com>
27331
27332 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
27333 grub_ata_device_initialize() calls.
27334
27335 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
27336
27337 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
27338 iteration failed.
27339 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
27340
27341 2008-11-28 Robert Millan <rmh@aybabtu.com>
27342
27343 Fix build on powerpc-ieee1275. Based on patch created by
27344 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
27345 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
27346 `kern/ieee1275/mmap.c'.
27347 * include/grub/powerpc/ieee1275/memory.h: New file.
27348
27349 Provide grub-install on coreboot.
27350 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
27351 (grub_install_SOURCES): New variable.
27352 * util/i386/pc/grub-install.in: Add a few condition checks to make it
27353 usable on coreboot.
27354
27355 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
27356
27357 * util/grub-fstest.c (grub_term_get_current_input): Change return type
27358 to `grub_term_input_t'.
27359 (grub_term_get_current_output): Change return type to
27360 `grub_term_output_t'.
27361
27362 2008-11-22 Robert Millan <rmh@aybabtu.com>
27363
27364 Fix breakage on coreboot due to declaration mismatch.
27365 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
27366 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
27367 grub_vga_text_cls().
27368
27369 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
27370 comments. Avoid copying one more byte than necessary (just in case).
27371
27372 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
27373 to 0x200000 (avoids trouble with some OFW implementations, and matches
27374 with the one in Yaboot).
27375 Reported by Manoel Abranches
27376
27377 2008-11-20 Robert Millan <rmh@aybabtu.com>
27378
27379 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
27380 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
27381
27382 * util/grub-mkconfig_lib.in (grub_warn): New function.
27383 (convert_system_path_to_grub_path): Use grub_warn() when issuing
27384 warnings, to obtain consistent formatting.
27385 * util/grub.d/00_header.in: Likewise.
27386 * util/update-grub_lib.in: Likewise.
27387
27388 * loader/i386/linux.c (allocate_pages): Fix a warning.
27389 Move comment text to `#error' stanza.
27390
27391 Harmonize ieee1275's grub_available_iterate() with the generic
27392 grub_machine_mmap_iterate() interface (fixes a recently-introduced
27393 build problem on i386-ieee1275):
27394 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
27395 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
27396 parameter `type'. Update all users of this function.
27397 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
27398 `kern/ieee1275/mmap.c'.
27399 * kern/ieee1275/init.c
27400 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
27401 with ...
27402 (grub_machine_mmap_iterate): ... this.
27403 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
27404 return type to `grub_err_t'. Update all implementations of this
27405 function prototype.
27406 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
27407 Likewise.
27408
27409 Add `lsmmap' command (lists firmware-provided memory map):
27410 * commands/lsmmap.c: New file.
27411 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
27412 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
27413 variables.
27414 * conf/powerpc-ieee1275.rmk: Likewise.
27415 * conf/i386-coreboot.rmk: Likewise.
27416 * conf/i386-ieee1275.rmk: Likewise.
27417
27418 2008-11-19 Robert Millan <rmh@aybabtu.com>
27419
27420 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
27421 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
27422 constraints to initrd allocation (based on code from
27423 loader/i386/pc/linux.c). Without them, initrd was allocated too high
27424 for Linux to find it.
27425
27426 2008-11-14 Robert Millan <rmh@aybabtu.com>
27427
27428 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
27429 order to cope with duplicate slashes.
27430
27431 2008-11-14 Robert Millan <rmh@aybabtu.com>
27432
27433 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
27434 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
27435 don't want to mess with lower memory, because it is used in the Linux
27436 loader.
27437
27438 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
27439 an appropriate place in lower memory, between 0x10000 and 0x90000,
27440 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
27441 is in our heap (probably as a result of it being corrupted during
27442 decompression). Add #error instance with comment to explain why this
27443 loader isn't currently usable on PC/BIOS.
27444
27445 2008-11-14 Robert Millan <rmh@aybabtu.com>
27446
27447 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
27448 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
27449
27450 2008-11-12 Robert Millan <rmh@aybabtu.com>
27451
27452 Make loader/i386/linux.c buildable on i386-pc (although disabled).
27453
27454 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
27455 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
27456 from here ...
27457 * include/grub/i386/pc/memory.h: ... to here.
27458
27459 2008-11-12 Robert Millan <rmh@aybabtu.com>
27460
27461 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
27462 split).
27463
27464 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
27465 (grub_console_cur_color, grub_console_real_putchar)
27466 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
27467 (grub_console_setcolorstate, grub_console_setcolor)
27468 (grub_console_getcolor): Move from here ...
27469 * include/grub/i386/vga_common.h: ... to here (new file).
27470
27471 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
27472 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
27473 `<grub/i386/io.h>'.
27474 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
27475 `<grub/i386/vga_common.h>'.
27476
27477 2008-11-12 Robert Millan <rmh@aybabtu.com>
27478
27479 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
27480 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
27481 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
27482 variables.
27483 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
27484 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
27485
27486 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
27487 grub_console_init() with call to grub_vga_text_init().
27488 (grub_machine_fini): Replace call to
27489 grub_console_fini() with call to grub_vga_text_fini() and
27490 grub_at_keyboard_fini().
27491
27492 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
27493 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
27494 (grub_console_setcolorstate, grub_console_setcolor)
27495 (grub_console_getcolor): New function prototypes.
27496
27497 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
27498 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
27499 (grub_vga_text_setcursor): Static-ize.
27500 (grub_vga_text_term): New structure.
27501 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
27502
27503 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
27504 (grub_console_cur_color, grub_console_standard_color)
27505 (grub_console_normal_color, grub_console_highlight_color)
27506 (map_char, grub_console_putchar, grub_console_getcharwidth)
27507 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
27508 (grub_console_getcolor): Move from here ...
27509 * term/i386/vga_common.c: ... to here (same function names).
27510
27511 2008-11-12 Robert Millan <rmh@aybabtu.com>
27512
27513 Use newly-added Multiboot support in coreboot.
27514
27515 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
27516 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
27517
27518 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
27519 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
27520 (codestart): Store the MBI in `startup_multiboot_info' when we're
27521 being loaded using Multiboot.
27522
27523 * kern/i386/coreboot/init.c (grub_machine_init): Move
27524 grub_at_keyboard_init() call to beginning of function (useful for
27525 debugging). Call grub_machine_mmap_init() before attempting to use
27526 grub_machine_mmap_iterate().
27527 (grub_lower_mem, grub_upper_mem): Move from here ...
27528 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
27529 here (new file).
27530
27531 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
27532 function prototype.
27533
27534 2008-11-12 Robert Millan <rmh@aybabtu.com>
27535
27536 Fix a regression introduced by the at_keyboard.mod split. Because
27537 some terminals are default on some platforms and non-default on
27538 others, the first terminal being registered determines which is
27539 going to be default.
27540
27541 * kern/term.c (grub_term_register_input): If this is the first
27542 terminal being registered, set it as the current one.
27543 (grub_term_register_output): Likewise.
27544
27545 * term/efi/console.c (grub_console_init): Do not call
27546 grub_term_set_current_output() or grub_term_set_current_input().
27547 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
27548 * term/i386/pc/console.c (grub_console_init): Likewise.
27549 (grub_console_fini): Do not call grub_term_set_current_input()
27550 (but leave grub_term_set_current_output() to restore text mode).
27551
27552 2008-11-10 Robert Millan <rmh@aybabtu.com>
27553
27554 * util/grub.d/00_header.in: Add backward compatibility check for
27555 versions of terminal.mod that don't understand `terminal_input' or
27556 `terminal_output'.
27557
27558 2008-11-09 Robert Millan <rmh@aybabtu.com>
27559
27560 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
27561 `terminal_input' / `terminal_output', not `terminal'.
27562
27563 2008-11-08 Robert Millan <rmh@aybabtu.com>
27564
27565 * Makefile.in (include_DATA): Fix srcdir=. assumption.
27566 (DISTCLEANFILES): Add `build_env.mk'.
27567
27568 2008-11-08 Robert Millan <rmh@aybabtu.com>
27569
27570 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
27571 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
27572 members. Update all users.
27573 * util/console.c (grub_ncurses_term): Split in ...
27574 (grub_ncurses_term_input): ... this, and ...
27575 (grub_ncurses_term_output): ... this. Update all users.
27576 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
27577
27578 2008-11-08 Robert Millan <rmh@aybabtu.com>
27579
27580 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
27581 (PKGDATA): Add $(pkgdata_SRCDIR).
27582 (pkglib_BUILDDIR): New variable.
27583 (pkgdata_SRCDIR): New variable.
27584 (build_env.mk): New target.
27585 (include_DATA): New variable.
27586 (install-local): Install $(include_DATA) files in $(includedir).
27587
27588 2008-11-07 Pavel Roskin <proski@gnu.org>
27589
27590 * gendistlist.sh: Use C locale for sorting to ensure consistent
27591 output on all systems.
27592
27593 * util/grub.d/00_header.in: Remove incorrect space before
27594 "serial".
27595
27596 2008-11-07 Robert Millan <rmh@aybabtu.com>
27597
27598 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
27599 per specification.
27600 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
27601 * loader/multiboot_loader.c (find_multi_boot2_header): New function
27602 (based on find_multi_boot1_header).
27603 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
27604 using find_multi_boot2_header(), and abort if neither Multiboot or
27605 Multiboot headers were found.
27606
27607 2008-11-07 Robert Millan <rmh@aybabtu.com>
27608
27609 Modularize at_keyboard.mod:
27610
27611 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
27612 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
27613 (at_keyboard_mod_LDFLAGS): New variables.
27614
27615 Actual terminal split:
27616
27617 * include/grub/term.h (struct grub_term): Split in ...
27618 (struct grub_term_input): ... this, and ...
27619 (struct grub_term_output): ... this. Update all users.
27620 (grub_term_set_current): Split in ...
27621 (grub_term_set_current_input): ... this, and ...
27622 (grub_term_set_current_output): ... this.
27623 (grub_term_get_current): Split in ...
27624 (grub_term_get_current_input): ... this, and ...
27625 (grub_term_get_current_output): ... this.
27626 (grub_term_register): Split in ...
27627 (grub_term_register_input): ... this, and ...
27628 (grub_term_register_output): ... this.
27629 (grub_term_unregister): Split in ...
27630 (grub_term_unregister_input): ... this, and ...
27631 (grub_term_unregister_output): ... this.
27632 (grub_term_iterate): Split in ...
27633 (grub_term_iterate_input): ... this, and ...
27634 (grub_term_iterate_output): ... this.
27635
27636 * kern/term.c (grub_term_list): Split in ...
27637 (grub_term_list_input): ... this, and ...
27638 (grub_term_list_output): ... this. Update all users.
27639 (grub_cur_term): Split in ...
27640 (grub_cur_term_input): ... this, and ...
27641 (grub_cur_term_output): ... this. Update all users.
27642 (grub_term_set_current): Split in ...
27643 (grub_term_set_current_input): ... this, and ...
27644 (grub_term_set_current_output): ... this.
27645 (grub_term_get_current): Split in ...
27646 (grub_term_get_current_input): ... this, and ...
27647 (grub_term_get_current_output): ... this.
27648 (grub_term_register): Split in ...
27649 (grub_term_register_input): ... this, and ...
27650 (grub_term_register_output): ... this.
27651 (grub_term_unregister): Split in ...
27652 (grub_term_unregister_input): ... this, and ...
27653 (grub_term_unregister_output): ... this.
27654 (grub_term_iterate): Split in ...
27655 (grub_term_iterate_input): ... this, and ...
27656 (grub_term_iterate_output): ... this.
27657
27658 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
27659 a check for input and one for output (and only attempt to get keys
27660 from user when input works).
27661
27662 * util/grub-probe.c (grub_term_get_current): Split in ...
27663 (grub_term_get_current_input): ... this, and ...
27664 (grub_term_get_current_output): ... this.
27665 * util/grub-fstest.c: Likewise.
27666 * util/i386/pc/grub-setup.c: Likewise.
27667 * util/grub-editenv.c: Likewise.
27668
27669 Portability adjustments:
27670
27671 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
27672 `term/i386/pc/at_keyboard.c'.
27673 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
27674 grub_keyboard_controller_init() (now handled by terminal .init).
27675 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
27676 grub_at_keyboard_init().
27677 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
27678 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
27679 at_keyboard.mod via input terminal interface).
27680 * include/grub/i386/coreboot/console.h: Convert into a stub for
27681 `<grub/i386/pc/console.h>'.
27682
27683 Migrate full terminals to new API:
27684
27685 * term/efi/console.c (grub_console_term): Split into ...
27686 (grub_console_term_input): ... this, and ...
27687 (grub_console_term_output): ... this. Update all users.
27688 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
27689 (grub_ofconsole_init): Split into ...
27690 (grub_ofconsole_init_input): ... this, and ...
27691 (grub_ofconsole_init_output): ... this.
27692 (grub_ofconsole_term): Split into ...
27693 (grub_ofconsole_term_input): ... this, and ...
27694 (grub_ofconsole_term_output): ... this. Update all users.
27695 * term/i386/pc/serial.c (grub_serial_term): Split into ...
27696 (grub_serial_term_input): ... this, and ...
27697 (grub_serial_term_output): ... this. Update all users.
27698 * term/i386/pc/console.c (grub_console_term): Split into ...
27699 (grub_console_term_input): ... this, and ...
27700 (grub_console_term_output): ... this. Update all users.
27701 (grub_console_term_input): Only enable it on PC/BIOS platform.
27702 (grub_console_init): Remove grub_keyboard_controller_init() call.
27703
27704 Migrate input terminals to new API:
27705
27706 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
27707 `i386' and `i386/pc' to enable build on x86_64 (this driver is
27708 i386-specific anyway).
27709 (grub_console_checkkey): Rename to ...
27710 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
27711 users.
27712 (grub_keyboard_controller_orig): New variable.
27713 (grub_console_getkey): Rename to ...
27714 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
27715 users.
27716 (grub_keyboard_controller_init): Static-ize. Save original
27717 controller value so that it can be restored ...
27718 (grub_keyboard_controller_fini): ... here (new function).
27719 (grub_at_keyboard_term): New structure.
27720 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
27721 functions.
27722
27723 Migrate output terminals to new API:
27724
27725 * term/i386/pc/vga.c (grub_vga_term): Change type to
27726 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
27727 members. Update all users.
27728 * term/gfxterm.c (grub_video_term): Change type to
27729 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
27730 members. Update all users.
27731 * include/grub/i386/pc/console.h (grub_console_checkkey)
27732 (grub_console_getkey): Do not export (no longer needed by gfxterm,
27733 etc).
27734
27735 Migrate `terminal' command and userland tools to new API:
27736
27737 * commands/terminal.c (grub_cmd_terminal): Split into ...
27738 (grub_cmd_terminal_input): ... this, and ...
27739 (grub_cmd_terminal_output): ... this.
27740 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
27741 `terminal_input' and `terminal_output'.
27742 * util/grub.d/00_header.in: Adjust `terminal' calls to new
27743 `terminal_input' / `terminal_output' API.
27744 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
27745 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
27746 provided ${GRUB_TERMINAL}, convert it).
27747
27748 2008-11-04 Robert Millan <rmh@aybabtu.com>
27749
27750 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
27751 for FreeBSD.
27752 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
27753
27754 2008-11-03 Bean <bean123ch@gmail.com>
27755
27756 * kern/elf.c (grub_elf32_load): Revert to previous code.
27757 (grub_elf64_load): Likewise.
27758
27759 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
27760
27761 2008-11-01 Robert Millan <rmh@aybabtu.com>
27762
27763 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
27764 (TARGET_CPPFLAGS): Likewise.
27765 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
27766
27767 2008-11-01 Carles Pina i Estany <carles@pina.cat>
27768
27769 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
27770
27771 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
27772
27773 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
27774 addition of objects until the code is not going to be able to fail.
27775
27776 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
27777
27778 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
27779 (add a missing NULL check, and correct them by moving the pointer
27780 operations after the actual check).
27781
27782 2008-10-29 Robert Millan <rmh@aybabtu.com>
27783
27784 * util/i386/pc/grub-install.in: Handle empty string as output from
27785 make_system_path_relative_to_its_root().
27786
27787 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
27788
27789 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
27790 circular metadata worst case scenario. If the metadata is circular
27791 then copy the wrap in place.
27792 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
27793 project lib/format_text/layout.h
27794 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
27795
27796 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
27797
27798 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
27799
27800 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
27801
27802 * util/update-grub_lib.in: Mention filename in warning message.
27803
27804 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
27805
27806 * NEWS: Update for rename of update-grub to grub-mkconfig.
27807
27808 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
27809
27810 * util/update-grub_lib.in: Copy to ...
27811 * util/grub-mkconfig_lib.in: ... this. Update all users.
27812 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
27813 * util/update-grub.in: Rename to ...
27814 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
27815 option. Add `--output' option to allow users to specify the generated
27816 configuration file. Default to stdout.
27817 (update_grub_dir): Rename to ...
27818 (grub_mkconfig_dir): ... this.
27819 (grub_cfg): Default to an empty string.
27820 * conf/common.rmk (update-grub): Rename to ...
27821 (grub-mkconfig): ... this.
27822 (update-grub_lib): Copy to ...
27823 (grub-mkconfig_lib): ... this.
27824 (update-grub_SCRIPTS): Copy to ...
27825 (grub-mkconfig_SCRIPTS): ... this. Update all users.
27826 (update-grub_DATA): Rename to ...
27827 (grub-mkconfig_DATA): ... this.
27828
27829 2008-09-28 Robert Millan <rmh@aybabtu.com>
27830
27831 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
27832 to `modified'. Add the real `created' field.
27833 (grub_iso9660_uuid): Use `modified' rather than `created' for
27834 constructing the UUID.
27835
27836 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
27837
27838 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
27839 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
27840
27841 2008-09-28 Bean <bean123ch@gmail.com>
27842
27843 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
27844 Thanks to Christian Franke for finding this bug.
27845
27846 2008-09-25 Robert Millan <rmh@aybabtu.com>
27847
27848 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
27849 instances of grub_util_get_disk_name() (see previous commit).
27850
27851 2008-09-25 Robert Millan <rmh@aybabtu.com>
27852
27853 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
27854 `util/i386/get_disk_name.c'.
27855 * conf/i386-efi.rmk: Likewise.
27856 * conf/x86_64-efi.rmk: Likewise.
27857 * conf/i386-coreboot.rmk: Likewise.
27858 * conf/i386-ieee1275.rmk: Likewise.
27859 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
27860 `util/ieee1275/get_disk_name.c'.
27861 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
27862 * util/ieee1275/get_disk_name.c: Remove file.
27863 * util/i386/get_disk_name.c: Remove file.
27864 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
27865 "hd%d" for device.map entries, rather than using
27866 grub_util_get_disk_name().
27867
27868 2008-09-24 Carles Pina i Estany <carles@pina.cat>
27869
27870 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
27871 warning.
27872 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
27873
27874 2008-09-24 Carles Pina i Estany <carles@pina.cat>
27875
27876 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
27877 Changed to 0x5100.
27878 (GRUB_TERM_PPAGE): Changed to 0x4900.
27879
27880 2008-09-24 Robert Millan <rmh@aybabtu.com>
27881
27882 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
27883 macros (they were i386-pc specific).
27884 * include/grub/sparc64/ieee1275/console.h: Likewise.
27885 * include/grub/efi/console.h: Likewise.
27886
27887 2008-09-22 Bean <bean123ch@gmail.com>
27888
27889 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
27890 resident and in attribute list.
27891
27892 * include/grub/ntfs.h (BMP_LEN): Removed.
27893
27894 2008-09-22 Bean <bean123ch@gmail.com>
27895
27896 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
27897 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
27898
27899 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
27900 error occurs, as grub_disk_open will call grub_disk_close, which will
27901 call p->close (scsi).
27902
27903 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
27904
27905 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
27906 (AC_PREREQ): Bumped to 2.59.
27907 (AC_TRY_COMPILE): Replace obsolete macro with ...
27908 (AC_COMPILE_IFELSE): ... this.
27909 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
27910 (AC_LINK_IFELSE): ... this.
27911
27912 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
27913
27914 * autogen.sh: Add a call to `gendistlist.sh'.
27915
27916 2008-09-19 Christian Franke <franke@computer.org>
27917
27918 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
27919 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
27920 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
27921 Export __enable_execute_stack() to modules.
27922 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
27923 New function.
27924
27925 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
27926
27927 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
27928 Sort the list.
27929
27930 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
27931
27932 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
27933 #include <grub/util/hostdisk.h>.
27934
27935 2008-09-08 Robert Millan <rmh@aybabtu.com>
27936
27937 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
27938 segments when their filesz is zero (grub_file_read() interprets
27939 zero-size as "read until EOF", which results in memory corruption).
27940 Use `lowest_segment' rather than 0 for calculating the current
27941 segment load address.
27942
27943 2008-09-08 Robert Millan <rmh@aybabtu.com>
27944
27945 * util/hostdisk.c (open_device): Replace a grub_util_info() call
27946 with grub_dprintf("hostdisk", ...), as it was so verbose that it
27947 clobbered useful information.
27948
27949 2008-09-08 Robert Millan <rmh@aybabtu.com>
27950
27951 * include/grub/util/biosdisk.h: Move to ...
27952 * include/grub/util/hostdisk.h: ... here. Update all users.
27953 * util/biosdisk.c: Move to ...
27954 * util/hostdisk.c: ... here. Update all users.
27955
27956 2008-09-07 Robert Millan <rmh@aybabtu.com>
27957
27958 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
27959 variables.
27960 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
27961 and length can be stored directly in the `mbi->mmap_addr' and
27962 `mbi->mmap_length' struct fields.
27963
27964 2008-09-07 Robert Millan <rmh@aybabtu.com>
27965
27966 * conf/i386.rmk: New file. Provides declaration for building
27967 `cpuid.mod'.
27968 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
27969 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
27970 variables.
27971 Include `conf/i386.mk'.
27972 * conf/i386-efi.rmk: Likewise.
27973 * conf/x86_64-efi.rmk: Likewise.
27974 * conf/i386-coreboot.rmk: Likewise.
27975 * conf/i386-ieee1275.rmk: Likewise.
27976
27977 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
27978
27979 Based on patch created by Colin D Bennett <colin@gibibit.com>.
27980 Adds optimization support for BGR based modes.
27981
27982 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
27983 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
27984 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
27985 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
27986 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
27987 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
27988 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
27989 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
27990 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
27991 (grub_video_i386_vbeblit_index_index): Likewise.
27992 (grub_video_i386_vbeblit_replace_directN): Added.
27993 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
27994 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
27995 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
27996 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
27997 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
27998 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
27999 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
28000 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
28001 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
28002 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
28003 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
28004 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
28005 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
28006
28007 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
28008 (grub_video_i386_vbefill_R8G8B8): Likewise.
28009 (grub_video_i386_vbefill_index): Likewise.
28010 (grub_video_i386_vbefill_direct32): Added.
28011 (grub_video_i386_vbefill_direct24): Likewise.
28012 (grub_video_i386_vbefill_direct16): Likewise.
28013 (grub_video_i386_vbefill_direct8): Likewise.
28014
28015 * include/grub/video.h (grub_video_blit_format): Removed
28016 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
28017 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
28018 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
28019 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
28020 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
28021
28022 * video/video.c (grub_video_get_blit_format): Updated to use new
28023 blit formats. Added handling for 16 bit color modes.
28024
28025 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
28026 fillers.
28027 (common_blitter): Updated to use new blitters.
28028
28029 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
28030 Removed.
28031 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
28032 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
28033 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
28034 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
28035 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
28036 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
28037 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
28038 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
28039 (grub_video_i386_vbeblit_index_index): Likewise.
28040 (grub_video_i386_vbeblit_replace_directN): Added.
28041 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
28042 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
28043 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
28044 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
28045 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
28046 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
28047 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
28048 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
28049 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
28050 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
28051 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
28052 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
28053 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
28054
28055 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
28056 (grub_video_i386_vbefill_R8G8B8): Likewise.
28057 (grub_video_i386_vbefill_index): Likewise.
28058 (grub_video_i386_vbefill_direct32): Added.
28059 (grub_video_i386_vbefill_direct24): Likewise.
28060 (grub_video_i386_vbefill_direct16): Likewise.
28061 (grub_video_i386_vbefill_direct8): Likewise.
28062
28063 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
28064 types.
28065
28066 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
28067 types.
28068
28069 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
28070 blitter types.
28071
28072 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
28073 types.
28074
28075 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
28076
28077 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
28078 RAID level 1.
28079
28080 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
28081
28082 * fs/iso9660.c (grub_iso9660_date): New structure.
28083 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
28084 (grub_iso9660_uuid): New function.
28085
28086 2008-09-05 Bean <bean123ch@gmail.com>
28087
28088 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
28089
28090 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
28091 insensitive bit for names in Win32 and Win32 & DOS namespace.
28092
28093 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
28094
28095 * include/grub/types.h (LONG_MAX): Likewise.
28096
28097 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
28098
28099 * util/getroot.c: Include <config.h>.
28100 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
28101 add support for /dev/md/N devices and handle LVM double dash escaping.
28102
28103 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
28104
28105 * config.guess: Update to latest version from config git.
28106 * config.sub: Likewise.
28107
28108 2008-09-03 Robert Millan <rmh@aybabtu.com>
28109
28110 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
28111 `disk->total_sectors'.
28112
28113 2008-09-01 Colin D Bennett <colin@gibibit.com>
28114
28115 * include/grub/normal.h: Fixed incorrect comment for
28116 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
28117
28118 2008-09-01 Colin D Bennett <colin@gibibit.com>
28119
28120 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
28121 values with defines.
28122
28123 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
28124 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
28125 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
28126 (GRUB_VBE_MODEATTR_COLOR): Likewise.
28127 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
28128 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
28129 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
28130 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
28131 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
28132 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
28133 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
28134 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
28135 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
28136 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
28137 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
28138 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
28139 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
28140 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
28141 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
28142
28143 2008-08-31 Robert Millan <rmh@aybabtu.com>
28144
28145 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
28146 declaration.
28147 (grub_multiboot): Fix a few warnings.
28148
28149 2008-08-31 Robert Millan <rmh@aybabtu.com>
28150
28151 * loader/i386/pc/multiboot.c: Update comment not to say that
28152 boot_device support is unimplemented.
28153
28154 2008-08-31 Robert Millan <rmh@aybabtu.com>
28155
28156 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
28157 or memory map support are unimplemented.
28158
28159 2008-08-31 Colin D Bennett <colin@gibibit.com>
28160
28161 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
28162
28163 2008-08-31 Colin D Bennett <colin@gibibit.com>
28164
28165 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
28166 total video memory in 'vbeinfo' output; show color format details for
28167 each video mode.
28168
28169 2008-08-30 Pavel Roskin <proski@gnu.org>
28170
28171 * util/genmoddep.c: Remove for real this time.
28172 * DISTLIST: Remove util/genmoddep.c.
28173
28174 2008-08-30 Robert Millan <rmh@aybabtu.com>
28175
28176 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
28177 as required by Multiboot spec (it was already 4-byte aligned, but
28178 only by chance).
28179
28180 2008-08-29 Pavel Roskin <proski@gnu.org>
28181
28182 * kern/powerpc/ieee1275/crt0.S: Rename to ...
28183 * kern/powerpc/ieee1275/startup.S: ... this.
28184 * conf/powerpc-ieee1275.rmk: Adjust for the above.
28185 * DISTLIST: Likewise.
28186
28187 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
28188 grub/cpu/kernel.h. Add start label for consistency with other
28189 platforms. Add grub_prefix immediately after start. Add jump
28190 to the code after grub_prefix.
28191 * include/grub/powerpc/kernel.h: Provide valid values for
28192 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
28193
28194 2008-08-29 Bean <bean123ch@gmail.com>
28195
28196 * configure.ac: Change host_os to cygwin for mingw.
28197 (asprintf): New check for function.
28198
28199 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
28200 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
28201
28202 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
28203 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
28204 sync, sleep and grub_util_get_disk_size for mingw.
28205
28206 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
28207 to get size in mingw.
28208 (open_device): Use flag O_BINARY if it's defined.
28209 (find_root_device): Add dummy code for mingw.
28210
28211 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
28212 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
28213 (get_scsi_disk_name): Return 0 for mingw.
28214
28215 * util/hostfs.c: #include <grub/util/misc.h>.
28216 (grub_hostfs_open): Use "rb" flag to open file, use
28217 grub_util_get_disk_size to get disk size for mingw.
28218
28219 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
28220 (asprintf): New function if HAVE_ASPRINTF is not set.
28221 (sync): New function for mingw.
28222 (sleep): Likewise.
28223 (grub_util_get_disk_size): Likewise.
28224
28225 2008-08-28 Pavel Roskin <proski@gnu.org>
28226
28227 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
28228 kern/time.c.
28229
28230 2008-08-28 Robert Millan <rmh@aybabtu.com>
28231
28232 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
28233
28234 2008-08-28 Robert Millan <rmh@aybabtu.com>
28235
28236 Change find_grub_drive() syntax so it doesn't prevent it from
28237 detecting NULL names as errors.
28238
28239 * util/biosdisk.c (find_grub_drive): Move free slot search code
28240 from here ...
28241 (find_free_slot): ... to here.
28242 (read_device_map): Use find_free_slot() to search for free slots.
28243
28244 2008-08-27 Marco Gerards <marco@gnu.org>
28245
28246 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
28247 (scsi_mod_SOURCES): New variable.
28248 (scsi_mod_CFLAGS): Likewise
28249 (scsi_mod_LDFLAGS): Likewise.
28250
28251 * disk/scsi.c: New file.
28252
28253 * include/grub/scsi.h: Likewise.
28254
28255 * include/grub/scsicmd.h: Likewise.
28256
28257 * disk/ata.c: Include <grub/scsi.h>.
28258 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
28259 instead.
28260 (grub_ata_iterate): Skip ATAPI devices.
28261 (grub_ata_open): Only handle ATAPI devices.
28262 (struct grub_atapi_read): Removed.
28263 (grub_atapi_readsector): Likewise.
28264 (grub_ata_read): No longer handle ATAPI devices.
28265 (grub_ata_write): Likewise.
28266 (grub_atapi_iterate): New function.
28267 (grub_atapi_read): Likewise.
28268 (grub_atapi_write): Likewise.
28269 (grub_atapi_open): Likewise.
28270 (grub_atapi_close): Likewise.
28271 (grub_atapi_dev): New variable.
28272 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
28273 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
28274
28275 * include/grub/disk.h (enum grub_disk_dev_id): Add
28276 `GRUB_DISK_DEVICE_SCSI_ID'.
28277
28278 2008-08-26 Robert Millan <rmh@aybabtu.com>
28279
28280 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
28281 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
28282 descriptive.
28283
28284 2008-08-23 Bean <bean123ch@gmail.com>
28285
28286 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
28287 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
28288 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
28289 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
28290 dm_nv.mod.
28291 (raid5rec_mod_SOURCES): New macro.
28292 (raid5rec_mod_CFLAGS): Likewise.
28293 (raid5rec_mod_LDFLAGS): Likewise.
28294 (raid6rec_mod_SOURCES): Likewise.
28295 (raid6rec_mod_CFLAGS): Likewise.
28296 (raid6rec_mod_LDFLAGS): Likewise.
28297 (mdraid_mod_SOURCES): Likewise.
28298 (mdraid_mod_CFLAGS): Likewise.
28299 (mdraid_mod_LDFLAGS): Likewise.
28300 (dm_nv_mod_SOURCES): Likewise.
28301 (dm_nv_mod_CFLAGS): Likewise.
28302 (dm_nv_mod_LDFLAGS): Likewise.
28303
28304 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
28305 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
28306 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
28307
28308 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
28309 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
28310
28311 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28312
28313 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
28314
28315 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28316
28317 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28318
28319 * disk/raid5_recover.c: New file.
28320
28321 * disk/raid6_recover.c: Likewise.
28322
28323 * disk/mdraid_linux.c: Likewise.
28324
28325 * disk/dmraid_nvidia.c: Likewise.
28326
28327 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
28328 ULONG_MAX.
28329
28330 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
28331 calculate the size of raid device.
28332 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
28333 different layout of raid5.
28334 (grub_raid_scan_device): Remove code specific to mdraid.
28335 (grub_raid_list): New variable.
28336 (free_array): New function.
28337 (grub_raid_register): Likewise.
28338 (grub_raid_unregister): Likewise.
28339 (grub_raid_rescan): Likewise.
28340 (GRUB_MOD_INIT): Don't iterate device here.
28341 (GRUB_MOD_FINI): Use free_array to release resource.
28342
28343 * include/grub/raid.h: Remove macro and structure specific to mdraid.
28344 (grub_raid5_recover_func_t): New function variable type.
28345 (grub_raid6_recover_func_t): Likewise.
28346 (grub_raid5_recover_func): New variable.
28347 (grub_raid6_recover_func): Likewise.
28348 (grub_raid_register): New function.
28349 (grub_raid_unregister): Likewise.
28350 (grub_raid_rescan): Likewise.
28351 (grub_raid_block_xor): Likewise.
28352
28353 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
28354 (CMD_CRC): New macro.
28355 (part): Removed.
28356 (read_file): Handle device as well as file.
28357 (cmd_crc): New function.
28358 (fstest): Handle multiple disks.
28359 (options): Remove part, raw and long, add root and diskcount.
28360 (usage): Add crc, remove -p, -r, -l, add -r and -c.
28361 (main): Find the first non option entry and ignore subsequent options,
28362 add handling for the new options, support multiple disks.
28363
28364 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
28365
28366 2008-08-23 Bean <bean123ch@gmail.com>
28367
28368 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
28369
28370 * genfslist.sh: Ignore kernel.mod.
28371
28372 * genpartmaplist.sh: Likewise.
28373
28374 2008-08-23 Robert Millan <rmh@aybabtu.com>
28375
28376 * util/getroot.c (find_root_device): Skip anything that starts with
28377 a dot, not just directories. This avoids things like /dev/.tmp.md0.
28378
28379 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
28380
28381 * util/update-grub.in (GRUB_GFXMODE): Export variable.
28382 * util/grub.d/00_header.in: Allow the administrator to change default
28383 gfxmode via ${GRUB_GFXMODE}.
28384
28385 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
28386
28387 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
28388
28389 2008-08-21 Robert Millan <rmh@aybabtu.com>
28390
28391 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
28392 loader.
28393 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
28394 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
28395
28396 2008-08-20 Carles Pina i Estany <carles@pina.cat>
28397
28398 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
28399 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
28400
28401 2008-08-19 Robert Millan <rmh@aybabtu.com>
28402
28403 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
28404 (struct grub_virtual_screen): Remove `cursor_color'.
28405 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
28406 initialization.
28407 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
28408
28409 2008-08-18 Robert Millan <rmh@aybabtu.com>
28410
28411 Unify (identical) linux_normal.c files.
28412 * loader/i386/efi/linux_normal.c: Move from here ...
28413 * loader/linux_normal.c: ... to here. Update all users.
28414 * loader/i386/pc/linux_normal.c: Delete. Update all users.
28415 * loader/i386/ieee1275/linux_normal.c: Likewise.
28416
28417 2008-08-18 Robert Millan <rmh@aybabtu.com>
28418
28419 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
28420 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
28421 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
28422 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
28423 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
28424 New macros.
28425 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
28426 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
28427 (GRUB_LINUX_CL_END_OFFSET): ... to here.
28428 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
28429 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
28430 (GRUB_EFI_CL_END_OFFSET): Rename to ...
28431 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
28432 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
28433 Initialize `params->video_cursor_x' and `params->video_cursor_y'
28434 portably using grub_getxy().
28435 Replace `-EFI' with `-bzImage' in boot message.
28436
28437 2008-08-17 Robert Millan <rmh@aybabtu.com>
28438
28439 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
28440
28441 2008-08-17 Robert Millan <rmh@aybabtu.com>
28442
28443 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
28444
28445 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
28446 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
28447 (grub_machine_mmap_iterate): New function declaration.
28448 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
28449 structure.
28450 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
28451 macros.
28452
28453 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
28454 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
28455 Move e820 parsing from here ...
28456 * kern/i386/pc/mmap.c: New file.
28457 (grub_machine_mmap_iterate): ... to here.
28458
28459 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
28460 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
28461 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
28462 (grub_available_iterate): Redeclare to return `void', and redeclare
28463 its hook to use grub_uint64_t as addr and size parameters, and rename
28464 to ...
28465 (grub_machine_mmap_iterate): ... this. Update all users.
28466
28467 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
28468 to make it more readable. Rename to ...
28469 (grub_machine_mmap_iterate): ... this.
28470
28471 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
28472 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
28473 (grub_multiboot): Allocate an extra region after the payload, and fill
28474 it with a Multiboot memory map. Adjust a.out loader to calculate size
28475 with the extra space.
28476 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
28477 with the extra space.
28478
28479 2008-08-17 Carles Pina i Estany <carles@pina.cat>
28480
28481 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
28482
28483 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
28484
28485 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
28486 mdate-sh to the list `find' searches for.
28487 * DISTLIST: Regenerated.
28488
28489 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
28490
28491 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
28492 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
28493 genmoddep.awk, gensymlist.sh.in.
28494 (DISTDIRS): Add bus, docs, hook, lib.
28495 * DISTLIST: Regenerated.
28496 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
28497
28498 2008-08-16 Robert Millan <rmh@aybabtu.com>
28499
28500 * disk/raid.c (grub_raid_init): Handle/report errors set by
28501 grub_device_iterate().
28502 * disk/lvm.c (grub_lvm_init): Likewise.
28503
28504 2008-08-15 Bean <bean123ch@gmail.com>
28505
28506 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
28507 and datehook.mod.
28508 (datetime_mod_SOURCES): New macro.
28509 (datetime_mod_CFLAGS): Likewise.
28510 (datetime_mod_LDFLAGS): Likewise.
28511 (date_mod_SOURCES): Likewise.
28512 (date_mod_CFLAGS): Likewise.
28513 (date_mod_LDFLAGS): Likewise.
28514 (datehook_mod_SOURCES): Likewise.
28515 (datehook_mod_CFLAGS): Likewise.
28516 (datehook_mod_LDFLAGS): Likewise.
28517
28518 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
28519 and datehook.mod.
28520 (datetime_mod_SOURCES): New macro.
28521 (datetime_mod_CFLAGS): Likewise.
28522 (datetime_mod_LDFLAGS): Likewise.
28523 (date_mod_SOURCES): Likewise.
28524 (date_mod_CFLAGS): Likewise.
28525 (date_mod_LDFLAGS): Likewise.
28526 (datehook_mod_SOURCES): Likewise.
28527 (datehook_mod_CFLAGS): Likewise.
28528 (datehook_mod_LDFLAGS): Likewise.
28529
28530 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
28531 and datehook.mod.
28532 (datetime_mod_SOURCES): New macro.
28533 (datetime_mod_CFLAGS): Likewise.
28534 (datetime_mod_LDFLAGS): Likewise.
28535 (date_mod_SOURCES): Likewise.
28536 (date_mod_CFLAGS): Likewise.
28537 (date_mod_LDFLAGS): Likewise.
28538 (datehook_mod_SOURCES): Likewise.
28539 (datehook_mod_CFLAGS): Likewise.
28540 (datehook_mod_LDFLAGS): Likewise.
28541
28542 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
28543 and datehook.mod.
28544 (datetime_mod_SOURCES): New macro.
28545 (datetime_mod_CFLAGS): Likewise.
28546 (datetime_mod_LDFLAGS): Likewise.
28547 (date_mod_SOURCES): Likewise.
28548 (date_mod_CFLAGS): Likewise.
28549 (date_mod_LDFLAGS): Likewise.
28550 (datehook_mod_SOURCES): Likewise.
28551 (datehook_mod_CFLAGS): Likewise.
28552 (datehook_mod_LDFLAGS): Likewise.
28553
28554 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
28555 and datehook.mod.
28556 (datetime_mod_SOURCES): New macro.
28557 (datetime_mod_CFLAGS): Likewise.
28558 (datetime_mod_LDFLAGS): Likewise.
28559 (date_mod_SOURCES): Likewise.
28560 (date_mod_CFLAGS): Likewise.
28561 (date_mod_LDFLAGS): Likewise.
28562 (datehook_mod_SOURCES): Likewise.
28563 (datehook_mod_CFLAGS): Likewise.
28564 (datehook_mod_LDFLAGS): Likewise.
28565
28566 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
28567
28568 * commands/date.c: New file.
28569
28570 * hook/datehook.c: Likewise.
28571
28572 * include/grub/lib/datetime.h: Likewise.
28573
28574 * include/grub/i386/cmos.h: Likewise.
28575
28576 * lib/datetime.c: Likewise.
28577
28578 * lib/i386/datetime.c: Likewise.
28579
28580 * lib/efi/datetime.c: Likewise.
28581
28582 2008-08-14 Robert Millan <rmh@aybabtu.com>
28583
28584 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
28585 (grub_mkelfimage_SOURCES): New variable.
28586 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
28587
28588 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
28589 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
28590 * conf/powerpc-ieee1275.rmk: Likewise.
28591 * conf/i386-ieee1275.rmk: Likewise.
28592
28593 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
28594 * kern/i386/coreboot/init.c: Likewise.
28595
28596 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
28597 with `<grub/cpu/kernel.h>'.
28598 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
28599 to ...
28600 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
28601 * kern/i386/coreboot/startup.S: Likewise.
28602
28603 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
28604 (GRUB_MOD_GAP): Remove.
28605 * include/grub/powerpc/kernel.h: New file.
28606 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
28607 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
28608 * include/grub/i386/kernel.h: New file.
28609 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
28610 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
28611 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
28612
28613 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
28614 `grub-mkelfimage'.
28615 Use --directory when invoking grub_mkimage.
28616
28617 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
28618 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
28619 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
28620 and GRUB_KERNEL_CPU_PREFIX.
28621
28622 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
28623
28624 * include/grub/err.h (grub_err_printf): New function prototype.
28625 * util/misc.c (grub_err_printf): New function.
28626 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
28627 grub_printf.
28628 * kern/err.c (grub_print_error): Use grub_err_printf.
28629
28630 2008-08-13 Robert Millan <rmh@aybabtu.com>
28631
28632 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
28633
28634 2008-08-13 Robert Millan <rmh@aybabtu.com>
28635
28636 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
28637 boot entry.
28638
28639 2008-08-12 Robert Millan <rmh@aybabtu.com>
28640
28641 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
28642 of the relocation code from here ...
28643 (grub_multiboot): ... to here.
28644 (forward_relocator, backward_relocator): Move from here ...
28645 * kern/i386/loader.S (grub_multiboot_forward_relocator)
28646 (grub_multiboot_backward_relocator): ... to here.
28647 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
28648 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
28649 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
28650 (grub_multiboot_forward_relocator_end)
28651 (grub_multiboot_backward_relocator)
28652 (grub_multiboot_backward_relocator_end): New variables.
28653
28654 2008-08-12 Bean <bean123ch@gmail.com>
28655
28656 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
28657
28658 2008-08-11 Robert Millan <rmh@aybabtu.com>
28659
28660 * kern/i386/linuxbios/startup.S: Move from here ...
28661 * kern/i386/coreboot/startup.S: ... to here.
28662
28663 * kern/i386/linuxbios/init.c: Move from here ...
28664 * kern/i386/coreboot/init.c: ... to here.
28665
28666 * kern/i386/linuxbios/table.c: Move from here ...
28667 * kern/i386/coreboot/mmap.c: ... to here.
28668
28669 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
28670
28671 2008-08-11 Robert Millan <rmh@aybabtu.com>
28672
28673 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
28674 errors. Leave it to the upper layer to handle them.
28675
28676 2008-08-09 Christian Franke <franke@computer.org>
28677
28678 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
28679 * conf/common.rmk: Install `grub-pe2elf' only if requested.
28680 Install `grub.d/10_windows' only on Cygwin.
28681 * configure.ac: Add subst of `target_os'.
28682 Check `target_os' also before setting TARGET_OBJ2ELF.
28683 Add `--enable-grub-pe2elf'.
28684
28685 2008-08-08 Robert Millan <rmh@aybabtu.com>
28686
28687 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
28688 (grub_last_time): Change type to grub_uint64_t.
28689 (grub_disk_open): Migrate code from to using grub_get_time_ms().
28690 (grub_disk_close): Likewise.
28691
28692 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
28693 (run_menu): Migrate code from to using grub_get_time_ms().
28694
28695 * util/misc.c (grub_get_time_ms): New function.
28696
28697 2008-08-08 Marco Gerards <marco@gnu.org>
28698
28699 * disk/ata.c (grub_ata_regget): Change return type to
28700 `grub_uint8_t'.
28701 (grub_ata_regget2): Likewise.
28702 (grub_ata_wait_status): New function.
28703 (grub_ata_wait_busy): Removed function, updated all users to use
28704 `grub_ata_wait_status'.
28705 (grub_ata_wait_drq): Likewise.
28706 (grub_ata_cmd): New function.
28707 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
28708 error handling.
28709 (grub_ata_pio_write): Add error handling.
28710 (grub_atapi_identify): Likewise.
28711 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
28712 handling.
28713 (grub_ata_identify): Use `grub_ata_cmd' and improve error
28714 handling. Actually use the detected registers. Reorder the
28715 detection logic such that it is easier to read.
28716 (grub_ata_pciinit): Do not assign the same ID to each controller.
28717 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
28718 handling.
28719 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
28720
28721 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
28722
28723 2008-08-08 Marco Gerards <marco@gnu.org>
28724
28725 * NEWS: Update.
28726
28727 2008-08-07 Bean <bean123ch@gmail.com>
28728
28729 * include/grub/x86_64/pci.h: New file.
28730
28731 2008-08-07 Christian Franke <franke@computer.org>
28732
28733 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
28734 (TIMER2_GATE): Likewise.
28735 (grub_pit_wait): Add enable/disable of the timer2 gate
28736 bit of port 0x61. This fixes a possible infinite loop.
28737
28738 2008-08-07 Bean <bean123ch@gmail.com>
28739
28740 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
28741 kern/i386/tsc.c and kern/i386/pit.c.
28742
28743 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
28744 x86_64 platform.
28745
28746 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
28747 <grub/i386/tsc.h>.
28748
28749 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
28750
28751 2008-08-07 Bean <bean123ch@gmail.com>
28752
28753 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
28754
28755 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
28756
28757 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
28758 multiple inclusion. Add #include <grub/types.h>.
28759
28760 2008-08-06 Christian Franke <franke@computer.org>
28761
28762 * conf/common.rmk: Build and install `10_windows'.
28763 * util/grub.d/10_windows.in: New script.
28764
28765 2008-08-06 Pavel Roskin <proski@gnu.org>
28766
28767 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
28768
28769 2008-08-06 Robert Millan <rmh@aybabtu.com>
28770
28771 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
28772 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
28773
28774 2008-08-06 Bean <bean123ch@gmail.com>
28775
28776 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
28777 (grub_pxefs_fs_int): Remove dummy definition.
28778 (grub_pxefs_open): Use data->block_size to store the current block
28779 size setting.
28780 (grub_pxefs_read): Use block size stored in data->block_size. As the
28781 value of grub_pxe_blksize can be changed after the file is opened.
28782
28783 2008-08-06 Bean <bean123ch@gmail.com>
28784
28785 * fs/i386/pc/pxe.c (curr_file): new variable.
28786 (grub_pxefs_open): Simply the handling of pxe file system. Don't
28787 require the dummy internal file system anymore.
28788 (grub_pxefs_read): Removed.
28789 (grub_pxefs_close): Likewise.
28790 (grub_pxefs_fs_int): Likewise.
28791 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
28792 connection when we switch file.
28793 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
28794
28795 2008-08-06 Robert Millan <rmh@aybabtu.com>
28796
28797 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
28798 `halt.mod'.
28799 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
28800 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
28801
28802 * kern/i386/halt.c: New file.
28803 * kern/i386/reboot.c: Likewise.
28804 * include/grub/i386/reboot.h: Likewise.
28805 * include/grub/i386/halt.h: Likewise.
28806
28807 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
28808 Include `<grub/cpu/halt.h>'.
28809 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
28810 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
28811
28812 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
28813 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
28814 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
28815 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
28816 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
28817 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
28818 from here ...
28819 * include/grub/i386/at_keyboard.h: ... to here.
28820
28821 2008-08-05 Robert Millan <rmh@aybabtu.com>
28822
28823 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
28824 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
28825 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
28826 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
28827 `kern/generic/millisleep.c'.
28828
28829 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
28830 instead of grub_get_rtc().
28831 (grub_tsc_init): Initialize `tsc_boot_time'.
28832
28833 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
28834 (grub_machine_init): Use grub_tsc_init() rather than
28835 installing an RTC-based handler via grub_install_get_time_ms().
28836
28837 * kern/i386/pit.c: New file.
28838 * include/grub/i386/pit.h: Likewise.
28839
28840 2008-08-05 Bean <bean123ch@gmail.com>
28841
28842 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
28843
28844 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
28845 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
28846 (pxe_mod_SOURCES): New macro.
28847 (pxe_mod_CFLAGS): Likewise.
28848 (pxe_mod_LDFLAGS): Likewise.
28849 (pxecmd_mod_SOURCES): Likewise.
28850 (pxecmd_mod_CFLAGS): Likewise.
28851 (pxecmd_mod_LDFLAGS): Likewise.
28852
28853 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
28854 (grub_pxe_call): Likewise.
28855
28856 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
28857
28858 * commands/i386/pc/pxecmd.c: New file.
28859
28860 * fs/i386/pc/pxe.c: Likewise.
28861
28862 * include/grub/i386/pc/pxe.h: Likewise.
28863
28864 2008-08-05 Bean <bean123ch@gmail.com>
28865
28866 * util/console.c (grub_console_cur_color): New variable.
28867 (grub_console_standard_color): Likewise.
28868 (grub_console_normal_color): Likewise.
28869 (grub_console_highlight_color): Likewise.
28870 (color_map): Likewise.
28871 (use_color): Likewise.
28872 (NUM_COLORS): New macro.
28873 (grub_ncurses_setcolorstate): Handle color properly.
28874 (grub_ncurses_setcolor): Don't change color here, just remember the
28875 settings, color will be set in grub_ncurses_setcolorstate.
28876 (grub_ncurses_getcolor): New function.
28877 (grub_ncurses_init): Initialize color pairs.
28878 (grub_ncurses_term): New member grub_ncurses_getcolor.
28879
28880 2008-08-05 Colin D Bennett <colin@gibibit.com>
28881
28882 High resolution timer support. Implemented for x86 CPUs using TSC.
28883 Extracted generic grub_millisleep() so it's linked in only as needed.
28884 This requires a Pentium compatible CPU; if the RDTSC instruction is
28885 not supported, then it falls back on the generic grub_get_time_ms()
28886 implementation that uses the machine's RTC.
28887
28888 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
28889 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
28890 `kern/generic/millisleep.c'.
28891
28892 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
28893 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
28894
28895 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
28896 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
28897
28898 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
28899
28900 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
28901 `kern/generic/millisleep.c'.
28902
28903 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
28904
28905 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
28906
28907 * kern/generic/rtc_get_time_ms.c: New file.
28908
28909 * kern/generic/millisleep.c: New file.
28910
28911 * kern/misc.c: Don't include
28912 <kern/time.h> anymore.
28913 (grub_millisleep_generic): Removed.
28914
28915 * commands/sleep.c (grub_interruptible_millisleep): Uses
28916 grub_get_time_ms() instead of grub_get_rtc().
28917
28918 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
28919 function.
28920 (grub_cpu_is_cpuid_supported): New inline function.
28921 (grub_cpu_is_tsc_supported): New inline function.
28922 (grub_tsc_init): New function prototype.
28923 (grub_tsc_get_time_ms): New function prototype.
28924
28925 * kern/i386/tsc.c (grub_get_time_ms): New file.
28926
28927 * include/grub/time.h: Include <grub/types.h.
28928 (grub_millisleep_generic): Removed.
28929 (grub_get_time_ms): New prototype.
28930 (grub_install_get_time_ms): New prototype.
28931 (grub_rtc_get_time_ms): New prototype.
28932
28933 * kern/time.c (grub_get_time_ms): New function.
28934 (grub_install_get_time_ms): New function.
28935
28936 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
28937 <grub/time.h> anymore.
28938 (grub_millisleep): Removed.
28939 (grub_machine_init): Call grub_tsc_init.
28940
28941 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
28942 get_time_ms() implementation.
28943
28944 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
28945 (ieee1275_get_time_ms): New function.
28946 (grub_machine_init): Install get_time_ms() implementation.
28947
28948 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
28949 (grub_machine_init): Call grub_tsc_init().
28950 (grub_millisleep): Removed.
28951
28952 * kern/ieee1275/init.c (grub_millisleep): Removed.
28953 (grub_machine_init): Install ieee1275_get_time_ms()
28954 implementation.
28955 (ieee1275_get_time_ms): New function.
28956 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
28957 real work.
28958
28959 2008-08-05 Marco Gerards <marco@gnu.org>
28960
28961 * disk/ata.c: Include <grub/pci.h>.
28962 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
28963 (grub_ata_initialize): Rewritten.
28964 (grub_ata_device_initialize): New function.
28965
28966 2008-08-04 Pavel Roskin <proski@gnu.org>
28967
28968 * kern/main.c: Include grub/mm.h.
28969
28970 2008-08-04 Robert Millan <rmh@aybabtu.com>
28971
28972 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
28973 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
28974 corruption problem).
28975
28976 2008-08-04 Robert Millan <rmh@aybabtu.com>
28977
28978 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
28979 warnings introduced in my last commit.
28980
28981 2008-08-03 Robert Millan <rmh@aybabtu.com>
28982
28983 Make PCI available on all i386 architectures.
28984
28985 * include/grub/i386/pc/pci.h: Move from here ...
28986 * include/grub/i386/pci.h: ... to here.
28987
28988 * include/grub/i386/pc/pci.h: Remove.
28989 * include/grub/i386/efi/pci.h: Remove.
28990 * include/grub/x86_64/efi/pci.h: Remove.
28991
28992 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
28993 `<grub/cpu/pci.h>'.
28994
28995 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
28996 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
28997 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
28998
28999 * conf/i386-ieee1275.rmk: Likewise.
29000
29001 2008-08-03 Robert Millan <rmh@aybabtu.com>
29002
29003 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
29004 (grub_console_setcursor): Make it possible to set cursor off.
29005
29006 2008-08-03 Robert Millan <rmh@aybabtu.com>
29007
29008 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
29009 of modules instead of assuming which platform provides what.
29010 * util/update-grub.in: Likewise.
29011
29012 2008-08-03 Robert Millan <rmh@aybabtu.com>
29013
29014 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
29015 instead of `grub_install_dos_part' to determine whether a drive needs
29016 to be prepended to prefix (`grub_install_dos_part' is not reliable,
29017 because it can be overridden when loading GRUB via Multiboot).
29018
29019 2008-08-02 Robert Millan <rmh@aybabtu.com>
29020
29021 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
29022
29023 2008-08-02 Robert Millan <rmh@aybabtu.com>
29024
29025 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
29026 of informational grub_dprintf() calls.
29027
29028 2008-08-02 Robert Millan <rmh@aybabtu.com>
29029
29030 * disk/memdisk.c (memdisk_size): Don't initialize.
29031 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
29032
29033 * include/grub/i386/pc/kernel.h
29034 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
29035 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
29036 (grub_memdisk_image_size, grub_arch_memdisk_addr)
29037 (grub_arch_memdisk_size): Remove.
29038
29039 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
29040 field (was only used to transfer a constant). Add `type' field to
29041 support multiple module types.
29042 (grub_module_iterate): New function.
29043
29044 * kern/device.c (grub_device_open): Do not hide error messages
29045 when grub_disk_open() fails. Use grub_print_error() instead.
29046
29047 * kern/i386/pc/init.c (grub_arch_modules_addr)
29048 (grub_arch_memdisk_size): Remove functions.
29049 (grub_arch_modules_addr): Return the module address in high memory
29050 (now that it isn't copied anymore).
29051
29052 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
29053 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
29054 decompression routine (grub_total_module_size already includes that
29055 now). Don't copy modules back to low memory.
29056
29057 * kern/main.c: Include `<grub/mm.h>'.
29058 (grub_load_modules): Split out (and use) ...
29059 (grub_module_iterate): ... this function, which iterates through
29060 module objects and runs a hook.
29061 Comment out grub_mm_init_region() call, as it would cause non-ELF
29062 modules to be overwritten.
29063
29064 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
29065 the memdisk image in its own region, make it part of the module list.
29066 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
29067 (main): Parse --memdisk|-m option, and pass user-provided path as
29068 parameter to generate_image().
29069 (add_segments): Pass `memdisk_path' down to load_modules().
29070 (load_modules): Embed memdisk image in module section when requested.
29071 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
29072 `header.type' instead of `header.offset'.
29073
29074 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
29075 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
29076 (memdisk_mod_LDFLAGS): New variables.
29077 * conf/i386-coreboot.rmk: Likewise.
29078 * conf/i386-ieee1275.rmk: Likewise.
29079
29080 2008-08-02 Robert Millan <rmh@aybabtu.com>
29081
29082 * loader/i386/pc/multiboot.c (playground, forward_relocator)
29083 (backward_relocator): New variables. Used to allocate and relocate
29084 the payload, respectively.
29085 (grub_multiboot_load_elf32): Load into heap instead of requested
29086 address, install the appropriate relocator code in each bound of
29087 the payload, and set the entry point such that
29088 grub_multiboot_real_boot() will jump to one of them.
29089
29090 * kern/i386/loader.S (grub_multiboot_payload_size)
29091 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
29092 (grub_multiboot_payload_entry_offset): New variables.
29093 (grub_multiboot_real_boot): Set cpu context to what the relocator
29094 expects, and jump to the relocator instead of the payload.
29095
29096 * include/grub/i386/loader.h (grub_multiboot_payload_size)
29097 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
29098 (grub_multiboot_payload_entry_offset): Export.
29099
29100 2008-08-01 Bean <bean123ch@gmail.com>
29101
29102 * normal/menu_entry.c (editor_getline): Don't return the original
29103 string as result, as it will be released by lexer once it has done
29104 using it.
29105
29106 2008-08-01 Robert Millan <rmh@aybabtu.com>
29107
29108 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
29109 within menuentries, not before them.
29110 util/grub.d/10_hurd.in: Likewise.
29111
29112 2008-08-01 Bean <bean123ch@gmail.com>
29113
29114 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
29115 (bufio_mod_SOURCES): New macro.
29116 (bufio_mod_CFLAGS): Likewise.
29117 (bufio_mod_LDFLAGS): Likewise.
29118
29119 * include/grub/bufio.h: New file.
29120
29121 * io/bufio.c: Likewise.
29122
29123 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
29124 (grub_video_reader_png): Use grub_buffile_open to open file.
29125
29126 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
29127 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
29128
29129 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
29130 (grub_video_reader_tga): Use grub_buffile_open to open file.
29131
29132 * font/manager.c: Include <grub/bufio.h>.
29133 (add_font): Use grub_buffile_open to open file.
29134
29135 2008-07-31 Robert Millan <rmh@aybabtu.com>
29136
29137 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
29138 ELF segments, use a macro for arbitrarily accessing any of them instead
29139 of preparing a pointer that allows access to one at a time.
29140 (grub_multiboot_load_elf64): Likewise.
29141
29142 2008-07-31 Bean <bean123ch@gmail.com>
29143
29144 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
29145 GRUB_KERNEL_MACHINE_DATA_END.
29146
29147 2008-07-30 Robert Millan <rmh@aybabtu.com>
29148
29149 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
29150 Increase from 0x50 to 0x60.
29151 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
29152 use UUIDs to identify the root drive for them. If that's not
29153 possible, abort.
29154 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
29155 check, for cross-disk installs.
29156
29157 2008-07-30 Robert Millan <rmh@aybabtu.com>
29158
29159 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
29160 is non-empty, use it to set the `prefix' environment variable instead
29161 of the usual approach.
29162 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
29163 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
29164 environment variable instead of dummy make_install_device().
29165
29166 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
29167 (start): Insert a data section, with `grub_prefix' variable.
29168 * kern/i386/linuxbios/startup.S: Likewise.
29169
29170 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
29171 New variable reference.
29172 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
29173 New macro. Defines offset of `grub_prefix' within startup.S (relative
29174 to `start').
29175 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
29176 section within startup.S (relative to `start').
29177 * include/grub/i386/coreboot/kernel.h: Likewise.
29178
29179 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
29180 Overwrite grub_prefix with its contents, at the beginning of the
29181 first segment.
29182 (main): Understand -p|--prefix.
29183
29184 2008-07-30 Robert Millan <rmh@aybabtu.com>
29185
29186 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
29187
29188 2008-07-30 Robert Millan <rmh@aybabtu.com>
29189
29190 * term/i386/pc/vga_text.c (grub_console_cls): Use
29191 grub_console_gotoxy() to go back to beginning of the screen.
29192 Found by Patrick Georgi <patrick.georgi@coresystems.de>
29193
29194 2008-07-29 Christian Franke <franke@computer.org>
29195
29196 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
29197 Add conversion of emulated mount points on Cygwin.
29198
29199 2008-07-29 Christian Franke <franke@computer.org>
29200
29201 * util/update-grub.in: Add a check for admin
29202 group on Cygwin.
29203 Remove old `grub.cfg.new' before creation.
29204 Add `-f' to `mv' to handle the different filesystem
29205 semantics of Windows.
29206
29207 2008-07-29 Bean <bean123ch@gmail.com>
29208
29209 * normal/main.c (get_line): Fix buffer overflow bug.
29210
29211 2008-07-28 Robert Millan <rmh@aybabtu.com>
29212
29213 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
29214 (struct grub_apple_header): New struct. Describes the layout of
29215 the partmap header.
29216 (apple_partition_map_iterate): Check the header magic as well as the
29217 partition magic (which was already being checked).
29218
29219 2008-07-28 Pavel Roskin <proski@gnu.org>
29220
29221 * genmk.rb: Add a warning to the beginning of the output that
29222 it's a generated file and should not be edited.
29223
29224 2008-07-28 Robert Millan <rmh@aybabtu.com>
29225
29226 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
29227 with the same number are found, just use issue a warning with
29228 grub_dprintf(), as this error has been reported to be non-fatal.
29229
29230 2008-07-27 Robert Millan <rmh@aybabtu.com>
29231
29232 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
29233 information.
29234
29235 2008-07-27 Bean <bean123ch@gmail.com>
29236
29237 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
29238 (grub_fat_find_dir): Ignore case when comparing filename.
29239
29240 2008-07-27 Bean <bean123ch@gmail.com>
29241
29242 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
29243 smallino, as it's more descriptive, and i8count can be confused with
29244 the other field count.
29245 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
29246 inode type.
29247
29248 2008-07-27 Bean <bean123ch@gmail.com>
29249
29250 * commands/crc.c: New file.
29251
29252 * lib/crc.c: Likewise.
29253
29254 * include/grub/lib/crc.h: Likewise.
29255
29256 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
29257
29258 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
29259 (hexdump): Move this function to ...
29260
29261 * lib/hexdump.c: ... here.
29262
29263 * include/grub/hexdump.h: Renamed to ...
29264
29265 * include/grub/lib/hexdump.h: ... this.
29266
29267 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
29268
29269 * util/grub-editenv.c: Likewise.
29270
29271 * include/envblk.h: Renamed to ...
29272
29273 * include/lib/envblk.h: ... this.
29274
29275 * util/envblk.c: Renamed to ...
29276
29277 * lib/envblk.c: ... this.
29278
29279 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
29280 lib/hexdump.c.
29281 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
29282 (pkglib_MODULES): Add crc.mod.
29283 (hexdump_mod_SOURCES): Add lib/hexdump.c.
29284 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
29285 (crc_mod_SOURCES): New macro.
29286 (crc_mod_CFLAGS): Likewise.
29287 (crc_mod_LDFLAGS): Likewise.
29288
29289 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
29290
29291 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
29292
29293 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
29294
29295 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29296
29297 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
29298
29299 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
29300
29301 * commands/help.c: Include <grub/term.h>.
29302 (TERM_WIDTH): Removed. Updated all users.
29303
29304 2008-07-27 Pavel Roskin <proski@gnu.org>
29305
29306 * util/getroot.c (find_root_device): Rephrase a comment to avoid
29307 spurious warnings about a comment within a comment.
29308
29309 2008-07-25 Robert Millan <rmh@aybabtu.com>
29310
29311 * util/getroot.c (find_root_device): Skip devices that match
29312 /dev/dm-[0-9]. This lets the real device be found for any type of
29313 abstraction (LVM, EVMS, RAID..).
29314 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
29315 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
29316 device is found first, find_root_device() will now skip it.
29317
29318 2008-07-24 Pavel Roskin <proski@gnu.org>
29319
29320 * include/grub/types.h: Use __builtin_bswap32() and
29321 __builtin_bswap64() with gcc 4.3 and newer.
29322
29323 2008-07-24 Christian Franke <franke@computer.org>
29324
29325 * util/i386/pc/grub-install.in: If `--debug' is specified,
29326 pass `--verbose' to grub-setup.
29327 Abort script if make_system_path_relative_to_its_root() fails.
29328
29329 2008-07-24 Bean <bean123ch@gmail.com>
29330
29331 * configure.ac: Fixed a bug caused by the previous cygwin patch,
29332 variable `target_platform' should be `platform'.
29333
29334 2008-07-24 Bean <bean123ch@gmail.com>
29335
29336 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
29337 (grub_png_init_fixed_block): New function.
29338 (grub_png_decode_image_data): Handle fixed huffman code compression.
29339
29340 2008-07-24 Bean <bean123ch@gmail.com>
29341
29342 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
29343 (grub_pe2elf_SOURCES): New macro.
29344 (CLEANFILES): Add grub-pe2elf.
29345
29346 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
29347 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
29348 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
29349 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
29350 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
29351 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
29352 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
29353 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
29354 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
29355 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
29356 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
29357 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
29358 (GRUB_PE32_DT_FUNCTION): Likewise.
29359 (GRUB_PE32_REL_I386_DIR32): Likewise.
29360 (GRUB_PE32_REL_I386_REL32): Likewise.
29361 (grub_pe32_symbol): New structure.
29362 (grub_pe32_reloc): Likewise.
29363
29364 * util/grub-pe2elf.c: New file.
29365
29366 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
29367 start symbol in non pc platform.
29368
29369 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
29370
29371 The following patches are from Christian Franke.
29372
29373 * include/grub/dl.h: Remove .previous, gas supports this only
29374 for ELF format.
29375
29376 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
29377 Remove .type, gas supports this only for ELF format.
29378
29379 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
29380 nullbytes in symbol table. This fixes an infinite loop if table is
29381 zero filled.
29382
29383 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
29384 TARGET_IMG_LDFLAGS and EXEEXT.
29385
29386 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
29387 TARGET_IMG_LDFLAGS_AC.
29388 (grub_CHECK_STACK_ARG_PROBE): New function.
29389
29390 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
29391
29392 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
29393
29394 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
29395 to set TARGET_IMG_LD* accordingly.
29396 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
29397 Add call to grub_CHECK_STACK_ARG_PROBE.
29398 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
29399
29400 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
29401
29402 * genmk.rb: Add EXEEXT to CLEANFILES.
29403
29404 2008-07-23 Robert Millan <rmh@aybabtu.com>
29405
29406 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
29407 define the codes for arrows and lines used for the menu).
29408 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
29409 as well.
29410
29411 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
29412 fonts, because the latter are too slow.
29413
29414 2008-07-21 Bean <bean123ch@gmail.com>
29415
29416 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
29417 a20. Run keyboard test last, as it will cause macbook to halt.
29418
29419 2008-07-18 Pavel Roskin <proski@gnu.org>
29420
29421 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
29422 load foreign architecture modules correctly anyway. Keep
29423 support for loading host architecture modules, whether we
29424 compile them or not.
29425
29426 2008-07-17 Pavel Roskin <proski@gnu.org>
29427
29428 * configure.ac: Use -m32 or -m64 regardless of whether we had to
29429 change target_cpu. The compiler default can mismatch target_cpu
29430 in any case.
29431
29432 * disk/efi/efidisk.c: Fix format warnings on x86_64.
29433 * kern/efi/efi.c: Likewise.
29434
29435 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
29436 target compiler is functional.
29437 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
29438 are set up.
29439
29440 * configure.ac: Default to efi platform for x86_64-apple. Allow
29441 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
29442 adjustments from the rest, only do them if target is not
29443 explicitly given. Merge other adjustments with the final sanity
29444 check. Remove an extraneous check for supported CPU. Be
29445 specific which CPU and which platform is not supported.
29446
29447 * configure.ac: Default to pc platform for x86_64.
29448
29449 2008-07-17 Robert Millan <rmh@aybabtu.com>
29450
29451 Partial LinuxBIOS -> Coreboot rename.
29452
29453 * conf/i386-linuxbios.rmk: Renamed to ...
29454 * conf/i386-coreboot.rmk: ... this.
29455 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
29456 * configure.ac: Accept "coreboot" as input platform (but maintain
29457 compatibility with "linuxbios").
29458 * include/grub/i386/linuxbios: Renamed to ...
29459 * include/grub/i386/coreboot: ... this.
29460
29461 2008-07-17 Bean <bean123ch@gmail.com>
29462
29463 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
29464 (appleldr_mod_SOURCE): New variable.
29465 (appleldr_mod_CFLAGS): Likewise.
29466 (appleldr_mod_LDFLAGS): Likewise.
29467 (pci_mod_SOURCES): Likewise.
29468 (pci_mod_CFLAGS): Likewise.
29469 (pci_mod_LDFLAGS): Likewise.
29470 (lspci_mod_SOURCES): Likewise.
29471 (lspci_mod_CFLAGS): Likewise.
29472 (lspci_mod_LDFLAGS): Likewise.
29473
29474 * conf/x86_64-efi.rmk: New file.
29475
29476 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
29477 macro.
29478 (grub_efidisk_write): Likewise.
29479
29480 * include/efi/api.h (efi_call_0): New macro.
29481 (efi_call_1): Likewise.
29482 (efi_call_2): Likewise.
29483 (efi_call_3): Likewise.
29484 (efi_call_4): Likewise.
29485 (efi_call_5): Likewise.
29486 (efi_call_6): Likewise.
29487
29488 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
29489 grub_rescue_cmd_chainloader.
29490
29491 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
29492 (grub_pe32_optional_header): Change some fields based on i386 or
29493 x86_64 platform.
29494 (GRUB_PE32_PE32_MAGIC): Likewise.
29495
29496 * include/grub/efi/uga_draw.h: New file.
29497
29498 * include/grub/elf.h (STN_ABS): New constant.
29499 (R_X86_64_NONE): Relocation constant for x86_64.
29500 (R_X86_64_64): Likewise.
29501 (R_X86_64_PC32): Likewise.
29502 (R_X86_64_GOT32): Likewise.
29503 (R_X86_64_PLT32): Likewise.
29504 (R_X86_64_COPY): Likewise.
29505 (R_X86_64_GLOB_DAT): Likewise.
29506 (R_X86_64_JUMP_SLOT): Likewise.
29507 (R_X86_64_RELATIVE): Likewise.
29508 (R_X86_64_GOTPCREL): Likewise.
29509 (R_X86_64_32): Likewise.
29510 (R_X86_64_32S): Likewise.
29511 (R_X86_64_16): Likewise.
29512 (R_X86_64_PC16): Likewise.
29513 (R_X86_64_8): Likewise.
29514 (R_X86_64_PC8): Likewise.
29515
29516 * include/grub/i386/efi/pci.h: New file.
29517
29518 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
29519 Change it value based on platform.
29520 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
29521 (GRUB_E820_RAM): Likewise.
29522 (GRUB_E820_RESERVED): Likewise.
29523 (GRUB_E820_ACPI): Likewise.
29524 (GRUB_E820_NVS): Likewise.
29525 (GRUB_E820_EXEC_CODE): Likewise.
29526 (GRUB_E820_MAX_ENTRY): Likewise.
29527 (grub_e820_mmap): New structure.
29528 (linux_kernel_header): Change the efi field according to different
29529 kernel version, also field from linux_kernel_header.
29530
29531 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
29532
29533 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
29534 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
29535 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
29536 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
29537 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
29538 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
29539 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
29540 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
29541 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
29542 (GRUB_PCI_ADDR_IO_MASK): Likewise.
29543
29544 * include/grub/x86_64/efi/kernel.h: New file.
29545
29546 * include/grub/x86_64/efi/loader.h: Likewise.
29547
29548 * include/grub/x86_64/efi/machine.h: Likewise.
29549
29550 * include/grub/x86_64/efi/pci.h: Likewise.
29551
29552 * include/grub/x86_64/efi/time.h: Likewise.
29553
29554 * include/grub/x86_64/linux.h: Likewise.
29555
29556 * include/grub/x86_64/setjmp.h: Likewise.
29557
29558 * include/grub/x86_64/time.h: Likewise.
29559
29560 * include/grub/x86_64/types.h: Likewise.
29561
29562 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
29563 GRUB_TARGET_SIZEOF_VOID_P.
29564
29565 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
29566 (grub_efi_locate_handle): Likewise.
29567 (grub_efi_open_protocol): Likewise.
29568 (grub_efi_set_text_mode): Likewise.
29569 (grub_efi_stall): Likewise.
29570 (grub_exit): Likewise.
29571 (grub_reboot): Likewise.
29572 (grub_halt): Likewise.
29573 (grub_efi_exit_boot_services): Likewise.
29574 (grub_get_rtc): Likewise.
29575
29576 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
29577 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
29578 (grub_efi_allocate_pages): Wrap efi calls.
29579 (grub_efi_free_pages): Wrap efi calls.
29580 (grub_efi_get_memory_map): Wrap efi calls.
29581
29582 * kern/x86_64/dl.c: New file.
29583
29584 * kern/x86_64/efi/callwrap.S: Likewise.
29585
29586 * kern/x86_64/efi/startup.S: Likewise.
29587
29588 * loader/efi/appleloader.c: Likewise.
29589
29590 * loader/efi/chainloader.c (cmdline): New variable.
29591 (grub_chainloader_unload): Wrap efi calls.
29592 (grub_chainloader_boot): Likewise.
29593 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
29594 command line.
29595
29596 * loader/efi/chainloader_normal.c (chainloader_command):
29597 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
29598 command line.
29599
29600 * loader/i386/efi/linux.c (allocate_pages): Change allocation
29601 method.
29602 (grub_e820_add_region): New function.
29603 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
29604 booting.
29605 (grub_find_video_card): New function.
29606 (grub_linux_setup_video): New function.
29607 (grub_rescue_cmd_linux): Probe for video information.
29608
29609 * normal/x86_64/setjmp.S: New file.
29610
29611 * term/efi/console.c (map_char): New function.
29612 (grub_console_putchar): Map unicode char.
29613 (grub_console_checkkey): Wrap efi calls.
29614 (grub_console_getkey): Likewise.
29615 (grub_console_getwh): Likewise.
29616 (grub_console_gotoxy): Likewise.
29617 (grub_console_cls): Likewise.
29618 (grub_console_setcolorstate): Likewise.
29619 (grub_console_setcursor): Likewise.
29620
29621 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
29622
29623 2008-07-16 Pavel Roskin <proski@gnu.org>
29624
29625 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
29626 format strings.
29627
29628 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
29629 pointer, not an integer. This fixes a warning and prevents
29630 precision loss on 64-bit systems.
29631 (relocate_addresses): Remove unneeded cast.
29632
29633 2008-07-15 Pavel Roskin <proski@gnu.org>
29634
29635 * kern/i386/ieee1275/init.c: Include grub/cache.h.
29636
29637 * term/ieee1275/ofconsole.c: Disable code unused on i386.
29638
29639 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
29640 Fix comparison between signed and unsigned.
29641
29642 * include/grub/i386/ieee1275/console.h: Declare
29643 grub_console_init() and grub_console_fini().
29644
29645 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
29646 It's empty and unused.
29647
29648 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
29649 beginning to avoid warnings with some compilers.
29650
29651 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
29652 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
29653
29654 2008-07-14 Pavel Roskin <proski@gnu.org>
29655
29656 * kern/env.c (grub_register_variable_hook): Don't copy empty
29657 string, it leaks memory. Pass "" to grub_env_set(), it should
29658 handle constant strings.
29659
29660 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
29661 * commands/cmp.c (grub_cmd_cmp): Likewise.
29662 * kern/dl.c (grub_dl_flush_cache): Likewise.
29663 (grub_dl_load_core): Likewise.
29664 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
29665 (grub_elf64_load_phdrs): Likewise.
29666
29667 2008-07-13 Pavel Roskin <proski@gnu.org>
29668
29669 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
29670 between signed and unsigned.
29671 (LzmaEnc_Finish): Fix warning about an unused parameter.
29672
29673 2008-07-13 Bean <bean123ch@gmail.com>
29674
29675 * Makefile.in (enable_lzo): New rule.
29676
29677 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
29678
29679 * configure.ac (ENABLE_LZO): New option --enable-lzo.
29680
29681 * boot/i386/pc/lnxboot.S: #include <config.h>.
29682
29683 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
29684 its value according to the compression algorithm used, lzo or lzma.
29685
29686 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
29687 compression algorithm according to configure macro.
29688
29689 * kern/i386/pc/startup.S (codestart): Likewise.
29690
29691 * kern/i386/pc/lzma_decode.S: New file.
29692
29693 * include/grub/lib/LzFind.h: Likewise.
29694
29695 * include/grub/lib/LzHash.h: Likewise.
29696
29697 * include/grub/lib/LzmaDec.h: Likewise.
29698
29699 * include/grub/lib/LzmaEnc.h: Likewise.
29700
29701 * include/grub/lib/LzmaTypes.h: Likewise.
29702
29703 * lib/LzFind.c: Likewise.
29704
29705 * lib/LzmaDec.c: Likewise.
29706
29707 * lib/LzmaEnc.c: Likewise.
29708
29709 2008-07-13 Bean <bean123ch@gmail.com>
29710
29711 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
29712 (grub_ext4_extent_header): New structure.
29713 (grub_ext4_extent): Likewise.
29714 (grub_ext4_extent_idx): Likewise.
29715 (grub_ext4_find_leaf): New function.
29716 (grub_ext2_read_block): Handle extents.
29717
29718 2008-07-12 Robert Millan <rmh@aybabtu.com>
29719
29720 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
29721
29722 2008-07-11 Robert Millan <rmh@aybabtu.com>
29723
29724 * util/grub.d/40_custom.in: New file. Example on how to add custom
29725 entries to /etc/grub.d.
29726 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
29727 40_custom (implicitly, by merging all the grub.d rules).
29728
29729 2008-07-11 Pavel Roskin <proski@gnu.org>
29730
29731 * commands/read.c (grub_getline): Fix invalid memory access.
29732 Don't add newline to the variable value.
29733
29734 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
29735 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
29736 (serial_hw_get_port): Check validity of the port number.
29737 (grub_cmd_serial): Check return value of serial_hw_get_port().
29738
29739 2008-07-07 Pavel Roskin <proski@gnu.org>
29740
29741 * boot/i386/pc/diskboot.S (notification_string): Replace
29742 "Loading kernel" with just "loading". This is shorter, less
29743 confusing and saves a few bytes for possible future changes.
29744
29745 2008-07-05 Pavel Roskin <proski@gnu.org>
29746
29747 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
29748 size for ATAPI devices, they are undefined. Output sector
29749 number in decimal form.
29750
29751 * disk/ata.c: Use named constants for status bits.
29752
29753 2008-07-04 Pavel Roskin <proski@gnu.org>
29754
29755 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
29756 grub_addr_t before casting it to the void pointer to fix a
29757 warning. Non-addressable regions are discarded earlier.
29758 (grub_arch_modules_addr): Cast _end to grub_addr_t.
29759 * kern/i386/linuxbios/table.c: Include grub/misc.h.
29760 (check_signature): Don't shadow table_header.
29761 (grub_linuxbios_table_iterate): Cast numeric constants to
29762 grub_linuxbios_table_header_t.
29763 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
29764 grub_stop().
29765
29766 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
29767 prevent warnings.
29768
29769 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
29770 pointer, which can cause warnings. Support 64-bit addresses.
29771
29772 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
29773 of sizeof(long). This fixes PowerPC image generation on x86_64.
29774
29775 2008-07-04 Robert Millan <rmh@aybabtu.com>
29776
29777 This fixes a performance issue when pc & gpt partmap iterators
29778 didn't abort iteration even after our hook found what it was
29779 looking for (often causing expensive probes of non-existent drives).
29780
29781 Some callers relied on previous buggy behaviour, since they would
29782 raise an error when their own hooks caused early abortion of its
29783 iteration.
29784
29785 * kern/device.c (grub_device_open): Improve error message.
29786 * disk/lvm.c (grub_lvm_open): Likewise.
29787 * disk/raid.c (grub_raid_open): Likewise.
29788
29789 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
29790 when hook requests it, independently of grub_errno.
29791 (pc_partition_map_probe): Do not fail when find_func() caused
29792 early abortion of pc_partition_map_iterate().
29793
29794 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
29795 when hook requests it, independently of grub_errno.
29796 (gpt_partition_map_probe): Do not fail when find_func() caused
29797 early abortion of gpt_partition_map_iterate().
29798
29799 * kern/partition.c (grub_partition_iterate): Abort parent iteration
29800 when hook requests it, independently of grub_errno. Do not fail when
29801 part_map_iterate_hook() caused early abortion of p->iterate().
29802
29803 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
29804 when grub_partition_iterate() returned with non-zero.
29805
29806 2008-07-03 Pavel Roskin <proski@gnu.org>
29807
29808 * disk/ata.c (grub_ata_pio_write): Check status before writing,
29809 like we do in grub_ata_pio_read().
29810 (grub_ata_readwrite): Always write individual sectors. Fix the
29811 sector count for the remainder.
29812 (grub_ata_write): Enable writing to ATA devices. Correctly
29813 report error for ATAPI devices.
29814
29815 2008-07-02 Pavel Roskin <proski@gnu.org>
29816
29817 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
29818 warning.
29819
29820 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
29821 for every read sector, we already increment it for the whole
29822 batch. This fixes reading more than 256 sectors at once.
29823
29824 * util/grub-editenv.c (cmd_info): Cast argument to long
29825 explicitly. ptrdiff_t reduces to int on i386.
29826
29827 * util/grub-editenv.c (main): Be specific which parameter is
29828 missing.
29829
29830 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
29831 (memdisk): Make memdisk_orig_addr a pointer.
29832
29833 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
29834 for file offsets, use grub_off_t instead. Fix printf format
29835 warnings.
29836
29837 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
29838 there. Real unexpected warnings should not drown in the noise
29839 about known problems.
29840
29841 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
29842 grub_disk_addr_t for memory addresses.
29843
29844 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
29845 explicitly to fix a warning.
29846
29847 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
29848
29849 * Makefile.in (MODULE_LDFLAGS): New variable.
29850 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
29851 the linker accepts --build-id=none.
29852 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
29853 MODULE_LDFLAGS.
29854 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
29855
29856 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
29857 those in Linux XFS code. Provide a way to access 64-bit parent
29858 inode.
29859 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
29860 the end of struct grub_xfs_dir_header.
29861
29862 2008-07-02 Bean <bean123ch@gmail.com>
29863
29864 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
29865 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
29866 and GRUB_IEEE1275_FLAG_NO_ANSI.
29867
29868 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
29869 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
29870 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
29871
29872 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
29873 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
29874
29875 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
29876 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
29877
29878 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
29879 esc sequence on non ANSI terminal.
29880 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
29881
29882 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
29883 beginning of file.
29884
29885 2008-07-02 Bean <bean123ch@gmail.com>
29886
29887 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
29888 (grub_editenv_SOURCES): New variable.
29889 (pkglib_MODULES): Add loadenv.mod.
29890 (loadenv_mod_SOURCES): New variable.
29891 (loadenv_mod_CFLAGS): Likewise.
29892 (loadenv_mod_LDFLAGS): Likewise.
29893
29894 * include/grub/envblk.h: New file.
29895
29896 * util/envblk.c: New file.
29897
29898 * util/grub-editenv.c: New file.
29899
29900 * commands/loadenv.c: New file.
29901
29902 2008-07-01 Pavel Roskin <proski@gnu.org>
29903
29904 * include/multiboot2.h (struct multiboot_tag_module): Use char,
29905 not unsigned char. This fixes warnings and is consistent with
29906 other tags.
29907
29908 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
29909
29910 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
29911
29912 * term/tparm.c (analyze): Always set *popcount.
29913
29914 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
29915 cast to fix a warning.
29916
29917 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
29918 cast to suppress a warning.
29919
29920 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
29921 grub_fshelp_read_file() expects.
29922
29923 * fs/fat.c: Fix UUID calculation on big-endian systems. We
29924 write uuid as a 32-bit value in CPU byte order, so declare and
29925 use it as such.
29926
29927 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
29928 long if the format specifier expects it.
29929 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
29930 * partmap/pc.c (pc_partition_map_iterate): Likewise.
29931 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
29932 long to fix a warning.
29933 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
29934 grub_dprintf() arguments to fix warnings.
29935
29936 2008-06-30 Pavel Roskin <proski@gnu.org>
29937
29938 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
29939 install_bsd_part immediately before core.img is embedded or
29940 modified on disk. This fixes core.img verification if core.img
29941 cannot be embedded.
29942
29943 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
29944 core_path to calculate the blocklist.
29945 Patch from Javier Martín <lordhabbit@gmail.com>
29946
29947 2008-06-29 Robert Millan <rmh@aybabtu.com>
29948
29949 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
29950 block to disk block.
29951 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
29952 Patch from Niels Böhm <bitbucket@arcor.de>
29953
29954 2008-06-29 Robert Millan <rmh@aybabtu.com>
29955
29956 * util/update-grub_lib.in (font_path): Search for fonts in
29957 /boot/grub first, which is more likely to be readable (we aren't
29958 deciding where fonts live, just looking for them).
29959
29960 2008-06-26 Pavel Roskin <proski@gnu.org>
29961
29962 * util/biosdisk.c (read_device_map): Don't leave dead map
29963 entries for devices failing stat() check.
29964
29965 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
29966 core_path_dev for the core.img path on the target device.
29967
29968 2008-06-26 Robert Millan <rmh@aybabtu.com>
29969
29970 * disk/fs_uuid.c: New file.
29971 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
29972 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
29973 (fs_uuid_mod_LDFLAGS): New variables.
29974 * include/grub/disk.h (grub_disk_dev_id): Add
29975 `GRUB_DISK_DEVICE_UUID_ID'.
29976 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
29977 implement iterate().
29978
29979 2008-06-26 Robert Millan <rmh@aybabtu.com>
29980
29981 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
29982 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
29983 Linux image includes no initrd.
29984
29985 2008-06-21 Javier Martín <lordhabbit@gmail.com>
29986
29987 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
29988 call to resolve the core image location that effectively appended the
29989 name twice.
29990
29991 2008-06-21 Robert Millan <rmh@aybabtu.com>
29992
29993 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
29994 call from here ...
29995
29996 * util/grub.d/10_hurd.in: ... to here ...
29997 * util/grub.d/10_linux.in: ... and here.
29998
29999 2008-06-19 Robert Millan <rmh@aybabtu.com>
30000
30001 * kern/main.c (grub_main): Export `prefix' variable immediately
30002 after it has been set by grub_machine_set_prefix().
30003
30004 2008-06-19 Robert Millan <rmh@aybabtu.com>
30005
30006 * commands/search.c (search_label, search_fs_uuid, search_file): Print
30007 search result when not saving to variable, not the other way around.
30008 When saving to variable, abort iteration as soon as a match is found.
30009
30010 2008-06-19 Robert Millan <rmh@aybabtu.com>
30011
30012 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
30013 check for partition that provides /boot/grub. Its logic is flawed,
30014 as it prevents prepare_grub_to_access_device() from being called
30015 multiple times.
30016
30017 2008-06-19 Robert Millan <rmh@aybabtu.com>
30018
30019 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
30020 "insmod" command directly when abstraction modules are needed,
30021 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
30022 since it had already been processed).
30023
30024 2008-06-19 Pavel Roskin <proski@gnu.org>
30025
30026 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
30027 changed. This is needed in case GRUB_LIBDIR changes.
30028 * conf/i386-ieee1275.rmk: Likewise.
30029 * conf/i386-linuxbios.rmk: Likewise.
30030 * conf/i386-pc.rmk: Likewise.
30031 * conf/powerpc-ieee1275.rmk: Likewise.
30032
30033 2008-06-18 Pavel Roskin <proski@gnu.org>
30034
30035 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
30036 kernel_elf_symlist.c to symlist.c for consistency with other
30037 architectures. Update all users.
30038 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
30039
30040 2008-06-18 Robert Millan <rmh@aybabtu.com>
30041
30042 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
30043 it in prefix.
30044
30045 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
30046 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
30047 a RAID device, run setup() for all members independently on whether
30048 LVM abstraction is being used.
30049 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
30050 If grub-mkimage has set `*install_dos_part == -2', don't override this
30051 value.
30052 Perform *install_dos_part adjustments independently on whether
30053 we're embedding or not.
30054 Clarify error message when image is too big for embedding.
30055 Remove duplicate *install_dos_part stanza.
30056
30057 2008-06-17 Robert Millan <rmh@aybabtu.com>
30058
30059 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
30060 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
30061 variables.
30062 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
30063 values in grub_ofconsole_normal_color and
30064 grub_ofconsole_highlight_color (they're not directly related to
30065 background and foreground).
30066 (grub_ofconsole_setcolorstate): Extract background and foreground
30067 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
30068
30069 2008-06-17 Robert Millan <rmh@aybabtu.com>
30070
30071 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
30072 /boot/grub for the check in last commit, not /boot (they could be
30073 different partitions).
30074
30075 2008-06-16 Robert Millan <rmh@aybabtu.com>
30076
30077 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
30078 asked to setup access for the same partition that provides /boot,
30079 don't bother using UUIDs since our root already has the value we
30080 want.
30081
30082 2008-06-16 Robert Millan <rmh@aybabtu.com>
30083
30084 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
30085 I2O devices.
30086 Patch from Sven Mueller <sven@debian.org>.
30087
30088 2008-06-16 Robert Millan <rmh@aybabtu.com>
30089
30090 * util/update-grub.in: Check for $EUID instead of $UID.
30091 Reported by Vincent Zweije.
30092
30093 2008-06-16 Bean <bean123ch@gmail.com>
30094
30095 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
30096 (grub_ext2_read_block): Likewise.
30097 (grub_ext2_read_inode): Likewise.
30098 (grub_ext2_mount): Likewise.
30099 (grub_ext2_close): Likewise.
30100 (grub_ext3_get_journal): Removed.
30101
30102 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
30103 (grub_reiserfs_read_symlink): Likewise.
30104 (grub_reiserfs_mount): Likewise.
30105 (grub_reiserfs_open): Likewise.
30106 (grub_reiserfs_read): Likewise.
30107 (grub_reiserfs_close): Likewise.
30108 (grub_reiserfs_get_journal): Removed.
30109
30110 * fs/fshelp.c (grub_fshelp_read): Removed.
30111 (grub_fshelp_map_block): Likewise.
30112
30113 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
30114 (grub_fshelp_journal): Likewise.
30115 (grub_fshelp_read): Likewise.
30116 (grub_fshelp_map_block): Likewise.
30117
30118 2008-06-16 Pavel Roskin <proski@gnu.org>
30119
30120 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
30121 floating point anymore.
30122 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
30123
30124 2008-06-15 Pavel Roskin <proski@gnu.org>
30125
30126 * commands/ls.c (grub_ls_list_files): Use integer calculations
30127 for human readable format, avoid floating point use.
30128 * kern/misc.c (grub_ftoa): Remove.
30129 (grub_vsprintf): Remove floating point support.
30130
30131 2008-06-15 Robert Millan <rmh@aybabtu.com>
30132
30133 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
30134 devices.
30135 Reported by Max Vozeler.
30136
30137 2008-06-15 Robert Millan <rmh@aybabtu.com>
30138
30139 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
30140 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
30141 skipped later.
30142 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
30143 the beginning of the prefix.
30144
30145 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
30146 It is assumed that if we have a memdisk, grub-mkimage has set
30147 grub_prefix to include the "(memdisk)" drive in it.
30148
30149 2008-06-15 Robert Millan <rmh@aybabtu.com>
30150
30151 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
30152 Initialize keyboard controller after registering the terminal, so that
30153 grub_printf() can be called from grub_keyboard_controller_init().
30154
30155 2008-06-15 Robert Millan <rmh@aybabtu.com>
30156
30157 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
30158 extent-btree which is written as big endian on disk.
30159 Reported by Alain Greppin <al@chilibi.org>.
30160
30161 2008-06-14 Robert Millan <rmh@aybabtu.com>
30162
30163 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
30164 * util/i386/pc/grub-install.in (modules): Likewise.
30165
30166 2008-06-13 Pavel Roskin <proski@gnu.org>
30167
30168 * commands/ls.c (grub_ls_list_files): Fix format warnings.
30169
30170 2008-06-13 Bean <bean123ch@gmail.com>
30171
30172 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
30173
30174 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
30175
30176 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
30177 to indicate sparse block.
30178
30179 2008-06-12 Pavel Roskin <proski@gnu.org>
30180
30181 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
30182 number, grub_fshelp_read() does it for us.
30183
30184 * fs/fshelp.c (grub_fshelp_read): New function. Implement
30185 linear disk read with journal translation.
30186 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
30187 * include/grub/fshelp.h: Declare grub_fshelp_read().
30188
30189 2008-06-09 Pavel Roskin <proski@gnu.org>
30190
30191 * fs/minix.c (grub_minix_mount): Handle error reading
30192 superblock.
30193
30194 2008-06-08 Robert Millan <rmh@aybabtu.com>
30195
30196 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
30197 don't append the RAID prefix afterwards.
30198 Reported by Clint Adams.
30199
30200 2008-06-08 Robert Millan <rmh@aybabtu.com>
30201
30202 Based on description from Pavel:
30203 * kern/disk.c (grub_disk_check_range): Rename to ...
30204 (grub_disk_adjust_range): ... this. Add a comment explaining the
30205 tasks performed by this function.
30206
30207 2008-06-08 Robert Millan <rmh@aybabtu.com>
30208
30209 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
30210 `num_serial' (for consistency with other variables).
30211 (struct grub_ntfs_data): Add `uuid' member.
30212 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
30213 (grub_ntfs_uuid): New function.
30214 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
30215
30216 2008-06-07 Pavel Roskin <proski@gnu.org>
30217
30218 * util/biosdisk.c (open_device): Revert last change to the
30219 function, it broke installation. The sector needs to be
30220 different dependent on which device is opened.
30221
30222 2008-06-06 Robert Millan <rmh@aybabtu.com>
30223
30224 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
30225 rest of GRUB, and breakage doesn't happen if its value were modified.
30226
30227 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
30228 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
30229 a constant (same value).
30230 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
30231 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
30232
30233 2008-06-06 Robert Millan <rmh@aybabtu.com>
30234
30235 * util/biosdisk.c (open_device): Do not modify sector offset when
30236 accessing a partition. kern/disk.c already handles this for us.
30237
30238 2008-06-06 Robert Millan <rmh@aybabtu.com>
30239
30240 * util/grub-emu.c (grub_machine_init): Move code in this function from
30241 here ...
30242 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
30243 segfault in case grub_printf() is called).
30244
30245 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
30246 grub_probe. Update all users not to explicitly add it again.
30247 (grub_device): New variable; contains corresponding device for grubdir.
30248 (fs_module, partmap_module, devabstraction_module): Pass
30249 `--device ${grub_device}' to grub_probe to avoid traversing /dev
30250 every time.
30251
30252 2008-06-05 Robert Millan <rmh@aybabtu.com>
30253
30254 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
30255 is found, print it (same layout as with labels).
30256
30257 2008-06-04 Robert Millan <rmh@aybabtu.com>
30258
30259 * util/biosdisk.c (get_drive): Rename to ...
30260 (find_grub_drive): ... this. Update all users.
30261
30262 (get_os_disk): Rename to ...
30263 (convert_system_partition_to_system_disk): ... this. Update all users.
30264
30265 (find_drive): Rename to ...
30266 (find_system_device): ... this. Update all users.
30267
30268 2008-06-04 Robert Millan <rmh@aybabtu.com>
30269
30270 * util/biosdisk.c (get_os_disk): Handle IDA devices.
30271 * util/grub-mkdevicemap.c (get_mmc_disk_name)
30272 (make_device_map): Likewise.
30273
30274 2008-06-01 Robert Millan <rmh@aybabtu.com>
30275
30276 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
30277 before dereferencing it.
30278
30279 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
30280 union with fat12/fat16-specific ones. Add some new fields, including
30281 `num_serial' for both versions.
30282 (struct grub_fat_data): Add `uuid' member.
30283 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
30284 names. Initialize `data->uuid' using `num_serial'.
30285 (grub_fat_uuid): New function.
30286 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
30287
30288 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
30289 (grub_reiserfs_uuid): New function.
30290 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
30291 member.
30292
30293 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
30294 (grub_xfs_uuid): New function.
30295 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
30296
30297 2008-06-01 Robert Millan <rmh@aybabtu.com>
30298
30299 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
30300 code that is backward compatible with pre-uuid search command.
30301
30302 2008-05-31 Robert Millan <rmh@aybabtu.com>
30303
30304 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
30305 floppies after everything else, to ensure floppy drive isn't accessed
30306 unnecessarily (patch from Bean).
30307
30308 2008-05-31 Robert Millan <rmh@aybabtu.com>
30309
30310 * commands/search.c (search_label, search_fs_uuid, search_file): Do
30311 not print device names when we were asked to set a variable.
30312
30313 2008-05-31 Robert Millan <rmh@aybabtu.com>
30314
30315 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
30316 using "cursor-on" and "cursor-off" commands (understood at least by
30317 the Open Firmware flavour on OLPC).
30318
30319 2008-05-31 Michael Gorven <michael@gorven.za.net>
30320
30321 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
30322 on and off sequences.
30323
30324 2008-05-31 Robert Millan <rmh@aybabtu.com>
30325
30326 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
30327 * util/update-grub.in: Likewise.
30328
30329 2008-05-30 Pavel Roskin <proski@gnu.org>
30330
30331 * util/biosdisk.c (linux_find_partition): Simplify logic and
30332 make the code more universal. Keep special processing for
30333 devfs, but use a simple rule for all other devices. If the
30334 device ends with a number, append 'p' and the partition number.
30335 Otherwise, append only the partition number.
30336
30337 2008-05-30 Robert Millan <rmh@aybabtu.com>
30338
30339 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
30340 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
30341 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
30342 the `root' parameter to Linux.
30343
30344 2008-05-30 Robert Millan <rmh@aybabtu.com>
30345
30346 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
30347 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
30348 --fs_uuid with --fs-uuid.
30349 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
30350 all filesystems support them).
30351
30352 2008-05-30 Robert Millan <rmh@aybabtu.com>
30353
30354 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
30355 grub_printf() flags, since we're printing in units of 2 bytes.
30356
30357 2008-05-30 Robert Millan <rmh@aybabtu.com>
30358
30359 * util/grub.d/00_header.in: Remove obsolete comment referencing
30360 convert_system_path_to_grub_path().
30361 * util/update-grub.in: Likewise.
30362 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
30363 (convert_system_path_to_grub_path): Add a warning message explaining
30364 that this function is deprecated. Rely on is_path_readable_by_grub()
30365 for the readability checks.
30366 (font_path): Use is_path_readable_by_grub() for the readability
30367 check rather than convert_system_path_to_grub_path().
30368
30369 2008-05-30 Robert Millan <rmh@aybabtu.com>
30370
30371 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
30372 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
30373 converting it first.
30374 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
30375 grub.cfg for access to font file, and afterwards call it again to set
30376 the root device.
30377
30378 2008-05-30 Robert Millan <rmh@aybabtu.com>
30379
30380 * commands/search.c (options): Add --fs_uuid option.
30381 (search_fs_uuid): New function.
30382 (grub_cmd_search): Fix --set argument passing.
30383 Use search_fs_uuid() when requested via --fs_uuid.
30384 (grub_search_init): Update help message.
30385 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
30386 and redeclare it as an array of 16-bit words.
30387 (grub_ext2_uuid): New function.
30388 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
30389 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
30390 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
30391 (GRUB_DEVICE_BOOT_UUID): New variables.
30392 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
30393 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
30394 whenever possible.
30395 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
30396 just assume `root' variable has the right value.
30397 * util/grub.d/10_linux.in: Likewise.
30398 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
30399 via PRINT_FS_UUID.
30400 (main): Recognise `-t fs_uuid' argument.
30401
30402 2008-05-30 Robert Millan <rmh@aybabtu.com>
30403
30404 * util/biosdisk.c (map): Redefine structure to hold information
30405 about GRUB drive name.
30406 (get_drive): Reimplement without assuming (and verifying) BIOS-like
30407 drive names.
30408 (call_hook): Remove.
30409 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
30410 member. Assume drive has partitions.
30411 (grub_util_biosdisk_open): Access device names via `.device' struct
30412 member.
30413 (open_device): Likewise.
30414 (find_drive): Likewise.
30415 (read_device_map): Adjust map[] usage to match the new struct
30416 definition. Don't check for duplicates (still possible, but not cheap
30417 anymore).
30418 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
30419 (make_device_name): Remove assumption of BIOS-like drive names.
30420
30421 2008-05-30 Pavel Roskin <proski@gnu.org>
30422
30423 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
30424 compiling execute.c doesn't need grub_script.tab.h anymore.
30425 (normal/command.c_DEPENDENCIES): Likewise.
30426 (normal/function.c_DEPENDENCIES): Likewise.
30427 * conf/i386-ieee1275.rmk: Likewise.
30428 * conf/i386-linuxbios.rmk: Likewise.
30429 * conf/i386-pc.rmk: Likewise.
30430 * conf/powerpc-ieee1275.rmk: Likewise.
30431 * conf/sparc64-ieee1275.rmk: Likewise.
30432
30433 2008-05-29 Pavel Roskin <proski@gnu.org>
30434
30435 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
30436 when scanning metadata for volume group name.
30437
30438 * include/grub/script.h: Don't include grub_script.tab.h. It's
30439 a generated file, which may only be included from the files with
30440 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
30441 use union YYSTYPE, as the later allows forward declaration.
30442 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
30443
30444 2008-05-29 Robert Millan <rmh@aybabtu.com>
30445
30446 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
30447 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
30448 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
30449 (grub_console_checkkey): Add grub_dprintf() call to report unknown
30450 scan codes.
30451
30452 2008-05-29 Robert Millan <rmh@aybabtu.com>
30453
30454 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
30455 control key combinations.
30456
30457 2008-05-29 Robert Millan <rmh@aybabtu.com>
30458
30459 * util/powerpc/ieee1275/grub-install.in: Move from here ...
30460 * util/ieee1275/grub-install.in: ... to here.
30461 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
30462 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
30463 (grub_install_SOURCES): Likewise.
30464
30465 2008-05-29 Robert Millan <rmh@aybabtu.com>
30466
30467 * fs/affs.c: Update copyright year.
30468 * fs/ext2.c: Likewise.
30469 * fs/fshelp.c: Likewise.
30470 * fs/hfsplus.c: Likewise.
30471 * fs/ntfs.c: Likewise.
30472 * fs/xfs.c: Likewise.
30473 * include/grub/fshelp.h: Likewise.
30474 * util/grub-mkdevicemap.c: Likewise.
30475
30476 2008-05-28 Robert Millan <rmh@aybabtu.com>
30477
30478 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
30479 might need to be fatfs to support some firmware implementations
30480 (e.g. OFW or EFI).
30481
30482 2008-05-28 Robert Millan <rmh@aybabtu.com>
30483
30484 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
30485 devices.
30486 * util/grub-mkdevicemap.c (get_mmc_disk_name)
30487 (make_device_map): Likewise.
30488
30489 2008-05-20 Bean <bean123ch@gmail.com>
30490
30491 * fs/fshelp.c (grub_fshelp_map_block): New function.
30492 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
30493 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
30494
30495 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
30496 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
30497 (grub_fshelp_journal): New structure.
30498 (grub_fshelp_map_block): New function prototype.
30499 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
30500 (grub_fshelp_map_block): Likewise.
30501
30502 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
30503 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
30504 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
30505 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
30506 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
30507 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
30508 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
30509 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
30510 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
30511 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
30512 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
30513 (grub_ext2_sblock): New members for journal support.
30514 (grub_ext3_journal_header): New structure.
30515 (grub_ext3_journal_revoke_header): Likewise.
30516 (grub_ext3_journal_block_tag): Likewise.
30517 (grub_ext3_journal_sblock): Likewise.
30518 (grub_fshelp_node): New members logfile and journal.
30519 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
30520 grub_fshelp_map_block to get real block number.
30521 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
30522 number.
30523 (grub_ext2_read_inode): Likewise.
30524 (grub_ext3_get_journal): New function.
30525 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
30526 (grub_ext2_close): Release memory used by journal.
30527
30528 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
30529 (REISERFS_MAGIC_DESC_BLOCK): New macro.
30530 (grub_reiserfs_transaction_header): Renamed to
30531 grub_reiserfs_description_block, replace field data with real_blocks.
30532 (grub_reiserfs_commit_block): New structure.
30533 (grub_reiserfs_data): New member journal.
30534 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
30535 number.
30536 (grub_reiserfs_read_symlink): Likewise.
30537 (grub_reiserfs_iterate_dir): Likewise.
30538 (grub_reiserfs_open): Likewise.
30539 (grub_reiserfs_read): Likewise.
30540 (grub_reiserfs_get_journal): New function.
30541 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
30542 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
30543 using grub_reiserfs_get_journal.
30544 (grub_reiserfs_close): Release memory used by journal.
30545
30546 * fs/affs.c (grub_affs_read_block): Change block type to
30547 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
30548
30549 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
30550
30551 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
30552
30553 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
30554
30555 * fs/udf.c (grub_udf_read_block): Change block type to
30556 grub_disk_addr_t. Use type cast to avoid warning.
30557
30558 * fs/xfs.c (grub_xfs_read_block): Likewise.
30559
30560 2008-05-16 Christian Franke <franke@computer.org>
30561
30562 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
30563 to ensure that break with ESC will always work.
30564 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
30565 Remove ESC from keyboard queue.
30566
30567 2008-05-16 Christian Franke <franke@computer.org>
30568
30569 * util/biosdisk.c: [__CYGWIN__] Add includes.
30570 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
30571 (get_os_disk): Move variable declarations to OS specific
30572 parts to avoid warning.
30573 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
30574 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
30575 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
30576 Cygwin.
30577 * util/getroot.c: [__CYGWIN__] Add includes.
30578 (strip_extra_slashes): Fix "/" case.
30579 [__CYGWIN__] (get_win32_path): New function.
30580 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
30581 [__CYGWIN__] (find_root_device): Disable.
30582 [__CYGWIN__] (get_bootsec_serial): New function.
30583 [__CYGWIN__] (find_cygwin_root_device): Likewise.
30584 [__linux__] (grub_guess_root_device): Add early returns to simplify
30585 structure.
30586 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
30587 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
30588 check for Linux only.
30589
30590 2008-05-15 Bean <bean123ch@gmail.com>
30591
30592 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
30593 keyboard hang problem in apple's intel mac.
30594
30595 2008-05-09 Robert Millan <rmh@aybabtu.com>
30596
30597 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
30598 devices.
30599 * util/grub-mkdevicemap.c (get_virtio_disk_name)
30600 (make_device_map): Likewise.
30601 Reported by Aurelien Jarno <aurel32@debian.org>
30602
30603 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
30604
30605 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
30606 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
30607 (make_device_map): Output entries for xvd type disks.
30608
30609 2008-05-07 Robert Millan <rmh@aybabtu.com>
30610
30611 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
30612 devices.
30613 * util/grub-mkdevicemap.c (get_cciss_disk_name)
30614 (make_device_map): Likewise.
30615 Reported by Roland Dreier <rdreier@cisco.com>
30616
30617 2008-05-07 Robert Millan <rmh@aybabtu.com>
30618
30619 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
30620 grub_strstr() call. Correct a few mistakes in failure path handling.
30621
30622 2008-05-06 Robert Millan <rmh@aybabtu.com>
30623
30624 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
30625 Do not print a trailing slash (therefore, the root directory is an
30626 empty string).
30627 (convert_system_path_to_grub_path): Do not remove trailing slash
30628 from make_system_path_relative_to_its_root() output.
30629
30630 * util/i386/pc/grub-install.in: Add trailing slash to output from
30631 make_system_path_relative_to_its_root().
30632
30633 2008-05-06 Robert Millan <rmh@aybabtu.com>
30634
30635 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
30636 ensures that output lines aren't intermangled with those sent to
30637 stderr (via grub_util_info()).
30638 * util/grub-probe.c (grub_refresh): Likewise.
30639 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
30640
30641 2008-05-05 Christian Franke <franke@computer.org>
30642
30643 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
30644 Add Cygwin device names.
30645 (get_ide_disk_name) [__CYGWIN__]: Likewise.
30646 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
30647 (check_device): Return error instead of success on empty name.
30648 (make_device_map): Move label inside linux specific code to
30649 prevent compiler warning.
30650
30651 2008-04-30 Robert Millan <rmh@aybabtu.com>
30652
30653 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
30654 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
30655 first boot option.
30656 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
30657
30658 2008-04-29 Robert Millan <rmh@aybabtu.com>
30659
30660 * docs/grub.cfg: New file (example GRUB configuration).
30661
30662 2008-04-26 Robert Millan <rmh@aybabtu.com>
30663
30664 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
30665 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
30666 and `disk/ieee1275/nand.c'.
30667
30668 2008-04-25 Bean <bean123ch@gmail.com>
30669
30670 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
30671 i386-linuxbios.
30672
30673 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
30674 change the buffer size to 4096 for cdrom device.
30675
30676 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
30677 and nand.mod.
30678 (_linux_mod_SOURCES): New variable.
30679 (_linux_mod_CFLAGS): Likewise.
30680 (_linux_mod_LDFLAGS): Likewise.
30681 (linux_mod_SOURCES): Likewise.
30682 (linux_mod_CFLAGS): Likewise.
30683 (linux_mod_LDFLAGS): Likewise.
30684 (nand_mod_SOURCES): Likewise.
30685 (nand_mod_CFLAGS): Likewise.
30686 (nand_mod_LDFLAGS): Likewise.
30687
30688 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
30689 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
30690 type property. (nand device in olpc don't have this property)
30691
30692 * include/grub/disk.h (grub_disk_dev_id): New macro
30693 GRUB_DISK_DEVICE_NAND_ID.
30694
30695 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
30696 function prototype.
30697 (grub_rescue_cmd_initrd): Likewise.
30698
30699 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
30700 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
30701 ofw_cif_handler and ofw_idt, adjust padding number.
30702
30703 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
30704 GRUB_MACHINE_IEEE1275 is defined.
30705
30706 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
30707 Use NESTED_FUNC_ATTR attribute on the hook parameter.
30708
30709 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
30710 on nested function heap_init.
30711 (grub_upper_mem): New variable for i386-ieee1275.
30712 (grub_get_extended_memory): New function for i386-ieee1275.
30713 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
30714
30715 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
30716 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
30717 property.
30718
30719 * loader/i386/ieee1275/linux.c: New file.
30720
30721 * loader/i386/ieee1275/linux_normal.c: New file.
30722
30723 * disk/ieee1275/nand.c: New file.
30724
30725 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
30726
30727 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
30728 value.
30729 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
30730
30731 2008-04-18 Robert Millan <rmh@aybabtu.com>
30732
30733 Restructures early code path on ieee1275 to unify grub_main() as
30734 the first C function that is executed in every platform.
30735
30736 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
30737 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
30738 cmain().
30739 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
30740 * kern/ieee1275/cmain.c (cmain): Rename to ...
30741 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
30742 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
30743 at the beginning.
30744
30745 2008-04-18 Robert Millan <rmh@aybabtu.com>
30746
30747 * util/update-grub.in: Fix syntax error when setting
30748 `GRUB_PRELOAD_MODULES'.
30749 Reported by Stephane Chazelas <stephane@artesyncp.com>
30750
30751 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
30752
30753 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
30754 section into account, newer toolchains generate unique build ids
30755 * configure.ac: remove the test for --build-id=none acceptance,
30756 we want build ids to be preserved
30757 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
30758 far from other sections don't cause the raw binary images grow
30759 size
30760
30761 2008-04-15 Robert Millan <rmh@aybabtu.com>
30762
30763 * disk/lvm.c: Update copyright year.
30764 * kern/misc.c: Likewise.
30765
30766 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
30767
30768 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
30769 there is no memory left for physical volume name.
30770
30771 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
30772
30773 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
30774 volume name mapping to support bigger than 9 character names properly.
30775
30776 2008-04-13 Robert Millan <rmh@aybabtu.com>
30777
30778 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
30779 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
30780
30781 2008-04-13 Christian Franke <franke@computer.org>
30782
30783 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
30784 to create a floppy emulation boot CD when non emulation mode
30785 does not work.
30786 Enable Joliet CD filesystem extension.
30787
30788 2008-04-13 Robert Millan <rmh@aybabtu.com>
30789
30790 * kern/misc.c (grub_strncat): Fix off-by-one error.
30791 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
30792
30793 * kern/env.c (grub_env_context_close): Clear current context, not
30794 previous one.
30795 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
30796
30797 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
30798
30799 2008-04-13 Robert Millan <rmh@aybabtu.com>
30800
30801 Improve robustness when handling LVM.
30802
30803 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
30804 (and leave `*p' unmodified).
30805 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
30806 through it.
30807 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
30808 iterating through it.
30809 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
30810 through it.
30811 (grub_lvm_scan_device): Check the return value (and fail gracefully
30812 when due) on each grub_lvm_getvalue() or grub_strstr() call.
30813 Don't assume `vg->pvs != NULL' when iterating through it.
30814
30815 2008-04-13 Robert Millan <rmh@aybabtu.com>
30816
30817 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
30818 * genmk.rb (partmap): New variable.
30819 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
30820 (#{partmap}): New target rule.
30821 * genpartmaplist.sh: New file.
30822 * Makefile.in (pkglib_DATA): Add partmap.lst.
30823 (partmap.lst): New target rule.
30824 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
30825 modules (including all partition maps), instead of preloading them.
30826
30827 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
30828
30829 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
30830 `linux-boot-prober' (if installed) to detect other operating
30831 systems which are installed on the computer and add them to
30832 the boot menu.
30833 * conf/common.rmk: Build and install 30_os-prober.
30834
30835 2008-04-12 Robert Millan <rmh@aybabtu.com>
30836
30837 * kern/powerpc/ieee1275/init.c: Move from here ...
30838 * kern/ieee1275/init.c: ... to here. Update all users.
30839
30840 * kern/powerpc/ieee1275/cmain.c: Move from here ...
30841 * kern/ieee1275/cmain.c: ... to here. Update all users.
30842
30843 * kern/powerpc/ieee1275/openfw.c: Move from here ...
30844 * kern/ieee1275/openfw.c: ... to here. Update all users.
30845
30846 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
30847 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
30848
30849 2008-04-10 Pavel Roskin <proski@gnu.org>
30850
30851 * configure.ac: Always use "_cv_" in cache variables for
30852 compatibility with Autoconf 2.62.
30853
30854 2008-04-07 Robert Millan <rmh@aybabtu.com>
30855
30856 Revert grub/machine/init.h addition by Pavel (since it breaks on
30857 i386-ieee1275 and others):
30858 * util/i386/pc/misc.c: Remove grub/machine/init.h.
30859 * util/powerpc/ieee1275/misc.c: Likewise.
30860
30861 2008-04-07 Robert Millan <rmh@aybabtu.com>
30862
30863 * util/grub-probe.c (probe): Improve error message.
30864
30865 2008-04-07 Robert Millan <rmh@aybabtu.com>
30866
30867 * util/biosdisk.c (read_device_map): Skip devices that don't exist
30868 (this prevents the presence of a bogus entry from ruining the whole
30869 thing).
30870
30871 2008-04-06 Pavel Roskin <proski@gnu.org>
30872
30873 * util/biosdisk.c: Include grub/util/biosdisk.h.
30874 * util/grub-fstest.c (execute_command): Make static.
30875 * util/grub-mkdevicemap.c (check_device): Likewise.
30876 * util/i386/pc/misc.c: Include grub/machine/init.h.
30877 * util/powerpc/ieee1275/misc.c: Likewise.
30878 * util/lvm.c: Include grub/util/lvm.h.
30879 * util/misc.c: Include grub/kernel.h, grub/misc.h and
30880 grub/cache.h.
30881 * util/raid.c: Include grub/util/raid.h.
30882 (grub_util_getdiskname): Make static.
30883
30884 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
30885 grub_hostfs_fini(), as they are called from grub_init_all() and
30886 grub_fini_all() respectively. This fixes an infinite loop in
30887 grub-fstest due to double registration of hostfs.
30888 Reported by Christian Franke <Christian.Franke@t-online.de>
30889
30890 2008-04-05 Pavel Roskin <proski@gnu.org>
30891
30892 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
30893 all 8 functions. Otherwise, probe function 0 only.
30894
30895 2008-04-04 Pavel Roskin <proski@gnu.org>
30896
30897 * commands/lspci.c (grub_lspci_iter): Print the bus number
30898 correctly.
30899
30900 * commands/lspci.c (grub_pci_classes): Fix typos.
30901 (grub_lspci_iter): Don't print func twice. Print vendor ID
30902 before device ID, as it's normally done.
30903
30904 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
30905 Fix signedness warnings.
30906 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
30907 Likewise.
30908 * util/ieee1275/get_disk_name.c: Include config.h so that
30909 _GNU_SOURCE is defined and getline() is declared. Mark an
30910 unused argument as such. Fix a signedness warning.
30911
30912 2008-04-02 Pavel Roskin <proski@gnu.org>
30913
30914 * genkernsyms.sh.in: Use more robust assignments for CC and
30915 srcdir. Quote srcdir.
30916 * gensymlist.sh.in: Likewise. Assert at the compile time that
30917 the symbol table is not empty.
30918
30919 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
30920 * fs/cpio.c (grub_cpio_read): Likewise.
30921
30922 2008-04-01 Pavel Roskin <proski@gnu.org>
30923
30924 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
30925 * disk/host.c (grub_host_open): Likewise.
30926 * disk/loopback.c (grub_loopback_open): Likewise.
30927 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
30928 disk->id as in disk/host.c, not a multi-character constant.
30929
30930 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
30931 later is obsolete, potentially dangerous and sets a bad example.
30932 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
30933 * util/misc.c (grub_util_get_image_size): Likewise.
30934
30935 * disk/loopback.c (options): Improve help for "--partitions".
30936
30937 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
30938 options to align them with the short options, e.g. "echo -e".
30939
30940 2008-03-31 Bean <bean123ch@gmail.com>
30941
30942 * video/reader/png.c (grub_png_data): New member is_16bit and
30943 image_data.
30944 (grub_png_decode_image_header): Detect 16 bit png image.
30945 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
30946 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
30947 (grub_video_reader_png): Release memory occupied by image_data.
30948
30949 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
30950 4096 bytes.
30951 (grub_nfs_mount): Skip the test for sector per cluster.
30952
30953 * include/grub/ntfs.h (MAX_SPC): Removed.
30954
30955 2008-03-31 Bean <bean123ch@gmail.com>
30956
30957 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
30958 (grub_probe_SOURCES): Add fs/afs.c.
30959 (grub_fstest_SOURCES): Likewise.
30960 (afs_mod_SOURCES): New variable.
30961 (afs_mod_CFLAGS): Likewise.
30962 (afs_mod_LDFLAGS): Likewise.
30963
30964 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
30965 (grub_emu_SOURCES): Likewise.
30966
30967 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
30968
30969 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30970
30971 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
30972
30973 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30974
30975 * fs/afs.c: New file.
30976
30977 2008-03-30 Pavel Roskin <proski@gnu.org>
30978
30979 * disk/host.c: Include grub/misc.h to fix a warning.
30980 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
30981 warnings about implicit declarations.
30982
30983 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
30984 variable.
30985 * include/grub/i386/loader.h: Change declaration of
30986 grub_linux_boot() to match what grub_loader_set() expects.
30987 * util/getroot.c (grub_guess_root_device): Return const char* to
30988 fix a warning.
30989 * util/grub-probe.c (probe): Fix a warning about uninitialized
30990 abstraction_name variable.
30991 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
30992 second argument as unused to fix a warning.
30993
30994 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
30995 missing grub_error() call.
30996
30997 * util/update-grub_lib.in: Define datarootdir, since Autoconf
30998 2.60 and newer uses it to define datadir.
30999
31000 * commands/sleep.c: Fix warning about implicit declaration.
31001 * disk/memdisk.c: Likewise.
31002 * loader/aout.c: Likewise.
31003 * loader/i386/bsd_normal.c: Likewise.
31004 * util/grub-probe.c: Likewise.
31005
31006 * commands/i386/cpuid.c (has_longmode): Make static.
31007 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
31008 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
31009
31010 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
31011 GDT. This is more robust, as %ds can change.
31012 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
31013 calling real_to_prot().
31014 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
31015
31016 2008-03-28 Pavel Roskin <proski@gnu.org>
31017
31018 * kern/i386/pc/startup.S: Assert that uncompressed functions
31019 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
31020 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
31021 code, as they push parts of the code (error handlers) beyond
31022 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
31023 code as correctness and size.
31024
31025 2008-03-28 Pavel Roskin <proski@gnu.org>
31026
31027 * kern/i386/pc/startup.S
31028 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
31029 data block address to the real mode, keep offset minimal. This
31030 works around a bug in AWARD BIOS on old Athlon systems, which
31031 makes CD detection hang.
31032
31033 2008-03-26 Pavel Roskin <proski@gnu.org>
31034
31035 * normal/color.c (grub_parse_color_name_pair): Make `name' a
31036 const.
31037 * include/grub/normal.h: Add grub_parse_color_name_pair()
31038 declaration.
31039
31040 2008-03-24 Bean <bean123ch@gmail.com>
31041
31042 * disk/i386/pc/biosdisk.c (cd_start): Removed.
31043 (cd_count): Removed.
31044 (cd_drive): New variable.
31045 (grub_biosdisk_get_drive): Don't check for (cdN) device.
31046 (grub_biosdisk_call_hook): Likewise.
31047 (grub_biosdisk_iterate): Change cdrom detection method.
31048 (grub_biosdisk_open): Replace cd_start with cd_drive.
31049 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
31050 detect cdrom device.
31051
31052 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
31053 Removed.
31054 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
31055 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
31056 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
31057 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
31058 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
31059 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
31060 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
31061 (grub_biosdisk_cdrp): New structure.
31062 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
31063
31064 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
31065
31066 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
31067 device.
31068
31069 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
31070 New function.
31071
31072 2008-03-20 Robert Millan <rmh@aybabtu.com>
31073
31074 Remove 2 TiB limit in ata.mod.
31075 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
31076 (grub_ata_dumpinfo): Print sector count with 0x%llx.
31077 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
31078 grub_uint64_t instead of grub_uint32_t.
31079
31080 2008-03-05 Bean <bean123ch@gmail.com>
31081
31082 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
31083 (grub_multiboot): Set boot device.
31084
31085 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
31086
31087 2008-03-02 Bean <bean123ch@gmail.com>
31088
31089 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
31090 symlink_buffer.
31091
31092 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
31093
31094 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
31095 texinfo.tex.
31096
31097 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
31098 modified.
31099
31100 * docs/fdl.texi: New file.
31101
31102 * docs/mdate-sh: New file. Copied from gnulib.
31103 * docs/texinfo.tex: Likewise.
31104
31105 * config.guess: Updated from gnulib.
31106 * install-sh: Likewise.
31107
31108 2008-02-28 Robert Millan <rmh@aybabtu.com>
31109
31110 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
31111 (aout_mod_SOURCES): New variable.
31112 (aout_mod_CFLAGS): Likewise.
31113 (aout_mod_LDFLAGS): Likewise.
31114
31115 * conf/i386-ieee1275.rmk: Likewise.
31116
31117 2008-02-28 Robert Millan <rmh@aybabtu.com>
31118
31119 * util/update-grub.in: Reorganise terminal validity check. Accept
31120 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
31121 Based on suggestion by Franklin PIAT.
31122
31123 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
31124
31125 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
31126 function.
31127 * util/getroot.c (grub_util_check_block_device): New function that
31128 returns the given argument if it is a block device and returns NULL else.
31129 * util/grub-probe.c (argument_is_device): New variable.
31130 (probe): Promote device_name from a variable to an argument. Receive
31131 device_name from grub_util_check_block_device() if path is NULL and from
31132 grub_guess_root_device() else. Do not free() device_name anymore.
31133 (options): Introduce new parameter '-d, --device'.
31134 (main): Add description of the new parameter to the help screen.
31135 Rename path variable to argument. Set argument_is_device if the '-d'
31136 option is given. Pass argument to probe() depending on
31137 argument_is_device.
31138
31139 2008-02-24 Bean <bean123ch@gmail.com>
31140
31141 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
31142 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
31143 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
31144 (GRUB_ISO9660_VOLDESC_PART): Likewise.
31145 (GRUB_ISO9660_VOLDESC_END): Likewise.
31146 (grub_iso9660_primary_voldesc): New member escape.
31147 (grub_iso9660_data): New member joliet.
31148 (grub_iso9660_convert_string): New function.
31149 (grub_iso9660_mount): Detect joliet extension.
31150 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
31151 (grub_iso9660_iso9660_label): Likewise.
31152
31153 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
31154 (grub_setup_SOURCES): Add fs/udf.c.
31155 (grub_fstest_SOURCES): Likewise.
31156 (udf_mod_SOURCES): New variable.
31157 (udf_mod_CFLAGS): Likewise.
31158 (udf_mod_LDFLAGS): Likewise.
31159
31160 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
31161 (grub_emu_SOURCES): Likewise.
31162
31163 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
31164
31165 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31166
31167 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
31168
31169 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31170
31171 * fs/udf.c: New file.
31172
31173 2008-02-24 Robert Millan <rmh@aybabtu.com>
31174
31175 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
31176 (normal/lexer.c_DEPENDENCIES): New variables.
31177 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
31178 (normal/lexer.c_DEPENDENCIES): Likewise.
31179 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
31180 (normal/lexer.c_DEPENDENCIES): Likewise.
31181 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
31182 (normal/lexer.c_DEPENDENCIES): Likewise.
31183 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
31184 (normal/lexer.c_DEPENDENCIES): Likewise.
31185 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
31186 (normal/lexer.c_DEPENDENCIES): Likewise.
31187
31188 2008-02-23 Robert Millan <rmh@aybabtu.com>
31189
31190 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
31191 since they were intended to be in hex. This didn't break previously
31192 because of a bug in gpt_partition_map_iterate() (see below).
31193
31194 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
31195 when checking the validity of GPT header.
31196 Remove `partno', since it always provides the same information as `i'.
31197
31198 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
31199
31200 * include/grub/efi/time.h: Fix a wrong comment.
31201
31202 2008-02-19 Pavel Roskin <proski@gnu.org>
31203
31204 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
31205 message.
31206
31207 2008-02-19 Bean <bean123ch@gmail.com>
31208
31209 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
31210 (aout_mod_SOURCES): New variable.
31211 (aout_mod_CFLAGS): Likewise.
31212 (aout_mod_LDFLAGS): Likewise.
31213 (_bsd_mod_SOURCES): New variable.
31214 (_bsd_mod_CFLAGS): Likewise.
31215 (_bsd_mod_LDFLAGS): Likewise.
31216 (bsd_mod_SOURCES): New variable.
31217 (bsd_mod_CFLAGS): Likewise.
31218 (bsd_mod_LDFLAGS): Likewise.
31219
31220 * include/grub/aout.h: New file.
31221
31222 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
31223
31224 * include/grub/i386/bsd.h: New file.
31225
31226 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
31227 to make it public.
31228
31229 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
31230 function is called, so that it's possible to change it inside the hook.
31231 (grub_elf64_load): Likewise.
31232 (grub_elf_file): Don't close the file if elf header is not found.
31233 (grub_elf_close): Close the file if grub_elf_file fails (The new
31234 grub_elf_file won't close it).
31235 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
31236 (grub_elf64_size): Likewise.
31237
31238 * kern/i386/loader.S (grub_unix_real_boot): New function.
31239
31240 * loader/aout.c: New file.
31241
31242 * loader/i386/bsd.c: New file.
31243
31244 * loader/i386/bsd_normal.c: New file.
31245
31246 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
31247
31248 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
31249 can test other formats.
31250
31251 2008-02-19 Robert Millan <rmh@aybabtu.com>
31252
31253 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
31254 (grub_gpt_partition_type_empty): Redefine with macro from
31255 `<grub/gpt_partition.h>'.
31256 (gpt_partition_map_iterate): Adjust partition type comparison.
31257
31258 Export `entry' as partmap-specific `part.data' struct.
31259 (grub_gpt_header, grub_gpt_partentry): Move from here ...
31260
31261 * include/grub/gpt_partition.h (grub_gpt_header)
31262 (grub_gpt_partentry): ... to here (new file).
31263
31264 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
31265
31266 (grub_gpt_partition_type_bios_boot): New const variable, defined
31267 with macro from `<grub/gpt_partition.h>'.
31268
31269 (setup): Replace `first_start' with `embed_region', which keeps
31270 track of the embed region (and is partmap-agnostic).
31271
31272 Replace find_first_partition_start() with find_usable_region(),
31273 which finds a usable region for embedding using partmap-specific
31274 knowledge (supports PC/MSDOS and GPT).
31275
31276 Fix all assumptions that the embed region start at sector 1, using
31277 `embed_region.start' from now on. Similarly, use `embed_region.end'
31278 rather than `first_start' to calculate available size.
31279
31280 In grub_util_info() message, replace "into after the MBR" with an
31281 indication of the specific sector our embed region starts at.
31282
31283 2008-02-19 Robert Millan <rmh@aybabtu.com>
31284
31285 * DISTLIST: Replace `commands/ieee1275/halt.c' and
31286 `commands/ieee1275/reboot.c' with `commands/halt.c' and
31287 `commands/reboot.c'.
31288 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
31289 (halt_mod_SOURCES): Likewise.
31290 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
31291 (halt_mod_SOURCES): Likewise.
31292
31293 2008-02-17 Christian Franke <franke@computer.org>
31294
31295 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
31296
31297 2008-02-17 Robert Millan <rmh@aybabtu.com>
31298
31299 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
31300 set `first_start' to 0 for non-PC/MSDOS partition maps.
31301
31302 2008-02-16 Robert Millan <rmh@aybabtu.com>
31303
31304 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
31305 do not assume partition map is PC/MSDOS before performing checks that
31306 are specific to that layout.
31307
31308 2008-02-13 Robert Millan <rmh@aybabtu.com>
31309
31310 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
31311 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
31312 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
31313
31314 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
31315
31316 * configure.ac: Only a cosmetic change on the handling of
31317 -fno-stack-protector.
31318
31319 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
31320
31321 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
31322 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
31323 reboot.c.
31324 (grub_install_SOURCES): Add halt.mod and reboot.mod.
31325 (halt_mod_SOURCES): New variable.
31326 (halt_mod_CFLAGS): Likewise.
31327 (halt_mod_LDFLAGS): Likewise.
31328 (reboot_mod_SOURCES): Likewise.
31329 (reboot_mod_CFLAGS): Likewise.
31330 (reboot_mod_LDFLAGS): Likewise.
31331
31332 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
31333 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
31334 reboot.c.
31335 (halt_mod_SOURCES): Likewise.
31336 (reboot_mod_SOURCES): Likewise.
31337
31338 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
31339 commands/i386/pc/reboot.c by commands/reboot.c.
31340 (reboot_mod_SOURCES): Likewise.
31341
31342 * commands/i386/pc/reboot.c: merge this file ...
31343
31344 * commands/ieee1275/reboot.c: ... and this file ...
31345
31346 * commands/reboot.c: ... to this file.
31347 Add some precompiler directive to include the correct header for
31348 each machine.
31349
31350 * commands/ieee1275/halt.c: move this file ...
31351
31352 * commands/halt.c: ... to here.
31353 Add some precompiler directive to include the correct header for
31354 each machine.
31355
31356 * include/grub/efi/efi.h (grub_reboot): New function declaration.
31357 (grub_halt): Likewise.
31358
31359 * kern/efi/efi.c (grub_reboot): New function.
31360 (grub_halt): Likewise.
31361
31362 2008-02-12 Robert Millan <rmh@aybabtu.com>
31363
31364 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
31365 /dev (like it is done for /dev/mapper). This doesn't provide support
31366 for EVMS, but at least it is now easy to identify the problem when it
31367 arises.
31368
31369 2008-02-11 Robert Millan <rmh@aybabtu.com>
31370
31371 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
31372 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
31373 comparing it with -1, not 0.
31374
31375 2008-02-10 Robert Millan <rmh@aybabtu.com>
31376
31377 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
31378 `disk/lvm.c'.
31379 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31380 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
31381
31382 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
31383 `disk/lvm.c' to the end of the list.
31384 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
31385 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
31386
31387 2008-02-10 Robert Millan <rmh@aybabtu.com>
31388
31389 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
31390 grub_print_error() instead. This will let user know why we're entering
31391 rescue mode.
31392 Based on suggestions from Sam Morris.
31393
31394 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
31395
31396 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
31397 on remaining N args, instead of "--" arg N times.
31398
31399 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
31400
31401 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
31402 (fill_with_default_glyph): Changed to use unknown_glyph for fill
31403 pattern for unknown glyphs.
31404
31405 2008-02-09 Robert Millan <rmh@aybabtu.com>
31406
31407 * configure.ac: Probe for `help2man'.
31408 * Makefile.in (builddir): New variable.
31409 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
31410 or otherwise add a few flags/options to it.
31411 (install-local): For every executable utility or script that is
31412 installed, invoke $(HELP2MAN) to install a manpage based on --help
31413 output.
31414
31415 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
31416 that it doesn't prevent --help from working in build tree.
31417
31418 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
31419 with `bug-grub@gnu.org'.
31420 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
31421 * util/update-grub.in (usage): New function.
31422 Implement proper argument check, with support for --help and --version
31423 (as well as existing -y).
31424
31425 2008-02-09 Christian Franke <franke@computer.org>
31426
31427 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
31428 avoid overwriting previous output.
31429 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
31430
31431 2008-02-09 Robert Millan <rmh@aybabtu.com>
31432
31433 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
31434 drawing the menu.
31435
31436 2008-02-09 Robert Millan <rmh@aybabtu.com>
31437
31438 * commands/sleep.c: New file.
31439 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
31440 (sleep_mod_SOURCES): New variable.
31441 (sleep_mod_CFLAGS): Likewise.
31442 (sleep_mod_LDFLAGS): Likewise.
31443
31444 2008-02-09 Robert Millan <rmh@aybabtu.com>
31445
31446 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
31447 situations in which we can deduce the RAID size and the superblock
31448 doesn't match it.
31449
31450 2008-02-09 Robert Millan <rmh@aybabtu.com>
31451
31452 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
31453 and return a grub_diskmemberlist_t composed of LVM physical volumes.
31454 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
31455
31456 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
31457 and return a grub_diskmemberlist_t composed of physical array members.
31458 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
31459
31460 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
31461 prototype.
31462 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
31463 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
31464 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
31465
31466 * util/grub-probe.c (probe): Move partmap probing code from here ...
31467 (probe_partmap): ... to here.
31468 (probe): Use probe_partmap() once for the disk we're probing, and
31469 additionally, when such disk contains a memberlist() struct member,
31470 once for each disk that is contained in the structure returned by
31471 memberlist().
31472
31473 2008-02-09 Robert Millan <rmh@aybabtu.com>
31474
31475 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
31476 environment variable to 'all' in order to obtain debug output from
31477 non-util/ code.
31478 * util/i386/pc/grub-setup.c (main): Likewise.
31479
31480 2008-02-08 Robert Millan <rmh@aybabtu.com>
31481
31482 * disk/raid.c (grub_raid_scan_device): Check for
31483 `array->device[sb.this_disk.number]' rather than for
31484 `array->device[sb.this_disk.number]->name', since the latter is not
31485 guaranteed to be accessible.
31486
31487 2008-02-08 Robert Millan <rmh@aybabtu.com>
31488
31489 * disk/raid.c: Update copyright.
31490 * fs/cpio.c: Likewise.
31491 * include/grub/raid.h: Likewise.
31492 * loader/i386/pc/multiboot.c: Likewise.
31493 * util/hostfs.c: Likewise.
31494
31495 2008-02-08 Robert Millan <rmh@aybabtu.com>
31496
31497 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
31498 to a grub_disk_t array.
31499 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
31500 `device[x]'.
31501 (grub_raid_scan_device): Replace `device[x].name' accesses with
31502 `device[x]->name'. Simplify initialization of `array->device[x]'.
31503
31504 2008-02-08 Robert Millan <rmh@aybabtu.com>
31505
31506 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
31507 grub_dprintf() calls.
31508 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
31509 error message.
31510
31511 2008-02-07 Christian Franke <franke@computer.org>
31512
31513 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
31514 instead of fseek and ftell to support large files.
31515 (grub_hostfs_read): Likewise.
31516
31517 2008-02-07 Robert Millan <rmh@aybabtu.com>
31518
31519 Patch from Jeroen Dekkers.
31520 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
31521 failure, since successfully reading all array members might not be
31522 required.
31523
31524 2008-02-06 Robert Millan <rmh@aybabtu.com>
31525
31526 * util/grub-probe.c (probe): Simplify partmap probing (with the
31527 assumption that the first word up to the underscore equals to
31528 the module name).
31529
31530 2008-02-06 Christian Franke <franke@computer.org>
31531
31532 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
31533 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
31534 last block of a cpio or tar stream.
31535 Check for "TRAILER!!!" instead of any empty data
31536 block to detect last block of a cpio stream.
31537 (grub_cpio_dir): Fix constness of variable np.
31538 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
31539 cpio or tar trailer is detected. This fixes a crash
31540 on open of a non existing file.
31541
31542 2008-02-05 Bean <bean123ch@gmail.com>
31543
31544 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
31545 address of entry.
31546 (grub_multiboot_load_elf64): Likewise.
31547 (grub_multiboot): Initialize mbi structure.
31548
31549 * util/grub-fstest.c: Don't include unused header file script.h.
31550
31551 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
31552 of file.
31553 (grub_fstest_SOURCES): Likewise.
31554
31555 2008-02-05 Robert Millan <rmh@aybabtu.com>
31556
31557 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
31558 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
31559 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
31560 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
31561
31562 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
31563 (translation_table): Replace hardcoded values with macros
31564 provided by `<grub/term.h>'.
31565
31566 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
31567 (keyboard_map): Correct/add a few values, with macros provided
31568 by `<grub/term.h>'.
31569 (keyboard_map_shift): Zero values that don't differ from their
31570 `keyboard_map' equivalents.
31571 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
31572 Discard the second scan code that is always sent by Caps lock.
31573 Only use `keyboard_map_shift' when it provides a non-zero value,
31574 otherwise fallback to `keyboard_map'.
31575
31576 2008-02-04 Bean <bean123ch@gmail.com>
31577
31578 * Makefile.in (enable_grub_fstest): New variable.
31579
31580 * conf/common.rmk (grub_fstest_init.lst): New rule.
31581 (grub_fstest_init.h): Likewise.
31582 (grub_fstest_init.c): Likewise.
31583 (util/grub-fstest.c_DEPENDENCIES): New variable.
31584 (grub_fstest_SOURCES): Likewise.
31585
31586 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
31587
31588 * util/grub-fstest.c: New file.
31589
31590 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
31591
31592 Make grub-setup handle a separate root device.
31593
31594 * util/i386/pc/grub-setup.c (setup): Always open the root device,
31595 so that the root device can be compared with the destination
31596 device.
31597 When embedding the core image, if the root and destination devices
31598 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
31599 0xFF.
31600 When not embedding, set ROOT_DRIVE to 0xFF.
31601
31602 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
31603
31604 Add support for having a grub directory in a different drive. This
31605 is still only the data handling part.
31606
31607 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
31608 (codestart): Save %dh in GRUB_ROOT_DRIVE.
31609 (grub_root_drive): New variable.
31610
31611 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
31612 instead of GRUB_BOOT_DRIVE to construct a device name. Set
31613 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
31614 as it was.
31615
31616 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
31617
31618 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
31619 macro.
31620 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
31621
31622 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
31623 is bogus, because PXE booting does not specify any drive
31624 correctly.
31625
31626 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
31627 am not sure if this is really correct.
31628
31629 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
31630 is always identical to the boot drive when booting from a CD.
31631
31632 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
31633 longer.
31634 (root_drive): New variable.
31635 (real_start): Unconditionally set %dh to ROOT_DRIVE.
31636 (setup_sectors): Push %dx right after popping it, because %dh will
31637 be modified later.
31638 (copy_buffer): Restore %dx.
31639
31640 2008-02-03 Robert Millan <rmh@aybabtu.com>
31641
31642 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
31643 use `cdboot.img' for cdrom images.
31644
31645 2008-02-03 Robert Millan <rmh@aybabtu.com>
31646
31647 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
31648 only setup gfxterm when `font' command has succeeded.
31649
31650 2008-02-03 Robert Millan <rmh@aybabtu.com>
31651
31652 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
31653 (grub_rescue_cmd_multiboot_loader)
31654 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
31655
31656 2008-02-03 Pavel Roskin <proski@gnu.org>
31657
31658 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
31659 %edx and %esi from stack only after grub_gate_a20() is called.
31660 grub_gate_a20() clobbers %edx.
31661
31662 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
31663
31664 * configure.ac (AC_INIT): Bumped to 1.96.
31665
31666 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
31667 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
31668 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
31669 video/readers/png.c.
31670
31671 2008-02-03 Bean <bean123ch@gmail.com>
31672
31673 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
31674 (cdboot_img_SOURCES): New variable.
31675 (cdboot_img_ASFLAGS): New variable.
31676 (cdboot_img_LDFLAGS): New variable.
31677
31678 * boot/i386/pc/cdboot.S: New file.
31679
31680 * disk/i386/pc/biosdisk.c (cd_start): New variable.
31681 (cd_count): Likewise.
31682 (grub_biosdisk_get_drive): Add support for cd device.
31683 (grub_biosdisk_call_hook): Likewise.
31684 (grub_biosdisk_iterate): Likewise.
31685 (grub_biosdisk_open): Likewise.
31686 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
31687 (grub_biosdisk_rw): Support reading from cd device.
31688 (GRUB_MOD_INIT): Iterate cd devices.
31689
31690 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
31691 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
31692 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
31693
31694 * kern/i386/pc/init.c (make_install_device): Check for cd device.
31695
31696 2008-02-02 Robert Millan <rmh@aybabtu.com>
31697
31698 * commands/read.c: New file.
31699 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
31700 (read_mod_SOURCES): New variable.
31701 (read_mod_CFLAGS): Likewise.
31702 (read_mod_LDFLAGS): Likewise.
31703
31704 2008-02-02 Robert Millan <rmh@aybabtu.com>
31705
31706 * normal/main.c (grub_normal_execute): Check for `menu->size' when
31707 determining whether menu has to be displayed.
31708
31709 2008-02-02 Marco Gerards <marco@gnu.org>
31710
31711 * bus/pci.c: New file.
31712
31713 * include/grub/pci.h: Likewise.
31714
31715 * include/grub/i386/pc/pci.h: Likewise.
31716
31717 * commands/lspci.c: Likewise.
31718
31719 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
31720 `lspci.mod'.
31721 (pci_mod_SOURCES): New variable.
31722 (pci_mod_CFLAGS): Likewise.
31723 (pci_mod_LDFLAGS): Likewise.
31724 (lspci_mod_SOURCES): Likewise.
31725 (lspci_mod_CFLAGS): Likewise.
31726 (lspci_mod_LDFLAGS): Likewise.
31727
31728 2008-02-02 Bean <bean123ch@gmail.com>
31729
31730 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
31731 (grub_ufs_get_file_block): Fix indirect block calculation problem.
31732
31733 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
31734 (grub_xfs_btree_node): New structure.
31735 (grub_xfs_btree_root): New structure.
31736 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
31737 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
31738 (GRUB_XFS_EXTENT_BLOCK): Likewise.
31739 (GRUB_XFS_EXTENT_SIZE): Likewise.
31740 (grub_xfs_read_block): Support btree format type.
31741 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
31742 Use directory block as basic unit.
31743
31744 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
31745
31746 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
31747 __attribute__ ((__regparm__ (1))).
31748
31749 2008-02-01 Robert Millan <rmh@aybabtu.com>
31750
31751 Correct a mistake in previous commit.
31752
31753 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
31754 top.
31755 (normal/command.c_DEPENDENCIES): New variable.
31756
31757 2008-02-01 Robert Millan <rmh@aybabtu.com>
31758
31759 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
31760 top.
31761 (normal/command.c_DEPENDENCIES): New variable.
31762 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
31763 * conf/i386-ieee1275.rmk: Likewise.
31764 * conf/i386-linuxbios.rmk: Likewise.
31765 * conf/i386-pc.rmk: Likewise.
31766 * conf/sparc64-ieee1275.rmk: Likewise.
31767 * conf/powerpc-ieee1275.rmk: Likewise.
31768 (grub_emu_SOURCES): Add `fs/fshelp.c'.
31769
31770 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
31771
31772 2008-02-01 Robert Millan <rmh@aybabtu.com>
31773
31774 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
31775 call at beginning of function.
31776
31777 2008-01-31 Pavel Roskin <proski@gnu.org>
31778
31779 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
31780 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
31781 (grub_mkrescue_SOURCES): Likewise.
31782 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
31783
31784 2008-01-30 Robert Millan <rmh@aybabtu.com>
31785
31786 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
31787 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
31788 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
31789 (grub_probe_SOURCES): ... to here.
31790
31791 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
31792 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
31793 * conf/i386-ieee1275.rmk: Likewise.
31794 * conf/i386-linuxbios.rmk: Likewise.
31795 * conf/powerpc-ieee1275.rmk: Likewise.
31796
31797 2008-01-30 Tristan Gingold <gingold@free.fr>
31798
31799 * kern/rescue.c: Silently accept empty lines.
31800
31801 2008-01-29 Bean <bean123ch@gmail.com>
31802
31803 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
31804 (real_code_2): Code cleanup and change comment style.
31805 (move_memory): Avoid using 32-bit address mode.
31806
31807 2008-01-29 Bean <bean123ch@gmail.com>
31808
31809 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
31810 (png_mod_SOURCES): New variable.
31811 (png_mod_CFLAGS): Likewise.
31812 (png_mod_LDFLAGS): Likewise.
31813
31814 * video/readers/png.c: New file.
31815
31816 2008-01-28 Robert Millan <rmh@aybabtu.com>
31817
31818 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
31819 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
31820 `ifndef GRUB_MOD_GAP' hack.
31821 * util/elf/grub-mkimage.c (add_segments): Likewise.
31822
31823 2008-01-27 Robert Millan <rmh@aybabtu.com>
31824
31825 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
31826 `GRUB_MOD_GAP' for platforms in which it's not defined.
31827 * util/elf/grub-mkimage.c (add_segments): Likewise.
31828
31829 2008-01-27 Robert Millan <rmh@aybabtu.com>
31830
31831 Get grub-emu to build again (including parallel builds).
31832
31833 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
31834 Split into ...
31835 (util/grub-emu.c_DEPENDENCIES): ... this, ...
31836 (normal/execute.c_DEPENDENCIES): ... this, ...
31837 (grub-emu_DEPENDENCIES): ... and this.
31838
31839 * conf/i386-efi.rmk: Likewise.
31840 * conf/i386-linuxbios.rmk: Likewise.
31841 * conf/i386-ieee1275.rmk: Likewise.
31842 * conf/powerpc-ieee1275.rmk: Likewise.
31843 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
31844
31845 2008-01-27 Robert Millan <rmh@aybabtu.com>
31846
31847 * NEWS: Add a few items.
31848
31849 2008-01-27 Robert Millan <rmh@aybabtu.com>
31850
31851 Fix parallel builds with grub-emu. Based on earlier commit for
31852 grub-probe and grub-setup.
31853
31854 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
31855 (util/grub-emu.c_DEPENDENCIES): ... this.
31856 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
31857 (util/grub-emu.c_DEPENDENCIES): ... this.
31858 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
31859 (util/grub-emu.c_DEPENDENCIES): ... this.
31860 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
31861 (util/grub-emu.c_DEPENDENCIES): ... this.
31862 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
31863 (util/grub-emu.c_DEPENDENCIES): ... this.
31864
31865 2008-01-27 Pavel Roskin <proski@gnu.org>
31866
31867 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
31868 to create a gap between _end and the modules added to the image
31869 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
31870 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
31871 * util/elf/grub-mkimage.c (add_segments): Likewise.
31872
31873 2008-01-26 Pavel Roskin <proski@gnu.org>
31874
31875 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
31876 just return an error.
31877
31878 2008-01-26 Bean <bean123ch@gmail.com>
31879
31880 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
31881 (grub_reiserfs_get_item): Save offset of the next item.
31882 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
31883
31884 2008-01-25 Robert Millan <rmh@aybabtu.com>
31885
31886 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
31887 make all filesystem sources appear together (possibly fixing omissions
31888 while at it).
31889 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
31890 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31891 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
31892 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31893
31894 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
31895 add `kern/file.c'.
31896 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
31897 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
31898 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
31899 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
31900
31901 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
31902 (probe): Add a sanity check to make sure of our ability to read
31903 requested files when probing for filesystem type.
31904
31905 * genmk.rb: Update copyright year (2007).
31906
31907 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
31908 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
31909 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
31910 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
31911 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
31912 : Remove function prototypes.
31913
31914 2008-01-25 Robert Millan <rmh@aybabtu.com>
31915
31916 Revert my previous commits (based on wrong assumption of how grub_errno
31917 works).
31918
31919 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
31920 * kern/file.c (grub_file_open): Likewise.
31921
31922 2008-01-24 Pavel Roskin <proski@gnu.org>
31923
31924 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
31925 that hang if GRUB tries to setup colors.
31926 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
31927 colors for firmwares that don't support it.
31928 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
31929 Recognize Open Hack'Ware, set flags to work around its
31930 limitations.
31931
31932 2008-01-24 Robert Millan <rmh@aybabtu.com>
31933
31934 * kern/file.c (grub_file_open): Do not account previous failures of
31935 unrelated functions when grub_errno is checked for.
31936 Reported by Oleg Strikov.
31937
31938 2008-01-24 Bean <bean123ch@gmail.com>
31939
31940 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
31941 (grub_ufs_sblock): New member volume name.
31942 (grub_ufs_find_file): Fix string copy bug.
31943 (grub_ufs_label): Implement this function properly.
31944
31945 * fs/hfs.c (grub_hfs_cnid_type): New enum.
31946 (grub_hfs_iterate_records): Use the correct file number for extents
31947 and catalog file. Fix problem in next index calculation.
31948 (grub_hfs_find_node): Replace recursive function call with loop.
31949 (grub_hfs_iterate_dir): Replace recursive function call with loop.
31950
31951 2008-01-23 Robert Millan <rmh@aybabtu.com>
31952
31953 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
31954 `<grub/symbol.h>' and `<grub/multiboot.h>'.
31955 (grub_multiboot2_real_boot): New function prototype.
31956
31957 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
31958 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
31959
31960 * kern/i386/ieee1275/init.c (grub_os_area_addr)
31961 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
31962
31963 2008-01-23 Robert Millan <rmh@aybabtu.com>
31964
31965 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
31966 #ifdef'ed out grub_printf().
31967
31968 2008-01-23 Robert Millan <rmh@aybabtu.com>
31969
31970 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
31971 grub_dprintf calls, since they make "debug=all" mode unusable.
31972 (grub_console_checkkey): Likewise.
31973
31974 2008-01-23 Robert Millan <rmh@aybabtu.com>
31975
31976 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
31977 `term/i386/pc/at_keyboard.c'.
31978 (pkglib_MODULES): Add `serial.mod'.
31979 (serial_mod_SOURCES): New variable.
31980 (serial_mod_CFLAGS): Likewise.
31981 (serial_mod_LDFLAGS): Likewise.
31982
31983 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
31984 `<grub/powerpc/ieee1275/console.h>'.
31985 (grub_keyboard_controller_init): New function prototype.
31986 (grub_console_checkkey): Likewise.
31987 (grub_console_getkey): Likewise.
31988
31989 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
31990 keyboard on i386.
31991
31992 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
31993 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
31994
31995 2008-01-23 Robert Millan <rmh@aybabtu.com>
31996
31997 * kern/i386/pc/init.c (make_install_device): When memdisk image is
31998 present, "(memdisk)/boot/grub" becomes the default prefix.
31999
32000 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
32001 a memdisk tarball with all the modules. Add --overlay=DIR option that
32002 allows users to overlay additional files into the image.
32003
32004 2008-01-23 Robert Millan <rmh@aybabtu.com>
32005
32006 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
32007 and `machine/memory.h'.
32008 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
32009 (_multiboot_mod_SOURCES): New variable.
32010 (_multiboot_mod_CFLAGS): Likewise.
32011 (_multiboot_mod_LDFLAGS): Likewise.
32012 (multiboot_mod_SOURCES): Likewise.
32013 (multiboot_mod_CFLAGS): Likewise.
32014 (multiboot_mod_LDFLAGS): Likewise.
32015
32016 * include/grub/i386/ieee1275/loader.h: New file.
32017
32018 * include/grub/i386/ieee1275/machine.h: Likewise.
32019
32020 * include/grub/i386/ieee1275/memory.h: Likewise.
32021
32022 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
32023 variable declaration.
32024 (grub_os_area_size): Likewise.
32025
32026 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
32027 (grub_lower_mem, grub_upper_mem): New variables.
32028 (grub_stop_floppy): New function (just to make
32029 grub_multiboot2_real_boot() happy).
32030
32031 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
32032 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
32033 (grub_stop): New function.
32034 Include `"../realmode.S"' and `"../loader.S"'.
32035
32036 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
32037 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
32038
32039 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
32040 rely on grub_multiboot2_real_boot() for final boot.
32041
32042 2008-01-22 Robert Millan <rmh@aybabtu.com>
32043
32044 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
32045 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
32046 device that doesn't look like an SD card.
32047 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
32048 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
32049 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
32050 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
32051 found.
32052
32053 2008-01-22 Robert Millan <rmh@aybabtu.com>
32054
32055 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
32056 avoid claiming over our own code.
32057
32058 2008-01-22 Bean <bean123ch@gmail.com>
32059
32060 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
32061 (jpeg_mod_SOURCES): New variable.
32062 (jpeg_mod_CFLAGS): Likewise.
32063 (jpeg_mod_LDFLAGS): Likewise.
32064
32065 * video/readers/jpeg.c : New file.
32066
32067 2008-01-22 Bean <bean123ch@gmail.com>
32068
32069 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
32070 there are no more items.
32071
32072 2008-01-21 Robert Millan <rmh@aybabtu.com>
32073
32074 * kern/mm.c (grub_mm_init_region): Improve debug message.
32075
32076 2008-01-21 Robert Millan <rmh@aybabtu.com>
32077
32078 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
32079 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
32080 address.
32081 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
32082 a C macro.
32083 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
32084 Indicates start of upper memory.
32085 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
32086 (generate_image): Abort when image size is big enough to corrupt
32087 upper memory.
32088
32089 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
32090 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
32091 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
32092 instead of hardcoding 0xA0000.
32093 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
32094 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
32095 instead of hardcoding 0xA0000.
32096
32097 2008-01-21 Robert Millan <rmh@aybabtu.com>
32098
32099 * disk/memdisk.c (memdisk_size): New variable.
32100 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
32101 `memdisk_size'.
32102 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
32103 image to dynamic memory.
32104 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
32105 `memdisk_size'. Free memdisk block.
32106
32107 2008-01-21 Robert Millan <rmh@aybabtu.com>
32108
32109 Fix detection of very small filesystems (like tar).
32110
32111 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
32112 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
32113 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
32114 a problem with this disk).
32115
32116 2008-01-21 Robert Millan <rmh@aybabtu.com>
32117
32118 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
32119 on grub_biosdisk_rw_standard() error.
32120
32121 2008-01-21 Robert Millan <rmh@aybabtu.com>
32122
32123 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
32124 recent changes.
32125 * kern/elf.c: Likewise.
32126 * kern/ieee1275/ieee1275.c: Likewise.
32127 * kern/powerpc/ieee1275/openfw.c: Likewise.
32128 * term/ieee1275/ofconsole.c: Likewise.
32129
32130 2008-01-21 Robert Millan <rmh@aybabtu.com>
32131
32132 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
32133
32134 * include/grub/kernel.h (grub_arch_memdisk_addr)
32135 (grub_arch_memdisk_size): Moved from here ...
32136
32137 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
32138 (grub_arch_memdisk_size): ... to here.
32139
32140 2008-01-21 Robert Millan <rmh@aybabtu.com>
32141
32142 Mostly based on bugfix from Bean.
32143
32144 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
32145 attribute with hook() parameter.
32146 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
32147 declaration.
32148 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
32149 attribute with hook() parameter.
32150 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
32151 declaration.
32152
32153 2008-01-21 Robert Millan <rmh@aybabtu.com>
32154
32155 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
32156 (pkglib_MODULES): Add `memdisk.mod'.
32157 (memdisk_mod_SOURCES): New variable.
32158 (memdisk_mod_CFLAGS): Likewise.
32159 (memdisk_mod_LDFLAGS): Likewise.
32160
32161 * disk/memdisk.c: New file.
32162
32163 * include/grub/disk.h (grub_disk_dev_id): Add
32164 `GRUB_DISK_DEVICE_MEMDISK_ID'.
32165
32166 * include/grub/i386/pc/kernel.h
32167 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
32168 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
32169 (grub_kernel_image_size): New variable declaration.
32170 (grub_total_module_size): Likewise.
32171 (grub_memdisk_image_size): Likewise.
32172
32173 * include/grub/i386/pc/memory.h
32174 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
32175
32176 * include/grub/kernel.h: Include `<grub/symbol.h>'.
32177 (grub_arch_memdisk_addr): New variable declaration.
32178 (grub_arch_memdisk_size): Likewise.
32179
32180 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
32181 (grub_arch_memdisk_size): Likewise.
32182
32183 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
32184 (codestart): Replace hardcoded `0x100000' with
32185 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
32186
32187 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
32188 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
32189 not NULL, append the contents of the file it refers to, at the end of
32190 the compressed kernel image. Initialize `grub_memdisk_image_size'
32191 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
32192 (options): Add "memdisk"|'m' option.
32193 (main): Parse --memdisk|-m option, and pass user-provided path as
32194 parameter to generate_image().
32195
32196 2008-01-20 Robert Millan <rmh@aybabtu.com>
32197
32198 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
32199 grub_dprintf() calls from here ...
32200 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
32201
32202 2008-01-20 Robert Millan <rmh@aybabtu.com>
32203
32204 Fix detection of "real mode" when /options/real-mode? doesn't exist.
32205
32206 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
32207 declaration.
32208 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
32209 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
32210 `GRUB_IEEE1275_FLAG_REAL_MODE'.
32211 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
32212 property).
32213 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
32214 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
32215
32216 2008-01-19 Robert Millan <rmh@aybabtu.com>
32217
32218 Get rid of confusing function (superseded by
32219 `grub_ieee1275_get_integer_property')
32220 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
32221 prototype.
32222 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
32223 function.
32224 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
32225 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
32226 in native endianness from grub_ieee1275_get_integer_property().
32227
32228 2008-01-19 Robert Millan <rmh@aybabtu.com>
32229
32230 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
32231 command after "shut-down", since implementations differ on which
32232 the command for halt is.
32233
32234 2008-01-19 Robert Millan <rmh@aybabtu.com>
32235
32236 * include/grub/i386/linuxbios/console.h: Add header protection.
32237 (grub_keyboard_controller_init): New function prototype.
32238 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
32239 (KEYBOARD_COMMAND_READ): Likewise.
32240 (KEYBOARD_COMMAND_WRITE): Likewise.
32241 (KEYBOARD_SCANCODE_SET1): Likewise.
32242 (grub_keyboard_controller_write): New function.
32243 (grub_keyboard_controller_read): Likewise.
32244 (grub_keyboard_controller_init): Likewise.
32245
32246 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
32247 (grub_console_init): On coreboot/LinuxBIOS, call
32248 grub_keyboard_controller_init().
32249
32250 2008-01-19 Robert Millan <rmh@aybabtu.com>
32251
32252 PowerPC changes provided by Pavel Roskin.
32253
32254 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
32255 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
32256 don't rely on cmain() doing it.
32257 * kern/i386/ieee1275/startup.S (_start): Store %eax in
32258 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
32259
32260 2008-01-16 Robert Millan <rmh@aybabtu.com>
32261
32262 * include/grub/i386/linuxbios/memory.h
32263 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
32264 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
32265 receive `table_header' as argument. Instead, probe for it in the
32266 known memory ranges where it can be present.
32267 (grub_available_iterate): Do not pass a fixed `table_header' address
32268 to grub_linuxbios_table_iterate().
32269
32270 2008-01-15 Robert Millan <rmh@aybabtu.com>
32271
32272 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
32273 * conf/i386-ieee1275.rmk: New file.
32274 * include/grub/i386/ieee1275/console.h: Likewise.
32275 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
32276 * include/grub/i386/ieee1275/kernel.h: Likewise.
32277 * include/grub/i386/ieee1275/time.h: Likewise.
32278 * kern/i386/ieee1275/init.c: Likewise.
32279 * kern/i386/ieee1275/startup.S: Likewise.
32280
32281 2008-01-15 Robert Millan <rmh@aybabtu.com>
32282
32283 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
32284 when pointers are 32-bit (but still do set it to one when they are
32285 64-bit).
32286
32287 2008-01-15 Robert Millan <rmh@aybabtu.com>
32288
32289 * include/grub/ieee1275/ieee1275.h
32290 (grub_ieee1275_get_integer_property): New function prototype.
32291
32292 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
32293 (grub_ieee1275_get_integer_property): New function. Wraps around
32294 grub_ieee1275_get_property() to handle endianness.
32295
32296 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
32297 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
32298 where appropriate.
32299 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
32300 (grub_map): Likewise.
32301 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
32302
32303 2008-01-15 Bean <bean123ch@gmail.com>
32304
32305 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
32306 (grub_script_execute_cmdline): Reset grub_errno.
32307
32308 * normal/main.c (read_config_file): Reset grub_errno.
32309
32310 * normal/parse.y (script_init): New.
32311 (script): Move function and menuentry here.
32312 (delimiter): New.
32313 (command): Add delimiter at the end of command.
32314 (commands): Adjust to match the new command.
32315 (commandblock): Remove grub_script_lexer_record_start.
32316 (menuentry): Add grub_script_lexer_record_start, use the new commands.
32317 (if): Use the new commands.
32318
32319 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
32320
32321 2008-01-15 Robert Millan <rmh@aybabtu.com>
32322
32323 * normal/menu.c (run_menu): Move timeout message from here ...
32324 (print_timeout): ... to here.
32325 (run_menu): Use print_timeout() once during initial draw to print
32326 the whole message, and again in every clock tick to update only
32327 the number of seconds.
32328
32329 2008-01-15 Robert Millan <rmh@aybabtu.com>
32330
32331 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
32332 actual size of `available' from grub_ieee1275_get_property(), and
32333 restrict parsing to that bound.
32334
32335 2008-01-15 Christian Franke <franke@computer.org>
32336
32337 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
32338 (argp_program_version): Remove variable.
32339 (argp_program_bug_address): Likewise.
32340 (options): Convert from struct argp_option to struct option.
32341 (struct arguments): Remove.
32342 (parse_opt): Remove.
32343 (usage): New function.
32344 (main): Replace struct args members by simple variables.
32345 Replace argp_parse() by getopt_long().
32346 Add switch to evaluate options.
32347 Add missing "(...)" around root_dev in prefix string.
32348
32349 2008-01-14 Robert Millan <rmh@aybabtu.com>
32350
32351 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
32352 for grub_ieee1275_exit(), in order to improve portability.
32353
32354 2008-01-14 Robert Millan <rmh@aybabtu.com>
32355
32356 * util/grub.d/10_linux.in (prefix): Define.
32357 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
32358
32359 2008-01-13 Pavel Roskin <proski@gnu.org>
32360
32361 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
32362 grub_errno if no errors have been detected.
32363
32364 2008-01-12 Robert Millan <rmh@aybabtu.com>
32365
32366 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
32367 (grub_util_get_dev_abstraction): New function prototype.
32368
32369 * util/getroot.c: Include `<grub/util/getroot.h>'
32370 (grub_util_get_grub_dev): Move detection of abstraction type to ...
32371 (grub_util_get_dev_abstraction): ... here (new function).
32372
32373 * util/grub-probe.c: Convert PRINT_* to an enum. Add
32374 `PRINT_ABSTRACTION'.
32375 (probe): Probe for abstraction type when requested.
32376 (main): Understand `--target=abstraction'.
32377
32378 * util/i386/efi/grub-install.in: Add abstraction module to core
32379 image when it is found to be necessary.
32380 * util/i386/pc/grub-install.in: Likewise.
32381 * util/powerpc/ieee1275/grub-install.in: Likewise.
32382
32383 * util/update-grub_lib.in (font_path): Return system path without
32384 converting to GRUB path.
32385 * util/update-grub.in: Convert system path returned by font_path()
32386 to a GRUB path. Use `grub-probe -t abstraction' to determine what
32387 abstraction module is needed for loading fonts (if any). Export
32388 that as `GRUB_PRELOAD_MODULES'.
32389 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
32390 insmod commands).
32391
32392 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
32393
32394 Remove some unused code from reiserfs.
32395
32396 * fs/reiserfs.c (struct grub_reiserfs_key)
32397 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
32398 (struct grub_reiserfs_node_body): Removed.
32399 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
32400 Likewise.
32401 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
32402 Likewise.
32403 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
32404 Likewise.
32405 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
32406 Likewise.
32407 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
32408 Likewise.
32409 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
32410 Likewise.
32411 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
32412 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
32413 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
32414
32415 2008-01-10 Robert Millan <rmh@aybabtu.com>
32416
32417 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
32418 Determines if a file is garbage left by packaging systems, etc.
32419 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
32420 for processing /etc/grub.d scripts.
32421 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
32422 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
32423 as a condition for processing Linux images.
32424
32425 2008-01-10 Pavel Roskin <proski@gnu.org>
32426
32427 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
32428 to compile reiserfs.c on PowerPC.
32429
32430 2008-01-10 Robert Millan <rmh@aybabtu.com>
32431
32432 * kern/device.c (grub_device_iterate): Do not abort device iteration
32433 when one of the devices cannot be opened.
32434 * kern/disk.c (grub_disk_open): Do not account previous failures of
32435 unrelated functions when grub_errno is checked for.
32436
32437 2008-01-08 Robert Millan <rmh@aybabtu.com>
32438
32439 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
32440 `! grub_linux_is_bzimage', change order of address comparison to make
32441 it more intuitive, and improve "too big zImage" error message.
32442
32443 2008-01-08 Robert Millan <rmh@aybabtu.com>
32444
32445 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
32446 `$(update-grub_DATA)'.
32447 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
32448 targets.
32449
32450 2008-01-07 Robert Millan <rmh@aybabtu.com>
32451
32452 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
32453 which instruction is modified by grub-setup during installation
32454 (since it wasn't obvious by only looking at this file).
32455
32456 2008-01-07 Robert Millan <rmh@aybabtu.com>
32457
32458 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
32459 listing actual TODO items.
32460
32461 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
32462
32463 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
32464 correctly.
32465 (grub_reiserfs_get_key_offset): Likewise.
32466 (grub_reiserfs_set_key_offset): Likewise.
32467 (grub_reiserfs_set_key_type): Likewise.
32468 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
32469
32470 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
32471 better to remove the bitfield version completely.
32472
32473 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
32474
32475 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
32476 allocated from the heap, due to the fshelp implementation.
32477 (grub_reiserfs_dir): Free NODE, due to the same reason.
32478
32479 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
32480
32481 Mostly from Vincent Pelletier:
32482
32483 * fs/reiserfs.c: New file.
32484
32485 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
32486 (reiserfs_mod_SOURCES): New variable.
32487 (reiserfs_mod_CFLAGS): Likewise.
32488 (reiserfs_mod_LDFLAGS): Likewise.
32489
32490 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
32491 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
32492 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
32493 normal/color.c.
32494
32495 2008-01-06 Robert Millan <rmh@aybabtu.com>
32496
32497 * normal/color.c: Remove `<grub/env.h>'.
32498
32499 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
32500
32501 * include/grub/normal.h: Include <grub/env.h>.
32502
32503 2008-01-05 Robert Millan <rmh@aybabtu.com>
32504
32505 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
32506 usage example with `(hd0,1)'.
32507 Reported by Samuel Thibault.
32508
32509 2008-01-05 Robert Millan <rmh@aybabtu.com>
32510
32511 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
32512 (grub_linux_boot_zimage): Rename to ...
32513 (grub_linux_boot): ... this.
32514 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
32515 (grub_linux_boot_zimage): Conditionalize zImage copy.
32516
32517 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
32518 (grub_linux_boot_bzimage): Remove prototype.
32519 (grub_linux_boot_zimage): Rename to ...
32520 (grub_linux_boot): ... this.
32521
32522 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
32523 (grub_linux_boot): Remove function.
32524
32525 2008-01-05 Robert Millan <rmh@aybabtu.com>
32526
32527 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
32528 (grub_env_write_color_highlight): Likewise.
32529 (grub_wait_after_message): Likewise.
32530
32531 * normal/color.c: New file.
32532
32533 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
32534 (normal_mod_DEPENDENCIES): Likewise.
32535
32536 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
32537 (normal_mod_DEPENDENCIES): Likewise.
32538
32539 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
32540 (normal_mod_DEPENDENCIES): Likewise.
32541
32542 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
32543 (normal_mod_DEPENDENCIES): Likewise.
32544
32545 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
32546 for waiting after a message is printed.
32547 * normal/main.c (read_config_file): Likewise.
32548 (grub_normal_init): Register grub_env_write_color_normal() and
32549 grub_env_write_color_highlight() hooks. Mark `color_normal' and
32550 `color_highlight' variables as global.
32551
32552 * normal/menu.c (grub_wait_after_message): New function.
32553 (grub_color_menu_normal): New variable. Replaces ...
32554 (GRUB_COLOR_MENU_NORMAL): ... this macro.
32555 (grub_color_menu_highlight): New variable. Replaces ...
32556 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
32557 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
32558 `GRUB_TERM_COLOR_STANDARD'.
32559 (print_message): Use `grub_setcolorstate' to reload colors. Rename
32560 `normal_code' and `highlight_code' to `old_color_normal' and
32561 `old_color_highlight', respectively.
32562 (grub_menu_init_page): Update colors when drawing the menu, based on
32563 `menu_color_normal' and `menu_color_highlight' variables.
32564 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
32565 a message is printed.
32566
32567 2008-01-05 Robert Millan <rmh@aybabtu.com>
32568
32569 * kern/env.c (grub_env_context_open): Propagate hooks for global
32570 variables to new context.
32571
32572 * kern/main.c (grub_set_root_dev): Export `root' variable.
32573
32574 2008-01-05 Robert Millan <rmh@aybabtu.com>
32575
32576 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
32577 discs unconditionally, since udev and others have options to provide
32578 them.
32579
32580 2008-01-05 Robert Millan <rmh@aybabtu.com>
32581
32582 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
32583
32584 2008-01-04 Christian Franke <franke@computer.org>
32585
32586 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
32587 of eisa_mmap.
32588
32589 2008-01-03 Pavel Roskin <proski@gnu.org>
32590
32591 * kern/i386/linuxbios/init.c: Put "void" to all function
32592 declarations with no arguments.
32593 * kern/powerpc/ieee1275/init.c: Likewise.
32594 * term/i386/pc/at_keyboard.c: Likewise.
32595 * term/i386/pc/vga_text.c: Likewise.
32596 * util/grub-mkdevicemap.c: Likewise.
32597
32598 2008-01-02 Robert Millan <rmh@aybabtu.com>
32599
32600 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
32601 message when loaded image is out of bounds.
32602 (grub_multiboot_load_elf64): Likewise.
32603
32604 2008-01-02 Pavel Roskin <proski@gnu.org>
32605
32606 * util/grub.d/10_linux.in: Try version without ".old" when
32607 looking for initrd. It's better to use initrd from the newer
32608 kernel of the same version than no initrd at all.
32609
32610 2008-01-01 Robert Millan <rmh@aybabtu.com>
32611
32612 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
32613
32614 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
32615
32616 * include/grub/video.h: Added grub_video_unmap_color and
32617 grub_video_get_active_render_target.
32618 (grub_video_adapter): Added unmap_color and get_active_render_target.
32619
32620 * video/video.c: Added grub_video_unmap_color and
32621 grub_video_get_active_render_target.
32622 (grub_video_get_info): Changed method to accept NULL pointer as an
32623 argument to allow detection of active video adapter.
32624
32625 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
32626 grub_video_vbe_unmap_color_int.
32627 Added grub_video_vbe_unmap_color and
32628 grub_video_vbe_get_active_render_target.
32629 (grub_video_vbe_adapter): Added unmap_color and
32630 get_active_render_target.
32631
32632 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
32633 with grub_video_vbe_unmap_color_int.
32634
32635 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
32636 (DEFAULT_NORMAL_COLOR): Likewise.
32637 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
32638 (DEFAULT_FG_COLOR): Removed.
32639 (DEFAULT_BG_COLOR): Likewise.
32640 (DEFAULT_CURSOR_COLOR): Changed value.
32641 (grub_virtual_screen): Added standard_color_setting,
32642 normal_color_setting, highlight_color_setting and term_color.
32643 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
32644 (bitmap_width): Added.
32645 (bitmap_height): Likewise.
32646 (bitmap): Likewise.
32647 (set_term_color): Likewise.
32648 (grub_virtual_screen_setup): Changed to use new terminal coloring
32649 settings.
32650 (grub_gfxterm_init): Added init for bitmap.
32651 (grub_gfxterm_fini): Added destroy for bitmap.
32652 (redraw_screen_rect): Updated to use background bitmap and new
32653 terminal coloring.
32654 (scroll_up): Added optimization for case when there is no bitmap.
32655 (grub_gfxterm_cls): Fixed to use correct background color.
32656 (grub_virtual_screen_setcolorstate): Changed to use new terminal
32657 coloring.
32658 (grub_virtual_screen_setcolor): Likewise.
32659 (grub_virtual_screen_getcolor): Added.
32660 (grub_gfxterm_background_image_cmd): Likewise.
32661 (grub_video_term): Added setcolor and getcolor.
32662 (MOD_INIT): Added registration of background_image command.
32663 (MOD_TERM): Added unregistration for background_image command.
32664
32665 2007-12-30 Pavel Roskin <proski@gnu.org>
32666
32667 * loader/multiboot_loader.c: Fix multiboot command
32668 unregistration. Fix all typos in the word "multiboot".
32669
32670 2007-12-29 Pavel Roskin <proski@gnu.org>
32671
32672 * util/grub.d/10_linux.in: Refactor search for initrd. Add
32673 support for initrd names used in Fedora.
32674
32675 2007-12-26 Bean <bean123ch@gmail.com>
32676
32677 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
32678 (cpio_mod_SOURCES): New variable.
32679 (cpio_mod_CFLAGS): Likewise.
32680 (cpio_mod_LDFLAGS): Likewise.
32681
32682 * fs/cpio.c: New file.
32683
32684 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
32685
32686 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
32687
32688 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
32689
32690 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32691
32692 2007-12-25 Robert Millan <rmh@aybabtu.com>
32693
32694 * include/grub/term.h (struct grub_term): Add `getcolor' function.
32695 (grub_getcolor): New function.
32696
32697 * kern/term.c (grub_getcolor): New function.
32698 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
32699 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
32700 (print_entry): Set normal and highlight colors to
32701 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
32702 respectively, before printing and restore them to old
32703 values afterwards.
32704 (grub_menu_init_page): Likewise. Fill an additional colored space
32705 that would otherwise be left blank.
32706
32707 * term/efi/console.c (grub_console_getcolor): New function.
32708 (struct grub_console_term.getcolor): New variable.
32709 * term/i386/pc/console.c (grub_console_getcolor): New function.
32710 (struct grub_console_term.getcolor): New variable.
32711 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
32712 (struct grub_console_term.getcolor): New variable.
32713
32714 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
32715 (struct grub_console_term.setcolor): Remove variable.
32716 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
32717 (struct grub_console_term.setcolor): Remove variable.
32718 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
32719 (struct grub_console_term.setcolor): Remove variable.
32720 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
32721 (struct grub_console_term.setcolor): Remove variable.
32722
32723 2007-12-25 Robert Millan <rmh@aybabtu.com>
32724
32725 * configure.ac: Search for possible unifont.hex locations, and
32726 define UNIFONT_HEX if found.
32727
32728 * Makefile.in (UNIFONT_HEX): Define variable.
32729 (DATA): Rename to ...
32730 (PKGLIB): ... this. Update all users.
32731 (PKGDATA): New variable.
32732 (pkgdata_IMAGES): Rename to ...
32733 (pkglib_IMAGES): ... this. Update all users.
32734 (pkgdata_MODULES): Rename to ...
32735 (pkglib_MODULES): ... this. Update all users.
32736 (pkgdata_PROGRAMS): Rename to ...
32737 (pkglib_PROGRAMS): ... this. Update all users.
32738 (pkgdata_DATA): Rename to ...
32739 (pkglib_DATA): ... this. Update all users.
32740 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
32741 (unicode.pff, ascii.pff): New rules.
32742 (all-local): Add `$(PKGDATA)' dependency.
32743 (install-local): Process `$(PKGDATA)'.
32744
32745 * util/update-grub_lib.in (font_path): Search for *.pff files in
32746 a few more locations, including `${pkgdata}'.
32747
32748 2007-12-23 Robert Millan <rmh@aybabtu.com>
32749
32750 Patch from Bean <bean123ch@gmail.com>:
32751 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
32752 `size'.
32753
32754 2007-12-21 Bean <bean123ch@gmail.com>
32755
32756 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
32757 (ntfscomp_mod_SOURCES): New variable.
32758 (ntfscomp_mod_CFLAGS): Likewise.
32759 (ntfscomp_mod_LDFLAGS): Likewise.
32760
32761 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
32762 (grub_probe_SOURCES): Likewise.
32763 (grub_emu_SOURCES): Likewise.
32764
32765 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
32766 (grub_emu_SOURCES): Likewise.
32767
32768 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
32769 (grub_emu_SOURCES): Likewise.
32770
32771 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
32772 (grub_emu_SOURCES): Likewise.
32773
32774 * fs/ntfs.c (grub_ntfscomp_func): New variable.
32775 (read_run_list): Renamed to grub_ntfs_read_run_list.
32776 (decomp_nextvcn): Moved to ntfscomp.c.
32777 (decomp_getch): Likewise.
32778 (decomp_get16): Likewise.
32779 (decomp_block): Likewise.
32780 (read_block): Likewise.
32781 (read_data): Partially moved to ntfscomp.c.
32782 (fixup): Change unsigned to grub_uint16_t.
32783 (read_mft): Change unsigned long to grub_uint32_t.
32784 (read_attr): Likewise.
32785 (read_data): Likewise.
32786 (read_run_data): Likewise.
32787 (read_run_list): Likewise.
32788 (read_mft): Likewise.
32789
32790 * fs/ntfscomp.c: New file.
32791
32792 * include/grub/ntfs.h: New file.
32793
32794 2007-12-16 Robert Millan <rmh@aybabtu.com>
32795
32796 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
32797 IDE disk check, since Linux is known to support 20 IDE disks.
32798 Reported by Colin Watson.
32799
32800 2007-12-15 Bean <bean123ch@gmail.com>
32801
32802 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
32803 (lnxboot_img_SOURCES): New variable.
32804 (lnxboot_img_ASFLAGS): Likewise.
32805 (lnxboot_img_LDFLAGS): Likewise.
32806
32807 * boot/i386/pc/lnxboot.S: New file.
32808
32809 2007-11-24 Pavel Roskin <proski@gnu.org>
32810
32811 * configure.ac: Test if '--build-id=none' is supported by the
32812 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
32813 objcopy to generate incorrect binary files (binutils
32814 2.17.50.0.18-1 as shipped by Fedora 8).
32815 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
32816 linking, so that build ID doesn't break the test.
32817
32818 2007-11-24 Pavel Roskin <proski@gnu.org>
32819
32820 * include/grub/i386/time.h: use "void" in the argument list
32821 of grub_cpu_idle().
32822 * include/grub/powerpc/time.h: Likewise.
32823 * include/grub/sparc64/time.h: Likewise.
32824
32825 2007-11-18 Christian Franke <franke@computer.org>
32826
32827 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
32828 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
32829 This fixes the problem that function keys did not work in grub-emu.
32830
32831 2007-11-18 Christian Franke <franke@computer.org>
32832
32833 * disk/host.c (grub_host_open): Remove attribute unused from
32834 name parameter. Add check for "host". This fixes the problem
32835 that grub-emu does not find partitions.
32836
32837 2007-11-18 Christian Franke <franke@computer.org>
32838
32839 * util/hostfs.c (is_dir): New function.
32840 (grub_hostfs_dir): Handle missing dirent.d_type case.
32841 (grub_hostfs_read): Add missing fseek().
32842 (grub_hostfs_label): Clear label pointer. This fixes a crash
32843 of grub-emu on "ls (host)".
32844
32845 2007-11-18 Christian Franke <franke@computer.org>
32846
32847 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
32848 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
32849 to 64 bit boundary by default.
32850
32851 2007-11-18 Bean <bean123ch@gmail.com>
32852
32853 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
32854 (hexdump_mod_SOURCES): New variable.
32855 (hexdump_mod_CFLAGS): Likewise.
32856 (hexdump_mod_LDFLAGS): Likewise.
32857
32858 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
32859
32860 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
32861
32862 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
32863
32864 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
32865
32866 * include/grub/hexdump.h: New file.
32867
32868 * commands/hexdump.c: New file.
32869
32870 2007-11-10 Robert Millan <rmh@aybabtu.com>
32871
32872 * commands/i386/pc/play.c (beep_off): Switch order of arguments
32873 in grub_outb() calls.
32874 (beep_on): Likewise.
32875
32876 2007-11-10 Christian Franke <franke@computer.org>
32877
32878 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
32879 (grub_menu_run): Likewise.
32880
32881 2007-11-10 Robert Millan <rmh@aybabtu.com>
32882
32883 * include/grub/i386/efi/machine.h: New file.
32884 * include/grub/i386/linuxbios/machine.h: Likewise.
32885 * include/grub/i386/pc/machine.h: Likewise.
32886 * include/grub/powerpc/ieee1275/machine.h: Likewise.
32887 * include/grub/sparc64/ieee1275/machine.h: Likewise.
32888
32889 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
32890 (serial_hw_io_addr): New variable.
32891 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
32892 instead of `(unsigned short *) 0x400'.
32893
32894 2007-11-10 Bean <bean123ch@gmail.com>
32895
32896 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
32897
32898 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
32899
32900 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
32901 (vga_mod_SOURCES): Added.
32902 (vga_mod_CFLAGS): Likewise.
32903 (vga_mod_LDFLAGS): Likewise.
32904
32905 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
32906 grub_outb() calls.
32907 (set_map_mask): Likewise.
32908 (set_read_map): Likewise.
32909 (set_read_address): Likewise.
32910 (vga_font): Removed variable.
32911 (get_vga_glyph): Removed function.
32912 (invalidate_char): Likewise.
32913 (write_char): Changed to use grub_font_get_glyph() for font
32914 information.
32915 (grub_vga_putchar): Likewise.
32916 (grub_vga_getcharwidth): Likewise.
32917
32918 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
32919
32920 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
32921 flags.
32922 (pxeboot_img_LDFLAGS): Likewise.
32923 (diskboot_img_LDFLAGS): Likewise.
32924 (kernel_img_LDFLAGS): Likewise.
32925
32926 2007-11-06 Robert Millan <rmh@aybabtu.com>
32927
32928 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
32929 in grub_outb() calls.
32930 (serial_hw_init): Likewise.
32931
32932 2007-11-05 Robert Millan <rmh@aybabtu.com>
32933
32934 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
32935 spaces. Skip non-regular files.
32936
32937 2007-11-05 Robert Millan <rmh@aybabtu.com>
32938
32939 * kern/disk.c (grub_disk_firmware_fini)
32940 (grub_disk_firmware_is_tainted): New variables.
32941
32942 * include/grub/disk.h (grub_disk_firmware_fini)
32943 (grub_disk_firmware_is_tainted): Likewise.
32944
32945 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
32946 (grub_disk_biosdisk_fini): ... to here.
32947 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
32948 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
32949 is set. Register grub_disk_biosdisk_fini() in
32950 `grub_disk_firmware_fini'.
32951
32952 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
32953 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
32954 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
32955 to finish existing firmware disk interface.
32956
32957 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
32958 (ata_mod_SOURCES): New variable.
32959 (ata_mod_CFLAGS): Likewise.
32960 (ata_mod_LDFLAGS): Likewise.
32961
32962 2007-11-05 Robert Millan <rmh@aybabtu.com>
32963
32964 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
32965 (grub_ata_wait): Reimplement using grub_millisleep().
32966
32967 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
32968 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
32969
32970 2007-11-03 Marco Gerards <marco@gnu.org>
32971
32972 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
32973 (CRTC_ADDR_PORT): New macro.
32974 (CRTC_DATA_PORT): Likewise.
32975 (CRTC_CURSOR): Likewise.
32976 (CRTC_CURSOR_ADDR_HIGH): Likewise.
32977 (CRTC_CURSOR_ADDR_LOW): Likewise.
32978 (update_cursor): New function.
32979 (grub_console_real_putchar): Call `update_cursor'.
32980 (grub_console_gotoxy): Likewise.
32981 (grub_console_cls): Set the default color when clearing the
32982 screen.
32983 (grub_console_setcursor): Implemented.
32984
32985 2007-11-03 Marco Gerards <marco@gnu.org>
32986
32987 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
32988 become activate.
32989 (grub_ata_pio_write): Likewise.
32990
32991 (grub_atapi_identify): Wait after issuing an ATA command.
32992 (grub_atapi_packet): Likewise.
32993 (grub_ata_identify): Likewise.
32994 (grub_ata_readwrite): Likewise.
32995
32996 2007-11-03 Marco Gerards <marco@gnu.org>
32997
32998 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
32999 (grub_ata_pio_write): Likewise.
33000 (grub_ata_readwrite): Use `grub_error', instead of
33001 returning `grub_errno'.
33002
33003 2007-11-03 Marco Gerards <marco@gnu.org>
33004
33005 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
33006 grub_ata_pio_write once for every single sector, instead of for
33007 multiple sectors.
33008
33009 2007-10-31 Robert Millan <rmh@aybabtu.com>
33010
33011 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
33012
33013 * conf/i386-linuxbios.rmk: New file.
33014
33015 * kern/i386/pc/hardware.c: Likewise.
33016 * term/i386/pc/at_keyboard.c: Likewise.
33017 * term/i386/pc/vga_text.c: Likewise.
33018
33019 * include/grub/i386/linuxbios/boot.h: Likewise.
33020 * include/grub/i386/linuxbios/console.h: Likewise.
33021 * include/grub/i386/linuxbios/init.h: Likewise.
33022 * include/grub/i386/linuxbios/kernel.h: Likewise.
33023 * include/grub/i386/linuxbios/loader.h: Likewise.
33024 * include/grub/i386/linuxbios/memory.h: Likewise.
33025 * include/grub/i386/linuxbios/serial.h: Likewise.
33026 * include/grub/i386/linuxbios/time.h: Likewise.
33027
33028 * kern/i386/linuxbios/init.c: Likewise.
33029 * kern/i386/linuxbios/startup.S: Likewise.
33030 * kern/i386/linuxbios/table.c: Likewise.
33031
33032 2007-10-31 Marco Gerards <marco@gnu.org>
33033
33034 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
33035 (ata_mod_SOURCES): New variable.
33036 (ata_mod_CFLAGS): Likewise.
33037 (ata_mod_LDFLAGS): Likewise.
33038
33039 * disk/ata.c: New file.
33040
33041 * include/grub/disk.h (grub_disk_dev_id): Add
33042 `GRUB_DISK_DEV_ATA_ID'.
33043
33044 2007-10-31 Robert Millan <rmh@aybabtu.com>
33045
33046 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
33047 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
33048
33049 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
33050 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
33051
33052 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
33053 `<grub/types.h>'.
33054
33055 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
33056
33057 2007-10-27 Robert Millan <rmh@aybabtu.com>
33058
33059 * include/grub/types.h (ULONG_MAX): Define macro.
33060
33061 2007-10-22 Robert Millan <rmh@aybabtu.com>
33062
33063 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
33064 `"../realmode.S"'.
33065 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
33066
33067 2007-10-22 Robert Millan <rmh@aybabtu.com>
33068
33069 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
33070 (pkgdata_MODULES): Add `biosdisk.mod'.
33071 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
33072 variables.
33073
33074 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
33075 (grub_biosdisk_init): Replace with ...
33076 (GRUB_MOD_INIT(biosdisk)): ... this.
33077 (grub_biosdisk_fini): Replace with ...
33078 (GRUB_MOD_FINI(biosdisk)): ... this.
33079
33080 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
33081 (grub_machine_init): Remove call to grub_biosdisk_init().
33082 (grub_machine_fini): Remove call to grub_machine_fini().
33083
33084 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
33085
33086 2007-10-22 Robert Millan <rmh@aybabtu.com>
33087
33088 * include/grub/time.h: New file.
33089 * include/grub/i386/time.h: Likewise.
33090 * include/grub/powerpc/time.h: Likewise.
33091 * include/grub/sparc64/time.h: Likewise.
33092
33093 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
33094 instances to ...
33095 (KERNEL_MACHINE_TIME_HEADER): ... this.
33096 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
33097 instances to ...
33098 (KERNEL_MACHINE_TIME_HEADER): ... this.
33099 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
33100 instances to ...
33101 (KERNEL_MACHINE_TIME_HEADER): ... this.
33102
33103 * kern/i386/efi/init.c: Include `<grub/time.h>'.
33104 (grub_millisleep): New function.
33105 * kern/i386/pc/init.c: Include `<grub/time.h>'.
33106 (grub_millisleep): New function.
33107 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
33108 Remove `grub/machine/time.h' include.
33109 (grub_millisleep): New function.
33110 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
33111 Remove `grub/machine/time.h' include.
33112 (grub_millisleep): New function.
33113
33114 * include/grub/misc.h (grub_div_roundup): New function.
33115
33116 * kern/misc.c: Include `<grub/time.h>'.
33117 (grub_millisleep_generic): New function.
33118
33119 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
33120 Add `time.h'.
33121 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
33122 Add `time.h'.
33123 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
33124 `machine/time.h'. Add `time.h'.
33125 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
33126
33127 2007-10-21 Robert Millan <rmh@aybabtu.com>
33128
33129 * include/grub/misc.h (grub_max): New function.
33130
33131 2007-10-21 Robert Millan <rmh@aybabtu.com>
33132
33133 * util/misc.c (grub_util_info): Call fflush() before returning.
33134
33135 2007-10-20 Robert Millan <rmh@aybabtu.com>
33136
33137 * genmk.rb (Image): Copy `extra_flags' from here ...
33138 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
33139
33140 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
33141 to `argc' and `args' arguments.
33142
33143 2007-10-17 Robert Millan <rmh@aybabtu.com>
33144
33145 * kern/i386/loader.S: New file.
33146
33147 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
33148 * kern/i386/loader.S (grub_linux_prot_size)... to here.
33149 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
33150 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
33151 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
33152 * kern/i386/loader.S (grub_linux_real_addr)... to here.
33153 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
33154 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
33155 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
33156 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
33157 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
33158 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
33159 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
33160 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
33161
33162 * kern/i386/realmode.S: New file.
33163
33164 * kern/i386/pc/startup.S (protstack): Moved from here ...
33165 * kern/i386/realmode.S (protstack)... to here.
33166 * kern/i386/pc/startup.S (gdt): Moved from here ...
33167 * kern/i386/realmode.S (gdt)... to here.
33168 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
33169 * kern/i386/realmode.S (prot_to_real)... to here.
33170
33171 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
33172 `kern/i386/realmode.S'.
33173
33174 2007-10-17 Robert Millan <rmh@aybabtu.com>
33175
33176 * include/grub/i386/loader.h: New file.
33177
33178 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
33179 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
33180 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
33181 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
33182 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
33183 * include/grub/i386/loader.h (grub_linux_prot_size)
33184 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
33185 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
33186 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
33187 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
33188
33189 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
33190
33191 2007-10-15 Robert Millan <rmh@aybabtu.com>
33192
33193 * normal/misc.c (grub_normal_print_device_info): Do not probe for
33194 filesystem when dev->disk is unset.
33195 Do probe for filesystem even when dev->disk->has_partitions is set.
33196 In case a filesystem is found, always report it.
33197 In case it isn't, if dev->disk->has_partitions is set, report that
33198 a partition table was found instead of reporting that no filesystem
33199 could be identified.
33200
33201 2007-10-12 Robert Millan <rmh@aybabtu.com>
33202
33203 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
33204 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
33205
33206 * include/grub/types.h (grub_host_to_target16): New macro.
33207 (grub_host_to_target32): Likewise.
33208 (grub_host_to_target64): Likewise.
33209 (grub_target_to_host16): Likewise.
33210 (grub_target_to_host32): Likewise.
33211 (grub_target_to_host64): Likewise.
33212
33213 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
33214 Renamed from to ...
33215 (GRUB_MOD_ALIGN): ...this. Update all users.
33216
33217 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
33218 grub_host_to_target32.
33219 Replace grub_be_to_cpu32 with grub_target_to_host32.
33220 (load_modules): Likewise.
33221 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
33222 Replace grub_be_to_cpu32 with grub_target_to_host32.
33223 Replace grub_cpu_to_be16 with grub_host_to_target16.
33224 Replace grub_cpu_to_be32 grub_host_to_target32.
33225
33226 2007-10-12 Robert Millan <rmh@aybabtu.com>
33227
33228 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
33229 * util/elf/grub-mkimage.c: ... here.
33230
33231 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
33232 `util/powerpc/ieee1275/grub-mkimage.c'.
33233
33234 2007-10-07 Robert Millan <rmh@aybabtu.com>
33235
33236 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
33237 and make it easier to figure out.
33238 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
33239 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
33240 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
33241 leave us with less than HEAP_MIN_SIZE total heap.
33242 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
33243
33244 2007-10-03 Robert Millan <rmh@aybabtu.com>
33245
33246 * include/grub/i386/io.h: New file.
33247 * commands/i386/pc/play.c (inb): Removed.
33248 (outb): Removed.
33249 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
33250 with grub_outb().
33251 * term/i386/pc/serial.c (inb): Removed.
33252 (outb): Removed.
33253 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
33254 with grub_outb().
33255 * term/i386/pc/vga.c (inb): Removed.
33256 (outb): Removed.
33257 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
33258 with grub_outb().
33259
33260 2007-10-02 Robert Millan <rmh@aybabtu.com>
33261
33262 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
33263 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33264 Reported by Marcin Kurek.
33265
33266 2007-09-07 Robert Millan <rmh@aybabtu.com>
33267
33268 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
33269 SmartFirmware version updates (as released by Sven Luther), and avoid
33270 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
33271 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
33272 known broken.
33273
33274 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
33275
33276 From Hitoshi Ozeki:
33277 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
33278 when merging two regions.
33279
33280 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
33281
33282 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
33283 * normal/completion.c (grub_normal_do_completion): Likewise.
33284 Reported by Hitoshi Ozeki.
33285
33286 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
33287
33288 Do not use devices at boot in chainloading.
33289
33290 * loader/i386/pc/chainloader.c (boot_drive): New variable.
33291 (boot_part_addr): Likewise.
33292 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
33293 with BOOT_DRIVE and BOOT_PART_ADDR.
33294 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
33295 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
33296
33297 2007-08-29 Robert Millan <rmh@aybabtu.com>
33298
33299 Patch from Simon Peter <dn.tlp@gmx.net>:
33300 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
33301 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
33302 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
33303 util/i386/pc/grub-setup.c_DEPENDENCIES.
33304 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
33305 util/grub-probe.c_DEPENDENCIES.
33306 * conf/powerpc-ieee1275.rmk: Likewise.
33307
33308 2007-08-28 Robert Millan <rmh@aybabtu.com>
33309
33310 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
33311 to tell grub-mkdevicemap how to name devices.
33312 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
33313 feature).
33314
33315 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
33316 util/i386/get_disk_name.c.
33317 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
33318 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
33319 util/ieee1275/get_disk_name.c.
33320
33321 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
33322
33323 * DISTLIST: Add util/i386/get_disk_name.c and
33324 util/ieee1275/get_disk_name.c.
33325
33326 * util/grub-mkdevicemap.c: Replace device naming logic with
33327 grub_util_get_disk_name() calls.
33328
33329 2007-08-20 Robert Millan <rmh@aybabtu.com>
33330
33331 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
33332 (so that it works for both plural and singular quantities).
33333
33334 2007-08-05 Robert Millan <rmh@aybabtu.com>
33335
33336 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
33337 so that [xz] isn't taken into account when determining order.
33338
33339 2007-08-02 Marco Gerards <marco@gnu.org>
33340
33341 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
33342 `include/multiboot2.h', `include/grub/elfload.h',
33343 `include/multiboot.h', `include/grub/multiboot.h',
33344 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
33345 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
33346 `kern/elf.c', `loader/multiboot_loader.c',
33347 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
33348 `loader/i386/pc/multiboot2.c',
33349 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
33350 `util/i386/pc/grub-mkrescue.in'. Remove
33351 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
33352 `include/grub/i386/pc/util/biosdisk.h' and
33353 `include/grub/powerpc/ieee1275/multiboot.h'.
33354
33355 2007-08-02 Bean <bean123ch@gmail.com>
33356
33357 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
33358 (ntfs_mod_SOURCES): New variable.
33359 (ntfs_mod_CFLAGS): Likewise.
33360 (ntfs_mod_LDFLAGS): Likewise.
33361
33362 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
33363 (grub_probe_SOURCES): Likewise.
33364 (grub_emu_SOURCES): Likewise.
33365
33366 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
33367 (grub_emu_SOURCES): Likewise.
33368
33369 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
33370 (grub_emu_SOURCES): Likewise.
33371
33372 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
33373
33374 * fs/ntfs.c: New file.
33375
33376 2007-08-02 Bean <bean123ch@gmail.com>
33377
33378 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
33379
33380 * file.h (grub_file): Likewise.
33381
33382 * fshelp.h (grub_fshelp_read_file): Likewise.
33383
33384 * util/i386/pc/grub-setup.c (setup): Likewise.
33385 (save_first_sector): Likewise.
33386 (save_blocklists): Likewise.
33387
33388 * fs/affs.c (grub_affs_read_file): Likewise.
33389
33390 * fs/ext2.c (grub_ext2_read_file): Likewise.
33391
33392 * fs/fat.c (grub_fat_read_data): Likewise.
33393
33394 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
33395
33396 * fs/hfs.c (grub_hfs_read_file): Likewise.
33397
33398 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
33399
33400 * fs/jfs.c (grub_jfs_read_file): Likewise.
33401
33402 * fs/minix.c (grub_minix_read_file): Likewise.
33403
33404 * fs/sfs.c (grub_sfs_read_file): Likewise.
33405
33406 * fs/ufs.c (grub_ufs_read_file): Likewise.
33407
33408 * fs/xfs.c (grub_xfs_read_file): Likewise.
33409
33410 * command/blocklist.c (read_blocklist): Likewise.
33411 (print_blocklist): Likewise.
33412
33413 2007-08-02 Marco Gerards <marco@gnu.org>
33414
33415 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
33416 `util/hostfs.c'.
33417
33418 * disk/host.c: New file.
33419
33420 * util/hostfs.c: Likewise.
33421
33422 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
33423 return `GRUB_ERR_BAD_FS'.
33424 * fs/sfs.c (grub_sfs_mount): Likewise.
33425 * fs/xfs.c (grub_xfs_mount): Likewise.
33426
33427 * include/grub/disk.h (enum grub_disk_dev_id): Add
33428 `GRUB_DISK_DEVICE_HOST_ID'.
33429
33430 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
33431
33432 2007-07-24 Jerone Young <jerone@gmail.com>
33433
33434 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
33435 modules for compilation.
33436 * conf/powerpc-ieee1275.rmk: Likewise.
33437
33438 * include/multiboot.h: Move multiboot definitions to one file. Rename
33439 many definitions to not get grub specific.
33440 * include/multiboot2.h: Create header with multiboot 2 definitions.
33441 * include/grub/multiboot.h: Header for grub specific function
33442 prototypes and definitions.
33443 * include/grub/multiboot2.h: Likewise.
33444 * include/grub/multiboot_loader.h: Likewise.
33445 * include/grub/i386/pc/multiboot.h: Removed.
33446 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
33447
33448 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
33449 and 2 to allow for one multiboot and module commands.
33450 * loader/multiboot2.c: Add multiboot2 functionality.
33451 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
33452 and definition names.
33453 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
33454 2 functions.
33455 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
33456 ieee1275 specific multiboot2 code.
33457
33458 * kern/i386/pc/startup.S: Change headers and definition names for
33459 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
33460
33461 2007-07-22 Robert Millan <rmh@aybabtu.com>
33462
33463 * geninitheader.sh: Process file specified in first parameter rather
33464 than hardcoding grub_modules_init.lst.
33465 * geninit.sh: Likewise. Also, construct header name dynamically rather
33466 than hardcoding grub_modules_init.h.
33467
33468 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
33469 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
33470 grub_probe_init.[ch] and grub_setup_init.[ch].
33471
33472 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
33473 grub_modules_init.h with grub_emu_init.h.
33474 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
33475 grub_probe_init.[ch] files.
33476 * conf/i386-efi.rmk: Likewise.
33477 * conf/i386-pc.rmk: Likewise.
33478 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
33479 grub_setup_init.[ch] files.
33480
33481 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
33482 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
33483 to initialize modules rather than a list of hardcoded functions.
33484 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
33485 grub_init_all() to initialize modules rather than a list of hardcoded
33486 functions.
33487
33488 2007-07-22 Robert Millan <rmh@aybabtu.com>
33489
33490 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
33491 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
33492
33493 2007-07-22 Robert Millan <rmh@aybabtu.com>
33494
33495 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
33496 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
33497 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
33498 flag when running on SmartFirmware.
33499 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
33500 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
33501 was set.
33502
33503 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
33504 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
33505 rather than decreasing it.
33506
33507 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
33508 there's not enough space to do it, fail in the same way as when it
33509 can't be done because there are no partitions.
33510
33511 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
33512 when nvsetenv failed.
33513
33514 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
33515
33516 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
33517 because this rule is automatically generated.
33518 (grub-mkrescue): Removed for the same reason as above.
33519
33520 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
33521
33522 Migrate to GNU General Public License Version 3.
33523
33524 * COPYING: Replaced with the plain text version of GPLv3.
33525
33526 * config.guess: Updated from gnulib.
33527 * config.sub: Likewise.
33528
33529 * geninit.sh: Output a GPLv3 copyright notice.
33530 * geninitheader.sh: Likewise.
33531 * genmodsrc.sh: Likewise.
33532 * gensymlist.sh.in: Likewise.
33533
33534 * boot/i386/pc/boot.S: Upgraded to GPLv3.
33535 * boot/i386/pc/diskboot.S: Likewise.
33536 * boot/i386/pc/pxeboot.S: Likewise.
33537 * commands/blocklist.c: Likewise.
33538 * commands/boot.c: Likewise.
33539 * commands/cat.c: Likewise.
33540 * commands/cmp.c: Likewise.
33541 * commands/configfile.c: Likewise.
33542 * commands/echo.c: Likewise.
33543 * commands/help.c: Likewise.
33544 * commands/ls.c: Likewise.
33545 * commands/search.c: Likewise.
33546 * commands/terminal.c: Likewise.
33547 * commands/test.c: Likewise.
33548 * commands/videotest.c: Likewise.
33549 * commands/i386/cpuid.c: Likewise.
33550 * commands/i386/pc/halt.c: Likewise.
33551 * commands/i386/pc/play.c: Likewise.
33552 * commands/i386/pc/reboot.c: Likewise.
33553 * commands/i386/pc/vbeinfo.c: Likewise.
33554 * commands/i386/pc/vbetest.c: Likewise.
33555 * commands/ieee1275/halt.c: Likewise.
33556 * commands/ieee1275/reboot.c: Likewise.
33557 * commands/ieee1275/suspend.c: Likewise.
33558 * disk/loopback.c: Likewise.
33559 * disk/lvm.c: Likewise.
33560 * disk/raid.c: Likewise.
33561 * disk/efi/efidisk.c: Likewise.
33562 * disk/i386/pc/biosdisk.c: Likewise.
33563 * disk/ieee1275/ofdisk.c: Likewise.
33564 * font/manager.c: Likewise.
33565 * fs/affs.c: Likewise.
33566 * fs/ext2.c: Likewise.
33567 * fs/fat.c: Likewise.
33568 * fs/fshelp.c: Likewise.
33569 * fs/hfs.c: Likewise.
33570 * fs/hfsplus.c: Likewise.
33571 * fs/iso9660.c: Likewise.
33572 * fs/jfs.c: Likewise.
33573 * fs/minix.c: Likewise.
33574 * fs/sfs.c: Likewise.
33575 * fs/ufs.c: Likewise.
33576 * fs/xfs.c: Likewise.
33577 * hello/hello.c: Likewise.
33578 * include/grub/acorn_filecore.h: Likewise.
33579 * include/grub/arg.h: Likewise.
33580 * include/grub/bitmap.h: Likewise.
33581 * include/grub/boot.h: Likewise.
33582 * include/grub/cache.h: Likewise.
33583 * include/grub/device.h: Likewise.
33584 * include/grub/disk.h: Likewise.
33585 * include/grub/dl.h: Likewise.
33586 * include/grub/elfload.h: Likewise.
33587 * include/grub/env.h: Likewise.
33588 * include/grub/err.h: Likewise.
33589 * include/grub/file.h: Likewise.
33590 * include/grub/font.h: Likewise.
33591 * include/grub/fs.h: Likewise.
33592 * include/grub/fshelp.h: Likewise.
33593 * include/grub/gzio.h: Likewise.
33594 * include/grub/hfs.h: Likewise.
33595 * include/grub/kernel.h: Likewise.
33596 * include/grub/loader.h: Likewise.
33597 * include/grub/lvm.h: Likewise.
33598 * include/grub/misc.h: Likewise.
33599 * include/grub/mm.h: Likewise.
33600 * include/grub/net.h: Likewise.
33601 * include/grub/normal.h: Likewise.
33602 * include/grub/parser.h: Likewise.
33603 * include/grub/partition.h: Likewise.
33604 * include/grub/pc_partition.h: Likewise.
33605 * include/grub/raid.h: Likewise.
33606 * include/grub/rescue.h: Likewise.
33607 * include/grub/script.h: Likewise.
33608 * include/grub/setjmp.h: Likewise.
33609 * include/grub/symbol.h: Likewise.
33610 * include/grub/term.h: Likewise.
33611 * include/grub/terminfo.h: Likewise.
33612 * include/grub/tparm.h: Likewise.
33613 * include/grub/types.h: Likewise.
33614 * include/grub/video.h: Likewise.
33615 * include/grub/efi/api.h: Likewise.
33616 * include/grub/efi/chainloader.h: Likewise.
33617 * include/grub/efi/console.h: Likewise.
33618 * include/grub/efi/console_control.h: Likewise.
33619 * include/grub/efi/disk.h: Likewise.
33620 * include/grub/efi/efi.h: Likewise.
33621 * include/grub/efi/pe32.h: Likewise.
33622 * include/grub/efi/time.h: Likewise.
33623 * include/grub/i386/linux.h: Likewise.
33624 * include/grub/i386/setjmp.h: Likewise.
33625 * include/grub/i386/types.h: Likewise.
33626 * include/grub/i386/efi/kernel.h: Likewise.
33627 * include/grub/i386/efi/loader.h: Likewise.
33628 * include/grub/i386/efi/time.h: Likewise.
33629 * include/grub/i386/pc/biosdisk.h: Likewise.
33630 * include/grub/i386/pc/boot.h: Likewise.
33631 * include/grub/i386/pc/chainloader.h: Likewise.
33632 * include/grub/i386/pc/console.h: Likewise.
33633 * include/grub/i386/pc/init.h: Likewise.
33634 * include/grub/i386/pc/kernel.h: Likewise.
33635 * include/grub/i386/pc/loader.h: Likewise.
33636 * include/grub/i386/pc/memory.h: Likewise.
33637 * include/grub/i386/pc/multiboot.h: Likewise.
33638 * include/grub/i386/pc/serial.h: Likewise.
33639 * include/grub/i386/pc/time.h: Likewise.
33640 * include/grub/i386/pc/vbe.h: Likewise.
33641 * include/grub/i386/pc/vbeblit.h: Likewise.
33642 * include/grub/i386/pc/vbefill.h: Likewise.
33643 * include/grub/i386/pc/vbeutil.h: Likewise.
33644 * include/grub/i386/pc/vga.h: Likewise.
33645 * include/grub/ieee1275/ieee1275.h: Likewise.
33646 * include/grub/ieee1275/ofdisk.h: Likewise.
33647 * include/grub/powerpc/libgcc.h: Likewise.
33648 * include/grub/powerpc/setjmp.h: Likewise.
33649 * include/grub/powerpc/types.h: Likewise.
33650 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
33651 * include/grub/powerpc/ieee1275/console.h: Likewise.
33652 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
33653 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
33654 * include/grub/powerpc/ieee1275/loader.h: Likewise.
33655 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
33656 * include/grub/powerpc/ieee1275/time.h: Likewise.
33657 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
33658 * include/grub/sparc64/libgcc.h: Likewise.
33659 * include/grub/sparc64/setjmp.h: Likewise.
33660 * include/grub/sparc64/types.h: Likewise.
33661 * include/grub/sparc64/ieee1275/console.h: Likewise.
33662 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
33663 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
33664 * include/grub/sparc64/ieee1275/time.h: Likewise.
33665 * include/grub/util/biosdisk.h: Likewise.
33666 * include/grub/util/getroot.h: Likewise.
33667 * include/grub/util/lvm.h: Likewise.
33668 * include/grub/util/misc.h: Likewise.
33669 * include/grub/util/raid.h: Likewise.
33670 * include/grub/util/resolve.h: Likewise.
33671 * io/gzio.c: Likewise.
33672 * kern/device.c: Likewise.
33673 * kern/disk.c: Likewise.
33674 * kern/dl.c: Likewise.
33675 * kern/elf.c: Likewise.
33676 * kern/env.c: Likewise.
33677 * kern/err.c: Likewise.
33678 * kern/file.c: Likewise.
33679 * kern/fs.c: Likewise.
33680 * kern/loader.c: Likewise.
33681 * kern/main.c: Likewise.
33682 * kern/misc.c: Likewise.
33683 * kern/mm.c: Likewise.
33684 * kern/parser.c: Likewise.
33685 * kern/partition.c: Likewise.
33686 * kern/rescue.c: Likewise.
33687 * kern/term.c: Likewise.
33688 * kern/efi/efi.c: Likewise.
33689 * kern/efi/init.c: Likewise.
33690 * kern/efi/mm.c: Likewise.
33691 * kern/i386/dl.c: Likewise.
33692 * kern/i386/efi/init.c: Likewise.
33693 * kern/i386/efi/startup.S: Likewise.
33694 * kern/i386/pc/init.c: Likewise.
33695 * kern/i386/pc/lzo1x.S: Likewise.
33696 * kern/i386/pc/startup.S: Likewise.
33697 * kern/ieee1275/ieee1275.c: Likewise.
33698 * kern/powerpc/cache.S: Likewise.
33699 * kern/powerpc/dl.c: Likewise.
33700 * kern/powerpc/ieee1275/cmain.c: Likewise.
33701 * kern/powerpc/ieee1275/crt0.S: Likewise.
33702 * kern/powerpc/ieee1275/init.c: Likewise.
33703 * kern/powerpc/ieee1275/openfw.c: Likewise.
33704 * kern/sparc64/cache.S: Likewise.
33705 * kern/sparc64/dl.c: Likewise.
33706 * kern/sparc64/ieee1275/init.c: Likewise.
33707 * kern/sparc64/ieee1275/openfw.c: Likewise.
33708 * loader/efi/chainloader.c: Likewise.
33709 * loader/efi/chainloader_normal.c: Likewise.
33710 * loader/i386/efi/linux.c: Likewise.
33711 * loader/i386/efi/linux_normal.c: Likewise.
33712 * loader/i386/pc/chainloader.c: Likewise.
33713 * loader/i386/pc/chainloader_normal.c: Likewise.
33714 * loader/i386/pc/linux.c: Likewise.
33715 * loader/i386/pc/linux_normal.c: Likewise.
33716 * loader/i386/pc/multiboot.c: Likewise.
33717 * loader/i386/pc/multiboot_normal.c: Likewise.
33718 * loader/powerpc/ieee1275/linux.c: Likewise.
33719 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
33720 * normal/arg.c: Likewise.
33721 * normal/cmdline.c: Likewise.
33722 * normal/command.c: Likewise.
33723 * normal/completion.c: Likewise.
33724 * normal/execute.c: Likewise.
33725 * normal/function.c: Likewise.
33726 * normal/lexer.c: Likewise.
33727 * normal/main.c: Likewise.
33728 * normal/menu.c: Likewise.
33729 * normal/menu_entry.c: Likewise.
33730 * normal/misc.c: Likewise.
33731 * normal/parser.y: Likewise.
33732 * normal/script.c: Likewise.
33733 * normal/i386/setjmp.S: Likewise.
33734 * normal/powerpc/setjmp.S: Likewise.
33735 * normal/sparc64/setjmp.S: Likewise.
33736 * partmap/acorn.c: Likewise.
33737 * partmap/amiga.c: Likewise.
33738 * partmap/apple.c: Likewise.
33739 * partmap/gpt.c: Likewise.
33740 * partmap/pc.c: Likewise.
33741 * partmap/sun.c: Likewise.
33742 * term/gfxterm.c: Likewise.
33743 * term/terminfo.c: Likewise.
33744 * term/efi/console.c: Likewise.
33745 * term/i386/pc/console.c: Likewise.
33746 * term/i386/pc/serial.c: Likewise.
33747 * term/i386/pc/vesafb.c: Likewise.
33748 * term/i386/pc/vga.c: Likewise.
33749 * term/ieee1275/ofconsole.c: Likewise.
33750 * util/biosdisk.c: Likewise.
33751 * util/console.c: Likewise.
33752 * util/genmoddep.c: Likewise.
33753 * util/getroot.c: Likewise.
33754 * util/grub-emu.c: Likewise.
33755 * util/grub-mkdevicemap.c: Likewise.
33756 * util/grub-probe.c: Likewise.
33757 * util/lvm.c: Likewise.
33758 * util/misc.c: Likewise.
33759 * util/raid.c: Likewise.
33760 * util/resolve.c: Likewise.
33761 * util/update-grub.in: Likewise.
33762 * util/update-grub_lib.in: Likewise.
33763 * util/grub.d/00_header.in: Likewise.
33764 * util/grub.d/10_hurd.in: Likewise.
33765 * util/grub.d/10_linux.in: Likewise.
33766 * util/i386/efi/grub-install.in: Likewise.
33767 * util/i386/efi/grub-mkimage.c: Likewise.
33768 * util/i386/pc/grub-install.in: Likewise.
33769 * util/i386/pc/grub-mkimage.c: Likewise.
33770 * util/i386/pc/grub-mkrescue.in: Likewise.
33771 * util/i386/pc/grub-setup.c: Likewise.
33772 * util/i386/pc/misc.c: Likewise.
33773 * util/powerpc/ieee1275/grub-install.in: Likewise.
33774 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
33775 * util/powerpc/ieee1275/misc.c: Likewise.
33776 * video/bitmap.c: Likewise.
33777 * video/video.c: Likewise.
33778 * video/i386/pc/vbe.c: Likewise.
33779 * video/i386/pc/vbeblit.c: Likewise.
33780 * video/i386/pc/vbefill.c: Likewise.
33781 * video/i386/pc/vbeutil.c: Likewise.
33782 * video/readers/tga.c: Likewise.
33783
33784 2007-07-02 Robert Millan <rmh@aybabtu.com>
33785
33786 * conf/i386-efi.rmk: Replace obsolete reference to
33787 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
33788 with util/getroot.c.
33789 * conf/powerpc-ieee1275.rmk: Likewise.
33790 * conf/sparc64-ieee1275.rmk: Likewise.
33791
33792 * util/grub-emu.c (main): Fix unchecked pointer handling.
33793
33794 2007-07-02 Robert Millan <rmh@aybabtu.com>
33795
33796 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
33797 invocation to fail, in order to support partition-less media.
33798
33799 * util/i386/pc/grub-install.in: Likewise.
33800
33801 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
33802 which fs or partmap modules are needed (akin to its sister scripts).
33803
33804 Also use grub-probe to get rid of unportable /proc/mounts check.
33805
33806 Print the same informational message that the other scripts do, before
33807 exiting.
33808
33809 2007-06-23 Robert Millan <rmh@aybabtu.com>
33810
33811 * util/update-grub_lib.in (font_path): New function. Determine whether
33812 a font file can be found and, if so, echo the GRUB path to it.
33813
33814 * util/update-grub.in: Handle multiple terminals depending on user
33815 input, platform availability and font file presence. Propagate
33816 variables of our findings to /etc/grub.d/ children.
33817
33818 * util/grub.d/00_header.in: Handle multiple terminals, based on
33819 environment setup by update-grub.
33820
33821 2007-06-23 Robert Millan <rmh@aybabtu.com>
33822
33823 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
33824
33825 2007-06-21 Robert Millan <rmh@aybabtu.com>
33826
33827 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
33828 indicate end of data section in kernel image.
33829 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
33830 GRUB_KERNEL_MACHINE_DATA_END.
33831
33832 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
33833 space for it.
33834 * kern/i386/efi/startup.S: Likewise.
33835
33836 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
33837 during image generation. Implement --prefix option to override this
33838 patch.
33839 * util/i386/efi/grub-mkimage.c: Likewise.
33840
33841 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
33842 code to make path relative to its root into a separate function.
33843
33844 * util/i386/pc/grub-install.in: Use newly provided
33845 make_system_path_relative_to_its_root() to convert ${grubdir}, then
33846 pass the result to grub-install --prefix.
33847
33848 2007-06-13 Robert Millan <rmh@aybabtu.com>
33849
33850 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
33851 DEFAULT_DEVICE_MAP.
33852 * util/grub-emu.c: Use above definitions from misc.h instead of
33853 defining them.
33854 * util/grub-mkdevicemap.c: Likewise.
33855 * util/i386/pc/grub-setup.c: Likewise.
33856 * util/grub-probe.c: Likewise.
33857 (probe): Abort with grub_util_error() when either
33858 grub_guess_root_device or grub_util_get_grub_dev fails.
33859
33860 2007-06-12 Robert Millan <rmh@aybabtu.com>
33861
33862 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
33863 "pager" assignment.
33864 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
33865 "pcdata".
33866 * util/grub-probe.c (probe): Likewise for "drive_name".
33867
33868 2007-06-11 Robert Millan <rmh@aybabtu.com>
33869
33870 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
33871 not just the cdrom one.
33872
33873 2007-06-11 Robert Millan <rmh@aybabtu.com>
33874
33875 * util/i386/pc/grub-mkrescue.in: Add "set -e".
33876 Add --pkglibdir=DIR option to override pkglibdir.
33877 Mention --image-type=TYPE in help output.
33878 Fix --grub-mkimage (it was a no-op).
33879 Abort gracefully when no parameter is given.
33880
33881 2007-06-11 Robert Millan <rmh@aybabtu.com>
33882
33883 * util/i386/pc/grub-mkrescue.in: New file.
33884 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
33885 * Makefile.in: Handle bin_SCRIPTS.
33886
33887 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
33888
33889 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
33890 list of video modes.
33891
33892 2007-06-06 Robert Millan <rmh@aybabtu.com>
33893
33894 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
33895 file doesn't exist, or if it is in a filesystem grub can't read.
33896
33897 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
33898 not abort if GRUB_DRIVE could not be defined. Rearrange generated
33899 header comment to fit in 80 columns when the variables are resolved.
33900
33901 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
33902 could be identified by update-grub. Remove redundant check for
33903 unifont.pff existence (since convert_system_path_to_grub_path now
33904 handles that).
33905
33906 2007-06-04 Robert Millan <rmh@aybabtu.com>
33907
33908 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
33909
33910 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
33911
33912 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
33913
33914 2007-06-04 Robert Millan <rmh@aybabtu.com>
33915
33916 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
33917
33918 * include/grub/partition.h: Declare grub_apple_partition_map_init and
33919 grub_apple_partition_map_fini.
33920
33921 * util/biosdisk.c
33922 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
33923 to access >2 TiB disks).
33924
33925 Print disk->total_sectors with %llu instead of %lu, since this
33926 variable is always 64-bit (prevents wrong disk size from being displayed
33927 on either >2 TiB disk or big-endian CPU).
33928
33929 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
33930 into a generic case that supports all (sane) partition maps.
33931
33932 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
33933 breaks big-endian.
33934
33935 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
33936 and grub_apple_partition_map_fini() after that.
33937
33938 2007-06-01 Robert Millan <rmh@aybabtu.com>
33939
33940 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
33941
33942 * util/grub.d/00_header.in: Only enable gfxterm when
33943 convert_system_path_to_grub_path() succeeds.
33944
33945 2007-05-20 Robert Millan <rmh@aybabtu.com>
33946
33947 * util/update-grub_lib.in: New file.
33948 * DISTLIST: Add update-grub_lib.in.
33949 * conf/common.rmk: Generate update-grub_lib and install it in
33950 $(lib_DATA).
33951 * Makefile.in: Add install routine for $(lib_DATA).
33952
33953 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
33954 function provided by update-grub_lib to support arbitrary paths of
33955 unifont.pff.
33956 * util/update-grub.in: Use convert_system_path_to_grub_path() to
33957 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
33958
33959 2007-05-19 Robert Millan <rmh@aybabtu.com>
33960
33961 * commands/i386/cpuid.c: New module.
33962 * DISTLIST: Add it.
33963 * conf/i386-efi.rmk: Enable cpuid.mod.
33964 * conf/i386-pc.rmk: Likewise.
33965
33966 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
33967
33968 * kern/disk.c (grub_disk_read): Check return value of
33969 grub_realloc().
33970
33971 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
33972
33973 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
33974 arrays.
33975 * disk/raid.c (grub_raid_open): Likewise.
33976
33977 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
33978
33979 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
33980 stack instead of on the heap.
33981
33982 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
33983 before doing a read on it.
33984
33985 * configure.ac: Only use -fno-stack-protector for the target
33986 environment.
33987
33988 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
33989
33990 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
33991 __attribute_ ((unused)) to mode_type argument.
33992
33993 * util/getroot.c (grub_guess_root_device): Fix #endif.
33994
33995 * kern/misc.c (memcmp): Fix prototype.
33996
33997 * include/grub/partition.h [GRUB_UTIL]
33998 (grub_gpt_partition_map_init): Add prototype.
33999 (grub_gpt_partition_map_fini): Likewise.
34000
34001 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
34002 at the right place.
34003
34004 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
34005 (grub_fat_read_data): Likewise.
34006 (grub_fat_find_dir): Likewise.
34007
34008 * font/manager.c (find_glyph): Make table a const.
34009 (grub_font_get_glyph): Remove bitmap from if statement.
34010
34011 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
34012
34013 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
34014 code, first search for device in /dev/mapper, then in /dev.
34015 (grub_util_get_grub_dev): New function.
34016 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
34017 prototype.
34018 * util/grub-probe.c (probe): Remove check for RAID, call
34019 grub_util_get_grub_dev() instead of
34020 grub_util_biosdisk_get_grub_dev().
34021 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
34022 grub_util_biosdisk_get_grub_dev().
34023 * util/i386/pc/grub-setup.c (main): Likewise.
34024
34025 2007-05-16 Robert Millan <rmh@aybabtu.com>
34026
34027 * DISTLIST: Update for the latest changes.
34028 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
34029 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
34030 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
34031 grub/util/biosdisk.h.
34032 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
34033 grub/util/biosdisk.h.
34034
34035 2007-05-16 Robert Millan <rmh@aybabtu.com>
34036
34037 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
34038
34039 2007-05-16 Robert Millan <rmh@aybabtu.com>
34040
34041 * util/i386/efi/grub-install.in: New.
34042 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
34043 newly added grub-install.
34044 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
34045 include.
34046 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
34047 grub/util/biosdisk.h.
34048 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
34049 grub/util/biosdisk.h.
34050
34051 2007-05-16 Robert Millan <rmh@aybabtu.com>
34052
34053 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
34054 * include/grub/util/biosdisk.h: ... here.
34055 * util/i386/pc/biosdisk.c: Moved to ...
34056 * util/biosdisk.c: ... here.
34057 * util/i386/pc/getroot.c: Moved to ...
34058 * util/getroot.c: ... here.
34059 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
34060 * util/grub-mkdevicemap.c: ... here.
34061 * util/i386/pc/grub-probe.c: Moved to ...
34062 * util/grub-probe.c: ... here.
34063
34064 2007-05-15 Robert Millan <rmh@aybabtu.com>
34065
34066 * util/update-grub.in: Remove duplicated line in grub.cfg header
34067 message.
34068
34069 2007-05-13 Robert Millan <rmh@aybabtu.com>
34070
34071 * util/update-grub.in: Fix a few assumptions about the devices holding
34072 /, /boot and /boot/grub being the same.
34073 * util/grub.d/00_header.in: Likewise.
34074 * util/grub.d/10_hurd.in: Likewise.
34075 * util/grub.d/10_linux.in: Likewise.
34076
34077 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
34078 patterns. Use that to define the `.old' suffix as older than `'.
34079
34080 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
34081
34082 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
34083 the grub.cfg header message.
34084
34085 2007-05-11 Robert Millan <rmh@aybabtu.com>
34086
34087 * util/update-grub.in: Create device.map if it doesn't already exist,
34088 before attempting to run grub-probe.
34089 Check for grub-probe and grub-mkdevicemap with the same code
34090 grub-install is using.
34091 Remove test mode.
34092
34093 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
34094
34095 * Makefile.in: Add the datarootdir autoconf variable.
34096
34097 2007-05-09 Robert Millan <rmh@aybabtu.com>
34098
34099 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
34100 fail gracefully if dev->disk->partition == NULL.
34101
34102 2007-05-07 Robert Millan <rmh@aybabtu.com>
34103
34104 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
34105 determine partition map module.
34106 * util/i386/pc/grub-install.in: Use this feature to decide which
34107 partition module to load, instead of hardcoding pc and gpt.
34108
34109 2007-05-07 Robert Millan <rmh@aybabtu.com>
34110
34111 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
34112 source directory differs from build directory.
34113
34114 2007-05-05 Robert Millan <rmh@aybabtu.com>
34115
34116 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
34117 initialisation.
34118
34119 2007-05-05 Robert Millan <rmh@aybabtu.com>
34120
34121 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
34122
34123 2007-05-05 Robert Millan <rmh@aybabtu.com>
34124
34125 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
34126 command-line arguments via ${GRUB_CMDLINE_LINUX}.
34127
34128 2007-05-05 Robert Millan <rmh@aybabtu.com>
34129
34130 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
34131 (grub_probe_SOURCES): Likewise.
34132 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
34133 GPT and initialize dos_part and bsd_part accordingly.
34134 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
34135 install_bsd_part.
34136 (main): Activate gpt module for use during partition identification,
34137 and deactivate it afterwards.
34138 * util/i386/pc/grub-install.in: Add gpt module to core.img.
34139 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
34140 partition identification, and deactivate it afterwards.
34141
34142 2007-05-05 Robert Millan <rmh@aybabtu.com>
34143
34144 * term/i386/pc/console.c (grub_console_fini): Call
34145 grub_term_set_current() before grub_term_unregister().
34146
34147 2007-05-04 Robert Millan <rmh@aybabtu.com>
34148
34149 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
34150 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
34151 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
34152 and update-grub_DATA.
34153 * conf/common.rmk: Build and install update-grub components.
34154 * conf/common.mk: Regenerate.
34155 * util/update-grub.in: New. Core of update-grub.
34156 * util/grub.d/00_header.in: New. Generates grub.cfg header.
34157 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
34158 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
34159 * util/grub.d/README: New. Document grub.d directory layout.
34160
34161 2007-05-01 Robert Millan <rmh@aybabtu.com>
34162
34163 * util/grub-emu.c: Move initialization functions
34164 grub_util_biosdisk_init() and grub_init_all() before
34165 grub_util_biosdisk_get_grub_dev(), which relies on them.
34166
34167 2007-04-19 Robert Millan <rmh@aybabtu.com>
34168
34169 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
34170 it is used later.
34171
34172 2007-04-18 Jerone Young <jerone@gmail.com>
34173
34174 * kernel/elf.c: Add missing parenthesis for conditional statement
34175 stanza.
34176
34177 2007-04-10 Jerone Young <jerone@gmail.com>
34178
34179 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
34180 continue on and look for device node with real device name.
34181
34182 2007-04-10 Jerone Young <jerone@gmail.com>
34183
34184 * configure.ac: Add argument for autoconf to use transformation
34185 ability.
34186 * Makefile.in: Add autoconf package transformation code.
34187 * util/i386/pc/grub-install.in: Likewise.
34188 * util/powerpc/ieee1275/grub-install.in: Likewise.
34189
34190 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
34191
34192 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
34193 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
34194 (EXT2_REVISION): Likewise.
34195 (EXT2_INODE_SIZE): Likewise.
34196 (struct grub_ext2_block_group): Added a missing member
34197 "used_dirs".
34198 (grub_ext2_read_inode): Divide by the inode size in a superblock
34199 instead of 128 to obtain INODES_PER_BLOCK.
34200 Use the macro EXT2_INODE_SIZE instead of directly using
34201 SBLOCK->INODE_SIZE.
34202
34203 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
34204
34205 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
34206 superblock instead of the structure size to compute an
34207 offset. This fixes the problem that GRUB could not read a
34208 filesystem when inode size is different from 128-byte.
34209
34210 2007-03-05 Marco Gerards <marco@gnu.org>
34211
34212 * normal/main.c (read_config_file): When "menu" is not set, create
34213 an initial context.
34214
34215 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
34216
34217 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
34218 (HEAP_LIMIT): New macro.
34219 (grub_claim_heap): Claim memory up to `heaplimit'.
34220
34221 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
34222
34223 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
34224 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
34225 (_start): Likewise.
34226 (grub_arch_modules_addr): Return address after `_end'.
34227 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
34228 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
34229 (add_segments): Calculate `_end' from phdr size and location.
34230 (ALIGN_UP): Moved to ...
34231 * include/grub/misc.h: here.
34232 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
34233 New macro.
34234 (GRUB_IEEE1275_MODULE_BASE): Removed.
34235
34236 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
34237
34238 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
34239 loop boundary.
34240
34241 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
34242
34243 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
34244 All users updated.
34245 (grub_elf64_load_hook_t): Likewise.
34246 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
34247 debug output.
34248
34249 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
34250
34251 * kern/mm.c: Update copyright.
34252 (grub_mm_debug): Correct syntax error.
34253 (grub_mm_dump_free): New function.
34254 (grub_debug_free): Call `grub_free'.
34255 * include/grub/mm.h: Update copyright.
34256 (grub_mm_dump_free): Add declaration.
34257
34258 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
34259
34260 * include/grub/ieee1275/ieee1275.h: Update copyright.
34261 * kern/powerpc/ieee1275/init.c: Likewise.
34262 * kern/powerpc/ieee1275/openfw.c: Likewise.
34263
34264 * loader/powerpc/ieee1275/linux.c: Likewise.
34265 * include/grub/elfload.h: Likewise.
34266 * kern/elf.c: Likewise.
34267 (grub_elf32_load): Pass `base' and `size' parameters. Update all
34268 callers.
34269 (grub_elf64_load): Likewise.
34270 (grub_elf32_load_segment): Move to a nested function.
34271 (grub_elf64_load_segment): Likewise.
34272
34273 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
34274
34275 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
34276 prototype.
34277 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
34278 (grub_heap_len): Likewise.
34279 (HEAP_SIZE): New macro.
34280 (grub_claim_heap): New function.
34281 (grub_machine_init): Don't claim heap directly. Call
34282 `grub_claim_heap'.
34283 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
34284 (grub_available_iterate): New function.
34285
34286 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
34287
34288 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
34289 * configure.ac: Use it for testing the HOST and TARGET compilers.
34290
34291 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
34292
34293 * Makefile.in (enable_grub_emu): New variable.
34294 * configure.ac (--enable-grub-emu): New option.
34295 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
34296 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
34297 * conf/i386-pc.rmk: Likewise.
34298 * conf/powerpc-ieee1275.rmk: Likewise.
34299 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
34300
34301 2006-12-12 Marco Gerards <marco@gnu.org>
34302
34303 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
34304
34305 * kern/env.c (grub_env_unset): Don't free the member `value' when
34306 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
34307 pointer.
34308
34309 * normal/main.c (current_menu): Removed.
34310 (free_menu): Unset the `menu' environment variable.
34311 (grub_normal_menu_addentry): Make use of the environment variable
34312 `menu', instead of using the global `current_menu'. Allocate
34313 memory for the sourcecode of this entry.
34314 (read_config_file): New argument `nested', changed all callers.
34315 Only in the case of a new context, initialize a new menu. Set the
34316 `menu' environment variable.
34317 (grub_normal_execute): Don't set and unset the environment
34318 variable `menu' here anymore. Only free the menu when leaving the
34319 context.
34320
34321 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
34322 leak.
34323
34324 2006-12-11 Marco Gerards <marco@gnu.org>
34325
34326 * normal/menu_entry.c (run): Fix off by one bug so the last line
34327 is executed. Move the loader check to outside the loop.
34328
34329 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
34330
34331 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
34332
34333 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
34334
34335 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
34336 the number of sectors. Reported by Andrey Shuvikov
34337 <mr_hyro@yahoo.com>.
34338
34339 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
34340
34341 * kern/disk.c (grub_disk_read): When there is a read error, always
34342 try to read only the necessary data.
34343
34344 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
34345 disk/raid.c.
34346 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
34347 prototype.
34348 [GRUB_UTIL] (grub_raid_fini): Likewise.
34349 [GRUB_UTIL] (grub_lvm_init): Likewise.
34350 [GRUB_UTIL] (grub_lvm_fini): Likewise.
34351 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
34352 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
34353 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
34354 and grub_raid_fini().
34355
34356 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
34357
34358 * include/grub/types.h (__unused): Rename to UNUSED.
34359 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
34360 (grub_elf64_size): Likewise.
34361
34362 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
34363
34364 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
34365 grub_error_push and grub_error_pop in the error-handling path.
34366 (grub_elf32_load_segment): Only call grub_file_read with non-zero
34367 length.
34368
34369 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
34370
34371 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
34372 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
34373 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34374 (kernel_elf_SOURCES): Likewise.
34375 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
34376 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
34377 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
34378 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
34379 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
34380 (elf_mod_SOURCES): New variable.
34381 (elf_mod_CFLAGS): Likewise.
34382 (elf_mod_LDFLAGS): Likewise.
34383 * include/grub/types.h (__unused): New macro.
34384 * include/grub/elfload.h: New file.
34385 * kern/elf.c: Likewise.
34386 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
34387 (ELF32_LOADMASK): New macro.
34388 (ELF64_LOADMASK): Likewise.
34389 (vmlinux): Removed.
34390 (grub_linux_load32): New function.
34391 (grub_linux_load64): Likewise.
34392 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
34393 Use grub_elf_t instead of grub_file_t.
34394
34395 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
34396
34397 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
34398 `catch_result' to struct set_color_args.
34399
34400 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
34401
34402 * normal/menu.c: Include grub/script.h.
34403 * normal/menu_entry.c: Likewise.
34404 * include/grub/normal.h: Do not include grub/script.h.
34405
34406 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
34407
34408 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
34409
34410 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
34411
34412 * kern/disk.c (grub_disk_open): Print debug messages when opening a
34413 disk.
34414 (grub_disk_close): Print debug messages when closing a disk.
34415 (grub_disk_read): Print debug messages when disk read fails.
34416 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
34417 filesystem type.
34418 * kern/partition.c: Include misc.h.
34419 (grub_partition_iterate): Print debug messages when detecting
34420 partition type.
34421
34422 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
34423
34424 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
34425 is negative.
34426 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
34427
34428 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
34429
34430 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
34431 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
34432
34433 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
34434
34435 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
34436 instead of sizeof(lv). Patch by Michael Guntsche.
34437
34438 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
34439
34440 * disk/lvm.c: Rename VGS to VG_LIST.
34441 (grub_lvm_iterate): Change VGS->LV to VG-LV.
34442 (grub_lvm_open): Likewise.
34443 Thanks to Michael Guntsche for finding this bug.
34444
34445 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
34446
34447 * configure.ac (AC_INIT): Bumped to 1.95.
34448
34449 2006-10-14 Robert Millan <rmh@aybabtu.com>
34450
34451 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
34452 with "/dev/.static/dev/md".
34453
34454 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
34455
34456 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
34457 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
34458 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
34459 DRIVE_NAME are always freed.
34460
34461 * util/i386/pc/biosdisk.c (make_device_name): Add one into
34462 DOS_PART, as a DOS partition is counted from one instead of zero
34463 now. Reported by Robert Millan.
34464
34465 2006-10-14 Robert Millan <rmh@aybabtu.com>
34466
34467 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
34468 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
34469 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
34470 string returned by grub_guess_root_device.
34471 * util/i386/pc/grub-setup.c: Likewise.
34472 * util/i386/pc/grub-probefs.c: Likewise.
34473
34474 * util/i386/pc/grub-probefs.c: Rename to ...
34475 * util/i386/pc/grub-probe.c: ... this.
34476 * DISTLIST: Remove grub-probefs, add grub-probe.
34477 * conf/i386-efi.rmk: Likewise.
34478 * conf/i386-pc.rmk: Likewise.
34479 * util/i386/pc/grub-install.in: Likewise.
34480
34481 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
34482 choose which information we want to print.
34483
34484 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
34485
34486 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
34487 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
34488 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
34489 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
34490 video/readers/tga.c and video/i386/pc/vbeutil.c.
34491
34492 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
34493
34494 Added support for RAID and LVM.
34495
34496 * disk/lvm.c: New file.
34497 * disk/raid.c: Likewise.
34498 * include/grub/lvm.h: Likewise.
34499 * include/grub/raid.h: Likewise.
34500 * include/grub/util/lvm.h: Likewise.
34501 * include/grub/util/raid.h: Likewise.
34502 * util/lvm.c: Likewise.
34503 * util/raid.c: Likewise.
34504
34505 * include/grub/disk.h (grub_disk_dev_id): Add
34506 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
34507 (grub_disk_get_size): New prototype.
34508 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
34509 returns a partition.
34510 (grub_disk_get_size): New function.
34511
34512 * kern/i386/pc/init.c (make_install_device): Copy the prefix
34513 verbatim if grub_install_dos_part is -2.
34514
34515 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
34516 and LVM devices.
34517
34518 * util/i386/pc/grub-setup.c (setup): New argument
34519 MUST_EMBED. Force embedding of GRUB when the argument is
34520 true. Close FILE before returning.
34521 (main): Add support for RAID and LVM.
34522
34523 * conf/common.rmk: Add RAID and LVM modules.
34524 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
34525 util/lvm.c.
34526 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
34527
34528 * kern/misc.c (grub_strstr): New function.
34529 * include/grub/misc.h (grub_strstr): New prototype.
34530
34531 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
34532
34533 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
34534
34535 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
34536
34537 * kern/misc.c (grub_strtoull): Guess the base only if not
34538 specified.
34539
34540 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
34541
34542 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
34543 PowerMac support.
34544
34545 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
34546
34547 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
34548
34549 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
34550 Remove `flags' argument. All callers changed.
34551 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
34552 (IEEE1275_IHANDLE_INVALID): New variable.
34553 (IEEE1275_CELL_INVALID): New variable.
34554 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
34555 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
34556 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
34557 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
34558 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
34559 codes from Open Firmware. All callers updated.
34560 (grub_ieee1275_next_property): Directly return Open Firmware return
34561 code.
34562 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
34563 Standardize error checking from `grub_ieee1275_get_property'.
34564 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
34565 `devalias' to `aliases'. Correct comments. Consolidate error paths.
34566
34567 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
34568
34569 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
34570 `instance_to_package_args' to `instance_to_path_args'.
34571
34572 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
34573 `grub_ieee1275_chosen'.
34574
34575 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
34576 `grub_ieee1275_interpret'.
34577
34578 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
34579
34580 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
34581
34582 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
34583
34584 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
34585 (__cmpdi): Likewise.
34586
34587 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
34588 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
34589 `grub_ssize_t'.
34590
34591 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
34592
34593 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
34594 to type `grub_ssize_t'.
34595 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
34596
34597 2006-09-22 Marco Gerards <marco@gnu.org>
34598
34599 * normal/script.c (grub_script_create_cmdmenu): Skip leading
34600 newlines.
34601
34602 2006-09-22 Marco Gerards <marco@gnu.org>
34603
34604 * commands/echo.c: New file.
34605
34606 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
34607
34608 * conf/common.rmk (echo_mod_SOURCES): New variable.
34609 (echo_mod_CFLAGS): Likewise.
34610 (echo_mod_LDFLAGS): Likewise.
34611
34612 2006-09-22 Marco Gerards <marco@gnu.org>
34613
34614 * normal/main.c (get_line): Malloc memory instead of using
34615 preallocated memory. Removed the arguments `cmdline' and
34616 `max_len'. Updated all callers.
34617
34618 2006-09-22 Marco Gerards <marco@gnu.org>
34619
34620 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
34621 (normal_mod_DEPENDENCIES): Likewise.
34622
34623 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
34624 (normal_mod_DEPENDENCIES): Likewise.
34625
34626 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
34627
34628 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
34629
34630 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
34631 programs.
34632 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
34633 (normal_mod_DEPENDENCIES): Likewise.
34634 * conf/i386-pc.mk: Regenerate.
34635 * conf/i386-efi.mk: Likewise
34636 * conf/common.mk: Likewise.
34637 * conf/powerpc-ieee1275.mk: Likewise.
34638 * conf/sparc64-ieee1275.mk: Likewise.
34639
34640 2006-09-22 Robert Millan <rmh@aybabtu.com>
34641
34642 Sync with i386 version.
34643 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
34644 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
34645
34646 2006-09-21 Robert Millan <rmh@aybabtu.com>
34647
34648 Import from GRUB Legacy (lib/device.c):
34649 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
34650 (init_device_map) [__linux__]: Add support for I2O devices.
34651
34652 2006-09-14 Marco Gerards <marco@gnu.org>
34653
34654 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
34655 `-melf_i386'.
34656
34657 2006-09-14 Robert Millan <rmh@aybabtu.com>
34658
34659 * util/i386/pc/grub-install.in: Skip menu.lst when removing
34660 /boot/grub/*.lst.
34661
34662 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
34663
34664 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
34665 before adding it to device.map.
34666
34667 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
34668
34669 * genmk.rb: Let GCC generate dependencies the first time it
34670 compiles a file; using the -MD option.
34671 * conf/common.mk: Regenerate.
34672 * conf/i386-pc.mk: Likewise.
34673 * conf/i386-efi.mk: Likewise.
34674 * conf/powerpc-ieee1275.mk: Likewise.
34675 * conf/sparc64-ieee1275.mk: Likewise.
34676
34677 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
34678
34679 Move the prototypes of grub_setjmp and grub_longjmp to
34680 cpu/setjmp.h, so that each architecture may specify different
34681 attributes.
34682
34683 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
34684 (grub_longjmp): Likewise.
34685 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
34686 (grub_longjmp): Likewise.
34687 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
34688 (grub_longjmp): Likewise.
34689
34690 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
34691 [!GRUB_UTIL] (grub_longjmp): Removed.
34692
34693 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
34694
34695 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
34696 "color!" method does not return any value.
34697
34698 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
34699
34700 * include/grub/bitmap.h: New file.
34701
34702 * include/grub/i386/pc/vbeutil.h: Likewise.
34703
34704 * video/bitmap.c: Likewise.
34705
34706 * video/readers/tga.c: Likewise.
34707
34708 * video/i386/pc/vbeutil.c: Likewise.
34709
34710 * commands/videotest.c: Code cleanup and updated to reflect to new
34711 video API.
34712
34713 * term/gfxterm.c: Likewise.
34714
34715 * video/video.c: Likewise.
34716
34717 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
34718 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
34719 (bitmap_mod_SOURCES): New entry.
34720 (bitmap_mod_CFLAGS): Likewise.
34721 (bitmap_mod_LDFLAGS): Likewise.
34722 (tga_mod_SOURCES): Likewise.
34723 (tga_mod_CFLAGS): Likewise.
34724 (tga_mod_LDFLAGS): Likewise.
34725
34726 * include/grub/video.h (grub_video_blit_operators): New enum type.
34727 (grub_video_render_target): Changed as forward declaration and moved
34728 actual definition to be video driver specific.
34729 (grub_video_adapter.blit_bitmap): Added blitting operator.
34730 (grub_video_adapter.blit_render_target): Likewise.
34731 (grub_video_blit_bitmap): Likewise.
34732 (grub_video_blit_render_target): Likewise.
34733
34734 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
34735 driver specific render target definition.
34736 (grub_video_vbe_map_rgba): Added driver internal helper.
34737 (grub_video_vbe_unmap_color): Updated to use
34738 grub_video_i386_vbeblit_info.
34739 (grub_video_vbe_get_video_ptr): Likewise.
34740
34741 * include/grub/i386/pc/vbeblit.h
34742 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
34743 grub_video_i386_vbeblit_info.
34744 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
34745 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
34746 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
34747 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
34748 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
34749 (grub_video_i386_vbeblit_index_index): Likewise.
34750 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
34751 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
34752 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
34753 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
34754 operator.
34755 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
34756 operator.
34757
34758 * video/i386/pc/vbeblit.c: Updated to reflect changes on
34759 include/grub/i386/pc/vbeblit.h.
34760
34761 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
34762 Updated to use grub_video_i386_vbeblit_info.
34763 (grub_video_i386_vbefill_R8G8B8): Likewise.
34764 (grub_video_i386_vbefill_index): Likewise.
34765 (grub_video_i386_vbefill): Added generic filler.
34766
34767 * video/i386/pc/vbefill.c: Updated to reflect changes on
34768 include/grub/i386/pc/vbefill.h.
34769
34770 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
34771 grub_video_i386_vbeblit_info.
34772 (grub_video_vbe_unmap_color): Likewise.
34773 (grub_video_vbe_blit_glyph): Likewise.
34774 (grub_video_vbe_scroll): Likewise.
34775 (grub_video_vbe_draw_pixel): Removed function.
34776 (grub_video_vbe_get_pixel): Likewise.
34777 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
34778 updated code to use it.
34779 (common_blitter): Added common blitter for render target and bitmap.
34780 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
34781 (grub_video_vbe_blit_render_target): Likewise.
34782
34783 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
34784
34785 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
34786 is in text mode if there is no console control protocol instance
34787 available.
34788
34789 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
34790
34791 * include/grub/video.h: Code cleanup.
34792
34793 * include/grub/i386/pc/vbe.h: Likewise.
34794
34795 * video/i386/pc/vbe.c: Likewise.
34796
34797 * video/i386/pc/vbeblit.c: Likewise.
34798
34799 * video/i386/pc/vbefill.c: Likewise.
34800
34801 * video/video.c: Likewise. Also added more comments.
34802
34803 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
34804
34805 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
34806 (struct grub_biosdisk_dap): Likewise.
34807
34808 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
34809 linkage settings for all functions.
34810
34811 2006-07-12 Marco Gerards <marco@gnu.org>
34812
34813 * configure.ac (--enable-mm-debug): Fix typo.
34814
34815 * genkernsyms.sh.in: Use proper quoting for `CC'.
34816
34817 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
34818
34819 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
34820 (normal_mod_ASFLAGS): Remove "-m32".
34821
34822 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
34823
34824 * util/misc.c: Include config.h.
34825 [!HAVE_MEMALIGN]: Do not include malloc.h.
34826 (grub_memalign): Use posix_memalign, if present. Then, use
34827 memalign, if present. Otherwise, emit an error.
34828
34829 * util/grub-emu.c: Do not include malloc.h.
34830
34831 * include/grub/util/misc.h: Include unistd.h. This is required for
34832 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
34833 D. Eades III <hde@foobar-qux.org>.
34834
34835 * configure.ac (AC_GNU_SOURCE): Added.
34836 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
34837 type.
34838
34839 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
34840
34841 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
34842 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
34843
34844 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
34845
34846 * include/grub/types.h (grub_host_addr_t): Rename to
34847 grub_target_addr_t.
34848 (grub_host_off_t): Rename to grub_target_off_t.
34849 (grub_host_size_t): Rename to grub_target_size_t.
34850 (grub_host_ssize_t): Rename to grub_target_ssize_t.
34851 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
34852
34853 * include/grub/kernel.h (struct grub_module_header): Change type
34854 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
34855 (grub_module_info): Likewise.
34856
34857 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
34858
34859 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
34860 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
34861 Velazquez <jesus.velazquez@gmail.com>.
34862
34863 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
34864
34865 Count partitions from 1 instead of 0 in the string representation
34866 of partitions. Still use 0-based internally.
34867
34868 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
34869 (sun_partition_map_iterate): Use grub_partition_t instead of
34870 struct grub_partition *. Cast DESC->START_CYLINDER to
34871 grub_uint64_t after converting the endian.
34872 (sun_partition_map_probe): Subtract 1 for PARTNUM.
34873 (sun_partition_map_get_name): Add 1 to P->INDEX.
34874
34875 * partmap/pc.c (grub_partition_parse): Subtract 1 for
34876 PCDATA->DOS_PART.
34877 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
34878
34879 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
34880 zero instead of one.
34881 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
34882 (gpt_partition_map_get_name): Add 1 into P->INDEX.
34883
34884 * partmap/apple.c (apple_partition_map_iterate): Change the type
34885 of POS to unsigned.
34886 (apple_partition_map_probe): Subtract 1 for PARTNUM.
34887 (apple_partition_map_get_name): Add 1 into P->INDEX.
34888
34889 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
34890 of POS to unsigned.
34891 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
34892 calculate the offset of a partition.
34893 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
34894 (amiga_partition_map_get_name): Add 1 into P->INDEX.
34895
34896 * partmap/acorn.c (acorn_partition_map_find): Change the type of
34897 SECTOR to grub_disk_addr_t.
34898 (acorn_partition_map_iterate): Likewise.
34899 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
34900 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
34901 top.
34902 (acorn_partition_map_get_name): Add 1 into P->INDEX.
34903
34904 * kern/i386/pc/init.c (make_install_device): Add 1 into
34905 GRUB_INSTALL_DOS_PART.
34906
34907 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
34908 conditional.
34909
34910 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
34911
34912 Clean up the code to support 64-bit addressing in disks and
34913 files. This change is not enough for filesystems yet.
34914
34915 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
34916 type of "start" to grub_uint64_t.
34917 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
34918 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
34919 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
34920 convert addresses.
34921
34922 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
34923 to grub_disk_addr_t.
34924
34925 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
34926 string.
34927
34928 * partmap/pc.c (pc_partition_map_iterate): Likewise.
34929
34930 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
34931 to char *.
34932
34933 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
34934
34935 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
34936
34937 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
34938
34939 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
34940 to grub_off_t, to detect an error from grub_file_seek.
34941 (grub_multiboot_load_elf32): Likewise.
34942
34943 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
34944 maximum unsigned long value when an overflow is detected.
34945 (grub_strtoull): New function.
34946 (grub_divmod64): Likewise.
34947 (grub_lltoa): use grub_divmod64.
34948
34949 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
34950 grub_disk_addr_t.
34951 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
34952 the pointer to next character. Use grub_strtoull instead of
34953 grub_strtoul.
34954 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
34955 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
34956 respectively.
34957
34958 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
34959 return value is signed.
34960 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
34961 test if OFFSET is less than zero, as OFFSET is unsigned now.
34962
34963 * kern/disk.c (struct grub_disk_cache): Change the type of
34964 "sector" to grub_disk_addr_t.
34965 (grub_disk_cache_get_index): Change the type of SECTOR to
34966 grub_disk_addr_t. Calculate the hash with SECTOR casted to
34967 unsigned after shifting.
34968 (grub_disk_cache_invalidate): Change the type of SECTOR to
34969 grub_disk_addr_t.
34970 (grub_disk_cache_unlock): Likewise.
34971 (grub_disk_cache_store): Likewise.
34972 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
34973 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
34974 grub_disk_addr_t and grub_uint64_t, respectively.
34975 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
34976 body, as the value of OFFSET is tweaked by
34977 grub_disk_check_range. Change the types of START_SECTOR, LEN and
34978 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
34979 respectively.
34980 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
34981 body, as the value of OFFSET is tweaked by
34982 grub_disk_check_range. Change the types of LEN and N to
34983 grub_size_t.
34984
34985 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
34986 and "saved_offset" to grub_off_t.
34987 (test_header): Cast BUF to char *.
34988 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
34989 to char *.
34990 (grub_gzio_read): Change the types of OFFSET and SIZE to
34991 grub_off_t and grub_size_t, respectively.
34992
34993 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
34994 Removed.
34995 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
34996 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
34997 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
34998 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
34999 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
35000
35001 * include/grub/types.h (grub_off_t): Unconditionally set to
35002 grub_uint64_t.
35003 (grub_disk_addr_t): Changed to grub_uint64_t.
35004
35005 * include/grub/partition.h (struct grub_partition): Change the
35006 types of "start", "len" and "offset" to grub_disk_addr_t,
35007 grub_uint64_t and grub_disk_addr_t, respectively.
35008 (grub_partition_get_start): Return grub_disk_addr_t.
35009 (grub_partition_get_len): Return grub_uint64_t.
35010
35011 * include/grub/misc.h (grub_strtoull): New prototype.
35012 (grub_divmod64): Likewise.
35013
35014 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
35015 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
35016 grub_off_t, respectively.
35017 All callers and references changed.
35018
35019 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
35020 grub_size_t in "read".
35021 All callers and references changed.
35022
35023 * include/grub/file.h (struct grub_file): Change the types of
35024 "offset" and "size" to grub_off_t and grub_off_t,
35025 respectively. Change the type of SECTOR to grub_disk_addr_t in
35026 "read_hook".
35027 (grub_file_read): Change the type of LEN to grub_size_t.
35028 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
35029 grub_off_t.
35030 (grub_file_size): Return grub_off_t.
35031 (grub_file_tell): Likewise.
35032 All callers and references changed.
35033
35034 * include/grub/disk.h (struct grub_disk_dev): Change the types of
35035 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
35036 "write".
35037 (struct grub_disk): Change the type of "total_sectors" to
35038 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
35039 "read_hook".
35040 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
35041 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
35042 (grub_disk_write): Likewise.
35043 All callers and references changed.
35044
35045 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
35046 char * for grub_strncmp to silence gcc.
35047 (grub_iso9660_mount): Likewise.
35048 (grub_iso9660_mount): Likewise.
35049 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
35050 return statement.
35051 (grub_iso9660_iterate_dir): Likewise.
35052 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
35053
35054 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
35055 LEN to grub_disk_addr_t and grub_size_t, respectively.
35056
35057 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
35058
35059 * fs/jfs.c (grub_jfs_read_file): Likewise.
35060
35061 * fs/minix.c (grub_jfs_read_file): Likewise.
35062
35063 * fs/sfs.c (grub_jfs_read_file): Likewise.
35064
35065 * fs/ufs.c (grub_jfs_read_file): Likewise.
35066
35067 * fs/xfs.c (grub_jfs_read_file): Likewise.
35068
35069 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
35070 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
35071 respectively.
35072
35073 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
35074 BLKNR to -1 instead of returning GRUB_ERRNO.
35075 (grub_ext2_read_file): Change the types of SECTOR and
35076 LEN to grub_disk_addr_t and grub_size_t, respectively.
35077
35078 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
35079 LEN to grub_disk_addr_t and grub_size_t, respectively.
35080
35081 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
35082 grub_file_read.
35083
35084 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
35085 string. Do not cast SECTOR explicitly.
35086
35087 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
35088 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
35089 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
35090 grub_disk_addr_t and grub_size_t, respectively. If the sector is
35091 over 2TB and LBA mode is not supported, raise an error.
35092 (get_safe_sectors): New function.
35093 (grub_biosdisk_read): Use get_safe_sectors.
35094 (grub_biosdisk_write): Likewise.
35095
35096 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
35097 (grub_efidisk_write): Likewise.
35098
35099 * disk/loopback.c (delete_loopback): Cosmetic changes.
35100 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
35101 correctly.
35102 (grub_loopback_open): Likewise.
35103 (grub_loopback_read): Likewise. Also, change the type of POS to
35104 grub_off_t, and fix the usage of grub_memset.
35105
35106 * commands/i386/pc/play.c: Include grub/machine/time.h.
35107
35108 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
35109 print FILE->SIZE.
35110
35111 * commands/configfile.c: Include grub/env.h.
35112
35113 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
35114 GRUB_ERRNO directly instead. Change the type of POS to
35115 grub_off_t. Follow the coding standard.
35116
35117 * commands/blocklist.c: Include grub/partition.h.
35118 (grub_cmd_blocklist): Return an error if the underlying device is
35119 not a disk. Take the starting sector of a partition into account,
35120 if a partition is used.
35121
35122 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
35123 a length field.
35124 (lba_mode): Support 64-bit addresses.
35125 (chs_mode): Likewise.
35126 (copy_buffer): Adapted to the new offsets of a length field and a
35127 segment field.
35128 (blocklist_default_start): Allocate 64-bit space.
35129
35130 * boot/i386/pc/boot.S (force_lba): Removed.
35131 (boot_drive): Moved to under KERNEL_SECTOR.
35132 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
35133 space.
35134 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
35135 is useless.
35136 (lba_mode): Refactored to support a 64-bit address. More size
35137 optimization.
35138 (setup_sectors): Likewise.
35139
35140 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
35141
35142 * DISTLIST: Added include/grub/i386/linux.h. Removed
35143 include/grub/i386/pc/linux.h
35144
35145 * configure.ac (AC_INIT): Bumped to 1.94.
35146
35147 * config.guess: Updated from gnulib.
35148 * config.sub: Likewise.
35149 * install-sh: Likewise.
35150 * mkinstalldirs: Likewise.
35151
35152 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
35153
35154 * conf/common.rmk (grub_modules_init.lst): Depended on
35155 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
35156 MODSRCFILES.
35157
35158 * genmk.rb (PModule::rule): Reverted the previous change.
35159
35160 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
35161
35162 * conf/common.rmk (grub_modules_init.lst): Depends on
35163 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
35164 that the target does not exist before producing.
35165 (grub_modules_init.h): Remove the target before generating.
35166 (grub_emu_init.c): Likewise.
35167
35168 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
35169
35170 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
35171
35172 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
35173 for the target-specific tests. Make sure that we also have the
35174 up-to-date target variables for those tests.
35175
35176 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
35177
35178 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
35179 (PModule::rule): Likewise.
35180
35181 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
35182
35183 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
35184 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
35185 target-specific flags should be prefixed.
35186 (PModule::rule): Likewise.
35187
35188 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
35189
35190 * configure.ac (CMP): Check if cmp is available explicitly.
35191
35192 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
35193
35194 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
35195 (target_cpu): New variable.
35196 (pkglibdir): Use target_cpu instead of host_cpu.
35197
35198 * util/i386/pc/grub-install.in (host_cpu): Removed.
35199 (target_cpu): New variable.
35200 (pkglibdir): Use target_cpu instead of host_cpu.
35201
35202 * util/genmoddep.c: Removed.
35203
35204 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
35205 instead of GRUB_HOST_SIZEOF_VOID_P.
35206 * kern/dl.c: Likewise.
35207
35208 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
35209 ...
35210 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
35211 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
35212 (GRUB_TARGET_SIZEOF_LONG): ... this.
35213 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
35214 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
35215 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
35216 to ...
35217 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
35218 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
35219 (GRUB_TARGET_SIZEOF_LONG): ... this.
35220 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
35221 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
35222 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
35223 to ...
35224 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
35225 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
35226 (GRUB_TARGET_SIZEOF_LONG): ... this.
35227 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
35228 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
35229
35230 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
35231 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
35232 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
35233 instead of GRUB_HOST_SIZEOF_LONG.
35234 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
35235 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
35236 GRUB_CPU_WORDS_BIGENDIAN.
35237 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
35238 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
35239 grub_host_ssize_t.
35240
35241 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
35242 (genmoddep_SOURCES): Likewise.
35243 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
35244 (genmoddep_SOURCES): Likewise.
35245 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
35246 (genmoddep_SOURCES): Likewise.
35247 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
35248 Likewise.
35249 (genmoddep_SOURCES): Likewise.
35250
35251 * genmoddep.awk: New file.
35252
35253 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
35254 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
35255 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
35256 (PModule::rule): Likewise.
35257 (Program::rule): Likewise.
35258 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
35259 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
35260 respectively.
35261
35262 * configure.ac: Rewritten intensively to use host and target
35263 instead of build and host, respectively.
35264
35265 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
35266 (host_cpu): Removed.
35267 (target_cpu): New variable.
35268 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
35269 (BUILD_CC): Removed.
35270 (BUILD_CFLAGS): Likewise.
35271 (BUILD_CPPFLAGS): Likewise.
35272 (TARGET_CC): New variable.
35273 (TARGET_CFLAGS): Likewise.
35274 (TARGET_CPPFLAGS): Likewise.
35275 (TARGET_LDFLAGS): Likewise.
35276 (AWK): Likewise.
35277 (include): Use target_cpu instead of host_cpu.
35278 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
35279
35280 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
35281
35282 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
35283
35284 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
35285 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
35286 field 'false' to 'exec_on_false'.
35287 (grub_script_create_cmdif): Renamed argument names to reflect above
35288 changes.
35289
35290 * normal/execute.c (grub_script_execute_cmdif): Likewise.
35291
35292 * normal/script.c (grub_script_create_cmdif): Likewise.
35293
35294 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
35295
35296 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
35297 top.
35298 (grub_hfsplus_btree_recptr): Likewise.
35299 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
35300 FILEBLOCK both to pass a block number and store next block
35301 number.
35302 (grub_hfsplus_read_block): Rewritten heavily to support an extent
35303 overflow file correctly. Specify errors appropriately, because
35304 fshelp expects that GRUB_ERRNO is set when fails. Reuse
35305 grub_hfsplus_btree_recptr to get the pointer to a found key.
35306 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
35307 is found.
35308
35309 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
35310 linux.mod.
35311 (_linux_mod_SOURCES): New variable.
35312 (_linux_mod_CFLAGS): Likewise.
35313 (_linux_mod_LDFLAGS): Likewise.
35314 (linux_mod_SOURCES): Likewise.
35315 (linux_mod_CFLAGS): Likewise.
35316 (linux_mod_LDFLAGS): Likewise.
35317
35318 * DISTLIST: Added loader/i386/efi/linux.c,
35319 loader/i386/efi/linux_normal.c and
35320 include/grub/i386/efi/loader.h.
35321
35322 * loader/i386/efi/linux.c: New file.
35323 * loader/i386/efi/linux_normal.c: Likewise.
35324 * include/grub/i386/efi/loader.h: Likewise.
35325
35326 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
35327
35328 * commands/blocklist.c: New file.
35329
35330 * DISTLIST: Added commands/blocklist.c.
35331
35332 * term/efi/console.c (grub_console_highlight_color): Use a lighter
35333 color for the background, and a darker color for the foreground.
35334 (grub_console_checkkey): Return READ_KEY.
35335 (grub_console_cls): Set the background to
35336 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
35337
35338 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
35339
35340 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
35341 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
35342
35343 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
35344 prototype.
35345
35346 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
35347 BG. The spec is wrong again.
35348
35349 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
35350 prototype.
35351 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
35352
35353 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
35354 commands/blocklist.c.
35355 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35356
35357 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
35358 (blocklist_mod_SOURCES): New variable.
35359 (blocklist_mod_CFLAGS): Likewise.
35360 (blocklist_mod_LDFLAGS): Likewise.
35361
35362 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
35363
35364 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
35365 duplication.
35366 (lba_mode): Use %eax more intensively to reduce the code size.
35367
35368 2006-05-20 Marco Gerards <marco@gnu.org>
35369
35370 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
35371
35372 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
35373 for `menuentry'.
35374 (script): Accept leading newlines.
35375 (newlines): New rule to describe 0 or more newlines.
35376 (commands): Accept `command' with trailing newline. Fixed the
35377 order in which arguments were passed to `grub_script_add_cmd'.
35378 Accept commands separated by newlines.
35379 (function): Changed to accept newlines.
35380 (menuentry) Rewritten.
35381
35382 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
35383 front of the list, instead of to the end.
35384
35385 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
35386
35387 * util/i386/pc/grub-install.in (bindir): New variable.
35388 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
35389 Shaver <lbgwjl@gmail.com>.
35390
35391 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
35392
35393 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
35394 grub/machine/linux.h
35395 * loader/i386/pc/linux.c: Likewise.
35396
35397 * include/grub/i386/pc/linux.h: Moved to ...
35398 * include/grub/i386/linux.h: ... here.
35399
35400 * include/grub/i386/linux.h (struct linux_kernel_params): New
35401 struct.
35402
35403 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
35404
35405 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
35406 checking.
35407 (grub_video_vbe_blit_glyph): Likewise.
35408 (grub_video_vbe_blit_bitmap): Likewise.
35409 (grub_video_vbe_blit_render_target): Likewise.
35410
35411 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
35412
35413 * configure.ac (--with-platform): Properly quote the square
35414 brackets.
35415
35416 2006-05-08 Marco Gerards <marco@gnu.org>
35417
35418 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
35419 this...
35420 (kernel_elf_HEADERS): ...to this. Updated all users.
35421 (grubof_symlist.c): Renamed from this...
35422 (kernel_elf_symlist.c): ...to this. Updated all users.
35423 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
35424 (grubof_SOURCES): Renamed from this...
35425 (kernel_elf_SOURCES): ...to this.
35426 (grubof_HEADERS): Renamed from this...
35427 (kernel_elf_HEADERS): ...to this.
35428 (grubof_CFLAGS): Renamed from this...
35429 (kernel_elf_CFLAGS): ...to this.
35430 (grubof_ASFLAGS): Renamed from this...
35431 (kernel_elf_ASFLAGS): ...to this.
35432 (grubof_LDFLAGS): Renamed from this...
35433 (kernel_elf_LDFLAGS): ...to this.
35434
35435 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
35436 this...
35437 (kernel_elf_HEADERS): ...to this. Updated all users.
35438 (grubof_symlist.c): Renamed from this...
35439 (kernel_elf_symlist.c): ...to this. Updated all users.
35440 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
35441 (grubof_SOURCES): Renamed from this...
35442 (kernel_elf_SOURCES): ...to this.
35443 (grubof_HEADERS): Renamed from this...
35444 (kernel_elf_HEADERS): ...to this.
35445 (grubof_CFLAGS): Renamed from this...
35446 (kernel_elf_CFLAGS): ...to this.
35447 (grubof_ASFLAGS): Renamed from this...
35448 (kernel_elf_ASFLAGS): ...to this.
35449 (grubof_LDFLAGS): Renamed from this...
35450 (kernel_elf_LDFLAGS): ...to this.
35451
35452 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
35453 `kernel.elf' instead of `grubof'.
35454
35455 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
35456
35457 Add --with-platform to configure. Use pkglibdir instead of
35458 pkgdatadir. This is reported by Roger Leigh.
35459
35460 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
35461 (host_vendor): Likewise.
35462 (host_os): Likewise.
35463 (pkgdatadir): Likewise.
35464 (platform): New variable.
35465 (pkglibdir): Likewise.
35466 Use PKGLIBDIR instead of PKGDATADIR.
35467
35468 * util/i386/pc/grub-install.in (datadir): Removed.
35469 (host_vendor): Likewise.
35470 (host_os): Likewise.
35471 (pkgdatadir): Likewise.
35472 (platform): New variable.
35473 (pkglibdir): Likewise.
35474 Use PKGLIBDIR instead of PKGDATADIR.
35475
35476 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
35477 instead of GRUB_DATADIR.
35478 (main): Likewise.
35479 * util/i386/pc/grub-mkimage.c (usage): Likewise.
35480 (main): Likewise.
35481 * util/i386/efi/grub-mkimage.c (usage): Likewise.
35482 (main): Likewise.
35483
35484 * configure.ac (--with-platform): New option.
35485 Use PLATFORM instead of HOST_VENDOR to specify a platform.
35486
35487 * Makefile.in: Include a makefile based on PLATFORM instead of
35488 HOST_VENDOR.
35489 (pkgdatadir): Not appended by the machine type.
35490 (pkglibdir): Appended by the machine type.
35491 (host_vendor): Removed.
35492 (platform): New variable.
35493 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
35494 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
35495 (uninstall): Likewise.
35496
35497 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
35498
35499 Use the environment context in the menu. Remove the commands
35500 "default" and "timeout", and use variables instead.
35501
35502 * normal/menu.c: Include grub/env.h.
35503 (print_entry): Cast TITLE to silence gcc.
35504 (get_timeout): New function.
35505 (set_timeout): Likewise.
35506 (get_entry_number): Likewise.
35507 (run_menu): Use a default entry, a fallback entry and a timeout
35508 in the environment variables "default", "fallback" and
35509 "timeout". Also, tweak the default entry if it is not within the
35510 current menu entries.
35511 (grub_menu_run): Use a fallback entry in the environment variable
35512 "fallback".
35513
35514 * normal/main.c (read_config_file): Do not initialize
35515 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
35516 NEWMENU->TIMEOUT.
35517 (grub_normal_execute): Use a data slot to store the menu.
35518
35519 * include/grub/normal.h (struct grub_menu): Removed default_entry,
35520 fallback_entry and timeout.
35521 (struct grub_menu_list): Removed.
35522 (grub_menu_list_t): Likewise.
35523 (struct grub_context): Likewise.
35524 (grub_context_t): Likewise.
35525 (grub_context_get): Likewise.
35526 (grub_context_get_current_menu): Likewise.
35527 (grub_context_push_menu): Likewise.
35528 (grub_context_pop_menu): Likewise.
35529 (grub_default_init): Likewise.
35530 (grub_default_fini): Likewise.
35531 (grub_timeout_init): Likewise.
35532 (grub_timeout_fini): Likewise.
35533
35534 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
35535 and timeout.mod.
35536 (normal_mod_SOURCES): Removed normal/context.c.
35537
35538 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
35539 commands/default.c, commands/timeout.c and normal/context.c.
35540 (normal_mod_SOURCES): Removed normal/context.c.
35541
35542 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
35543 commands/timeout.c and normal/context.c.
35544 (normal_mod_SOURCES): Removed normal/context.c.
35545
35546 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
35547 commands/default.c, commands/timeout.c and normal/context.c.
35548 (normal_mod_SOURCES): Removed normal/context.c.
35549
35550 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
35551 timeout.mod.
35552 (default_mod_SOURCES): Removed.
35553 (default_mod_CFLAGS): Likewise.
35554 (default_mod_LDFLAGS): Likewise.
35555 (timeout_mod_SOURCES): Removed.
35556 (timeout_mod_CFLAGS): Likewise.
35557 (timeout_mod_LDFLAGS): Likewise.
35558
35559 * DISTLIST: Removed commands/default.c, commands/timeout.c and
35560 normal/context.c.
35561
35562 * commands/default.c: Removed.
35563 * commands/timeout.c: Likewise.
35564 * normal/context.c: Likewise.
35565
35566 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
35567
35568 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
35569
35570 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
35571
35572 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
35573 "next" to "prev" for readability.
35574 (struct grub_env_sorted_var): New struct.
35575 (grub_env_context): Renamed to ...
35576 (initial_context): ... this.
35577 (grub_env_var_context): Renamed to ...
35578 (current_context): ... this.
35579 (grub_env_find): Look only at CURRENT_CONTEXT.
35580 (grub_env_context_open): Rewritten to copy exported variables from
35581 previous context.
35582 (grub_env_context_close): Rewritten according to the new
35583 scheme. Also, add an assertion to prevent the initial context from
35584 removed.
35585 (grub_env_insert): Removed the code for the sorted list.
35586 (grub_env_remove): Likewise.
35587 (grub_env_export): Simply mark the variable with
35588 GRUB_ENV_VAR_GLOBAL.
35589 (grub_env_set): A cosmetic change for naming consistency.
35590 (grub_env_get): Likewise.
35591 (grub_env_unset): Likewise.
35592 (grub_env_iterate): Rewritten to sort variables within this
35593 function.
35594 (grub_register_variable_hook): Fixed for naming consistency. Call
35595 grub_env_find again, only if NAME is not found at the first time.
35596 (mangle_data_slot_name): New function.
35597 (grub_env_set_data_slot): Likewise.
35598 (grub_env_get_data_slot): Likewise.
35599 (grub_env_unset_data_slot): Likewise.
35600
35601 * include/grub/env.h (grub_env_var_type): New enum.
35602 (GRUB_ENV_VAR_LOCAL): New constant.
35603 (GRUB_ENV_VAR_GLOBAL): Likewise.
35604 (GRUB_ENV_VAR_DATA): Likewise.
35605 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
35606 "type".
35607 (grub_env_set): Replace VAR with NAME for consistency.
35608 (grub_register_variable_hook): Likewise.
35609 (grub_env_export): Specify the name of the argument.
35610 (grub_env_set_data_slot): New prototype.
35611 (grub_env_get_data_slot): Likewise.
35612 (grub_env_unset_data_slot): Likewise.
35613
35614 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
35615
35616 Extend the loader so that GRUB can accept a loader which comes
35617 back to GRUB when a loaded image exits. Also, this change adds
35618 support for a chainloader on EFI.
35619
35620 * term/efi/console.c: Include grub/misc.h.
35621 (grub_console_checkkey): Display a scan code on the top for
35622 debugging. This will be removed once the EFI port gets stable.
35623 Correct the scan code mapping.
35624
35625 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
35626 allocate memory from larger regions, in order to reduce the number
35627 of allocated regions. Otherwise, the MacOSX loader panics.
35628 (filter_memory_map): Avoid less than 1MB for compatibility with
35629 other loaders.
35630 (add_memory_regions): Allocate from the tail of a region, if
35631 possible, to avoid allocating a region near to 1MB, for the MacOSX
35632 loader.
35633
35634 * kern/efi/init.c (grub_efi_set_prefix): Specify
35635 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
35636
35637 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
35638 argument IMAGE_HANDLE and specify it to get a loaded image.
35639 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
35640 grub_efi_get_loaded_image.
35641 (grub_efi_get_filename): Divide the length by the size of
35642 grub_efi_char16_t.
35643 (grub_efi_get_device_path): New function.
35644 (grub_efi_print_device_path): Print End Device Path nodes. Divide
35645 the length by the size of grub_efi_char16_t for a file path device
35646 path node.
35647
35648 * kern/loader.c (grub_loader_noreturn): New variable.
35649 (grub_loader_set): Accept a new argument NORETURN. Set
35650 GRUB_LOADER_NORETURN to NORETURN.
35651 All callers changed.
35652 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
35653 grub_machine_fini.
35654
35655 * include/grub/efi/efi.h (grub_efi_get_device_path): New
35656 prototype.
35657 (grub_efi_get_loaded_image): Take an argument to specify an image
35658 handle.
35659
35660 * include/grub/loader.h (grub_loader_set): Added one more argument
35661 NORETURN.
35662
35663 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
35664 instead of grub_efi_open_protocol.
35665 (grub_efidisk_get_device_name): Likewise.
35666 (grub_efidisk_close): Print a newline.
35667 (grub_efidisk_get_device_handle): Fixed to use
35668 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
35669 GRUB_EFI_DEVICE_PATH_TYPE.
35670
35671 * disk/efi/efidisk.c (device_path_guid): Moved to ...
35672 * kern/efi/efi.c (device_path_guid): ... here.
35673
35674 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
35675 chain.mod.
35676 (kernel_mod_HEADERS): Added efi/disk.h.
35677 (_chain_mod_SOURCES): New variable.
35678 (_chain_mod_CFLAGS): Likewise.
35679 (_chain_mod_LDFLAGS): Likewise.
35680 (chain_mod_SOURCES): Likewise.
35681 (chain_mod_CFLAGS): Likewise.
35682 (chain_mod_LDFLAGS): Likewise.
35683
35684 * DISTLIST: Added include/grub/efi/chainloader.h,
35685 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
35686
35687 * include/grub/efi/chainloader.h: New file.
35688 * loader/efi/chainloader.c: Likewise.
35689 * loader/efi/chainloader_normal.c: Likewise.
35690
35691 2006-04-30 Marco Gerards <marco@gnu.org>
35692
35693 * commands/configfile.c (grub_cmd_source): New function.
35694 (GRUB_MOD_INIT): Register the commands `source' and `.'.
35695 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
35696
35697 2006-04-30 Marco Gerards <marco@gnu.org>
35698
35699 * normal/execute.c (grub_script_execute_cmd): Change the return
35700 type to `grub_err_t'. Correctly return the error.
35701 (grub_script_execute_cmdline): In case a command line is not a
35702 command or a function, try to interpret it as an assignment.
35703
35704 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
35705
35706 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
35707 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
35708 skip a node whose name is obviously invalid as UTF-16,
35709 i.e. contains a NUL character. Stop the iteration when the last
35710 directory entry is found. Instead of using the return value of
35711 grub_hfsplus_btree_iterate_node, store the value in RET and use
35712 it, because the iterator can be stopped by the last directory
35713 entry.
35714
35715 2006-04-30 Marco Gerards <marco@gnu.org>
35716
35717 * include/grub/env.h (grub_env_export): New prototype. Reported
35718 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
35719
35720 2006-04-30 Marco Gerards <marco@gnu.org>
35721
35722 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
35723 size of the extents in a catalog file record.
35724
35725 2006-04-29 Marco Gerards <marco@gnu.org>
35726
35727 * commands/configfile.c (grub_cmd_configfile): Execute the
35728 configfile within its own context.
35729
35730 * include/grub/env.h (grub_env_context_open): New prototype.
35731 (grub_env_context_close): Likewise.
35732
35733 * kern/env.c (grub_env): Removed.
35734 (grub_env_sorted): Likewise.
35735 (grub_env_context): New variable.
35736 (grub_env_var_context): Likewise.
35737 (grub_env_find): Search both the active context and the global
35738 context.
35739 (grub_env_context_open): New function.
35740 (grub_env_context_close): Likewise.
35741 (grub_env_insert): Likewise.
35742 (grub_env_remove): Likewise.
35743 (grub_env_export): Likewise.
35744 (grub_env_set): Changed to use helper functions to avoid code
35745 duplication.
35746 (grub_env_iterate): Rewritten so both the current context and the
35747 global context are being used.
35748
35749 * normal/command.c (export_command): New function.
35750 (grub_command_init): Register the `export' function.
35751
35752 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
35753
35754 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
35755 explicitly to suppress gcc's warnings.
35756 * fs/fat.c (grub_fat_find_dir): Likewise.
35757 (grub_fat_label): Likewise.
35758 * fs/xfs.c (grub_xfs_read_inode): Likewise.
35759 (grub_xfs_mount): Likewise.
35760 (grub_xfs_label): Likewise.
35761 * fs/affs.c (grub_affs_mount): Likewise.
35762 (grub_affs_label): Likewise.
35763 (grub_affs_iterate_dir): Likewise.
35764 * fs/sfs.c (grub_sfs_mount): Likewise.
35765 (grub_sfs_iterate_dir): Likewise.
35766 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
35767 * fs/hfs.c (grub_hfs_mount): Likewise.
35768 (grub_hfs_cmp_catkeys): Likewise.
35769 (grub_hfs_find_dir): Likewise.
35770 (grub_hfs_dir): Likewise.
35771 (grub_hfs_label): Likewise.
35772 * fs/jfs.c (grub_jfs_mount): Likewise.
35773 (grub_jfs_opendir): Likewise.
35774 (grub_jfs_getent): Likewise.
35775 (grub_jfs_lookup_symlink): Likewise.
35776 (grub_jfs_label): Likewise.
35777 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
35778 (grub_hfsplus_iterate_dir): Likewise.
35779 (grub_hfsplus_btree_iterate_node): Made static.
35780
35781 * util/grub-emu.c (prefix): New variable.
35782 (grub_machine_set_prefix): New function.
35783 (main): Do not set the environment variable "prefix" here. Only
35784 set PREFIX, which is used later by grub_machine_set_prefix.
35785
35786 * include/grub/video.h: Do not include grub/symbol.h.
35787 (grub_video_register): Not exported. This symbol is not defined in
35788 the kernel.
35789 (grub_video_unregister): Likewise.
35790 (grub_video_iterate): Likewise.
35791 (grub_video_setup): Likewise.
35792 (grub_video_restore): Likewise.
35793 (grub_video_get_info): Likewise.
35794 (grub_video_get_blit_format): Likewise.
35795 (grub_video_set_palette): Likewise.
35796 (grub_video_get_palette): Likewise.
35797 (grub_video_set_viewport): Likewise.
35798 (grub_video_get_viewport): Likewise.
35799 (grub_video_map_color): Likewise.
35800 (grub_video_map_rgb): Likewise.
35801 (grub_video_map_rgba): Likewise.
35802 (grub_video_fill_rect): Likewise.
35803 (grub_video_blit_glyph): Likewise.
35804 (grub_video_blit_bitmap): Likewise.
35805 (grub_video_blit_render_target): Likewise.
35806 (grub_video_scroll): Likewise.
35807 (grub_video_swap_buffers): Likewise.
35808 (grub_video_create_render_target): Likewise.
35809 (grub_video_delete_render_target): Likewise.
35810 (grub_video_set_active_render_target): Likewise.
35811
35812 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
35813 Undefined.
35814 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
35815
35816 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
35817 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
35818 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
35819 instead of $(srcdir)/genkernsyms.sh.
35820
35821 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
35822 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
35823 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
35824 instead of $(srcdir)/genkernsyms.sh.
35825
35826 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
35827 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
35828 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
35829 instead of $(srcdir)/genkernsyms.sh.
35830
35831 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
35832 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
35833 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
35834 instead of $(srcdir)/genkernsyms.sh.
35835
35836 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
35837 genkernsyms.sh.
35838
35839 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
35840 genkernsyms.sh.
35841 (gensymlist.sh): New target.
35842 (genkernsyms.sh): Likewise.
35843
35844 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
35845 genkernsyms.sh.in and gensymlist.sh.in.
35846
35847 * genkernsyms.sh: Removed.
35848 * gensymlist.sh: Likewise.
35849
35850 * genkernsyms.sh.in: New file.
35851 * gensymlist.sh.in: Likewise.
35852
35853 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
35854
35855 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
35856 clobber "prefix", since we may have already set it manually.
35857
35858 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
35859
35860 * kern/misc.c (abort): New alias for grub_abort.
35861
35862 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
35863
35864 A new machine-specific function "grub_machine_set_prefix" is
35865 defined. This is called after loading modules, so that a prefix
35866 initialization can use modules. Also, this change adds an
35867 intensive debugging feature for the memory manager via the
35868 configure option "--enable-mm-debug".
35869
35870 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
35871 PART.LEN.
35872
35873 * kern/sparc64/ieee1275/init.c (abort): Removed.
35874 (grub_stop): Likewise.
35875 (grub_exit): New function.
35876 (grub_set_prefix): Renamed to ...
35877 (grub_machine_set_prefix): ... this.
35878 (grub_machine_init): Do not call grub_set_prefix.
35879
35880 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
35881 (grub_machine_set_prefix): ... this.
35882 (grub_machine_init): Do not call grub_set_prefix.
35883
35884 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
35885 (grub_machine_init): Do not set the prefix here.
35886
35887 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
35888
35889 * kern/efi/init.c: Include grub/mm.h.
35890 (grub_efi_set_prefix): New function.
35891
35892 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
35893 (grub_efi_get_filename): New function.
35894 (grub_print_device_path): Renamed to ...
35895 (grub_efi_print_device_path): ... this.
35896
35897 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
35898 [MM_DEBUG] (grub_realloc): Likewise.
35899 [MM_DEBUG] (grub_free): Likewise.
35900 [MM_DEBUG] (grub_memalign): Likewise.
35901 [MM_DEBUG] (grub_mm_debug): New variable.
35902 [MM_DEBUG] (grub_debug_malloc): New function.
35903 [MM_DEBUG] (grub_debug_free): New function.
35904 [MM_DEBUG] (grub_debug_realloc): New function.
35905 [MM_DEBUG] (grub_debug_memalign): New function.
35906
35907 * kern/misc.c (grub_abort): Print a newline to distinguish
35908 the message.
35909
35910 * kern/main.c (grub_main): Call grub_machine_set_prefix and
35911 grub_set_root_dev after loading modules. This is necessary when
35912 setting a prefix depends on modules.
35913
35914 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
35915 (grub_efi_print_device_path): ... this.
35916 (grub_efi_get_filename): New prototype.
35917 (grub_efi_set_prefix): Likewise.
35918
35919 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
35920 and grub/disk.h.
35921 (grub_efidisk_get_device_handle): New prototype.
35922 (grub_efidisk_get_device_name): Likewise.
35923
35924 * include/grub/mm.h: Include config.h.
35925 (MM_DEBUG): Removed.
35926 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
35927 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
35928 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
35929 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
35930 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
35931 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
35932 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
35933 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
35934 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
35935
35936 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
35937
35938 * disk/efi/efidisk.c: Include grub/partition.h.
35939 (iterate_child_devices): New function.
35940 (add_device): First, compare only last device path nodes, so that
35941 devices are sorted by the types.
35942 (grub_efidisk_get_device_handle): New function.
35943 (grub_efidisk_get_device_name): Likewise.
35944
35945 * configure.ac (--enable-mm-debug): New option to enable the
35946 memory manager debugging feature. This makes the binary much
35947 bigger, so is disabled by default.
35948
35949 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
35950
35951 Use grub_abort instead of grub_stop, and grub_exit must be
35952 define in each architecture now. Also, this change adds support
35953 for EFI disks.
35954
35955 * util/i386/pc/grub-probefs.c: Include grub/term.h.
35956 (grub_getkey): New function.
35957 (grub_term_get_current): Likewise.
35958
35959 * util/i386/pc/grub-setup.c: Include grub/term.h.
35960 (grub_getkey): New function.
35961 (grub_term_get_current): Likewise.
35962
35963 * util/misc.c (grub_stop): Renamed to ...
35964 (grub_exit): ... this.
35965
35966 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
35967 (grub_exit): ... this.
35968 (grub_machine_init): Use grub_abort instead of abort.
35969 (grub_stop): Removed.
35970
35971 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
35972 abort.
35973
35974 * kern/i386/pc/startup.S (grub_exit): New function.
35975 (cold_reboot): New label.
35976
35977 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
35978 (grub_efi_init): Call grub_efidisk_init.
35979 (grub_efi_fini): Call grub_efidisk_fini.
35980
35981 * kern/efi/efi.c: Include grub/mm.h.
35982 (grub_efi_console_control_guid): Renamed to ...
35983 (console_control_guid): ... this.
35984 (grub_efi_loaded_image_guid): Renamed to ...
35985 (loaded_image_guid): ... this.
35986 (grub_efi_locate_handle): New function.
35987 (grub_efi_open_protocol): Likewise.
35988 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
35989 GRUB_EFI_CONSOLE_CONTROL_GUID.
35990 (grub_efi_exit): Removed.
35991 (grub_stop): Likewise.
35992 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
35993 (grub_exit): New function.
35994 (grub_print_device_path): Likewise.
35995
35996 * kern/rescue.c (grub_rescue_cmd_exit): New function.
35997 (grub_enter_rescue_mode): Register "exit".
35998
35999 * kern/misc.c (grub_real_dprintf): A cosmetic change.
36000 (grub_abort): New function.
36001
36002 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
36003
36004 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
36005
36006 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
36007
36008 * include/grub/efi/efi.h (grub_efi_exit): Removed.
36009 (grub_print_device_path): New prototype.
36010 (grub_efi_locate_handle): Likewise.
36011 (grub_efi_open_protocol): Likewise.
36012
36013 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
36014 * disk/efi/efidisk.c: Likewise.
36015
36016 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
36017
36018 * include/grub/efi/console_control.h
36019 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
36020
36021 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
36022 last 8 bytes as an array.
36023 (GRUB_EFI_DISK_IO_GUID): New macro.
36024 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
36025 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
36026 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
36027 grub_uint8_t.
36028 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
36029 (struct grub_efi_device_path): Rename the member "sub_type" to
36030 "subtype".
36031 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
36032 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
36033 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
36034 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
36035 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
36036 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
36037 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
36038 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
36039 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
36040 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
36041 (struct grub_efi_pci_device_path): New structure.
36042 (grub_efi_pci_device_path_t): New type.
36043 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
36044 (struct grub_efi_pccard_device_path): New structure.
36045 (grub_efi_pccard_device_path_t): New type.
36046 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
36047 (struct grub_efi_memory_mapped_device_path): New structure.
36048 (grub_efi_memory_mapped_device_path_t): New type.
36049 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
36050 (struct grub_efi_vendor_device_path): New structure.
36051 (grub_efi_vendor_device_path_t): New type.
36052 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
36053 (struct grub_efi_controller_device_path): New structure.
36054 (grub_efi_controller_device_path_t): New type.
36055 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
36056 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
36057 (struct grub_efi_acpi_device_path): New structure.
36058 (grub_efi_acpi_device_path_t): New type.
36059 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
36060 (struct grub_efi_expanded_acpi_device_path): New structure.
36061 (grub_efi_expanded_acpi_device_path_t): New type.
36062 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
36063 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
36064 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
36065 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
36066 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
36067 (struct grub_efi_atapi_device_path): New structure.
36068 (grub_efi_atapi_device_path_t): New type.
36069 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
36070 (struct grub_efi_fibre_channel_device_path): New structure.
36071 (grub_efi_fibre_channel_device_path_t): New type.
36072 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
36073 (struct grub_efi_1394_device_path): New structure.
36074 (grub_efi_1394_device_path_t): New type.
36075 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
36076 (struct grub_efi_usb_device_path): New structure.
36077 (grub_efi_usb_device_path_t): New type.
36078 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
36079 (struct grub_efi_usb_class_device_path): New structure.
36080 (grub_efi_usb_class_device_path_t): New type.
36081 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
36082 (struct grub_efi_i2o_device_path): New structure.
36083 (grub_efi_i2o_device_path_t): New type.
36084 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
36085 (struct grub_efi_mac_address_device_path): New structure.
36086 (grub_efi_mac_address_device_path_t): New type.
36087 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
36088 (struct grub_efi_ipv4_device_path): New structure.
36089 (grub_efi_ipv4_device_path_t): New type.
36090 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
36091 (struct grub_efi_ipv6_device_path): New structure.
36092 (grub_efi_ipv6_device_path_t): New type.
36093 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
36094 (struct grub_efi_infiniband_device_path): New structure.
36095 (grub_efi_infiniband_device_path_t): New type.
36096 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
36097 (struct grub_efi_uart_device_path): New structure.
36098 (grub_efi_uart_device_path_t): New type.
36099 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
36100 (struct grub_efi_vendor_messaging_device_path): New structure.
36101 (grub_efi_vendor_messaging_device_path_t): New type.
36102 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
36103 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
36104 (struct grub_efi_hard_drive_device_path): New structure.
36105 (grub_efi_hard_drive_device_path_t): New type.
36106 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
36107 (struct grub_efi_cdrom_device_path): New structure.
36108 (grub_efi_cdrom_device_path_t): New type.
36109 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
36110 (struct grub_efi_vendor_media_device_path): New structure.
36111 (grub_efi_vendor_media_device_path_t): New type.
36112 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
36113 (struct grub_efi_file_path_device_path): New structure.
36114 (grub_efi_file_path_device_path_t): New type.
36115 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
36116 (struct grub_efi_protocol_device_path): New structure.
36117 (grub_efi_protocol_device_path_t): New type.
36118 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
36119 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
36120 (struct grub_efi_bios_device_path): New structure.
36121 (grub_efi_bios_device_path_t): New type.
36122 (struct grub_efi_disk_io): New structure.
36123 (grub_efi_disk_io_t): New type.
36124 (struct grub_efi_block_io_media): New structure.
36125 (grub_efi_block_io_media_t): New type.
36126 (struct grub_efi_block_io): New structure.
36127 (grub_efi_block_io_t): New type.
36128
36129 * include/grub/misc.h (grub_stop): Removed.
36130 (grub_exit): New prototype.
36131 (grub_abort): Likewise.
36132
36133 * include/grub/disk.h (enum grub_disk_dev_id): Added
36134 GRUB_DISK_DEVICE_EFIDISK_ID.
36135
36136 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
36137 disk/efi/efidisk.c.
36138 (kernel_syms.lst): Remove the target if an error occurs.
36139
36140 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
36141
36142 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
36143 as it was simply too buggy.
36144
36145 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
36146
36147 * kern/misc.c (grub_lltoa): New function.
36148 (grub_vsprintf): Added support for the long long suffix,
36149 i.e. "ll".
36150
36151 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
36152
36153 * Makefile.in (LDFLAGS): Add variable.
36154 (LD): Remove variable.
36155 * configure.ac: Add -m32 to LDFLAGS.
36156 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
36157 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
36158 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
36159 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
36160 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
36161 variables.
36162 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
36163 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
36164 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
36165
36166 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
36167
36168 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
36169 length for unknown glyph.
36170
36171 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
36172
36173 Add support for pre-loaded modules into the EFI port.
36174
36175 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
36176 completely. Accept one more argument DIR. The caller has changed.
36177
36178 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
36179
36180 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
36181 (grub_efi_loaded_image_guid): New variable.
36182 (grub_efi_get_loaded_image): New function.
36183 (grub_arch_modules_addr): Likewise.
36184
36185 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
36186 prototype.
36187
36188 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
36189 (struct grub_efi_loaded_image): New structure.
36190 (grub_efi_loaded_image_t): New type.
36191
36192 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
36193
36194 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
36195 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
36196 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
36197
36198 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
36199
36200 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
36201
36202 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
36203
36204 * DISTLIST: Added include/grub/efi/console.h,
36205 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
36206 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
36207
36208 * include/grub/efi/console.h: New file.
36209 * include/grub/efi/time.h: Likewise.
36210 * include/grub/i386/efi/kernel.h: Likewise.
36211 * kern/efi/init.c: Likewise.
36212 * kern/efi/mm.c: Likewise.
36213 * term/efi/console.c: Likewise.
36214
36215 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
36216 (grub_stop): Removed.
36217 (grub_get_rtc): Likewise.
36218 (grub_machine_init): Simply call grub_efi_init.
36219 (grub_machine_fini): Call grub_efi_fini.
36220
36221 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
36222 (grub_efi_output_string): Removed.
36223 (grub_efi_stall): New function.
36224 (grub_stop): Likewise.
36225 (grub_get_rtc): Likewise.
36226
36227 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
36228 (grub_efi_stall): New prototype.
36229 (grub_efi_allocate_pages): Likewise.
36230 (grub_efi_free_pages): Likewise.
36231 (grub_efi_get_memory_map): Likewise.
36232 (grub_efi_mm_init): Likewise.
36233 (grub_efi_mm_fini): Likewise.
36234 (grub_efi_init): Likewise.
36235 (grub_efi_fini): Likewise.
36236
36237 * include/grub/i386/efi/time.h: Do not include
36238 grub/symbol.h. Include grub/efi/time.h.
36239 (GRUB_TICKS_PER_SECOND): Removed.
36240 (grub_get_rtc): Likewise.
36241
36242 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
36243 Added padding. The EFI spec is buggy.
36244 (GRUB_EFI_BLACK): New macro.
36245 (GRUB_EFI_BLUE): Likewise.
36246 (GRUB_EFI_GREEN): Likewise.
36247 (GRUB_EFI_CYAN): Likewise.
36248 (GRUB_EFI_RED): Likewise.
36249 (GRUB_EFI_MAGENTA): Likewise.
36250 (GRUB_EFI_BROWN): Likewise.
36251 (GRUB_EFI_LIGHTGRAY): Likewise.
36252 (GRUB_EFI_BRIGHT): Likewise.
36253 (GRUB_EFI_DARKGRAY): Likewise.
36254 (GRUB_EFI_LIGHTBLUE): Likewise.
36255 (GRUB_EFI_LIGHTGREEN): Likewise.
36256 (GRUB_EFI_LIGHTCYAN): Likewise.
36257 (GRUB_EFI_LIGHTRED): Likewise.
36258 (GRUB_EFI_LIGHTMAGENTA): Likewise.
36259 (GRUB_EFI_YELLOW): Likewise.
36260 (GRUB_EFI_WHITE): Likewise.
36261 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
36262 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
36263 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
36264 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
36265 (GRUB_EFI_BACKGROUND_RED): Likewise.
36266 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
36267 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
36268 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
36269 (GRUB_EFI_TEXT_ATTR): Likewise.
36270
36271 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
36272 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
36273 (kernel_mod_HEADERS): Added efi/time.h.
36274
36275 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
36276
36277 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
36278 include/grub/efi/api.h, include/grub/efi/console_control.h,
36279 include/grub/efi/efi.h, include/grub/efi/pe32.h,
36280 include/grub/i386/efi/time.h, kern/efi/efi.c,
36281 kern/i386/efi/init.c, kern/i386/efi/startup.S,
36282 and util/i386/efi/grub-mkimage.c.
36283
36284 * Makefile.in (RMKFILES): Added i386-efi.rmk.
36285
36286 * genmk.rb (PModule#rule): Do not export symbols if
36287 #{prefix}_EXPORTS is set to "no".
36288
36289 * conf/i386-efi.mk: New file.
36290 * conf/i386-efi.rmk: Likewise.
36291 * include/grub/efi/api.h: Likewise.
36292 * include/grub/efi/console_control.h: Likewise.
36293 * include/grub/efi/efi.h: Likewise.
36294 * include/grub/efi/pe32.h: Likewise.
36295 * include/grub/i386/efi/time.h: Likewise.
36296 * kern/efi/efi.c: Likewise.
36297 * kern/i386/efi/init.c: Likewise.
36298 * kern/i386/efi/startup.S: Likewise.
36299 * util/i386/efi/grub-mkimage.c: Likewise.
36300
36301 2006-04-17 Marco Gerards <marco@gnu.org>
36302
36303 * include/grub/script.h: Include <grub/parser.h> and
36304 "grub_script.tab.h".
36305 (struct grub_lexer_param): New struct.
36306 (struct grub_parser_param): Likewise.
36307 (grub_script_create_arglist): Pass the state in an argument.
36308 (grub_script_add_arglist): Likewise.
36309 (grub_script_create_cmdline): Likewise.
36310 (grub_script_create_cmdblock): Likewise.
36311 (grub_script_create_cmdif): Likewise.
36312 (grub_script_create_cmdmenu): Likewise.
36313 (grub_script_add_cmd): Likewise.
36314 (grub_script_arg_add): Likewise.
36315 (grub_script_lexer_ref): Likewise.
36316 (grub_script_lexer_deref): Likewise.
36317 (grub_script_lexer_record_start): Likewise.
36318 (grub_script_lexer_record_stop): Likewise.
36319 (grub_script_mem_record): Likewise.
36320 (grub_script_mem_record_stop): Likewise.
36321 (grub_script_malloc): Likewise.
36322 (grub_script_yylex): Likewise.
36323 (grub_script_yyparse): Likewise.
36324 (grub_script_yyerror): Likewise.
36325 (grub_script_yylex): Likewise.
36326 (grub_script_lexer_init): Return the state.
36327
36328 * normal/lexer.c (grub_script_lexer_state): Removed variable.
36329 (grub_script_lexer_done): Likewise.
36330 (grub_script_lexer_getline): Likewise.
36331 (grub_script_lexer_refs): Likewise.
36332 (script): Likewise.
36333 (newscript): Likewise.
36334 (record): Likewise.
36335 (recording): Likewise.
36336 (recordpos): Likewise.
36337 (recordlen): Likewise.
36338 (grub_script_lexer_init): Return the state instead of setting
36339 global variables.
36340 (grub_script_lexer_ref): Use the newly added argument for state
36341 instead of globals.
36342 (grub_script_lexer_deref): Likewise.
36343 (grub_script_lexer_record_start): Likewise.
36344 (grub_script_lexer_record_stop): Likewise.
36345 (recordchar): Likewise.
36346 (nextchar): Likewise.
36347 (grub_script_yylex2): Likewise.
36348 (grub_script_yylex): Likewise.
36349 (grub_script_yyerror): Likewise.
36350
36351 * normal/parser.y (func_mem): Removed variable.
36352 (menu_entry): Likewise.
36353 (err): Likewise.
36354 (%lex-param): New parser option.
36355 (%parse-param): Likewise.
36356 (script): Always return the AST.
36357 (argument): Pass the state around.
36358 (arguments): Likewise.
36359 (grubcmd): Likewise.
36360 (commands): Likewise.
36361 (function): Likewise.
36362 (menuentry): Likewise.
36363 (if_statement): Likewise.
36364 (if): Likewise.
36365
36366 * normal/script.c (grub_script_memused): Removed variable.
36367 (grub_script_parsed): Likewise.
36368 (grub_script_malloc): Added a state argument. Use that instead of
36369 global variables.
36370 (grub_script_mem_record): Likewise.
36371 (grub_script_mem_record_stop): Likewise.
36372 (grub_script_arg_add): Likewise.
36373 (grub_script_add_arglist): Likewise.
36374 (grub_script_create_cmdline): Likewise.
36375 (grub_script_create_cmdif): Likewise.
36376 (grub_script_create_cmdmenu): Likewise.
36377 (grub_script_add_cmd): Likewise.
36378 (grub_script_parse): Setup the state before calling the parser.
36379
36380 2006-04-16 Marco Gerards <marco@gnu.org>
36381
36382 * normal/command.c (grub_command_init): Remove the title command.
36383
36384 * normal/lexer.c (grub_script_yylex): Renamed from this...
36385 (grub_script_yylex2): ... to this.
36386 (grub_script_yylex): New function. Temporary
36387 introduced to filter some tokens.
36388 (grub_script_yyerror): Print a newline.
36389
36390 * normal/main.c (read_config_file): Output information about the
36391 lines that contain errors. Wait for a key after all lines have
36392 been processed. Don't return an empty menu.
36393
36394 * normal/parser.y (func_mem): Don't initialize.
36395 (menu_entry): Likewise.
36396 (err): New variable.
36397 (script): Don't return anything when an error was encountered.
36398 (ws, returns): Removed rules.
36399 (argument): Disabled concatenated variable support.
36400 (arguments): Remove explicit separators.
36401 (grubcmd): Likewise.
36402 (function): Likewise.
36403 (menuentry): Likewise.
36404 (if): Likewise.
36405 (commands): Likewise. Add error handling.
36406
36407 * normal/script.c (grub_script_create_cmdline): If
36408 `grub_script_parsed' is 0, assume the parser encountered an error.
36409
36410 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
36411
36412 * configure.ac: Add support for EFI. Fix the typo
36413 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
36414
36415 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
36416
36417 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
36418 foreign multibyte characters should be shown correctly.
36419
36420 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
36421
36422 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
36423 calculation.
36424 (read_config_file): Made it to close file before returning.
36425
36426 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
36427
36428 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
36429 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
36430 video/i386/pc/vbefill.c.
36431
36432 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
36433 video/i386/pc/vbefill.c.
36434
36435 * include/grub/video.h (grub_video_blit_format): New enum.
36436 (grub_video_mode_info): Added new member blit_format.
36437 (grub_video_get_blit_format): New function prototype.
36438
36439 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
36440 function prototype.
36441 (grub_video_vbe_map_rgb): Likewise.
36442 (grub_video_vbe_unmap_color): Likewise.
36443
36444 * include/grub/i386/pc/vbeblit.h: New file.
36445
36446 * include/grub/i386/pc/vbefill.h: New file.
36447
36448 * video/video.c (grub_video_get_blit_format): New function.
36449 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
36450 (grub_video_vbe_map_rgb): Likewise.
36451 (grub_video_vbe_unmap_color): Likewise.
36452
36453 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
36454 optimized fills.
36455 (grub_video_vbe_blit_render_target): Changed to use more optimized
36456 blits.
36457 (grub_video_vbe_setup): Added detection for optimized settings.
36458 (grub_video_vbe_create_render_target): Likewise.
36459
36460 * video/i386/pc/vbeblit.c: New file.
36461
36462 * video/i386/pc/vbefill.c: New file.
36463
36464 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
36465
36466 * font/manager.c (grub_font_get_glyph): Removed font fixup from
36467 here...
36468
36469 * util/unifont2pff.rb: ... and moved it to here. Improved argument
36470 parsing to support both hex and dec ranges. If filename was missing
36471 show usage information.
36472
36473 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
36474
36475 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
36476 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
36477
36478 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
36479 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
36480 (video_mod_SOURCES): Added.
36481 (video_mod_CFLAGS): Likewise.
36482 (video_mod_LDFLAGS): Likewise.
36483 (gfxterm_mod_SOURCES): Likewise.
36484 (gfxterm_mod_CFLAGS): Likewise.
36485 (gfxterm_mod_LDFLAGS): Likewise.
36486 (videotest_mod_SOURCES): Likewise.
36487 (videotest_mod_CFLAGS): Likewise.
36488 (videotest_mod_LDFLAGS): Likewise.
36489 (vesafb_mod_SOURCES): Removed.
36490 (vesafb_mod_CFLAGS): Likewise.
36491 (vesafb_mod_LDFLAGS): Likewise.
36492 (vga_mod_SOURCES): Likewise.
36493 (vga_mod_CFLAGS): Likewise.
36494 (vga_mod_LDFLAGS): Likewise.
36495
36496 * commands/videotest.c: New file.
36497
36498 * font/manager.c (fill_with_default_glyph): Modified to use
36499 grub_font_glyph.
36500 (grub_font_get_glyph): Likewise.
36501 (fontmanager): Renamed from this...
36502 (font_manager): ... to this.
36503
36504 * include/grub/font.h (grub_font_glyph): Added new structure.
36505 (grub_font_get_glyph): Modified to use grub_font_glyph.
36506
36507 * include/grub/misc.h (grub_abs): Added as inline function.
36508
36509 * include/grub/video.h: New file.
36510
36511 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
36512 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
36513 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
36514 (grub_vbe_get_controller_info): Renamed from this...
36515 (grub_vbe_bios_get_controller_info): ... to this.
36516 (grub_vbe_get_mode_info): Renamed from this...
36517 (grub_vbe_bios_get_mode_info): ... to this.
36518 (grub_vbe_set_mode): Renamed from this...
36519 (grub_vbe_bios_set_mode): ... to this.
36520 (grub_vbe_get_mode): Renamed from this...
36521 (grub_vbe_bios_get_mode): ... to this.
36522 (grub_vbe_set_memory_window): Renamed from this...
36523 (grub_vbe_bios_set_memory_window): ... to this.
36524 (grub_vbe_get_memory_window): Renamed from this...
36525 (grub_vbe_bios_get_memory_window): ... to this.
36526 (grub_vbe_set_scanline_length): Renamed from this...
36527 (grub_vbe_set_scanline_length): ... to this.
36528 (grub_vbe_get_scanline_length): Renamed from this...
36529 (grub_vbe_bios_get_scanline_length): ... to this.
36530 (grub_vbe_set_display_start): Renamed from this...
36531 (grub_vbe_bios_set_display_start): ... to this.
36532 (grub_vbe_get_display_start): Renamed from this...
36533 (grub_vbe_bios_get_display_start): ... to this.
36534 (grub_vbe_set_palette_data): Renamed from this...
36535 (grub_vbe_bios_set_palette_data): ... to this.
36536 (grub_vbe_set_pixel_rgb): Removed.
36537 (grub_vbe_set_pixel_index): Likewise.
36538
36539 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
36540 from this...
36541 (grub_vbe_bios_get_controller_info): ... to this.
36542 (grub_vbe_get_mode_info): Renamed from this...
36543 (grub_vbe_bios_get_mode_info): ... to this.
36544 (grub_vbe_set_mode): Renamed from this...
36545 (grub_vbe_bios_set_mode): ... to this.
36546 (grub_vbe_get_mode): Renamed from this...
36547 (grub_vbe_bios_get_mode): ... to this.
36548 (grub_vbe_set_memory_window): Renamed from this...
36549 (grub_vbe_bios_set_memory_window): ... to this.
36550 (grub_vbe_get_memory_window): Renamed from this...
36551 (grub_vbe_bios_get_memory_window): ... to this.
36552 (grub_vbe_set_scanline_length): Renamed from this...
36553 (grub_vbe_set_scanline_length): ... to this.
36554 (grub_vbe_get_scanline_length): Renamed from this...
36555 (grub_vbe_bios_get_scanline_length): ... to this.
36556 (grub_vbe_set_display_start): Renamed from this...
36557 (grub_vbe_bios_set_display_start): ... to this.
36558 (grub_vbe_get_display_start): Renamed from this...
36559 (grub_vbe_bios_get_display_start): ... to this.
36560 (grub_vbe_set_palette_data): Renamed from this...
36561 (grub_vbe_bios_set_palette_data): ... to this.
36562 (grub_vbe_bios_get_controller_info): Fixed problem with registers
36563 getting corrupted after calling it. Added more pushes and pops.
36564 (grub_vbe_bios_set_mode): Likewise.
36565 (grub_vbe_bios_get_mode): Likewise.
36566 (grub_vbe_bios_get_memory_window): Likewise.
36567 (grub_vbe_bios_set_scanline_length): Likewise.
36568 (grub_vbe_bios_get_scanline_length): Likewise.
36569 (grub_vbe_bios_get_display_start): Likewise.
36570 (grub_vbe_bios_set_palette_data): Likewise.
36571
36572 * normal/cmdline.c (cl_set_pos): Refresh the screen.
36573 (cl_insert): Likewise.
36574 (cl_delete): Likewise.
36575
36576 * term/gfxterm.c: New file.
36577
36578 * term/i386/pc/vesafb.c: Removed file.
36579
36580 * video/video.c: New file.
36581
36582 * video/i386/pc/vbe.c (real2pm): Added new function.
36583 (grub_video_vbe_draw_pixel): Likewise.
36584 (grub_video_vbe_get_video_ptr): Likewise.
36585 (grub_video_vbe_get_pixel): Likewise
36586 (grub_video_vbe_init): Likewise.
36587 (grub_video_vbe_fini): Likewise.
36588 (grub_video_vbe_setup): Likewise.
36589 (grub_video_vbe_get_info): Likewise.
36590 (grub_video_vbe_set_palette): Likewise.
36591 (grub_video_vbe_get_palette): Likewise.
36592 (grub_video_vbe_set_viewport): Likewise.
36593 (grub_video_vbe_get_viewport): Likewise.
36594 (grub_video_vbe_map_color): Likewise.
36595 (grub_video_vbe_map_rgb): Likewise.
36596 (grub_video_vbe_map_rgba): Likewise.
36597 (grub_video_vbe_unmap_color): Likewise.
36598 (grub_video_vbe_fill_rect): Likewise.
36599 (grub_video_vbe_blit_glyph): Likewise.
36600 (grub_video_vbe_blit_bitmap): Likewise.
36601 (grub_video_vbe_blit_render_target): Likewise.
36602 (grub_video_vbe_scroll): Likewise.
36603 (grub_video_vbe_swap_buffers): Likewise.
36604 (grub_video_vbe_create_render_target): Likewise.
36605 (grub_video_vbe_delete_render_target): Likewise.
36606 (grub_video_vbe_set_active_render_target): Likewise.
36607 (grub_vbe_set_pixel_rgb): Remove function.
36608 (grub_vbe_set_pixel_index): Likewise.
36609 (index_color_mode): Remove static variable.
36610 (active_mode): Likewise.
36611 (framebuffer): Likewise.
36612 (bytes_per_scan_line): Likewise.
36613 (grub_video_vbe_adapter): Added new static variable.
36614 (framebuffer): Likewise.
36615 (render_target): Likewise.
36616 (initial_mode): Likewise.
36617 (mode_in_use): Likewise.
36618 (mode_list): Likewise.
36619
36620 2006-03-10 Marco Gerards <marco@gnu.org>
36621
36622 * configure.ac (AC_INIT): Bumped to 1.93.
36623
36624 * DISTLIST: Added `include/grub/hfs.h'.
36625
36626 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
36627
36628 * boot/i386/pc/boot.S (general_error): Before looping, try INT
36629 18H, which might help the BIOS falling back to next boot media.
36630
36631 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
36632
36633 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
36634 Poe Chen <poe.poechen@gmail.com>.
36635
36636 2006-01-17 Marco Gerards <marco@gnu.org>
36637
36638 * include/grub/normal.h: Include <grub/script.h>.
36639 (grub_command_list): Removed struct.
36640 (grub_command_list_t): Removed type.
36641 (grub_menu_entry): Remove members `num' and `command_list'. Add
36642 members `commands' and `sourcecode'.
36643 * include/grub/script.h: Add inclusion guards.
36644 (grub_script_cmd_menuentry): New struct.
36645 (grub_script_execute_menuentry): New prototype.
36646 (grub_script_lexer_record_start): Likewise.
36647 (grub_script_lexer_record_stop): Likewise.
36648 * normal/execute.c (grub_script_execute_menuentry): New function.
36649 * normal/lexer.c (record, recording, recordpos, recordlen): New
36650 variables.
36651 (grub_script_lexer_record_start): New function.
36652 (grub_script_lexer_record_stop): Likewise.
36653 (recordchar): Likewise.
36654 (nextchar): Likewise.
36655 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
36656 2048 as the buffer size. Add the tokens `menuentry' and `@'.
36657 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
36658 (current_menu): New variable.
36659 (free_menu): Mainly rewritten.
36660 (grub_normal_menu_addentry): New function.
36661 (read_config_file): Rewritten.
36662 * normal/menu.c (run_menu_entry): Mainly rewritten.
36663 * normal/menu_entry.c (make_screen): Rewritten the code to insert
36664 the menu entry.
36665 (run): Mainly rewritten.
36666 * normal/parser.y (menu_entry): New variable.
36667 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
36668 (menuentry): New rule.
36669 (command): Add `menuentry'.
36670 (if_statement): Allow additional returns before `fi'.
36671 * normal/script.c (grub_script_create_cmdmenu): New function.
36672
36673 2006-01-03 Marco Gerards <marco@gnu.org>
36674
36675 * INSTALL: GNU Bison is required.
36676 * configure.ac: Rewritten the test to detect Bison.
36677 * Makefile.in (YACC): New variable. Reported by Xun Sun
36678 <xun.sun.cn@gmail.com>.
36679
36680 2006-01-03 Marco Gerards <marco@gnu.org>
36681
36682 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
36683 the HFS+ filesystem to filesystem blocks.
36684 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
36685 GCC warning is silenced.
36686
36687 2006-01-03 Marco Gerards <marco@gnu.org>
36688
36689 * partmap/apple.c (apple_partition_map_iterate): Convert the data
36690 read from disk from big endian to host byte order.
36691
36692 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
36693
36694 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
36695 documentation.
36696 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
36697 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
36698 embedded HFS+ filesystem.
36699 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
36700 (grub_hfs_sblock): Move from here...
36701 * include/grub/hfs.h: To here... New file.
36702 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
36703 documentation.
36704 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
36705 New macros.
36706 (grub_hfsplus_volheader): Change type of member `magic' to
36707 `grub_uint16_t'.
36708 (grub_hfsplus_data): Add new member `embedded_offset'.
36709 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
36710 returned block.
36711 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
36712 Calculate the offset.
36713
36714 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
36715
36716 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
36717 Removed.
36718 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
36719
36720 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
36721
36722 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
36723 ENV->NAME is NULL after allocating ENV->VALUE.
36724
36725 2005-12-25 Marco Gerards <marco@gnu.org>
36726
36727 * kern/env.c (grub_env_set): Rewritten the error handling code.
36728
36729 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
36730
36731 * geninit.sh: Made more robust, and more portable.
36732
36733 2005-12-25 Marco Gerards <marco@gnu.org>
36734
36735 Add support for Apple HFS+ filesystems.
36736
36737 * fs/hfsplus.c: New file.
36738
36739 * DISTLIST: Added `fs/hfsplus.c'.
36740
36741 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
36742 (hfsplus_mod_SOURCES): New variable.
36743 (hfsplus_mod_CFLAGS): Likewise.
36744 (hfsplus_mod_LDFLAGS): Likewise.
36745 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
36746 (grub_setup_SOURCES): Likewise.
36747 (grub_mkdevicemap_SOURCES): Likewise.
36748 (grub_emu_SOURCES): Likewise.
36749 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36750
36751 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
36752
36753 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
36754
36755 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
36756
36757 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
36758 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
36759 include/grub/parser.h, include/grub/script.h, kern/parser.c,
36760 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
36761 normal/lexer.c, normal/parser.y, normal/script.c, and
36762 partmap/gpt.c.
36763 Removed kern/sparc64/cache.c.
36764
36765 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
36766 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
36767 grub_emu_init.c.
36768
36769 * configure.ac (AC_INIT): Bumped to 1.92.
36770
36771 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
36772
36773 * kern/err.c (grub_error_push): Added new function to support error
36774 stacks.
36775 (grub_error_pop): Likewise.
36776 (grub_error_stack_items): New local variable to support error stacks.
36777 (grub_error_stack_pos): Likewise.
36778 (grub_error_stack_assert): Likewise.
36779 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
36780 stack depth.
36781 (grub_print_error): Added support to print errors from error stack.
36782
36783 * include/grub/err.h (grub_error_push): Added function prototype.
36784 (grub_error_pop): Likewise.
36785
36786 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
36787
36788 * configure.ac: Accept `powerpc64' as host_cpu.
36789 (amd64): Rename to `biarch32'.
36790
36791 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
36792 non-cacheline-aligned addresses.
36793
36794 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
36795 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
36796 if `size' is non-zero.
36797
36798 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
36799
36800 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
36801 and `cd' to make sure the filename is not prefixed with a
36802 directory name.
36803 (pkgdata_MODULES): Add `gpt.mod'.
36804 (gpt_mod_SOURCES): New variable.
36805 (gpt_mod_CFLAGS): Likewise.
36806 (gpt_mod_LDFLAGS): Likewise.
36807
36808 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
36809
36810 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
36811 New macro.
36812
36813 * partmap/gpt.c: New file.
36814
36815 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
36816 GPT partition map is detected.
36817
36818 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
36819
36820 * commands/i386/pc/play.c: New file.
36821 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
36822 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
36823 macros.
36824
36825 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
36826
36827 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
36828 ((unused))' to silence gcc warning.
36829
36830 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
36831
36832 * configure.ac: Correct `AC_PROG_YACC' test.
36833
36834 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
36835
36836 * util/powerpc/ieee1275/grub-install.in: Run the mount point
36837 check before installing files.
36838
36839 2005-11-22 Mike Small <smallm@panix.com>
36840
36841 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
36842 number regex so multidigit numbers are recognized correctly.
36843
36844 2005-11-22 Mike Small <smallm@panix.com>
36845
36846 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
36847 debugging message before attempting to claim memory.
36848 (grub_rescue_cmd_initrd): Add a claim debugging message and try
36849 multiple addresses in case of failure.
36850
36851 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
36852
36853 * term/tparm.c (get_space): Remove empty `if' statement.
36854
36855 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
36856
36857 * kern/parser.c (check_varstate): Rename `state' to 's'.
36858
36859 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
36860
36861 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
36862 variable definitions to the beginning of each function. Sort stack
36863 variables by size.
36864 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
36865 `buf' argument to `char *'.
36866
36867 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
36868
36869 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
36870 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
36871 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
36872 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
36873 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
36874 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
36875 configfile.mod, search.mod, gzio.mod and test.mod.
36876 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
36877 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
36878 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
36879 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
36880 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
36881 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
36882 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
36883 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
36884 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
36885 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
36886 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
36887 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
36888 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
36889 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
36890 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
36891 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
36892 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
36893 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
36894 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
36895 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
36896 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
36897 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
36898 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
36899
36900 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
36901 `grep --include'.
36902 (pkgdata_MODULES): Add test.mod.
36903
36904 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
36905
36906 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
36907 appending to variables with "+=".
36908 (PModule): Use full pathname to generate *.lst filenames.
36909
36910 * Makefile.in: Fixed list rules moved from genmk.rb.
36911 (.DELETE_ON_ERROR): New special target.
36912 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
36913
36914 * conf/i386-pc.rmk: Include conf/common.mk.
36915 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
36916 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
36917 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
36918 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
36919 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
36920 configfile.mod, search.mod, gzio.mod and test.mod.
36921 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
36922 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
36923 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
36924 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
36925 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
36926 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
36927 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
36928 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
36929 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
36930 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
36931 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
36932 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
36933 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
36934 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
36935 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
36936 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
36937 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
36938 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
36939 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
36940 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
36941 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
36942 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
36943 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
36944 here...
36945 * conf/common.rmk: ... to here. New file.
36946
36947 * conf/common.mk: New file.
36948
36949 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
36950
36951 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
36952 (grub_script.tab.c): ... here.
36953
36954 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
36955 (grub_script.tab.c): ... here.
36956
36957 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
36958 (grub_script.tab.c): ... here.
36959
36960 * normal/command.c (grub_command_find): Fixed a memory leak of
36961 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
36962
36963 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
36964
36965 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
36966 "@" which marks the start of a comment on ARM.
36967 (VARIABLE): Likewise.
36968
36969 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
36970
36971 Add support for Linux/ADFS partition tables.
36972
36973 * partmap/acorn.c: New file.
36974
36975 * include/grub/acorn_filecore.h: Likewise.
36976
36977 * DISTLIST: Added `partmap/acorn.c' and
36978 `include/grub/acorn_filecore.h'.
36979
36980 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
36981 `partmap/acorn.c'.
36982 (pkgdata_MODULES): Add `acorn.mod'.
36983 (acorn_mod_SOURCES): New variable.
36984 (acorn_mod_CFLAGS): Likewise.
36985
36986 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
36987 `partmap/acorn.c'.
36988 (pkgdata_MODULES): Add `acorn.mod'.
36989 (acorn_mod_SOURCES): New variable.
36990 (acorn_mod_CFLAGS): Likewise.
36991
36992 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
36993 (pkgdata_MODULES): Add `acorn.mod'.
36994 (acorn_mod_SOURCES): New variable.
36995 (acorn_mod_CFLAGS): Likewise.
36996 (acorn_mod_LDFLAGS): Likewise.
36997
36998 * include/types.h (grub_disk_addr_t): New typedef.
36999
37000 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
37001
37002 * geninit.sh: New file.
37003
37004 * geninitheader.sh: Likewise.
37005
37006 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
37007 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
37008 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
37009 * commands/configfile.c (grub_configfile_init)
37010 (grub_configfile_fini): Likewise.
37011 * commands/default.c (grub_default_init, grub_default_fini):
37012 Likewise.
37013 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
37014 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
37015 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
37016 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
37017 Likewise.
37018 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
37019 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
37020 Likewise.
37021 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
37022 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
37023 Likewise.
37024 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
37025 Likewise.
37026 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
37027 Likewise.
37028 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
37029 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
37030 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
37031 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
37032 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
37033 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
37034 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
37035 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
37036 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
37037 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
37038 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
37039 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
37040 * partmap/amiga.c (grub_amiga_partition_map_init)
37041 (grub_amiga_partition_map_fini): Likewise.
37042 * partmap/apple.c (grub_apple_partition_map_init)
37043 (grub_apple_partition_map_fini): Likewise.
37044 * partmap/pc.c (grub_pc_partition_map_init)
37045 (grub_pc_partition_map_fini): Likewise.
37046 * partmap/sun.c (grub_sun_partition_map_init,
37047 grub_sun_partition_map_fini): Likewise.
37048 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
37049 Likewise.
37050
37051 * util/grub-emu.c: Include <grub_modules_init.h>.
37052 (main): Don't initialize and de-initialize any modules directly,
37053 use `grub_init_all' and `grub_fini_all' instead.
37054
37055 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
37056 `grub_vesafb_mod_init'.
37057 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
37058 all users.
37059 * term/i386/pc/vga.c (grub_vga_init): Renamed to
37060 `grub_vga_mod_init'. Updated all users.
37061 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
37062
37063 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
37064 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
37065 rules.
37066
37067 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
37068 Generate a function to initialize the module in utilities.
37069 Updated all callers.
37070 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
37071 initialize the module in utilities. Updated all callers.
37072
37073 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
37074
37075 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
37076 escape sequence and a literal ^L to clear the screen.
37077
37078 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
37079 when returning from Open Firmware.
37080
37081 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
37082
37083 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
37084 (grub_ofconsole_height): Likewise.
37085 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
37086 manually insert a '\n'.
37087 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
37088 `grub_ofconsole_height'. Return early if these are already set.
37089
37090 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
37091
37092 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
37093 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
37094 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
37095 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
37096 and `normal/script.c'.
37097 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
37098 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
37099 (test_mod_SOURCES): New variable.
37100 (test_mod_CFLAGS): Likewise.
37101 (test_mod_LDFLAGS): Likewise.
37102 (pkgdata_MODULES): Add `test.mod'.
37103 (grub_script.tab.c): New rule.
37104 (grub_script.tab.h): Likewise.
37105
37106 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
37107
37108 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
37109 `commands/test.c', `normal/execute.c', `normal/lexer.c',
37110 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
37111 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
37112 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
37113 (test_mod_SOURCES): New variable.
37114 (test_mod_CFLAGS): Likewise.
37115 (pkgdata_MODULES): Add `test.mod'.
37116 (grub_script.tab.c): New rule.
37117 (grub_script.tab.h): Likewise.
37118
37119 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
37120
37121 Add initial scripting support.
37122
37123 * commands/test.c: New file.
37124 * include/grub/script.h: Likewise.
37125 * normal/execute.c: Likewise.
37126 * normal/function.c: Likewise.
37127 * normal/lexer.c: Likewise.
37128 * normal/parser.y: Likewise.
37129 * normal/script.c: Likewise.
37130
37131 * configure.ac: Add `AC_PROG_YACC' test.
37132
37133 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
37134 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
37135 `normal/function.c' and `normal/script.c'.
37136 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
37137 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
37138 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
37139 variables.
37140 (pkgdata_MODULES): Add `test.mod'.
37141 (grub_script.tab.c): New rule.
37142 (grub_script.tab.h): Likewise.
37143
37144 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
37145
37146 * include/grub/normal.h (grub_test_init): New prototype.
37147 (grub_test_fini): Likewise.
37148
37149 * normal/command.c: Include <grub/script.h>.
37150 (grub_command_execute): Rewritten.
37151
37152 * util/grub-emu.c (main): Call `grub_test_init' and
37153 `grub_test_fini'.
37154
37155 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
37156
37157 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
37158 to 0.
37159 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
37160 there are no pending characters.
37161
37162 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
37163
37164 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
37165 `grub_strndup' to drop device arguments. Replace unnecessary
37166 `grub_strndup' with `grub_strdup'.
37167
37168 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
37169
37170 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
37171 `debug' environment variable has been set.
37172
37173 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
37174
37175 * Makefile.in (install-local): Use $(DATA).
37176 (uninstall): Likewise.
37177 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
37178 (sbin_UTILITIES): ... to here.
37179 (sbin_SCRIPTS): New variable.
37180 (grub_install_SOURCES): New variable.
37181 * util/powerpc/ieee1275/grub-install.in: New file.
37182 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
37183 variable.
37184 (add_segments): Call `grub_util_get_path'.
37185
37186 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
37187
37188 From Timothy Baldwin:
37189 * commands/ls.c (grub_ls_list_files): Close FILE with
37190 grub_file_close.
37191 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
37192
37193 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
37194
37195 * include/grub/parser.h: New file.
37196
37197 * kern/parser.c: Likewise.
37198
37199 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
37200 (grub_setup_SOURCES): Likewise.
37201 (grub_probefs_SOURCES): Likewise.
37202 (grub_emu_SOURCES): Likewise.
37203 (kernel_img_HEADERS): Add `parser.h'.
37204
37205 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
37206 (grub_emu_SOURCES): Add `kern/parser.c'.
37207 (grubof_SOURCES): Likewise.
37208
37209 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
37210 (grubof_SOURCES): Add `kern/parser.c'.
37211
37212 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
37213
37214 * kern/misc.c (grub_split_cmdline): Removed function.
37215
37216 * kern/rescue.c: Include <grub/parser.h>.
37217 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
37218 of `grub_split_cmdline'.
37219
37220 * normal/command.c: Include <grub/parser.h>.
37221 (grub_command_execute): Use `grub_parser_split_cmdline' instead
37222 of `grub_split_cmdline'.
37223
37224 * normal/completion.c: Include <grub/parser.h>.
37225 (cmdline_state): New variable.
37226 (iterate_dir): End the filename with a quote depending on the
37227 command line state.
37228 (get_state): new function.
37229 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
37230 split the arguments and determine the current argument. When the
37231 argument string is not quoted, escape all spaces.
37232
37233 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
37234
37235 * normal/sparc64/setjmp.S: New file.
37236
37237 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
37238
37239 * include/grub/sparc64/libgcc.h: New file.
37240 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
37241 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
37242 normal/sparc64/setjmp.c.
37243
37244 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
37245
37246 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
37247 * kern/sparc64/cache.S: New file.
37248 * kern/sparc64/cache.c: Removed.
37249 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
37250 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
37251 -mtune=ultrasparc.
37252 (COMMON_LDFLAGS): Add -melf64_sparc.
37253 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
37254 (grubof_SOURCES): Use cache.S instead of cache.c.
37255 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
37256 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
37257 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
37258 commented though.
37259 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
37260 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
37261 (linux_mod_CFLAGS): Commented out.
37262 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
37263 out because module isn't built.
37264 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
37265 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
37266 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
37267 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
37268 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
37269 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
37270 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
37271 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
37272 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
37273 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
37274 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
37275 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
37276 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
37277 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
37278
37279 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
37280
37281 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
37282 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
37283 longer, because HFS should not be used on PC.
37284
37285 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
37286
37287 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
37288 consistently within the loop.
37289
37290 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
37291
37292 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
37293 directory can not be read.
37294
37295 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
37296
37297 * configure.ac (AC_INIT): Increase the version number to 1.91.
37298
37299 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
37300 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
37301 term/i386/pc/serial.c.
37302
37303 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
37304
37305 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
37306 file size must be permitted.
37307
37308 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
37309 between %ah and %al.
37310
37311 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
37312
37313 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
37314 grub_uint64_t.
37315 Call the hook with a NUL-terminated filename.
37316 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
37317 grub_cpu_to_be32.
37318
37319 * kern/term.c (cursor_state): New variable.
37320 (grub_term_set_current): Reset the cursor state on a new
37321 terminal.
37322 (grub_setcursor): Rewritten to use CURSOR_STATE.
37323 (grub_getcursor): New function.
37324
37325 * include/grub/term.h (grub_getcursor): New prototype.
37326
37327 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
37328 integers on ARM. Reported by Timothy Baldwin
37329 <T.E.Baldwin99@members.leeds.ac.uk>.
37330
37331 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
37332
37333 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
37334 allocated.
37335 (grub_sfs_dir): Likewise.
37336
37337 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
37338
37339 Add support for the SFS filesystem.
37340
37341 * fs/sfs.c: New file.
37342
37343 * DISTLIST: Added `fs/sfs.c'.
37344
37345 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
37346 (grub_probefs_SOURCES): Likewise.
37347 (grub_emu_SOURCES): Likewise.
37348 (pkgdata_MODULES): Add `sfs.mod'.
37349 (sfs_mod_SOURCES): New variable.
37350 (sfs_mod_CFLAGS): Likewise.
37351 (sfs_mod_LDFLAGS): Likewise.
37352
37353 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
37354 (pkgdata_MODULES): Add `sfs.mod'.
37355 (sfs_mod_SOURCES): New variable.
37356 (sfs_mod_CFLAGS): Likewise.
37357
37358 * util/grub-emu.c (main): Call `grub_sfs_init' and
37359 `grub_sfs_fini'.
37360
37361 * include/grub/fs.h (grub_sfs_init): New prototype.
37362 (grub_sfs_fini): Likewise.
37363
37364 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
37365
37366 Add support for the AFFS filesystem.
37367
37368 * fs/affs.c: New file.
37369
37370 * DISTLIST: Added `fs/affs.c'.
37371
37372 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
37373 (grub_probefs_SOURCES): Likewise.
37374 (grub_emu_SOURCES): Likewise.
37375 (pkgdata_MODULES): Add `affs.mod'.
37376 (affs_mod_SOURCES): New variable.
37377 (affs_mod_CFLAGS): Likewise.
37378 (affs_mod_LDFLAGS): Likewise.
37379
37380 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
37381 (pkgdata_MODULES): Add `affs.mod'.
37382 (affs_mod_SOURCES): New variable.
37383 (affs_mod_CFLAGS): Likewise.
37384
37385 * util/grub-emu.c (main): Call `grub_affs_init' and
37386 `grub_affs_fini'.
37387
37388 * include/grub/fs.h (grub_affs_init): New prototype.
37389 (grub_affs_fini): Likewise.
37390
37391 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
37392
37393 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
37394
37395 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
37396
37397 * configure.ac: Accept `x86_64' as host_cpu. In that case add
37398 `-m32' to CFLAGS.
37399
37400 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
37401 linking.
37402
37403 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
37404 (COMMON_LDFLAGS): New variable.
37405 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
37406 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
37407 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
37408 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
37409 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
37410 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
37411 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
37412 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
37413 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
37414 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
37415 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
37416 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
37417 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
37418 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
37419 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
37420 variables.
37421 (normal_mod_ASFLAGS): Add `-m32'.
37422
37423 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
37424 (grub_host_size_t, grub_host_ssize_t): New types.
37425 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
37426 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
37427 `GRUB_HOST_SIZEOF_VOID_P'.
37428
37429 * include/grub/kernel.h (struct grub_module_header): Type of
37430 member offset changed to `grub_host_off_t'. Type of member size
37431 changed to `grub_host_size_t'.
37432 (struct grub_module_info): Type of member offset changed to
37433 `grub_host_off_t'. Type of member size changed to
37434 `grub_host_size_t'.
37435
37436 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
37437
37438 Make GRUB's kernel compliant to Multiboot Specification.
37439
37440 * kern/i386/pc/startup.S (multiboot_header): New label.
37441 (multiboot_entry): Likewise.
37442 (multiboot_trampoline): Likewise.
37443
37444 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
37445 Increased to 0x4A0.
37446
37447 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
37448 put parentheses after a question mark.
37449 [!GRUB_UTIL] (my_mod): New variable.
37450
37451 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
37452
37453 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
37454
37455 Adds support for the XFS filesystem. Btrees are not supported
37456 yet.
37457
37458 * fs/xfs.c: New file.
37459
37460 * DISTLIST: Added `fs/xfs.c'.
37461
37462 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
37463 (grub_probefs_SOURCES): Likewise.
37464 (grub_emu_SOURCES): Likewise.
37465 (pkgdata_MODULES): Add `xfs.mod'.
37466 (xfs_mod_SOURCES): New variable.
37467 (xfs_mod_CFLAGS): Likewise.
37468
37469 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
37470 (pkgdata_MODULES): Add `xfs.mod'.
37471 (xfs_mod_SOURCES): New variable.
37472 (xfs_mod_CFLAGS): Likewise.
37473
37474 * util/grub-emu.c (main): Call `grub_xfs_init' and
37475 `grub_xfs_fini'.
37476
37477 * include/grub/fs.h (grub_xfs_init): New prototype.
37478 (grub_xfs_fini): Likewise.
37479
37480
37481 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
37482
37483 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
37484 color modes, allow greater than 16 colors to be configured as
37485 a default palette.
37486
37487 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
37488
37489 * normal/completion.c (complete_arguments): Add the qualifier
37490 const into OPTIONS.
37491
37492 From Omniflux <omniflux+lists@omniflux.com>:
37493 * include/grub/terminfo.h: New file.
37494 * include/grub/tparm.h: Likewise.
37495 * include/grub/i386/pc/serial.h: Likewise.
37496 * term/terminfo.c: Likewise.
37497 * term/tparm.c: Likewise.
37498 * term/i386/pc/serial.c: Likewise.
37499 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
37500 serial.mod.
37501 (terminfo_mod_SOURCES): New variable.
37502 (terminfo_mod_CFLAGS): Likewise.
37503 (serial_mod_SOURCES): Likewise.
37504 (serial_mod_CFLAGS): Likewise.
37505
37506 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
37507
37508 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
37509 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
37510 and kern/powerpc/ieee1275/cmain.c, respectively.
37511
37512 * boot/powerpc/ieee1275/crt0.S: Moved to ...
37513 * kern/powerpc/ieee1275/crt0.S: ... here.
37514
37515 * boot/powerpc/ieee1275/cmain.c: Moved to ...
37516 * kern/powerpc/ieee1275/cmain.c: ... here.
37517
37518 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
37519 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
37520 instead of boot/powerpc/ieee1275/crt0.S and
37521 boot/powerpc/ieee1275/cmain.c, respectively.
37522
37523 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
37524 sectors. It was not used anyway.
37525
37526 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
37527
37528 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
37529 `unused parameter' warning.
37530
37531 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
37532
37533 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
37534 function.
37535 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
37536 getcharwidth.
37537
37538 2005-08-28 Marco Gerards <metgerards@student.han.nl>
37539
37540 * include/grub/normal.h (enum grub_completion_type): Added
37541 `GRUB_COMPLETION_TYPE_ARGUMENT'.
37542
37543 * normal/cmdline.c (print_completion): Handle
37544 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
37545 * normal/menu_entry.c (store_completion): Likewise.
37546
37547 * normal/completion.c (complete_arguments): New function.
37548 (grub_normal_do_completion): Call `complete_arguments' when the
37549 current words start with a dash.
37550
37551 2005-08-27 Marco Gerards <metgerards@student.han.nl>
37552
37553 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
37554 `gzio.mod' instead of `io.mod').
37555
37556 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
37557
37558 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
37559 (DISTDIRS): Added io and video.
37560 Rewrite the search routine to make an output consistently.
37561
37562 * DISTLIST: Added conf/sparc64-ieee1275.mk,
37563 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
37564 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
37565 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
37566 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
37567 util/powerpc/ieee1275/misc.c.
37568
37569 * include/grub/gzio.h: New file.
37570 * io/gzio.c: Likewise.
37571
37572 * kern/file.c (grub_file_close): Call grub_device_close only if
37573 FILE->DEVICE is not NULL.
37574
37575 * include/grub/mm.h [!NULL] (NULL): New macro.
37576
37577 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
37578
37579 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
37580 (pkgdata_MODULES): Added gzio.mod.
37581 (gzio_mod_SOURCES): New variable.
37582 (gzio_mod_CFLAGS): Likewise.
37583
37584 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
37585 (pkgdata_MODULES): Added gzio.mod.
37586 (gzio_mod_SOURCES): New variable.
37587 (gzio_mod_CFLAGS): Likewise.
37588
37589 * commands/cat.c: Include grub/gzio.h.
37590 (grub_cmd_cat): Use grub_gzfile_open instead of
37591 grub_file_open.
37592
37593 * commands/cmp.c: Include grub/gzio.h.
37594 (grub_cmd_cmp): Use grub_gzfile_open instead of
37595 grub_file_open.
37596
37597 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
37598 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
37599 grub_file_open.
37600 (grub_rescue_cmd_module): Likewise.
37601
37602 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
37603
37604 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
37605 kern/sparc64/ieee1275/init.c because it contains _start.
37606 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
37607
37608 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
37609
37610 * configure.ac: Add support for sparc64 host with ieee1275
37611 firmware.
37612 * configure: Generated from configure.ac.
37613 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
37614 instead of int.
37615 (grub_ofdisk_read): Likewise.
37616 (grub_ofdisk_open): Use %p to print pointer values, and cast the
37617 pointers as (void *) to remove a warning.
37618 (grub_ofdisk_close): Likewise.
37619 (grub_ofdisk_read): Likewise.
37620 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
37621 returns, so make it return void to remove a warning.
37622 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
37623 Corresponding prototype change.
37624 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
37625 values, and cast the pointers as (void *) to remove a warning.
37626 (grub_mm_dump): Likewise.
37627 * conf/sparc64-ieee1275.mk: New file.
37628 * conf/sparc64-ieee1275.rmk: Likewise.
37629 * include/grub/sparc64/setjmp.h: Likewise.
37630 * include/grub/sparc64/types.h: Likewise.
37631 * include/grub/sparc64/ieee1275/console.h: Likewise.
37632 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
37633 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
37634 * include/grub/sparc64/ieee1275/time.h: Likewise.
37635 * kern/sparc64/cache.c: Likewise.
37636 * kern/sparc64/dl.c: Likewise.
37637 * kern/sparc64/ieee1275/init.c: Likewise.
37638 * kern/sparc64/ieee1275/openfw.c: Likewise.
37639
37640 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
37641
37642 * util/console.c (grub_ncurses_putchar): If C is greater than
37643 0x7f, set C to a question mark.
37644 (grub_ncurses_getcharwidth): New function.
37645 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
37646 getcharwidth.
37647
37648 * normal/menu.c (print_entry): Made aware of Unicode. First,
37649 convert TITLE to UCS-4, and predict the cursor position by
37650 grub_getcharwidth.
37651
37652 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
37653 const to SRC.
37654 * kern/misc.c (grub_utf16_to_utf8): Likewise.
37655
37656 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
37657
37658 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
37659 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
37660 grub_strcat.
37661
37662 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
37663 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
37664 grub_strcpy and grub_strlen. Take it into account that a space
37665 character is inserted as a delimiter.
37666
37667 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
37668
37669 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
37670 invalid magic in the error.
37671
37672 * commands/search.c: New file.
37673
37674 * util/grub-emu.c (main): Call grub_search_init and
37675 grub_search_fini.
37676
37677 * kern/rescue.c (grub_rescue_print_disks): Removed.
37678 (grub_rescue_print_devices): New function.
37679 (grub_rescue_cmd_ls): Use grub_device_iterate with
37680 grub_rescue_print_devices instead of grub_disk_dev_iterate with
37681 grub_rescue_print_disks.
37682
37683 * kern/partition.c (grub_partition_iterate): Return the result of
37684 PARTMAP->ITERATE instead of GRUB_ERRNO.
37685
37686 * kern/device.c: Include grub/partition.h.
37687 (grub_device_iterate): New function.
37688
37689 * include/grub/partition.h (grub_partition_iterate): Return int
37690 instead of grub_err_t.
37691
37692 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
37693 prototype.
37694 [GRUB_UTIL] (grub_search_fini): Likewise.
37695
37696 * include/grub/device.h (grub_device_iterate): New prototype.
37697
37698 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
37699 commands/search.c.
37700 (pkgdata_MODULES): Added search.mod.
37701 (search_mod_SOURCES): New variable.
37702 (search_mod_CFLAGS): Likewise.
37703
37704 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
37705 (pkgdata_MODULES): Added search.mod.
37706 (search_mod_SOURCES): New variable.
37707 (search_mod_CFLAGS): Likewise.
37708
37709 * commands/ls.c (grub_ls_list_disks): Renamed to ...
37710 (grub_ls_list_devices): ... this, and use grub_device_iterate.
37711 All callers changed.
37712
37713 * DISTLIST: Added commands/search.c.
37714
37715 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
37716
37717 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
37718 conversion.
37719 (grub_getcharwidth): New function.
37720
37721 * kern/misc.c (grub_utf8_to_ucs4): New function.
37722
37723 * include/grub/term.h (struct grub_term): Added a new member
37724 "getcharwidth".
37725 (grub_getcharwidth): New prototype.
37726
37727 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
37728
37729 * term/i386/pc/console.c (map_char): New function. Segregated from
37730 grub_console_putchar.
37731 (grub_console_putchar): Use map_char.
37732 (grub_console_getcharwidth): New function.
37733 (grub_console_term): Specified grub_console_getcharwidth as
37734 getcharwidth.
37735
37736 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
37737 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
37738
37739 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
37740 GRUB_ERRNO.
37741 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
37742 on grub_strtoul completely.
37743 (write_char): Declare local variables in the beginning of the
37744 function.
37745 (grub_vesafb_getcharwidth): New function.
37746 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
37747 getcharwidth.
37748
37749 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
37750
37751 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
37752 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
37753 commands/i386/pc/vbetest.c.
37754
37755 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
37756 call grub_vbe_get_controller_info again, because the returned
37757 information is volatile.
37758 (grub_vbe_set_video_mode): Mostly rewritten.
37759 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
37760 grub_vbe_status_t correctly.
37761 (grub_vbe_get_video_mode_info): Likewise.
37762 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
37763 several if statements.
37764
37765 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
37766 * commands/i386/pc/vbeinfo.c: ... this.
37767
37768 * commands/i386/pc/vbe_test.c: Renamed to ...
37769 * commands/i386/pc/vbetest.c: ... this.
37770
37771 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
37772 ...
37773 (grub_cmd_vbeinfo): ... this. Save video modes before
37774 iterating. Skip a video mode, if it is not available, not enough
37775 information is given or it is monochrome. Show the memory
37776 model. Leave the interpretation of MODEVAR to grub_strtoul
37777 completely.
37778 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
37779 (GRUB_MOD_FINI): Likewise.
37780
37781 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
37782 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
37783 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
37784 duplicated grub_env_get. Leave the interpretation of MODEVAR to
37785 grub_strtoul completely.
37786 (real2pm): Removed.
37787 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
37788 (GRUB_MOD_FINI): Likewise.
37789
37790 * normal/misc.c: Include grub/mm.h.
37791
37792 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
37793 vbe_list_modes with vbetest.mod and vbeinfo.mod.
37794 (vbe_list_modes_mod_SOURCES): Removed.
37795 (vbe_list_modes_mod_CFLAGS): Likewise.
37796 (vbe_test_mod_SOURCES): Likewise.
37797 (vbe_test_mod_CFLAGS): Likewise.
37798 (vbeinfo_mod_SOURCES): New variable.
37799 (vbeinfo_mod_CFLAGS): Likewise.
37800 (vbetest_mod_SOURCES): Likewise.
37801 (vbetest_mod_CFLAGS): Likewise.
37802
37803 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
37804
37805 * normal/misc.c: New file.
37806
37807 * DISTLIST: Added normal/misc.c.
37808
37809 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
37810 DISK to HOOK. Call HOOK with DISK.
37811 * partmap/apple.c (apple_partition_map_iterate): Likewise.
37812 * partmap/pc.c (pc_partition_map_iterate): Likewise.
37813 * partmap/sun.c (sun_partition_map_iterate): Likewise.
37814
37815 * normal/menu_entry.c (struct screen): Added a new member
37816 "completion_shown".
37817 (completion_buffer): New global variable.
37818 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
37819 (store_completion): New function.
37820 (complete): Likewise.
37821 (clear_completions): Likewise.
37822 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
37823 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
37824 a tab, call complete.
37825
37826 * normal/completion.c (disk_dev): Removed.
37827 (print_simple_completion): Likewise.
37828 (print_partition_completion): Likewise.
37829 (print_func): New global variable.
37830 (add_completion): Do not take the arguments WHAT or PRINT any
37831 longer. Added a new argument TYPE. Instead of printing directly,
37832 call PRINT_FUNC if not NULL.
37833 All callers changed.
37834 (complete_device): Use a local variable DEV instead of
37835 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
37836 (grub_normal_do_completion): Take a new argument HOOK. Do not
37837 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
37838 empty string, return NULL instead.
37839 All callers changed.
37840
37841 * normal/cmdline.c (print_completion): New function.
37842
37843 * kern/partition.c (grub_partition_iterate): Add an argument DISK
37844 to HOOK.
37845 All callers changed.
37846
37847 * kern/disk.c (grub_print_partinfo): Removed.
37848
37849 * include/grub/partition.h (struct grub_partition_map): Add a new
37850 argument DISK into HOOK of ITERATE.
37851 (grub_partition_iterate): Add a new argument DISK to HOOK.
37852
37853 * include/grub/normal.h (enum grub_completion_type): New enum.
37854 (grub_completion_type_t): New type.
37855 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
37856 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
37857 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
37858 (GRUB_COMPLETION_TYPE_FILE): Likewise.
37859 (grub_normal_do_completion): Added a new argument HOOK.
37860 (grub_normal_print_device_info): New prototype.
37861
37862 * include/grub/disk.h (grub_print_partinfo): Removed.
37863
37864 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
37865 (normal_mod_SOURCES): Likewise.
37866 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37867 (normal_mod_SOURCES): Likewise.
37868
37869 * commands/ls.c (grub_ls_list_disks): Use
37870 grub_normal_print_device_info instead of grub_print_partinfo. Free
37871 PNAME.
37872 (grub_ls_list_files): Use grub_normal_print_device_info instead of
37873 duplicating the code.
37874
37875 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
37876
37877 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
37878 follow GCS more precisely.
37879 * commands/i386/pc/vbe_test.c: Likewise.
37880 * include/grub/i386/pc/vbe.h: Likewise.
37881 * term/i386/pc/vesafb.c: Likewise.
37882 * video/i386/pc/vbe.c: Likewise.
37883
37884 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
37885
37886 * DISTLIST: Added term/i386/pc/vesafb.c
37887 DISTLIST: Added video/i386/pc/vbe.c
37888 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
37889 DISTLIST: Added commands/i386/pc/vbe_test.c.
37890 * commands/i386/pc/vbe_list_modes.c: New file.
37891 * commands/i386/pc/vbe_test.c: Likewise.
37892 * term/i386/pc/vesafb.c: Likewise.
37893 * video/i386/pc/vbe.c: Likewise.
37894 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
37895 (grub_vbe_probe) Added prototype.
37896 (grub_vbe_set_video_mode) Likewise.
37897 (grub_vbe_get_video_mode) Likewise.
37898 (grub_vbe_get_video_mode_info) Likewise.
37899 (grub_vbe_set_pixel_rgb) Likewise.
37900 (grub_vbe_set_pixel_index) Likewise.
37901 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
37902 (pkgdata_MODULES): Added vesafb.mod.
37903 (pkgdata_MODULES): Added vbe_list_modes.mod.
37904 (pkgdata_MODULES): Added vbe_test.mod.
37905 (vbe_mod_SOURCES): Added.
37906 (vbe_mod_CFLAGS): Likewise.
37907 (vesafb_mod_SOURCES): Likewise.
37908 (vesafb_mod_CFLAGS): Likewise.
37909 (vbe_list_modes_mod_SOURCES): Likewise.
37910 (vbe_list_modes_mod_CFLAGS): Likewise.
37911 (vbe_test_mod_SOURCES): Likewise.
37912 (vbe_test_mod_CFLAGS): Likewise.
37913
37914 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
37915
37916 * normal/command.c (grub_command_execute): If INTERACTIVE is
37917 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
37918 CMDLINE. Disable the pager if INTERACTIVE is true.
37919 All callers are changed.
37920
37921 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
37922 before reading a config file.
37923 * normal/main.c (read_config_file): Even if a command is not
37924 found, register it if it is within an entry.
37925
37926 * util/grub-emu.c: Include sys/types.h and unistd.h.
37927 (options): Added --hold.
37928 (struct arguments): Added a new member "hold".
37929 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
37930 missing.
37931 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
37932 cleared by a debugger, if it is not zero.
37933
37934 * include/grub/normal.h (grub_command_execute): Add an argument
37935 INTERACTIVE.
37936
37937 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
37938
37939 * DISTLIST: Added include/grub/i386/pc/vbe.h.
37940
37941 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
37942
37943 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
37944 program with another one, because the old one didn't detect a bug
37945 in gcc-3.4. Always use regparm 2, because the new test is still
37946 not enough for gcc-4.0. Someone must investigate a simple test
37947 case which detects a bug in gcc-4.0.
37948
37949 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
37950
37951 * DISTLIST: Added normal/completion.c.
37952
37953 * normal/completion.c: New file.
37954
37955 * term/i386/pc/console.c (grub_console_getwh): New function.
37956 (grub_console_term): Assign grub_console_getwh to getwh.
37957
37958 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
37959 function is defined in normal/completion.c as
37960 grub_normal_do_completion.
37961 (grub_cmdline_get): Use grub_normal_do_completion instead of
37962 grub_tab_complete.
37963
37964 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
37965 returns non-zero, otherwise return 0.
37966 (grub_partition_iterate): First, probe the partition map. Then,
37967 call ITERATE only for this partition map.
37968
37969 * kern/misc.c (grub_strncmp): Rewritten.
37970
37971 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
37972 returns non-zero. Otherwise return 0.
37973
37974 * include/grub/partition.h (grub_partition_map_iterate): Return
37975 int instead of void.
37976
37977 * include/grub/normal.h (grub_normal_do_completion): New prototype.
37978
37979 * include/grub/misc.h (grub_strncmp): Change the type of N to
37980 grub_size_t.
37981
37982 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
37983 of void.
37984
37985 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
37986 unsigned explicitly before comparing it with I.
37987
37988 * kern/main.c (grub_env_write_root): Add the attribute unused into
37989 VAR.
37990
37991 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
37992 normal/completion.c.
37993 (normal_mod_SOURCES): Likewise.
37994 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
37995 (normal_mod_SOURCES): Likewise.
37996
37997 * normal/command.c (grub_iterate_commands): If ITERATE returns
37998 non-zero, return one immediately.
37999
38000 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
38001
38002 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
38003 * kern/i386/pc/startup.S: Updated Global Descriptor table's
38004 descriptions.
38005 (grub_vbe_get_controller_info): New function.
38006 (grub_vbe_get_mode_info): Likewise.
38007 (grub_vbe_set_mode): Likewise.
38008 (grub_vbe_get_mode): Likewise.
38009 (grub_vbe_set_memory_window): Likewise.
38010 (grub_vbe_get_memory_window): Likewise.
38011 (grub_vbe_set_scanline_length): Likewise.
38012 (grub_vbe_get_scanline_length): Likewise.
38013 (grub_vbe_set_display_start): Likewise.
38014 (grub_vbe_get_display_start): Likewise.
38015 (grub_vbe_set_palette_data): Likewise.
38016 * include/grub/i386/pc/vbe.h: New file.
38017
38018 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
38019
38020 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
38021 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
38022 * DISTLIST: Likewise.
38023 * kern/ieee1275/of.c: Moved to ...
38024 * kern/ieee1275/ieee1275.c: ... here.
38025
38026 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
38027
38028 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
38029 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
38030 Pass 0 as `end' parameter to grub_strtoul().
38031
38032 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
38033
38034 * include/grub/powerpc/ieee1275/console.h: Do not include
38035 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
38036 ifdef.
38037 (grub_console_cur_color): Remove i386-specific prototype.
38038 (grub_console_real_putchar): Likewise.
38039 (grub_console_checkkey): Likewise.
38040 (grub_console_getkey): Likewise.
38041 (grub_console_getxy): Likewise.
38042 (grub_console_gotoxy): Likewise.
38043 (grub_console_cls): Likewise.
38044 (grub_console_setcursor): Likewise.
38045 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
38046 Include <grub/machine/console.h>.
38047 * term/ieee1275/ofconsole.c: Likewise.
38048
38049 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
38050
38051 * Makefile.in (LIBLZO): New variable.
38052
38053 * configure.ac: Check for LZO version 2.
38054
38055 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
38056 lzo/lzo1x.h instead of lzo1x.h.
38057
38058 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
38059 of -llzo.
38060
38061 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
38062 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
38063
38064 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
38065 copying the data from PARTITION to P.
38066
38067 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
38068
38069 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
38070 negative, unload the module.
38071
38072 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
38073 map is "pc_partition_map" but not "pc".
38074 (usage): Fix the description. The options are --boot-image and
38075 --core-image but not --boot-file or --core-file.
38076 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
38077 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
38078 DEFAULT_DIRECTORY.
38079
38080 * util/i386/pc/grub-install.in: Do not specify --boot-file or
38081 --core-file. Specify INSTALL_DEVICE as an argument.
38082
38083 * util/console.c: Include config.h.
38084 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
38085 [HAVE_NCURSES_H]: Include ncurses.h.
38086 [HAVE_CURSES_H]: Include curses.h.
38087 [!A_NORMAL] (A_NORMAL): Defined as zero.
38088 [!A_STANDOUT] (A_STANDOUT): Likewise.
38089
38090 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
38091 -lncurses.
38092 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
38093
38094 * configure.ac: Check for curses libraries and headers.
38095
38096 * Makefile.in (LIBCURSES): New variable.
38097
38098 * genmk.rb (Script::rule): Set the executable bits.
38099
38100 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
38101 name of the PC partition map is "pc_partition_map" but not "pc".
38102
38103 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
38104
38105 * util/i386/pc/grub-install.in (grub_probefs): New variable.
38106 (modules): Likewise.
38107 (usage): Added descriptions for --modules and --grub-probefs.
38108 Handle --modules and --grub-probefs. Save the arguments in MODULES
38109 and GRUB_PROBEFS, respectively.
38110 Auto-detect a filesystem module against GRUBDIR. If the result is
38111 empty and modules are not specified explicitly, abort the
38112 installation. Add the result to MODULES.
38113
38114 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
38115 disk/powerpc/ieee1275/ofdisk.c,
38116 include/grub/powerpc/ieee1275/init.h and
38117 term/powerpc/ieee1275/ofconsole.c.
38118 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
38119 term/ieee1275/ofconsole.c.
38120
38121 * include/grub/powerpc/ieee1275/console.h: Resurrected.
38122
38123 * COPYING: Upgraded to the latest version. Only the address of the
38124 FSF office has changed.
38125
38126 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
38127
38128 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
38129 kern/ieee1275.c with kern/ieee1275/of.c.
38130
38131 * kern/ieee1275.c: Moved to ...
38132 * kern/ieee1275/of.c: ... here.
38133
38134 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
38135
38136 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
38137 readability.
38138
38139 * config.guess: Updated to the latest version from gnulib.
38140 * config.sub: Likewise.
38141 * install.sh: Likewise.
38142 * mkinstalldirs: Likewise.
38143
38144 * include/grub/console.h: Removed. This file is arch-specific. Do
38145 not put this in include/grub.
38146
38147 * include/grub/i386/pc/console.h: Resurrected.
38148
38149 * util/console.c: Include grub/machine/console.h instead of
38150 grub/console.h.
38151 * util/grub-emu.c: Likewise.
38152
38153 2005-08-04 Marco Gerards <metgerards@student.han.nl>
38154
38155 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
38156 hardcoded value.
38157
38158 From Vincent Pelletier <subdino2004@yahoo.fr>
38159 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
38160 Redefined to use grub_getwh.
38161 (grub_term): New member named getwh.
38162 (grub_getwh): New prototype.
38163 * kern/term.c (grub_getwh): New function.
38164 * term/i386/pc/console.c (grub_console_getwh): New function.
38165 (grub_console_term): New member `getwh'.
38166 * term/i386/pc/vga.c (grub_vga_getwh): New function.
38167 (grub_vga_term): New member `getwh'.
38168 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
38169 grub_ssize_t.
38170 (grub_ofconsole_getw): New function.
38171 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
38172 (grub_ofconsole_term): New field named getwh and new initial
38173 value.
38174
38175 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
38176
38177 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
38178 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
38179 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
38180 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
38181 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
38182 of <grub/machine/ieee1275.h>.
38183 * commands/ieee1275/reboot.c: Likewise.
38184 * boot/powerpc/ieee1275/ieee1275.c: Move ...
38185 * kern/ieee1275.c: ... to here. All users updated. Change all
38186 parameter structs to use new type `grub_ieee1275_cell_t'.
38187 * term/powerpc/ieee1275/ofconsole.c: Move ...
38188 * term/ieee1275/ofconsole.c: ... to here. All users updated.
38189 * disk/powerpc/ieee1275/ofdisk.c: Move ...
38190 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
38191 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
38192 to return int.
38193 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
38194 Remove unused prototypes. All users updated.
38195 * include/grub/powerpc/ieee1275/console.h: Removed.
38196 * include/grub/powerpc/ieee1275/ieee1275.h: Define
38197 `grub_ieee1275_cell_t'.
38198 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
38199 Cast comparisons with -1 to the correct type.
38200 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
38201 type to match `grub_ieee1275_entry_fn'.
38202
38203 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
38204
38205 * DISTLIST: Added util/i386/pc/grub-probefs.c.
38206
38207 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
38208 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
38209 partmap/sun.c.
38210 (grub_probefs_SOURCES): New variable.
38211
38212 * util/i386/pc/grub-probefs.c: New file.
38213
38214 * util/i386/pc/grub-setup.c (main): Call
38215 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
38216 grub_hfs_init and grub_jfs_init to initialize the system. Call
38217 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
38218 grub_pc_partition_map_fini to finish the system.
38219
38220 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
38221
38222 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
38223 function.
38224 (grub_multiboot_load_elf32): Likewise.
38225 (grub_multiboot_is_elf64): Likewise.
38226 (grub_multiboot_load_elf64): Likewise.
38227 (grub_multiboot_load_elf): Likewise.
38228 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
38229 an ELF32 or ELF64 file.
38230 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
38231
38232 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
38233 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
38234 NULL before calling FS->LABEL.
38235 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
38236 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
38237 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
38238 before calling FS->LABEL.
38239
38240 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
38241
38242 * util/i386/pc/grub-install.in (datadir): New variable.
38243 (libdir): Removed.
38244 (pkgdatadir): New variable.
38245 (pkglibdir): Removed.
38246
38247 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
38248
38249 * DISTLIST: Added util/i386/pc/grub-install.in.
38250
38251 * util/i386/pc/grub-install.in: New file.
38252
38253 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
38254 (grub_install_SOURCES): Likewise.
38255
38256 * genmk.rb: Added support for scripts.
38257 (Script): New class.
38258 (scripts): New variable.
38259
38260 * Makefile.in (install-local): Install sbin_SCRIPTS by
38261 INSTALL_SCRIPT.
38262 (uninstall): Remove sbin_SCRIPTS.
38263
38264 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
38265 device, try to get a GRUB device by
38266 grub_util_biosdisk_get_grub_dev.
38267 Free DEST_DEV.
38268
38269 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
38270 description for --device-map.
38271
38272 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
38273
38274 Change the semantics of variable hooks. They now return strings
38275 instead of error values.
38276
38277 * util/i386/pc/grub-setup.c: Include grub/env.h.
38278 (setup): Use grub_device_set_root instead of grub_env_set.
38279
38280 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
38281 grub_env_get instead of grub_device_set_root and
38282 grub_device_get_root, respectively.
38283
38284 * kern/main.c (grub_env_write_root): New function.
38285 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
38286 grub_env_set instead of grub_device_set_root.
38287
38288 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
38289 many variables.
38290 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
38291 rather than calling ENV->WRITE_HOOK afterwards.
38292 (grub_env_get): Return the result of ENV->READ_HOOK rather than
38293 passing a pointer of a pointer.
38294 (grub_register_variable_hook): Change the types of "read_hook" and
38295 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
38296 respectively.
38297 Allocate the default empty string on the heap, because this string
38298 may be freed later.
38299
38300 * kern/device.c: Include grub/env.h.
38301 (grub_device_set_root): Removed.
38302 (grub_device_get_root): Likewise.
38303 (grub_device_open): Use grub_env_get instead of
38304 grub_device_get_root.
38305
38306 * include/grub/env.h (grub_env_read_hook_t): New type.
38307 (grub_env_write_hook_t): Likewise.
38308 (grub_env_var): Change the types of "read_hook" and "write_hook"
38309 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
38310 (grub_register_variable_hook): Likewise.
38311
38312 * include/grub/device.h (grub_device_set_root): Removed.
38313 (grub_device_set_root): Likewise.
38314
38315 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
38316 make sure that DIRNAME terminates with '/', so that
38317 grub_fat_find_dir will fail if PATH is not a directory.
38318
38319 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
38320 from DIRNAME.
38321 Use the qualifier auto for print_files and print_files_long.
38322 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
38323 as a regular file.
38324 Put a newline only if there is no error.
38325 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
38326 used.
38327
38328 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
38329
38330 * kern/partition.c (grub_partition_probe): Initialize PART to
38331 NULL. Otherwise, when no partition map is registered, this returns
38332 a garbage.
38333
38334 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
38335
38336 * partmap/apple.c (apple_partition_map_iterate): Check if POS
38337 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
38338 valid.
38339
38340 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
38341
38342 * commands/ls.c (grub_ls_list_disks): Print the filesystem
38343 information on each device, if it does not have partitions. Print
38344 "Device" instead of "Disk", because this function is not specific
38345 to disk devices.
38346
38347 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
38348 static to ensure that it is put on the memory rather than a
38349 register.
38350
38351 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
38352
38353 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
38354 (grub_cat_init): Likewise.
38355 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
38356 (options): Likewise.
38357 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
38358 (grub_configfile_init): Likewise.
38359 * font/manager.c (GRUB_MOD_INIT): Likewise.
38360 * commands/help.c (GRUB_MOD_INIT): Likewise.
38361 (grub_help_init): Likewise.
38362 * normal/command.c (grub_command_init): Likewise.
38363 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
38364 * disk/loopback.c (grub_loop_init): Likewise.
38365 (GRUB_MOD_INIT): Likewise.
38366 * commands/ls.c (grub_ls_init): Likewise.
38367 (GRUB_MOD_INIT): Likewise.
38368 (options): Likewise.
38369 * commands/boot.c (grub_boot_init): Likewise.
38370 (GRUB_MOD_INIT): Likewise.
38371 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
38372 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
38373 (GRUB_MOD_INIT): Likewise.
38374 * commands/cmp.c (grub_cmp_init): Likewise.
38375 (GRUB_MOD_INIT): Likewise.
38376
38377 * normal/arg.c: Use <> instead of "" to include header files.
38378 (SHORT_ARG_HELP): New macro.
38379 (SHORT_ARG_USAGE): Likewise.
38380 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
38381 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
38382 descriptions.
38383 (find_short): Check if C is 'h' or 'u' explicitly.
38384 (grub_arg_show_help): Use space characters instead of tabs. Treat
38385 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
38386 are shown with --help and --usage only if they are not used for
38387 the command itself.
38388 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
38389 'h' and 'u'.
38390
38391 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
38392 const into "longarg". Change the type of "shortarg" to int.
38393
38394 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
38395
38396 * boot/i386/pc/boot.S (boot_drive_check): New label.
38397
38398 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
38399 macro.
38400
38401 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
38402 which do not pass a boot drive correctly. Copied from GRUB Legacy.
38403
38404 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
38405
38406 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
38407 When turning off Gate A20, skip the check and return immediately,
38408 because this is not fatal usually.
38409
38410 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
38411
38412 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
38413 be 0x7C00 instead of 0x8000.
38414
38415 * boot/i386/pc/pxeboot.S: Rewritten.
38416
38417 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
38418 EXT_C.
38419 (gate_a20_check_state): Read a byte from 0x108000. Invert the
38420 result.
38421
38422 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
38423
38424 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
38425 robustness. This routine now supports a BIOS call and System
38426 Control Port A to modify the gate A20.
38427
38428 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
38429 Increased to 0x440.
38430
38431 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
38432
38433 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
38434 device path and resulting ihandle.
38435 (grub_ofdisk_close): dprintf the ihandle being closed.
38436 (grub_ofdisk_read): dprintf function parameters.
38437 * kern/mm.c (grub_mm_init_region): Likewise.
38438 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
38439 (grub_linux_boot): dprintf the Linux entry point, initrd address and
38440 size, and boot arguments.
38441 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
38442 before loading into memory.
38443 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
38444 before loading into memory.
38445
38446 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
38447
38448 * kern/mm.c: Added much documentation.
38449 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
38450 8, set to 5 instead of 8.
38451
38452 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
38453
38454 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
38455
38456 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
38457 (grub_mkdevicemap_SOURCES): New variable.
38458
38459 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
38460 lib/device.c of GRUB Legacy.
38461
38462 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
38463
38464 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
38465 instead of PATH is NULL.
38466
38467 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
38468
38469 * commands/cmp.c (BUFFER_SIZE): New macro.
38470 (grub_cmd_cmp): Close the right file at the right time. Compare
38471 only data just read. Don't report files of different size as
38472 identical. Dynamically allocate buffers. Move variable
38473 declarations at the beginning of function.
38474
38475 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
38476
38477 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
38478 reverse.
38479
38480 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
38481
38482 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
38483 when backspace is pressed at beginning of line.
38484
38485 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
38486
38487 * DISTLIST: Added genfslist.sh.
38488
38489 * normal/main.c (fs_module_list): New variable.
38490 (autoload_fs_module): New function.
38491 (read_fs_list): Likewise.
38492 (grub_normal_execute): Call read_fs_list.
38493
38494 * kern/fs.c (grub_fs_autoload_hook): New variable.
38495 (grub_fs_probe): Added support for auto-loading.
38496
38497 * include/grub/normal.h (struct grub_fs_module_list): New struct.
38498 (grub_fs_module_list_t): New type.
38499
38500 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
38501 (grub_fs_autoload_hook): New prototype.
38502
38503 * genfslist.sh: New file.
38504
38505 * genmk.rb: Added a rule to generate a filesystem list.
38506
38507 2005-06-30 Marco Gerards <metgerards@student.han.nl>
38508
38509 * configure.ac: Fix the test for cross-compiling.
38510
38511 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
38512 define GRUB_UTIL anymore.
38513
38514 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
38515 so this function works on other systems than just big endian.
38516 (load_modules): Likewise.
38517 (add_segments): Likewise.
38518
38519 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
38520
38521 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
38522 contains `l' modifier, get a long from va_arg().
38523
38524 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
38525
38526 * kern/mm.c (grub_free): If the next free block which is being
38527 merged is the first free block, set the first block to the block
38528 being freed.
38529 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
38530
38531 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
38532
38533 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
38534 `grub_ieee1275_chosen'.
38535
38536 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
38537
38538 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
38539 (grub_ieee1275_chosen): New variable.
38540 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
38541 `chosen'.
38542 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
38543 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
38544 Rename first argument to `phandle' for consistency.
38545 (grub_ieee1275_get_property_length): Likewise.
38546 (grub_ieee1275_next_property): Likewise. Change type of first argument
38547 to grub_ieee1275_phandle_t.
38548 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
38549 Move export next to declaration.
38550 (grub_ieee1275_chosen): New variable.
38551 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
38552 Correct cosmetic typo.
38553 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
38554 `grub_ieee1275_chosen'.
38555 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
38556 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
38557 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
38558 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
38559 `grub_ieee1275_chosen'.
38560
38561 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
38562
38563 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
38564 /chosen/bootargs.
38565 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
38566 /chosen/bootargs as "variable=value" pairs.
38567
38568 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
38569
38570 * include/grub/misc.h (grub_dprintf): New macro.
38571 (grub_real_dprintf): New prototype.
38572 (grub_strword): Likewise.
38573 (grub_iswordseparator): Likewise.
38574 * kern/misc.c (grub_real_dprintf): New function.
38575 (grub_strword): Likewise.
38576 (grub_iswordseparator): Likewise.
38577
38578 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
38579
38580 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
38581 (roundup): Remove macro.
38582 (grub_ieee1275_flags): Make static.
38583 (grub_ieee1275_realmode): Remove.
38584 (grub_ieee1275_test_flag): New function.
38585 (grub_ieee1275_set_flag): Likewise.
38586 (find_options): Rename to `grub_ieee1275_find_options'; update
38587 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
38588 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
38589 (cmain): New prototype.
38590 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
38591 `grub_ieee1275_flags' directly.
38592 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
38593 machine/biosdisk.h.
38594 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
38595 Don't include grub/machine/init.h.
38596 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
38597 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
38598 Remove prototype.
38599 (grub_ieee1275_realmode): Likewise.
38600 (grub_ieee1275_flag): New enum.
38601 (grub_ieee1275_test_flag): New prototype.
38602 (grub_ieee1275_set_flag): New prototype.
38603 * include/grub/powerpc/ieee1275/init.h: Remove file.
38604 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
38605 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
38606 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
38607 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
38608 comment.
38609 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
38610 `grub_ieee1275_test_flag'.
38611 (grub_ieee1275_encode_devname): Likewise.
38612
38613 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
38614
38615 * include/grub/powerpc/ieee1275/ieee1275.h
38616 (grub_ieee1275_encode_devname): New prototype.
38617 (grub_ieee1275_get_filename): Likewise.
38618 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
38619 function.
38620 (grub_set_prefix): Likewise.
38621 (grub_machine_init): Call grub_set_prefix.
38622 * kern/powerpc/ieee1275/openfw.c: Fix typos.
38623 (grub_parse_type): New enum.
38624 (grub_ieee1275_get_devargs): New function.
38625 (grub_ieee1275_get_devname): Likewise.
38626 (grub_ieee1275_parse_args): Likewise.
38627 (grub_ieee1275_get_filename): Likewise.
38628 (grub_ieee1275_encode_devname): Likewise.
38629
38630 2005-03-30 Marco Gerards <metgerards@student.han.nl>
38631
38632 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
38633 `grub_loader_unset'.
38634
38635 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
38636
38637 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
38638 instead of grub_ieee1275_interpret.
38639 (grub_halt_init): New function.
38640 (grub_halt_fini): Likewise.
38641 (GRUB_MOD_INIT): Correct message grammar.
38642 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
38643 instead of grub_ieee1275_interpret.
38644 (grub_reboot_init): New function.
38645 (grub_reboot_fini): Likewise.
38646 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
38647 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
38648 util/i386/pc/misc.c with commands/ieee1275/halt.c,
38649 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
38650 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
38651 function.
38652 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
38653 Add prototype.
38654 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
38655 prototype.
38656 (grub_halt): Likewise.
38657 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
38658 (cmain): Remove __attribute__((unused)).
38659 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
38660 (grub_heap_len): Likewise.
38661 (grub_machine_fini): New function.
38662 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
38663 (grub_halt): Likewise.
38664 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
38665 function.
38666 * util/powerpc/ieee1275/misc.c: New file.
38667
38668 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
38669
38670 * DISTLIST: New file.
38671 * gendistlist.sh: Likewise.
38672
38673 * Makefile.in (COMMON_DISTFILES): Removed.
38674 (BOOT_DISTFILES): Likewise.
38675 (CONF_DISTFILES): Likewise.
38676 (DISK_DISTFILES): Likewise.
38677 (FS_DISTFILES): Likewise.
38678 (INCLUDE_DISTFILES): Likewise.
38679 (KERN_DISTFILES): Likewise.
38680 (LOADER_DISTFILES): Likewise.
38681 (TERM_DISTFILES): Likewise.
38682 (UTIL_DISTFILES): Likewise.
38683 (DISTFILES): Likewise.
38684 (uninstall): Uninstall files in $(pkgdata_DATA).
38685 (DISTLIST): New target.
38686 (distdir): Use the contents of the file DISTLIST to get a list of
38687 distributed files.
38688
38689 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
38690
38691 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
38692 descriptor. This is ported from GRUB Legacy.
38693
38694 * gencmdlist.sh: Added an extra semicolon to make it work with
38695 old sed versions. Reported by Robert Bihlmeyer
38696 <robbe@orcus.priv.at>.
38697
38698 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
38699
38700 Automatic loading of commands is supported.
38701
38702 * normal/main.c (read_command_list): New function.
38703 (grub_normal_execute): Call read_command_list.
38704
38705 * normal/command.c (grub_register_command): Return zero or CMD.
38706 Allocate CMD->NAME from the heap.
38707 Initialize CMD->MODULE_NAME to zero.
38708 Find the same name as well. If the same command is found and it is
38709 a dummy command, overwrite members. If it is not a dummy command,
38710 return zero.
38711 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
38712 (grub_command_find): If a dummy command is found, load a module
38713 and retry to find a command only once.
38714
38715 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
38716 make sure that each command is loaded.
38717
38718 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
38719 macro.
38720 (struct grub_command): Remove const from the member `name'.
38721 Add a new member `module_name'.
38722 (grub_register_command): Return grub_command_t.
38723
38724 * commands/help.c (grub_cmd_help): Call grub_command_find to make
38725 sure that each command is loaded.
38726
38727 * genmk.rb (PModule::rule): Specify a module name without the
38728 suffix ".mod" to gencmdlist.sh.
38729
38730 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
38731
38732 * gencmdlist.sh: New file.
38733
38734 * genmk.rb (PModule::rule): Generate a rule for a command list.
38735 Clean command.lst.
38736 Generate command.lst from $(COMMANDFILES).
38737
38738 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
38739 (DATA): Added $(pkgdata_DATA).
38740 (install-local): Install files in $(pkgdata_DATA).
38741
38742 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
38743
38744 * term/i386/pc/vga.c (debug_command): Removed.
38745 (GRUB_MOD_INIT): Do not register the command "debug".
38746
38747 From Hollis Blanchard:
38748 * commands/configfile.c: New file.
38749 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
38750 commands/configfile.c.
38751 (pkgdata_MODULES): Added configfile.mod.
38752 (configfile_mod_SOURCES): New variable.
38753 (configfile_mod_CFLAGS): Likewise.
38754 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
38755 commands/configfile.c.
38756 (pkgdata_MODULES): Added configfile.mod.
38757 (configfile_mod_SOURCES): New variable.
38758 (configfile_mod_CFLAGS): Likewise.
38759 * util/grub-emu.c (main): Call grub_configfile_init and
38760 grub_configfile_fini.
38761 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
38762 prototype.
38763 [GRUB_UTIL] (grub_configfile_fini): Likewise.
38764
38765 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
38766
38767 * normal/arg.c (grub_arg_show_help): Do not show the bug report
38768 address.
38769
38770 * commands/help.c (grub_cmd_help): Do not print newlines after
38771 the last command in print_command_help.
38772
38773 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
38774
38775 * commands/default.h: New file.
38776 * commands/timeout.h: Likewise.
38777 * normal/context.c: Likewise.
38778
38779 * util/misc.c: Do not include sys/times.h.
38780 Include sys/time.h and grub/machine/time.h.
38781 (grub_get_rtc): Rewritten with gettimeofday.
38782
38783 * util/grub-emu.c (main): Call grub_default_init and
38784 grub_timeout_init before grub_normal_init, and call
38785 grub_timeout_fini and grub_default_fini after grub_main.
38786
38787 * util/console.c (grub_ncurses_checkkey): Return the read
38788 character or -1.
38789
38790 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
38791 timeouts.
38792
38793 * normal/main.c (read_config_file): Push MENU. If this fails,
38794 print an error and wait for a user input.
38795 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
38796 If a menu is empty or an error occurs, pop MENU.
38797 (grub_normal_execute): Pop and free MENU after grub_menu_run
38798 returns.
38799
38800 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
38801
38802 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
38803 include time.h.
38804 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
38805 without GRUB_UTIL.
38806 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
38807 time.h.
38808 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
38809 without GRUB_UTIL.
38810
38811 * include/grub/normal.h (struct grub_menu_list): New struct.
38812 (grub_menu_list_t): New type.
38813 (struct grub_context): New struct.
38814 (grub_context_t): New type.
38815 (grub_register_command): Got rid of EXPORT_FUNC.
38816 (grub_unregister_command): Likewise.
38817 (grub_context_get): New prototype.
38818 (grub_context_get_current_menu): Likewise.
38819 (grub_context_push_menu): Likewise.
38820 (grub_context_pop_menu): Likewise.
38821 [GRUB_UTIL] (grub_default_init): Likewise.
38822 [GRUB_UTIL] (grub_default_fini): Likewise.
38823 [GRUB_UTIL] (grub_timeout_init): Likewise.
38824 [GRUB_UTIL] (grub_timeout_fini): Likewise.
38825
38826 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
38827 commands/timeout.c and normal/context.c.
38828 (pkgdata_MODULES): Added default.mod and timeout.mod.
38829 (normal_mod_SOURCES): Added normal/context.c.
38830 (default_mod_SOURCES): New variable.
38831 (default_mod_CFLAGS): Likewise.
38832 (timeout_mod_SOURCES): Likewise.
38833 (timeout_mod_CFLAGS): Likewise.
38834 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
38835 conf/i386-pc.rmk.
38836 (pkgdata_MODULES): Added default.mod and timeout.mod.
38837 (normal_mod_SOURCES): Added normal/context.c.
38838 (default_mod_SOURCES): New variable.
38839 (default_mod_CFLAGS): Likewise.
38840 (timeout_mod_SOURCES): Likewise.
38841 (timeout_mod_CFLAGS): Likewise.
38842
38843 * Makefile.in (all-local): Added $(MKFILES).
38844
38845 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
38846
38847 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
38848 (grub_emu_SOURCES): Likewise.
38849 (pkgdata_MODULES): Add `sun.mod'.
38850 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
38851 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
38852 `partmap/sun.c'.
38853 (pkgdata_MODULES): Add `sun.mod'.
38854 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
38855 * include/grub/partition.h (grub_sun_partition_map_init): New
38856 prototype.
38857 (grub_sun_partition_map_fini): Likewise.
38858 * partmap/sun.c: New file.
38859 * util/grub-emu.c (main): Initialize and de-initialize the sun
38860 partitionmap support.
38861
38862 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
38863
38864 This implements an Emacs-like menu entry editor.
38865
38866 * normal/menu_entry.c: New file.
38867
38868 * util/console.c (grub_ncurses_putchar): Translate some Unicode
38869 characters to ASCII.
38870 (saved_char): New variable.
38871 (grub_ncurses_checkkey): Rewritten completely.
38872 (grub_ncurses_getkey): Likewise.
38873 (grub_ncurses_init): Call raw instead of cbreak.
38874
38875 * normal/menu.c (print_entry): Do not put a space.
38876 (init_page): Renamed to ...
38877 (grub_menu_init_page): ... this. All callers changed.
38878 (edit_menu_entry): Removed.
38879 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
38880
38881 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
38882
38883 * kern/misc.c (grub_vprintf): Call grub_refresh.
38884
38885 * normal/menu.c (DISP_LEFT): Renamed to ...
38886 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
38887 * normal/menu.c (DISP_UP): Renamed to ...
38888 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
38889 * normal/menu.c (DISP_RIGHT): Renamed to ...
38890 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
38891 * normal/menu.c (DISP_DOWN): Renamed to ...
38892 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
38893 * normal/menu.c (DISP_HLINE): Renamed to ...
38894 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
38895 * normal/menu.c (DISP_VLINE): Renamed to ...
38896 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
38897 * normal/menu.c (DISP_UL): Renamed to ...
38898 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
38899 * normal/menu.c (DISP_UR): Renamed to ...
38900 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
38901 * normal/menu.c (DISP_LL): Renamed to ...
38902 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
38903 * normal/menu.c (DISP_LR): Renamed to ...
38904 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
38905 * normal/menu.c (TERM_WIDTH): Renamed to ...
38906 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
38907 * normal/menu.c (TERM_HEIGHT): Renamed to ...
38908 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
38909 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
38910 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
38911 * normal/menu.c (TERM_MARGIN): Renamed to ...
38912 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
38913 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
38914 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
38915 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
38916 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
38917 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
38918 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
38919 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
38920 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
38921 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
38922 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
38923 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
38924 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
38925 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
38926 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
38927 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
38928 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
38929 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
38930 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
38931 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
38932 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
38933 All callers changed.
38934
38935 * include/grub/normal.h: New prototype.
38936
38937 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
38938 normal/menu_entry.c.
38939 (normal_mod_SOURCES): Likewise.
38940 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38941 (normal_mod_SOURCES): Likewise.
38942
38943 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
38944
38945 * include/grub/normal.h (grub_halt_init): New prototype.
38946 (grub_halt_fini): Likewise.
38947 (grub_reboot_init): Likewise.
38948 (grub_reboot_fini): Likewise.
38949
38950 * util/grub-emu.c: Include signal.h.
38951 (main_env): New global variable.
38952 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
38953 catch C-c.
38954 (grub_machine_fini): New function.
38955 (main): Call grub_halt_init and grub_reboot_init before
38956 grub_main, and grub_reboot_fini and grub_halt_fini after it.
38957 Call setjmp with MAIN_ENV to go back afterwards.
38958 Call grub_machine_fini right before return.
38959
38960 * include/grub/util/misc.h: Include setjmp.h.
38961 (main_env): New prototype.
38962
38963 * include/grub/kernel.h (grub_machine_fini): New prototype.
38964 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
38965 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
38966
38967 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
38968 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
38969 * term/i386/pc/console.c (grub_console_fini): Likewise.
38970
38971 * util/i386/pc/misc.c: New file.
38972
38973 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
38974 util/i386/pc/misc.c, commands/i386/pc/halt.c and
38975 commands/i386/pc/reboot.c.
38976
38977 2005-02-14 Guillem Jover <guillem@hadrons.org>
38978
38979 * include/grub/dl.h (grub_dl_check_header): New prototype.
38980 (grub_arch_dl_check_header): Change return type to grub_err_t,
38981 remove size parameter and export function. Update all callers.
38982 * kern/dl.c (grub_dl_check_header): New function.
38983 (grub_dl_load_core): Use `grub_dl_check_header' instead of
38984 `grub_arch_dl_check_header'. Check ELF type. Check if sections
38985 are inside the core.
38986 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
38987 independent ELF header checks.
38988 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
38989 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
38990 `grub_dl_check_header' instead of explicit checks. Check for the
38991 ELF type.
38992 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
38993 `grub_dl_check_header' instead of explicit checks. Remove arch
38994 specific ELF header checks.
38995
38996 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
38997 argument SIZE.
38998
38999 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
39000
39001 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
39002 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
39003
39004 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
39005
39006 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
39007 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
39008 (part_map_iterate): Clear `grub_errno' and return 0 if
39009 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
39010 * partmap/amiga.c (amiga_partition_map_iterate): Return
39011 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
39012 * partmap/apple.c (apple_partition_map_iterate): Likewise.
39013
39014 2005-02-01 Guillem Jover <guillem@hadrons.org>
39015
39016 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
39017 help info.
39018
39019 2005-01-31 Marco Gerards <metgerards@student.han.nl>
39020
39021 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
39022 Removed prototype.
39023 (grub_rescue_cmd_linux): New prototype.
39024 (grub_rescue_cmd_initrd): Likewise.
39025 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
39026 `bi_rec'.
39027 (grub_linux_release_mem): Release the memory for the initrd.
39028 (grub_load_linux): Renamed from this...
39029 (grub_rescue_cmd_linux): ...To this. Changed all callers.
39030 Changed `entry' not to be static. Loop over memory regions to
39031 find another one when the default fails.
39032 (grub_rescue_cmd_initrd): New function.
39033 (grub_linux_init): Remove function.
39034 (grub_linux_fini): Likewise.
39035 (GRUB_MOD_INIT): Register `initrd'.
39036 (GRUB_MOD_FINI): Unregister `initrd'.
39037 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
39038 Function removed.
39039 (grub_linux_normal_fini): Likewise.
39040 (GRUB_MOD_INIT): Register `initrd'.
39041 (GRUB_MOD_FINI): Unregister `initrd'.
39042
39043 2005-01-31 Marco Gerards <metgerards@student.han.nl>
39044
39045 * commands/help.c: New file.
39046 * normal/arg.c (show_help): Renamed to...
39047 (grub_arg_show_help): ... this.
39048 * commands/i386/pc/halt.c: New file.
39049 * commands/i386/pc/reboot.c: Likewise.
39050 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
39051 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
39052 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
39053 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
39054 variables.
39055 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
39056 `commands/help.c'.
39057 (pkgdata_MODULES): Add `help.mod'.
39058 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
39059 * grub/i386/pc/init.h (grub_reboot): New prototype.
39060 (grub_halt): Likewise.
39061 * include/grub/normal.h (grub_arg_show_help): New prototype.
39062 (grub_help_init): Likewise.
39063 (grub_help_fini): Likewise.
39064 * util/grub-emu.c (main): Initialize and deinitialize the help
39065 command.
39066
39067 * normal/cmdline.c (grub_cmdline_get): Doc fix.
39068
39069 * normal/command.c (grub_command_init): Fixed the description of
39070 the `set' and `unset' commands.
39071
39072 2005-01-31 Marco Gerards <metgerards@student.han.nl>
39073
39074 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
39075 function.
39076 * commands/ieee1275/halt.c: New file.
39077 * commands/ieee1275/reboot.c: Likewise.
39078 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
39079 `__attribute__ ((unused))'. Some GCS related fixed.
39080 (grub_suspend_init) [GRUB_UTIL]: Function removed.
39081 (grub_suspend_fini): Likewise.
39082 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
39083 and `halt.mod'.
39084 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
39085 (halt_mod_CFLAGS): New variables.
39086 * include/grub/powerpc/ieee1275/ieee1275.h
39087 (grub_ieee1275_interpret): New prototype.
39088
39089 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
39090
39091 * include/grub/misc.h (memmove): New prototype.
39092 (memcpy): Likewise.
39093
39094 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
39095
39096 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
39097 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
39098
39099 2005-01-22 Marco Gerards <metgerards@student.han.nl>
39100
39101 * kern/misc.c (grub_strndup): Function rewritten.
39102
39103 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
39104
39105 * normal/menu.c (TERM_WIDTH): Macro redefined.
39106 (TERM_TOP_BORDER_Y): Likewise.
39107 (draw_border): Replaced while-loop by a for-loop. Make the number
39108 of lines consistent with the number of lines displayed in
39109 print_entries. Added a margin below the rectangle.
39110 (print_entry): Make the entry fit in the rectangle.
39111 (print_entries): Display the scroll arrows next to the right
39112 border.
39113
39114 2005-01-21 Marco Gerards <metgerards@student.han.nl>
39115
39116 * fs/minix.c (grub_minix_find_file): Reserve more space for
39117 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
39118 `grub_strncpy' to copy `path' into it.
39119
39120 2005-01-21 Marco Gerards <metgerards@student.han.nl>
39121
39122 Add the loopback device, a device via which files can be accessed
39123 as devices.
39124
39125 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
39126 (pkgdata_MODULES): Add loopback.mod.
39127 (loopback_mod_SOURCES): New variable.
39128 (loopback_mod_CFLAGS): Likewise.
39129 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
39130 `disk/loopback.c'.
39131 (pkgdata_MODULES): Add loopback.mod.
39132 (loopback_mod_SOURCES): New variable.
39133 (loopback_mod_CFLAGS): Likewise.
39134 * disk/loopback.c: new file.
39135 * include/grub/normal.h (grub_loop_init): New prototype.
39136 (grub_loop_fini): New prototype.
39137 * util/grub-emu.c (main): Initialize and de-initialize loopback
39138 support.
39139 * include/grub/disk.h (grub_disk_dev_id): Add
39140 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
39141
39142 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
39143
39144 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
39145 function.
39146 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
39147 (suspend_mod_SOURCES): New variable.
39148 (suspend_mod_CFLAGS): Likewise.
39149 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
39150 New prototype.
39151 * commands/ieee1275/suspend.c: New file.
39152
39153 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
39154
39155 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
39156 ((unused))' to `__attribute__ ((used))'.
39157 (GRUB_MOD_FINI): Likewise.
39158 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
39159 * genmk.rb (PModule): Assign space to common symbols when linking
39160 modules.
39161
39162 2005-01-20 Marco Gerards <metgerards@student.han.nl>
39163
39164 * include/grub/mm.h (grub_mm_init_region): Change the type of the
39165 `unsigned' arguments to `grub_size_t'.
39166 (grub_malloc): Likewise.
39167 (grub_realloc): Likewise.
39168 (grub_memalign): Likewise.
39169 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
39170 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
39171 * util/misc.c (grub_malloc): Likewise.
39172 (grub_realloc): Likewise.
39173 * kern/mm.c (get_header_from_pointer): Change the casts to
39174 `unsigned' into a cast to `grub_size_t'.
39175
39176 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
39177 point to `currnode' when `currnode' is changed.
39178
39179 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
39180 Schottelius <nico-linux@schottelius.org>.
39181
39182 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
39183
39184 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
39185 (note_path): Remove variable.
39186 (GRUB_IEEE1275_NOTE_NAME): New macro.
39187 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
39188 (grub_ieee1275_note_hdr): New structure.
39189 (grub_ieee1275_note_desc): Likewise.
39190 (grub_ieee1275_note): Likewise.
39191 (load_note): Remove `dir' argument. All callers updated. Remove
39192 `note_img' and `path'. Do not load a file from `note_path'.
39193 Initialize a struct grub_ieee1275_note and write that to `out'.
39194 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
39195
39196 2005-01-05 Marco Gerards <metgerards@student.han.nl>
39197
39198 * util/misc.c (grub_util_read_image): Revert last change. It
39199 called `grub_util_read_at', which seeks from the beginning of the
39200 file.
39201
39202 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
39203
39204 * TODO: Add note about endianness in grub-mkimage.
39205 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
39206 section.
39207 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
39208 (grub_mkimage_SOURCES): New target.
39209 * include/grub/kernel.h (grub_start_addr): Remove variable.
39210 (grub_end_addr): Likewise.
39211 (grub_total_module_size): Likewise.
39212 (grub_kernel_image_size): Likewise.
39213 (GRUB_MODULE_MAGIC): New constant.
39214 (grub_module_info): New structure.
39215 (grub_arch_modules_addr): New prototype.
39216 (grub_get_end_addr): Remove prototype.
39217 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
39218 * include/grub/powerpc/ieee1275/kernel.h: New file.
39219 * include/grub/util/misc.h (grub_util_get_fp_size): New
39220 prototype.
39221 (grub_util_read_at): Likewise.
39222 (grub_util_write_image_at): Likewise.
39223 * kern/main.c (grub_get_end_addr): Remove function.
39224 (grub_load_modules): Call grub_arch_modules_addr instead of using
39225 grub_end_addr. Look for a grub_module_info struct in memory. Use
39226 the grub_module_info fields instead of calling grub_get_end_addr
39227 as loop conditions. Move grub_add_unused_region code here.
39228 (grub_add_unused_region): Remove function.
39229 * kern/i386/pc/init.c: Include grub/cache.h.
39230 (grub_machine_init): Remove call to grub_get_end_addr. Remove
39231 one call to add_mem_region.
39232 (grub_arch_modules_addr): New function.
39233 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
39234 (grub_total_module_size): Likewise.
39235 Include grub/machine/kernel.h.
39236 (grub_arch_modules_addr): New function.
39237 * util/grub-emu.c (grub_end_addr): Remove variable.
39238 (grub_total_module_size): Likewise.
39239 (grub_arch_modules_addr): New function.
39240 * util/misc.c: Include unistd.h.
39241 (grub_util_get_fp_size): New function.
39242 (grub_util_read_at): Likewise.
39243 (grub_util_write_image_at): Likewise.
39244 (grub_util_read_image): Call grub_util_read_at.
39245 (grub_util_write_image): Call grub_util_write_image_at.
39246 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
39247 additional memory in kernel_img for a struct grub_module_info.
39248 Fill in that grub_module_info.
39249 * util/powerpc/ieee1275/grub-mkimage.c: New file.
39250
39251 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
39252
39253 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
39254 New function.
39255 * include/grub/powerpc/ieee1275/ieee1275.h
39256 (grub_ieee1275_milliseconds): New prototype.
39257 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
39258 Change to 1000.
39259 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
39260 grub_ieee1275_milliseconds.
39261
39262 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
39263
39264 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
39265 variable.
39266 (find_options): New function.
39267 (cmain): Call find_options.
39268 * include/grub/powerpc/ieee1275/ieee1275.h
39269 (grub_ieee1275_realmode): New extern variable.
39270 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
39271 grub_map if grub_ieee1275_realmode is false.
39272
39273 2004-12-29 Marco Gerards <metgerards@student.han.nl>
39274
39275 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
39276 lines are inserted and make it work like readline. Reported by
39277 Vincent Pelletier <subdino2004@yahoo.fr>.
39278
39279 2004-12-28 Marco Gerards <metgerards@student.han.nl>
39280
39281 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
39282
39283 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
39284 `kern/powerpc/cache.S'.
39285
39286 2004-12-27 Marco Gerards <metgerards@student.han.nl>
39287
39288 * genmk.rb: Handle the `Program' class in the main loop. Written
39289 by Johan Rydberg <jrydberg@gnu.org>.
39290 (Program): New class.
39291 (programs): New variable.
39292 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
39293 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
39294 instead of "grub/kernel.h". Include <grub/machine/init.h>.
39295 (help_arch): Function removed.
39296 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
39297 `powerpc/libgcc.h' and `loader.h'.
39298 (pkgdata_PROGRAMS): New variable.
39299 (sbin_UTILITIES): Variable removed.
39300 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
39301 (grubof_SOURCES): Variable re-defined so it only includes the
39302 core functionality.
39303 (grubof_CFLAGS): Remove `-DGRUBOF'.
39304 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
39305 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
39306 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
39307 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
39308 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
39309 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
39310 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
39311 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
39312 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
39313 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
39314 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
39315 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
39316 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
39317 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
39318 (pc_mod_CFLAGS): New variables.
39319 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
39320 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
39321 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
39322 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
39323 Moved from here...
39324 * include/grub/i386/pc/init.h (grub_os_area_addr)
39325 (rub_os_area_size): ... to here.
39326 * include/grub/powerpc/ieee1275/ieee1275.h
39327 (grub_ieee1275_entry_fn): Export symbol.
39328 * include/grub/powerpc/ieee1275/init.h: New file.
39329 * include/grub/powerpc/libgcc.h: Likewise.
39330 * include/grub/cache.h: Likewise.
39331 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
39332 <hollis@penguinppc.org>.
39333 * kern/dl.c: Include <grub/cache.h>.
39334 (grub_dl_flush_cache): New function.
39335 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
39336 for this module.
39337 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
39338 (grub_console_init): Removed prototypes.
39339 (grub_machine_init): Don't initialize the modules anymore.
39340 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
39341 static.
39342 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
39343 Macro undef removed.
39344 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
39345 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
39346 relocation `R_PPC_REL32'. Return an error when the relocation is
39347 unknown.
39348 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
39349 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
39350 * util/misc.c (grub_arch_sync_caches): Likewise.
39351
39352 2004-12-19 Marco Gerards <metgerards@student.han.nl>
39353
39354 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
39355 `symlist.c', add `grubof_symlist.c'.
39356 (symlist.c): Variable removed.
39357 (grubof_HEADERS): Variable added.
39358 (grubof_symlist.c): New target.
39359 (kernel_syms.lst): Use `grubof_HEADERS' instead of
39360 `kernel_img_HEADERS'.
39361 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
39362 * kern/powerpc/dl.c: New file.
39363 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
39364 Function removed.
39365 (grub_arch_dl_relocate_symbols): Likewise.
39366 (grub_register_exported_symbols): Likewise.
39367
39368 2004-12-13 Marco Gerards <metgerards@student.han.nl>
39369
39370 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
39371 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
39372 to fail instead. Reported by Vincent Pelletier
39373 <subdino2004@yahoo.fr>.
39374
39375 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
39376 it is not allocated. Reported by Vincent Pelletier
39377 <subdino2004@yahoo.fr>.
39378
39379 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
39380 output so the output looks better.
39381
39382 2004-12-04 Marco Gerards <metgerards@student.han.nl>
39383
39384 Modulize the partition map support and add support for the amiga
39385 partition map.
39386
39387 * commands/ls.c: Include <grub/partition.h> instead of
39388 <grub/machine/partition.h>.
39389 * kern/disk.c: Likewise.
39390 * kern/rescue.c: Likewise.
39391 * loader/i386/pc/chainloader.c: Likewise.
39392 * normal/cmdline.c: Likewise.
39393 * kern/powerpc/ieee1275/init.c: Likewise.
39394 (grub_machine_init): Call `grub_pc_partition_map_init',
39395 `grub_amiga_partition_map_init' and
39396 `grub_apple_partition_map_init'.
39397 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
39398 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
39399 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
39400 `partition.h' and `pc_partition.h'.
39401 (grub_setup_SOURCES): Remove
39402 `disk/i386/pc/partition.c'. Add `kern/partition.c',
39403 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
39404 (grub_emu_SOURCES): Likewise.
39405 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
39406 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
39407 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
39408 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
39409 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
39410 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
39411 (grubof_SOURCES): Likewise.
39412 * disk/i386/pc/partition.c: File removed.
39413 * disk/powerpc/ieee1275/partition.c: Likewise.
39414 * include/grub/powerpc/ieee1275/partition.h: Likewise.
39415 * include/grub/i386/pc/partition.h: Likewise.
39416 * kern/partition.c: New file.
39417 * partmap/amiga.c: Likewise.
39418 * partmap/apple.c: Likewise.
39419 * partmap/pc.c: Likewise.
39420 * include/grub/partition.h: Likewise..
39421 * include/grub/pc_partition.h: Likewise.
39422 * util/grub-emu.c: Include <grub/partition.h> instead of
39423 <grub/machine/partition.h>.
39424 (main): Call `grub_pc_partition_map_init',
39425 `grub_amiga_partition_map_init' and
39426 `grub_apple_partition_map_init' and deinitialize afterwards.
39427 * util/i386/pc/biosdisk.c: Include `#include
39428 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
39429 `<grub/machine/partition.h>'.
39430 * util/i386/pc/grub-setup.c: Likewise.
39431 * util/i386/pc/biosdisk.c: Likewise.
39432 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
39433 partition information in case of a PC partition.
39434 * util/i386/pc/grub-setup.c: Include `#include
39435 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
39436 `<grub/machine/partition.h>'.
39437 (setup): Only access the PC specific partition information in case
39438 of a PC partition.
39439
39440 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
39441
39442 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
39443 (grub_longjmp): Likewise.
39444 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
39445 20.
39446 * normal/powerpc/setjmp.S: New file.
39447 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
39448 `normal/powerpc/setjmp.S'.
39449 (grubof_CFLAGS): Add `-DGRUBOF'.
39450 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
39451 [GRUB_UTIL && !GRUBOF].
39452
39453 2004-11-16 Marco Gerards <metgerards@student.han.nl>
39454
39455 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
39456 property named `name'. Correctly handle the error returned by
39457 `grub_ieee1275_finddevice' if a device can not be opened.
39458
39459 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
39460
39461 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
39462 `actual' for negativity.
39463 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
39464 kern/fshelp.c.
39465
39466 2004-11-01 Marco Gerards <metgerards@student.han.nl>
39467
39468 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
39469 (PAGE_OFFSET): New macro.
39470 (CRTC_ADDR_PORT): Likewise.
39471 (CRTC_DATA_PORT): Likewise.
39472 (START_ADDR_HIGH_REGISTER): Likewise.
39473 (START_ADDR_LOW_REGISTER): Likewise.
39474 (GRAPHICS_ADDR_PORT): Likewise.
39475 (GRAPHICS_DATA_PORT): Likewise.
39476 (READ_MAP_REGISTER): Likewise.
39477 (INPUT_STATUS1_REGISTER): Likewise.
39478 (INPUT_STATUS1_VERTR_BIT): Likewise.
39479 (page): New variable.
39480 (wait_vretrace): New function.
39481 (set_read_map): Likewise.
39482 (set_start_address): Likewise.
39483 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
39484 the right page.
39485 (check_vga_mem): Take the page into account.
39486 (write_char): Likewise.
39487 (write_cursor): Likewise.
39488 (scroll_up): Likewise. Copy the page to the page that is not
39489 shown and switch between both pages.
39490 (grub_vga_putchar): Fix off by one error.
39491 (grub_vga_cls): Wait for the vertical retrace. Take the page into
39492 account.
39493
39494 2004-11-01 Marco Gerards <metgerards@student.han.nl>
39495
39496 Add support for iso9660 (including rockridge).
39497
39498 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
39499 (iso9660_mod_SOURCES): New variable.
39500 (iso9660_mod_CFLAGS): Likewise.
39501 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
39502 * include/grub/fs.h (grub_iso9660_init): New prototype.
39503 * util/grub-emu.c (main): Call `grub_iso9660_init'.
39504 * fs/iso9660.c: New file.
39505
39506 * include/grub/misc.h (grub_strncat): New prototype.
39507 * kern/misc.c (grub_strncat): New function.
39508
39509 * fs/hfs.c (grub_hfs_mount): Translate the error
39510 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
39511 * fs/jfs.c (grub_jfs_mount): Likewise.
39512 * fs/ufs.c (grub_ufs_mount): Likewise.
39513
39514 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
39515
39516 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
39517 which initialized BAT registers.
39518 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
39519 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
39520 Move from here...
39521 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
39522 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
39523 ... to here.
39524 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
39525 (grub_mapclaim): Likewise.
39526 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
39527 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
39528 hand.
39529
39530 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
39531
39532 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
39533 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
39534 -ffreestanding and -msoft-float.
39535
39536 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
39537
39538 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
39539 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
39540 set in grub_ieee1275_flags.
39541
39542 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
39543
39544 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
39545 prototype.
39546 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
39547 grub_console_init first.
39548 Change the memory range used for grub_ieee1275_claim and
39549 grub_mm_init_region.
39550 Print an error message if the claim fails.
39551 Include <grub/misc.h>.
39552
39553 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
39554
39555 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
39556 Call grub_children_iterate for device nodes of type `scsi',
39557 `ide', or `ata'.
39558 (grub_ofdisk_open): Remove manual device alias resolution.
39559 Fix memory leak when device cannot be opened.
39560 * include/grub/powerpc/ieee1275/ieee1275.h
39561 (grub_children_iterate): New prototype.
39562 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
39563 New function.
39564 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
39565 Return -1 if args.size was -1.
39566
39567 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
39568
39569 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
39570 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
39571 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
39572 Open Firmware's memory for it; claim memory from _start to _end.
39573 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
39574 (_end): New extern.
39575 (_start): Zero BSS from __bss_start to _end.
39576 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
39577 New extern.
39578 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
39579
39580 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
39581
39582 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
39583 -1 if args.base was -1.
39584
39585 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
39586
39587 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
39588 escape sequence instead of a literal ^L. Also call
39589 grub_ofconsole_gotoxy.
39590
39591 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
39592
39593 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
39594 void * arguments to grub_addr_t. All callers updated. Also make
39595 the `result' argument optional.
39596 (grub_ieee1275_release): change void * arguments to grub_addr_t.
39597 All callers updated.
39598
39599 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
39600
39601 * commands/ls.c (grub_ls_list_files): Use the string following the
39602 initial ')', if present, as the filesystem path.
39603 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
39604
39605 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
39606
39607 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
39608
39609 Make the source code of the menu interface more readable.
39610
39611 * normal/menu.c: Include grub/mm.h.
39612 (TERM_WIDTH): New macro.
39613 (TERM_HEIGHT): Likewise.
39614 (TERM_INFO_HEIGHT): Likewise.
39615 (TERM_MARGIN): Likewise.
39616 (TERM_SCROLL_WIDTH): Likewise.
39617 (TERM_TOP_BORDER_Y): Likewise.
39618 (TERM_LEFT_BORDER_X): Likewise.
39619 (TERM_BORDER_WIDTH): Likewise.
39620 (TERM_MESSAGE_HEIGHT): Likewise.
39621 (TERM_BORDER_HEIGHT): Likewise.
39622 (TERM_NUM_ENTRIES): Likewise.
39623 (TERM_FIRST_ENTRY_Y): Likewise.
39624 (TERM_ENTRY_WIDTH): Likewise.
39625 (TERM_CURSOR_X): Likewise.
39626 (draw_border): Use macros instead of magic numbers.
39627 (print_entry): Likewise.
39628 (print_entries): Likewise.
39629 (run_menu): Likewise. Also, handle the key 'e'.
39630 (run_menu_entry): Ignore empty command lines.
39631 (print_message): Added a new argument EDIT. If EDIT is true,
39632 print a different message.
39633 (init_page): Likewise.
39634 (edit_menu_entry): New function. Not implemented yet.
39635
39636 2004-09-17 Marco Gerards <metgerards@student.han.nl>
39637
39638 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
39639 can be loaded from normal mode.
39640
39641 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
39642 `multiboot.mod'.
39643 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
39644 (multiboot_mod_CFLAGS): New variables.
39645 * loader/i386/pc/linux_normal.c: New file.
39646 * loader/i386/pc/multiboot_normal.c: Likewise.
39647
39648 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
39649 attribute `unused'.
39650
39651 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
39652 `fdiro' to read the mode information from instead of `diro'.
39653
39654 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
39655 looking up a symlink.
39656
39657 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
39658 macro.
39659 * normal/command.c (grub_command_execute): Don't parse the
39660 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
39661 flags of the command.
39662
39663 * normal/menu.c (grub_menu_run): Fix typo.
39664
39665 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
39666
39667 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
39668
39669 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
39670 `y + 1' instead of `y - 1'.
39671
39672 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
39673
39674 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
39675
39676 From Hollis Blanchard <hollis@penguinppc.org>:
39677 * kern/misc.c (memmove): New alias for grub_memmove.
39678 (memcmp): New alias for grub_memcmp.
39679 (memset): New alias for grub_memset.
39680 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
39681 Change "int handle" to "grub_ieee1275_phandle_t handle".
39682 * include/grub/powerpc/ieee1275/ieee1275.h
39683 (grub_ieee1275_get_property): Likewise.
39684
39685 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
39686
39687 Added normal mode command `chainloader' as module chain.mod, which
39688 depends on normal.mod and _chain.mod.
39689
39690 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
39691 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
39692 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
39693 Deleted prototype.
39694 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
39695 but arguments parsing moved to ...
39696 (grub_chainloader_cmd): ... here. New function.
39697 * include/grub/i386/pc/chainloader.h: New file.
39698 * loader/i386/pc/chainloader_normal.c: Likewise.
39699
39700 2004-09-11 Marco Gerards <metgerards@student.han.nl>
39701
39702 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
39703 (grub_mkimage_LDFLAGS): Likewise.
39704 (grub_emu_SOURCES): Likewise.
39705 (kernel_img_HEADERS): Added fshelp.h.
39706 * fs/ext2.c: Include <grub/fshelp.h>.
39707 (FILETYPE_REG): New macro.
39708 (FILETYPE_INO_REG): Likewise.
39709 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
39710 Changed all users.
39711 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
39712 all users.
39713 (grub_fshelp_node): New struct.
39714 (grub_ext2_data): Added member `diropen'. Changed member `inode'
39715 to a pointer.
39716 (grub_ext2_get_file_block): Removed function.
39717 (grub_ext2_read_block): New function.
39718 (grub_ext2_read_file): Replaced parameter `data' by `node'.
39719 This function was written.
39720 (grub_ext2_mount): Read the root inode. Create a diropen struct.
39721 (grub_ext2_find_file): Removed function.
39722 (grub_ext2_read_symlink): New function.
39723 (grub_ext2_iterate_dir): Likewise.
39724 (grub_ext2_open): Rewritten.
39725 (grub_ext2_dir): Rewritten.
39726 * include/grub/fshelp.h: New file.
39727 * fs/fshelp.c: Likewise.
39728
39729 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
39730
39731 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
39732 (print_message): Add a missing newline.
39733 (run_menu): Added timeout support.
39734 (run_menu_entry): New local function.
39735 (grub_menu_run): Added support for booting.
39736
39737 * kern/loader.c (grub_loader_is_loaded): New function.
39738
39739 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
39740 (grub_get_rtc): Exported.
39741
39742 * include/grub/i386/pc/time.h: Include grub/symbol.h.
39743 (grub_get_rtc): Exported.
39744
39745 * include/grub/normal.h (struct grub_command_list): Remove
39746 constant from the member `command'.
39747
39748 * include/grub/loader.h (grub_loader_is_loaded): Declared.
39749
39750 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
39751
39752 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
39753
39754 2004-08-28 Marco Gerards <metgerards@student.han.nl>
39755
39756 Add support for the JFS filesystem.
39757
39758 * fs/jfs.c: New file.
39759 * include/grub/fs.h (grub_jfs_init): New prototype.
39760 (grub_jfs_fini): New prototype.
39761 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
39762 (grub_emu_SOURCES): Likewise.
39763 (pkgdata_MODULES): Add jfs.mod.
39764 (jfs_mod_SOURCES): New variable.
39765 (jfs_mod_CFLAGS): Likewise.
39766 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
39767 (grubof_SOURCES): Likewise.
39768 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
39769
39770 * fs/fat.c (grub_fat_find_dir): Convert the filename little
39771 endian to the host endian.
39772 (grub_fat_utf16_to_utf8): Move function from there...
39773 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
39774 the endianness of the source string anymore.
39775 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
39776
39777 2004-08-24 Marco Gerards <metgerards@student.han.nl>
39778
39779 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
39780 (grub_boot_fini) [GRUB_UTIL]: Likewise.
39781 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
39782 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
39783
39784 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
39785 (grub_hfs_iterate_dir): Make the function static. Add prototypes
39786 for `node_found' and `it_dir'.
39787 (grub_hfs_dir): Add prototype for `dir_hook'.
39788
39789 * fs/minix.c (grub_minix_get_file_block): Add prototype for
39790 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
39791 and `indir32' to silence a gcc warning.
39792
39793 * include/grub/fs.h (grub_hfs_init): New prototype.
39794 (grub_hfs_fini): Likewise.
39795
39796
39797 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
39798
39799 Each disk device has its own id now. This is useful to make use
39800 of multiple disk devices.
39801
39802 * include/grub/disk.h (grub_disk_dev_id): New enum.
39803 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
39804 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
39805
39806 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
39807 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
39808
39809 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
39810 GRUB_DISK_DEVICE_OFDISK_ID as an id.
39811
39812 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
39813 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
39814
39815 * include/grub/disk.h (struct grub_disk_dev): Added a new member
39816 "id" which is used by the cache manager.
39817
39818 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
39819 of just "GRUB".
39820
39821 2004-08-18 Marco Gerards <metgerards@student.han.nl>
39822
39823 * fs/hfs.c: New file.
39824 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
39825 (grub_emu_SOURCES): Likewise.
39826 (pkgdata_MODULES): Add hfs.mod.
39827 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
39828 (grubof_SOURCES): Likewise.
39829 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
39830
39831 * include/grub/misc.h (grub_strncasecmp): Add prototype.
39832 * kern/misc.c (grub_strncasecmp): Add function.
39833
39834 2004-08-14 Marco Gerards <metgerards@student.han.nl>
39835
39836 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
39837 with parentheses.
39838
39839 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
39840 (grub_ext2_dir): In case the directory entry type is unknown, read
39841 it from the inode.
39842
39843 2004-08-02 Peter Bruin <pjbruin@dds.nl>
39844
39845 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
39846 grub_load_linux instead of grub_rescue_cmd_linux as second
39847 argument of grub_rescue_register_command.
39848
39849 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
39850
39851 2004-07-27 Marco Gerards <metgerards@student.han.nl>
39852
39853 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
39854 function.
39855 * commands/boot.c: Remove the check for `GRUB_UTIL'.
39856 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
39857 `loader/powerpc/ieee1275/linux.c',
39858 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
39859 * include/grub/powerpc/ieee1275/ieee1275.h
39860 (grub_ieee1275_release): New prototype.
39861 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
39862 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
39863 normal, boot, linux and linux_normal.
39864 * loader/powerpc/ieee1275/linux.c: New file.
39865 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
39866
39867 2004-07-12 Marco Gerards <metgerards@student.han.nl>
39868
39869 * normal/arg.c (grub_arg_parse): Correct error handling after
39870 reallocating the argumentlist (check if `argl' is not null instead
39871 of checking if `args' is not null).
39872 * kern/mm.c (grub_realloc): Return the same pointer when using the
39873 same region, instead of returning the header address.
39874
39875 2004-07-11 Marco Gerards <metgerards@student.han.nl>
39876
39877 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
39878 one block instead of two when looking for the initial partition.
39879 (grub_partition_probe): Initialize the local variable `p' with 0.
39880 Use base 10 for the grub_strtoul call.
39881 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
39882 need for one local variable.
39883 (grub_strtoul): Don't add the new value to `num', instead of that
39884 just assign it.
39885
39886 2004-07-11 Marco Gerards <metgerards@student.han.nl>
39887
39888 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
39889 (pxeboot_img_SOURCES): New variable.
39890 (pxeboot_img_ASFLAGS): Likewise.
39891 (pxeboot_img_LDFLAGS): Likewise.
39892 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
39893 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
39894 <lode_leroy@hotmail.com>.
39895
39896 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
39897
39898 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
39899 there was no input.
39900
39901 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
39902
39903 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
39904 the history buffer logic.
39905
39906 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
39907
39908 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
39909 (FILETYPE_INO_SYMLINK): New macros.
39910 (grub_ext2_find_file): Check if the node is a directory using the
39911 inode stat information instead of using the filetype in the
39912 dirent. Exclude the first character of an absolute symlink.
39913 (grub_ext2_dir): Mask out the filetype part of the mode member of
39914 the inode.
39915
39916 2004-05-24 Marco Gerards <metgerards@student.han.nl>
39917
39918 Add support for UFS version 1 and 2. Add support for the minix
39919 filesystem version 1 and 2, both the variants with 14 and 30 long
39920 filenames.
39921
39922 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
39923 fs/minix.c.
39924 (grub_emu_SOURCES): Likewise.
39925 (pkgdata_MODULES): Add ufs.mod and minix.mod.
39926 (ufs_mod_SOURCES): New variable.
39927 (ufs_mod_CFLAGS): Likewise.
39928 (minix_mod_SOURCES): Likewise.
39929 (minix_mod_CFLAGS): Likewise.
39930 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
39931 fs/minix.c.
39932 (grubof_SOURCES): Likewise.
39933 * fs/ufs.c: New file.
39934 * fs/minix.c: New file.
39935 * include/grub/fs.h (grub_ufs_init): New prototype.
39936 (grub_ufs_fini): Likewise.
39937 (grub_minix_init): Likewise.
39938 (grub_minix_fini): Likewise.
39939 * util/grub-emu.c (main): Initialize and deinitialize UFS and
39940 minix fs.
39941
39942 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
39943
39944 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
39945 commands/ls.c, commands/terminal.c, commands/boot.c,
39946 commands/cmp.c and commands/cat.c.
39947 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
39948
39949 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
39950 "env.h"
39951
39952 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
39953
39954 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
39955 and grub_, respectively. Because the conversion is trivial and
39956 mechanical, I omit the details here. Please refer to the CVS
39957 if you need more information.
39958
39959 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
39960
39961 * include/pupa: Renamed to ...
39962 * include/grub: ... this.
39963 * util/i386/pc/pupa-mkimage.c: Renamed to ...
39964 * util/i386/pc/grub-mkimage.c: ... this.
39965 * util/i386/pc/pupa-setup.c: Renamed to ...
39966 * util/i386/pc/grub-setup.c: ... this.
39967 * util/pupa-emu.c: Renamed to ...
39968 * util/grub-emu.c: ... this.
39969
39970 2004-03-29 Marco Gerards <metgerards@student.han.nl>
39971
39972 Add support for the newworld apple macintosh (PPC). This has been
39973 tested on the powerbook 2000 only. It only adds support for
39974 generic ieee1275 functions, console and disk support. This should
39975 be easy to port to other architectures with support for Open
39976 Firmware.
39977
39978 * configure.ac: Accept the powerpc as host_cpu. In the case of
39979 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
39980 specific tests are only executed while building for the i386.
39981 Inverse test for crosscompile.
39982 * genmk.rb (Utility): Allow assembler files.
39983 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
39984 * conf/powerpc-ieee1275.rmk: New file.
39985 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
39986 * disk/powerpc/ieee1275/partition.c: Likewise.
39987 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
39988 * include/pupa/powerpc/ieee1275/console.h: Likewise.
39989 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
39990 * include/pupa/powerpc/ieee1275/time.h: Likewise.
39991 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
39992 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
39993 * include/pupa/powerpc/ieee1275/loader.h
39994 * include/pupa/powerpc/setjmp.h: Likewise.
39995 * include/pupa/powerpc/types.h: Likewise.
39996 * kern/powerpc/ieee1275/init.c: Likewise.
39997 * kern/powerpc/ieee1275/openfw.c: Likewise.
39998 * term/powerpc/ieee1275/ofconsole.c: Likewise.
39999
40000 These files were written by Johan Rydberg
40001 (jrydberg@night.trouble.net) and I only modified them slightly.
40002
40003 * boot/powerpc/ieee1275/cmain.c: New file.
40004 * boot/powerpc/ieee1275/crt0.S: Likewise.
40005 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
40006 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
40007
40008 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
40009
40010 * Makefile.in: Update copyright.
40011 * genmodsrc.sh: Likewise.
40012 * gensymlist.sh: Likewise.
40013 * term/i386/pc/vga.c: Indent correctly.
40014
40015 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
40016 bugreporting address.
40017 * util/i386/pc/pupa-setup.c (usage): Likewise,
40018 (main): Call pupa_ext2_init and pupa_ext2_fini.
40019
40020 * fs/fat.c (log2): Renamed to ...
40021 (fat_log2): ... this.
40022 All callers changed.
40023 * kern/misc.c (memcpy): Alias to pupa_memmove.
40024 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
40025 lvalue cast.
40026 * util/console.c (pupa_ncurses_fini): Return 0.
40027
40028 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
40029 Move fail label here.
40030 [__GNU__]: Don't warn when using stat.
40031 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
40032 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
40033 long int. Use strtol instead of strtoul.
40034
40035 2004-03-14 Marco Gerards <metgerards@student.han.nl>
40036
40037 * commands/boot.c: New file.
40038 * commands/cat.c: Likewise.
40039 * commands/cmp.c: Likewise.
40040 * commands/ls.c: Likewise.
40041 * commands/terminal.c: Likewise.
40042 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
40043 (pupa_register_command): Changed interface to match the new
40044 argument parser.
40045 (pupa_command_execute): Changed (almost rewritten) so it uses
40046 pupa_split_command. Added support for setting variables using the
40047 syntax `foo=bar'.
40048 (rescue_command): Changed to work with the new argument parser.
40049 (terminal_command): Moved from here to commands/terminal.c.
40050 (set_command): New function.
40051 (unset_command): New function.
40052 (insmod_command): New function.
40053 (rmmod_command): New function.
40054 (lsmod_command): New function.
40055 (pupa_command_init): Don't initialize the command terminal
40056 anymore. Initialize the commands set, unset, insmod, rmmod and
40057 lsmod.
40058 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
40059 (kernel_img_HEADERS): Add arg.h and env.h.
40060 (pupa_mkimage_LDFLAGS): Add kern/env.c.
40061 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
40062 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
40063 normal/arg.c.
40064 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
40065 terminal.mod.
40066 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
40067 (boot_mod_SOURCES): New variable.
40068 (terminal_mod_SOURCES): Likewise.
40069 (ls_mod_SOURCES): Likewise.
40070 (cmp_mod_SOURCES): Likewise.
40071 (cat_mod_SOURCES): Likewise.
40072
40073 * normal/arg.c: New file.
40074 * kern/env.c: Likewise.
40075 * include/pupa/arg.h: Likewise.
40076 * include/pupa/env.h: Likewise.
40077 * font/manager.c (font_command): Changed to match argument parsing
40078 interface changes.
40079 (PUPA_MOD_INIT): Likewise.
40080 * hello/hello.c (pupa_cmd_hello): Likewise.
40081 (PUPA_MOD_INIT): Likewise.
40082 * include/pupa/disk.h: Include <pupa/device.h>.
40083 (pupa_print_partinfo): New prototype.
40084 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
40085 (pupa_dl_get_prefix): Likewise.
40086 * include/pupa/misc.h: Include <pupa/err.h>.
40087 (pupa_isgraph): New prototype.
40088 (pupa_isdigit): Likewise.
40089 (pupa_split_cmdline): Likewise.
40090 * include/pupa/normal.h: Include <pupa/arg.h>.
40091 (pupa_command): Changed the prototype of the member `func' to
40092 match the argument parsing interface. Added member `options'.
40093 (pupa_register_command): Updated to match function.
40094 (pupa_arg_parse): New prototype.
40095 (pupa_hello_init) [PUPA_UTIL]: New prototype.
40096 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
40097 (pupa_ls_init) [PUPA_UTIL]: Likewise.
40098 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
40099 (pupa_cat_init) [PUPA_UTIL]: Likewise.
40100 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
40101 (pupa_boot_init) [PUPA_UTIL]: Likewise.
40102 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
40103 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
40104 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
40105 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
40106 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
40107 * kern/disk.c: Include <pupa/file.h>.
40108 (pupa_print_partinfo): New function.
40109 * kern/dl.c: Include <pupa/env.h>.
40110 (pupa_dl_dir): Variable removed.
40111 (pupa_dl_load): Use the environment variable `prefix' instead of
40112 the variable pupa_dl_dir.
40113 (pupa_dl_set_prefix): Function removed.
40114 (pupa_dl_get_prefix): Likewise.
40115 * kern/i386/pc/init.c: Include <pupa/env.h>.
40116 (pupa_machine_init): Use the environment variable `prefix' instead of
40117 using pupa_dl_set_prefix to set the prefix.
40118 * kern/main.c: Include <pupa/env.h>.
40119 (pupa_set_root_dev): Use the environment variable `prefix' instead of
40120 using pupa_dl_get_prefix to get the prefix.
40121 * kern/misc.c: Include <pupa/env.h>.
40122 (pupa_isdigit): New function.
40123 (pupa_isgraph): Likewise.
40124 (pupa_ftoa): Likewise.
40125 (pupa_vsprintf): Added support for printing values of the type
40126 `double'. Make it possible to format variable output when using
40127 formatting like `%1.2%f'.
40128 (pupa_split_cmdline): New function.
40129 * kern/rescue.c: Include <pupa/env.h>.
40130 (next_word): Removed function.
40131 (pupa_rescue_cmd_prefix): Likewise.
40132 (pupa_rescue_cmd_set): New function.
40133 (pupa_rescue_cmd_unset): New function.
40134 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
40135 split the command line instead of splitting it here. Added
40136 support for setting variables using the syntax `foo=bar'. Don't
40137 initialize the prefix command anymore. Initialized the set and
40138 unset commands.
40139 * normal/cmdline.c: Include <pupa/env.h>.
40140 (pupa_tab_complete): Added prototypes for print_simple_completion,
40141 print_partition_completion, add_completion, iterate_commands,
40142 iterate_dev, iterate_part and iterate_dir. Moved code to print
40143 partition information from here to kern/disk.c.
40144 (pupa_cmdline_run): Don't check if the function exists anymore.
40145 * normal/main.c: Include <pupa/env.h>.
40146 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
40147 instead of using pupa_dl_get_prefix to get the prefix.
40148 * term/i386/pc/vga.c: Include <pupa/arg.h>.
40149 (check_vga_mem): Cast pointers to `void *' to silence a gcc
40150 warning.
40151 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
40152 (pupa_vga_setcolor): Declare unused variables with `__attribute__
40153 ((unused))' to silence a gcc warning.
40154 (pupa_vga_setcolor): Likewise.
40155 (debug_command): Changed to match argument parsing
40156 interface changes.
40157 * util/pupa-emu.c: Include <pupa/env.h>.
40158 (options): Added 0's for unused fields to silence a gcc warning.
40159 (argp): Likewise.
40160 (main): Use the environment variable `prefix' instead of using
40161 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
40162 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
40163 and terminal.
40164
40165 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
40166 * util/misc.c: Include <malloc.h>.
40167 (pupa_malloc): Rewritten so errors are correctly reported.
40168 (pupa_realloc): Likewise.
40169 (pupa_memalign): Likewise.
40170 (pupa_mm_init_region): Declare unused variables with
40171 `__attribute__ ((unused))' to silence a gcc warning.
40172 * normal/i386/setjmp.S: Remove tab at the end of the file to
40173 silence a gcc warning.
40174 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
40175 variables with `__attribute__ ((unused))' to silence a gcc
40176 warning.
40177 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
40178 local variable i unsigned to silence a gcc warning.
40179
40180 * kern/term.c: Include <pupa/misc.h>.
40181 (pupa_more_lines): New variable.
40182 (pupa_more): Likewise.
40183 (pupa_putcode): When the pager is active pause at the end of every
40184 screen.
40185 (pupa_set_more): New function.
40186 * include/pupa/term.h (pupa_set_more): New prototype.
40187
40188
40189 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
40190
40191 Now this project is GRUB 2 rather than PUPA. The location of
40192 the CVS repository was moved to GRUB's.
40193
40194 * configure.ac: Use bug-grub as the reporting address.
40195 Use GRUB instead of PUPA.
40196 Change the version number to 1.90.
40197
40198 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
40199
40200 * genkernsyms.sh: Updated copyright information.
40201 * genmk.rb: Likewise.
40202 * genmodsrc.sh: Likewise.
40203 * gensymlist.sh: Likewise.
40204 * boot/i386/pc/boot.S: Likewise.
40205 * boot/i386/pc/diskboot.S: Likewise.
40206 * disk/i386/pc/biosdisk.c: Likewise.
40207 * disk/i386/pc/partition.c: Likewise.
40208 * font/manager.c: Likewise.
40209 * fs/ext2.c: Likewise.
40210 * fs/fat.c: Likewise.
40211 * include/pupa/boot.h: Likewise.
40212 * include/pupa/device.h: Likewise.
40213 * include/pupa/disk.h: Likewise.
40214 * include/pupa/dl.h: Likewise.
40215 * include/pupa/elf.h: Likewise.
40216 * include/pupa/err.h: Likewise.
40217 * include/pupa/file.h: Likewise.
40218 * include/pupa/font.h: Likewise.
40219 * include/pupa/fs.h: Likewise.
40220 * include/pupa/kernel.h: Likewise.
40221 * include/pupa/loader.h: Likewise.
40222 * include/pupa/misc.h: Likewise.
40223 * include/pupa/mm.h: Likewise.
40224 * include/pupa/net.h: Likewise.
40225 * include/pupa/normal.h: Likewise.
40226 * include/pupa/rescue.h: Likewise.
40227 * include/pupa/setjmp.h: Likewise.
40228 * include/pupa/symbol.h: Likewise.
40229 * include/pupa/term.h: Likewise.
40230 * include/pupa/types.h: Likewise.
40231 * include/pupa/i386/setjmp.h: Likewise.
40232 * include/pupa/i386/types.h: Likewise.
40233 * include/pupa/i386/pc/biosdisk.h: Likewise.
40234 * include/pupa/i386/pc/boot.h: Likewise.
40235 * include/pupa/i386/pc/console.h: Likewise.
40236 * include/pupa/i386/pc/init.h: Likewise.
40237 * include/pupa/i386/pc/kernel.h: Likewise.
40238 * include/pupa/i386/pc/linux.h: Likewise.
40239 * include/pupa/i386/pc/loader.h: Likewise.
40240 * include/pupa/i386/pc/memory.h: Likewise.
40241 * include/pupa/i386/pc/multiboot.h: Likewise.
40242 * include/pupa/i386/pc/partition.h: Likewise.
40243 * include/pupa/i386/pc/time.h: Likewise.
40244 * include/pupa/i386/pc/vga.h: Likewise.
40245 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
40246 * include/pupa/util/getroot.h: Likewise.
40247 * include/pupa/util/misc.h: Likewise.
40248 * include/pupa/util/resolve.h: Likewise.
40249 * kern/device.c: Likewise.
40250 * kern/disk.c: Likewise.
40251 * kern/dl.c: Likewise.
40252 * kern/err.c: Likewise.
40253 * kern/file.c: Likewise.
40254 * kern/fs.c: Likewise.
40255 * kern/loader.c: Likewise.
40256 * kern/main.c: Likewise.
40257 * kern/misc.c: Likewise.
40258 * kern/mm.c: Likewise.
40259 * kern/rescue.c: Likewise.
40260 * kern/term.c: Likewise.
40261 * kern/i386/dl.c: Likewise.
40262 * kern/i386/pc/init.c: Likewise.
40263 * kern/i386/pc/lzo1x.S: Likewise.
40264 * kern/i386/pc/startup.S: Likewise.
40265 * loader/i386/pc/chainloader.c: Likewise.
40266 * loader/i386/pc/linux.c: Likewise.
40267 * loader/i386/pc/multiboot.c: Likewise.
40268 * normal/cmdline.c: Likewise.
40269 * normal/command.c: Likewise.
40270 * normal/main.c: Likewise.
40271 * normal/menu.c: Likewise.
40272 * normal/i386/setjmp.S: Likewise.
40273 * term/i386/pc/console.c: Likewise.
40274 * term/i386/pc/vga.c: Likewise.
40275 * util/console.c: Likewise.
40276 * util/genmoddep.c: Likewise.
40277 * util/misc.c: Likewise.
40278 * util/pupa-emu.c: Likewise.
40279 * util/resolve.c: Likewise.
40280 * util/unifont2pff.rb: Likewise.
40281 * util/i386/pc/biosdisk.c: Likewise.
40282 * util/i386/pc/getroot.c: Likewise.
40283 * util/i386/pc/pupa-mkimage.c: Likewise.
40284 * util/i386/pc/pupa-setup.c: Likewise.
40285
40286 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
40287
40288 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
40289 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
40290 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
40291 reading and reset it after reading.
40292 (pupa_ext2_close): Return PUPA_ERR_NONE.
40293
40294 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
40295 Correct value.
40296 (struct linux_kernel_header): Add kernel_version and
40297 initrd_addr_max.
40298 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
40299 pupa_file_read succeeds.
40300 (pupa_rescue_cmd_initrd): Implement.
40301
40302 2003-12-03 Marco Gerards <metgerards@student.han.nl>
40303
40304 * fs/ext2.c (pupa_ext2_label): New function.
40305 (pupa_ext2_fs): Added label.
40306 * fs/fat.c (pupa_fat_label): New function.
40307 (pupa_fat_fs): Added label.
40308 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
40309
40310 * kern/misc.c (pupa_strndup): New function.
40311 * include/pupa/misc.h (pupa_strndup): New prototype.
40312
40313 * include/pupa/normal.h: Include <pupa/err.h>.
40314 (pupa_set_history): New prototype.
40315 (pupa_iterate_commands): New prototype.
40316 * normal/cmdline.c: Include <pupa/machine/partition.h>,
40317 <pupa/disk.h>, <pupa/file.h>.
40318 (hist_size): New variable.
40319 (hist_lines): Likewise.
40320 (hist_end): Likewise.
40321 (hist_used): Likewise.
40322 (pupa_set_history): New function.
40323 (pupa_history_get): Likewise.
40324 (pupa_history_add): Likewise.
40325 (pupa_history_replace): Likewise.
40326 (pupa_tab_complete): Likewise.
40327 (pupa_cmdline_run): Added tab completion and history buffer. Tab
40328 completion shows partitionnames while completing partitions, this
40329 feature was suggested by Jeff Bailey.
40330 * normal/command.c (pupa_iterate_commands): New function.
40331 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
40332 (pupa_normal_init): Initialize history buffer.
40333 (PUPA_MOD_INIT): Likewise.
40334 (pupa_normal_fini): Free the history buffer.
40335 (PUPA_MOD_FINI): Likewise.
40336
40337 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
40338 key.
40339
40340 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
40341 * configure.ac [i386]: Check for regparam bug.
40342 (NESTED_FUNC_ATTR) [! i386]: Defined.
40343
40344 2003-11-17 Marco Gerards <metgerards@student.han.nl>
40345
40346 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
40347 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
40348 (pupa_emu_SOURCES): New variable.
40349 (pupa_emu_LDFLAGS): Likewise.
40350 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
40351 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
40352 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
40353 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
40354 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
40355 (pupa_jmp_buf): New typedef.
40356 (pupa_setjmp) [PUPA_UTIL]: New macro.
40357 (pupa_longjmp) [PUPA_UTIL]: Likewise.
40358 * include/pupa/term.h (struct pupa_term): New member `refresh'.
40359 (pupa_refresh): New prototype.
40360 * include/pupa/util/getroot.h: New file.
40361 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
40362 it.
40363 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
40364 (pupa_rescue_cmd_cat): Likewise.
40365 (pupa_rescue_cmd_ls): Likewise.
40366 (pupa_rescue_cmd_testload): Likewise.
40367 (pupa_rescue_cmd_lsmod): Likewise.
40368 * normal/cmdline.c (pupa_cmdline_get): Likewise.
40369 * normal/menu.c (run_menu): Likewise.
40370 * kern/term.c (pupa_cls): Likewise.
40371 (pupa_refresh): New function.
40372 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
40373 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
40374 * util/console.c: New file.
40375
40376 * util/i386/pc/getroot.c: New file.
40377 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
40378 (pupa_putchar): New function.
40379 (pupa_refresh): Likewise.
40380 (xgetcwd): Function moved to ...
40381 (strip_extra_slashes): Likewise.
40382 (get_prefix): Likewise.
40383 * util/i386/pc/getroot.c: ... here.
40384 (find_root_device): Function moved and renamed to...
40385 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
40386 Changed all callers.
40387 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
40388 and renamed to...
40389 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
40390 Changed all callers.
40391 * util/misc.c (pupa_memalign): New function.
40392 (pupa_mm_init_region): Likewise.
40393 (pupa_register_exported_symbols): Likewise.
40394 (pupa_putchar): Function removed.
40395 * util/pupa-emu.c: New file.
40396
40397 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
40398
40399 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
40400 (_multiboot_mod_SOURCES): New variable.
40401 (_multiboot_mod_CFLAGS): Likewise.
40402 * loader/i386/pc/multiboot.c: New file.
40403 * include/pupa/i386/pc/multiboot.h: Likewise.
40404 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
40405 (pupa_multiboot_real_boot): New function.
40406 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
40407 (pupa_multiboot_real_boot): New prototype.
40408 (pupa_rescue_cmd_multiboot): Likewise
40409 (pupa_rescue_cmd_module): Likewise.
40410
40411 * kern/loader.c (pupa_loader_set): Continue when
40412 pupa_loader_unload_func() fails.
40413 (pupa_loader_unset): New function.
40414 * include/pupa/loader.h (pupa_loader_unset): New prototype.
40415
40416 * kern/misc.c (pupa_stpcpy): New function.
40417 * include/pupa/misc.h (pupa_stpcpy): New prototype.
40418
40419 2003-11-12 Marco Gerards <metgerards@student.han.nl>
40420
40421 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
40422 for available extensions.
40423
40424 * include/pupa/i386/pc/time.h: New file.
40425 * kern/disk.c: Include <pupa/machine/time.h>.
40426 (PUPA_CACHE_TIMEOUT): New macro.
40427 (pupa_last_time): New variable.
40428 (pupa_disk_open): Flush the cache when there was a timeout.
40429 (pupa_disk_close): Reset the timer.
40430 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
40431 pupa_currticks.
40432 * util/misc.c: Include <sys/times.h>
40433 (pupa_get_rtc): New function.
40434
40435 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
40436
40437 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
40438 as blocks.
40439 (pupa_ext2_get_file_block): Use blocks member.
40440
40441 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
40442 first block. Return -1 instead of pupa_errno on error.
40443
40444 2003-10-27 Marco Gerards <metgerards@student.han.nl>
40445
40446 * README: In the pupa-mkimage example use _chain instead of chain
40447 and ext2 instead of fat.
40448 * TODO: Replace ext2fs with jfs as an example. Add an item for
40449 adding journal playback for ext2fs.
40450 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
40451 (pkgdata_MODULES): Added ext2.mod.
40452 (ext2_mod_SOURCES): New variable.
40453 (ext2_mod_CFLAGS): Likewise.
40454 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
40455 * include/pupa/misc.h (pupa_strncpy): New prototype.
40456 (pupa_strcat): Likewise.
40457 (pupa_strncmp): Likewise.
40458 * kern/misc.c (pupa_strcat): Enable function.
40459 (pupa_strncpy): New function.
40460 (pupa_strncmp): Likewise.
40461 * fs/ext2.c: New file.
40462
40463 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
40464 when the read failed before retrying.
40465 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
40466 (_FILE_OFFSET_BITS): Likewise.
40467 * configure.ac: Added AC_SYS_LARGEFILE.
40468
40469 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
40470
40471 * genmk.rb (PModule#rule): Make sure to get only symbol names
40472 from the output of nm.
40473 Reported by Robert Millan <rmh.grub@aybabtu.com>.
40474
40475 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
40476
40477 I forgot to check in these changes for a long time. This adds
40478 incomplete support for VGA console, and this is still very
40479 buggy. Also, a lot of consideration is required for I18N,
40480 UNICODE, and VGA font issues. Therefore, assume that this is
40481 such that "better than nothing".
40482
40483 * font/manager.c: New file.
40484 * include/pupa/font.h: Likewise.
40485 * include/pupa/i386/pc/vga.h: Likewise.
40486 * term/i386/pc/vga.c: Likewise.
40487 * util/unifont2pff.rb: Likewise.
40488
40489 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
40490 (pkgdata_MODULES): Added vga.mod and font.mod.
40491 (vga_mod_SOURCES): New variables.
40492 (vga_mod_CFLAGS): Likewise.
40493 (font_mod_SOURCES): Likewise.
40494 (font_mod_CFLAGS): Likewise.
40495
40496 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
40497
40498 * include/pupa/term.h: Include pupa/err.h.
40499 (struct pupa_term): Added init and fini.
40500 Changed the argument of putchar to pupa_uint32_t.
40501
40502 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
40503 (pupa_console_real_putchar): New prototype.
40504 (pupa_console_putchar): Removed.
40505 (pupa_console_checkkey): Exported.
40506 (pupa_console_getkey): Likewise.
40507
40508 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
40509 characters.
40510
40511 * kern/term.c (pupa_term_set_current): Rewritten.
40512 (pupa_putchar): Likewise.
40513 (pupa_putcode): New function.
40514
40515 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
40516 (pupa_console_real_putchar): ... this.
40517 (pupa_vga_set_mode): New function.
40518 (pupa_vga_get_font): Likewise.
40519
40520 * normal/command.c: Include pupa/term.h.
40521 (terminal_command): New function.
40522 (pupa_command_init): Register the command "terminal".
40523
40524 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
40525 (DISP_UP): Likewise.
40526 (DISP_RIGHT): Likewise.
40527 (DISP_DOWN): Likewise.
40528 (DISP_HLINE): Likewise.
40529 (DISP_VLINE): Likewise.
40530 (DISP_UL): Likewise.
40531 (DISP_UR): Likewise.
40532 (DISP_LL): Likewise.
40533 (DISP_LR): Likewise.
40534
40535 * term/i386/pc/console.c (pupa_console_putchar): New function.
40536
40537 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
40538
40539 * util/resolve.c (pupa_util_resolve_dependencies): BUG
40540 FIX. Reverse the path_list.
40541
40542 * include/pupa/normal.h: Export pupa_register_command and
40543 pupa_unregister_command.
40544
40545 * hello/hello.c (pupa_cmd_hello): New module.
40546 * conf/i386-pc.rmk: Added hello.mod.
40547
40548 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
40549
40550 * kern/i386/pc/lzo1x.S: New file.
40551
40552 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
40553 (compress_kernel): New variable.
40554 (generate_image): Heavily modified to support compressing a
40555 large part of the core image.
40556
40557 * util/misc.c (pupa_util_read_image): Fix a file descriptor
40558 leak.
40559 (pupa_util_load_image): New function.
40560
40561 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
40562 (pupa_compressed_size): New variable.
40563 (codestart): Enable Gate A20 here.
40564 Decompress the compressed part of the core image.
40565 Rearrange the code to put functions and variables which are
40566 required for initialization in the non-compressed part.
40567 Include lzo1x.S.
40568
40569 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
40570 here.
40571
40572 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
40573
40574 * include/pupa/i386/pc/kernel.h
40575 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
40576 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
40577 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
40578 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
40579 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
40580
40581 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
40582
40583 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
40584 (Utility#rule): Likewise.
40585
40586 * configure.ac: Check if LZO is available.
40587
40588 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
40589
40590 * include/pupa/normal.h: New file.
40591 * include/pupa/setjmp.h: Likewise.
40592 * include/pupa/i386/setjmp.h: Likewise.
40593 * normal/cmdline.c: Likewise.
40594 * normal/command.c: Likewise.
40595 * normal/main.c: Likewise.
40596 * normal/menu.c: Likewise.
40597 * normal/i386/setjmp.S: Likewise.
40598
40599 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
40600 (pupa_rescue_cmd_initrd): Likewise.
40601
40602 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
40603 Likewise.
40604
40605 * kern/i386/pc/startup.S (translation_table): New variable.
40606 (translate_keycode): New function.
40607 (pupa_console_getkey): Call translate_keycode.
40608
40609 * kern/rescue.c (attempt_normal_mode): New function.
40610 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
40611 it failed, print a message.
40612
40613 * kern/mm.c (pupa_real_malloc): Print more information when a
40614 free magic is broken.
40615 (pupa_free): If the first free header is not free actually, set
40616 it to P.
40617
40618 * kern/main.c (pupa_load_normal_mode): Just load the module
40619 "normal".
40620 (pupa_main): Don't print the message
40621 "Entering into rescue mode..." here.
40622
40623 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
40624 Declared.
40625 (pupa_rescue_cmd_initrd): Likewise.
40626 (pupa_rescue_cmd_initrd): Likewise.
40627
40628 * include/pupa/symbol.h (FUNCTION): Specify the type.
40629 (VARIABLE): Likewise.
40630
40631 * include/pupa/err.h (pupa_err_t): Added
40632 PUPA_ERR_UNKNOWN_COMMAND.
40633
40634 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
40635 (pupa_dl_get_prefix): Likewise.
40636
40637 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
40638 Added _chain.mod and _linux.mod instead of chain.mod and
40639 linux.mod.
40640 (chain_mod_SOURCES): Renamed to ...
40641 (_chain_mod_SOURCES): ... this.
40642 (chain_mod_CFLAGS): Renamed to ...
40643 (_chain_mod_CFLAGS): ... this.
40644 (linux_mod_SOURCES): Renamed to ...
40645 (_linux_mod_SOURCES): ... this.
40646 (linux_mod_CFLAGS): Renamed to ...
40647 (_linux_mod_CFLAGS): ... this.
40648 (normal_mod_SOURCES): New variable.
40649 (normal_mod_CFLAGS): Likewise.
40650 (normal_mod_ASFLAGS): Likewise.
40651
40652 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
40653
40654 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
40655 possible.
40656
40657 * kern/dl.c (pupa_dl_ref): Refer depending modules
40658 recursively.
40659 (pupa_dl_unref): Unrefer depending modules recursively.
40660 Don't call pupa_dl_unload implicitly, because PUPA can crash if
40661 a module is unloaded before one depending on that module is
40662 unloaded.
40663 (pupa_dl_unload): Unload depending modules explicitly,
40664 if possible.
40665
40666 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
40667
40668 * include/pupa/i386/pc/linux.h: New file.
40669 * loader/i386/pc/linux.c: Likewise.
40670
40671 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
40672 Removed.
40673 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
40674 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
40675 of PUPA_CHAINLOADER_BOOT_SECTOR.
40676
40677 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
40678 (pupa_linux_prot_size): New variable.
40679 (pupa_linux_tmp_addr): Likewise.
40680 (pupa_linux_real_addr): Likewise.
40681 (pupa_linux_boot_zimage): New function.
40682 (pupa_linux_boot_bzimage): Likewise.
40683
40684 * kern/i386/pc/init.c (struct mem_region): New structure.
40685 (MAX_REGIONS): New macro.
40686 (mem_regions): New variable.
40687 (num_regions): Likewise.
40688 (pupa_os_area_addr): Likewise.
40689 (pupa_os_area_size): Likewise.
40690 (pupa_lower_mem): Likewise.
40691 (pupa_upper_mem): Likewise.
40692 (add_mem_region): New function.
40693 (compact_mem_regions): Likewise.
40694 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
40695 the size of the conventional memory and that of so-called upper
40696 memory (before the first memory hole).
40697 Instead of adding each found region to free memory, use
40698 add_mem_region and add them after removing overlaps.
40699 Also, add only 1/4 of the upper memory to free memory. The rest
40700 is used for loading OS images. Maybe this is ad hoc, but this
40701 makes it much easier to relocate OS images when booting.
40702
40703 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
40704 (pupa_enter_rescue_mode): Don't register initrd and module.
40705
40706 * kern/mm.c: Include pupa/dl.h.
40707
40708 * kern/main.c: Include pupa/file.h and pupa/device.h.
40709
40710 * kern/loader.c (pupa_loader_load_module_func): Removed.
40711 (pupa_loader_load_module): Likewise.
40712
40713 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
40714 ``.o''.
40715
40716 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
40717 (pupa_linux_tmp_addr): Likewise.
40718 (pupa_linux_real_addr): Likewise.
40719 (pupa_linux_boot_zimage): Likewise.
40720 (pupa_linux_boot_bzimage): Likewise.
40721
40722 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
40723 (pupa_upper_mem): Likewise.
40724 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
40725 module is too dangerous.
40726
40727 * include/pupa/loader.h (pupa_os_area_addr): Declared.
40728 (pupa_os_area_size): Likewise.
40729 (pupa_loader_set): Remove the first argument. Loader doesn't
40730 manage modules or initrd any longer.
40731 (pupa_loader_load_module): Removed.
40732
40733 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
40734 (linux_mod_SOURCES): New variable.
40735 (linux_mod_CFLAGS): Likewise.
40736
40737 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
40738
40739 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
40740 the length of a blocklist correctly.
40741
40742 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
40743 Use ioctl only if the OS file is a block device.
40744 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
40745 not very useful for normal files.
40746
40747 * kern/main.c (pupa_set_root_dev): New function.
40748 (pupa_load_normal_mode): Likewise.
40749 (pupa_main): Call those above.
40750
40751 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
40752 pupa_uint16_t.
40753
40754 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
40755
40756 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
40757
40758 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
40759 (setup): Configure the installed partition information and the
40760 dl prefix.
40761
40762 * loader/i386/pc/chainloader.c (my_mod): New variable.
40763 (pupa_chainloader_unload): New function.
40764 (pupa_rescue_cmd_chainloader): Refer itself.
40765 (PUPA_MOD_INIT): Save its own module in MY_MOD.
40766
40767 * kern/i386/pc/startup.S (install_partition): Removed.
40768 (version_string): Likewise.
40769 (config_file): Likewise.
40770 (pupa_install_dos_part): New variable.
40771 (pupa_install_bsd_part): Likewise.
40772 (pupa_prefix): Likewise.
40773 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
40774
40775 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
40776 and pupa/misc.h.
40777 (make_install_device): New function.
40778 (pupa_machine_init): Set the dl prefix.
40779
40780 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
40781 (buf): Renamed to ...
40782 (linebuf): ... this.
40783 (pupa_rescue_cmd_prefix): New function.
40784 (pupa_rescue_cmd_insmod): Likewise.
40785 (pupa_rescue_cmd_rmmod): Likewise.
40786 (pupa_rescue_cmd_lsmod): Likewise.
40787 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
40788 rmmod and lsmod.
40789
40790 * kern/mm.c (pupa_memalign): If failed even after invalidating
40791 disk caches, unload unneeded modules and retry.
40792
40793 * kern/misc.c (pupa_memmove): New function.
40794 (pupa_memcpy): Removed.
40795 (pupa_strcpy): New function.
40796 (pupa_itoa): Made static.
40797
40798 * kern/dl.c (pupa_dl_iterate): New function.
40799 (pupa_dl_ref): Likewise.
40800 (pupa_dl_unref): Likewise.
40801 (pupa_dl_unload): Return if succeeded or not.
40802 (pupa_dl_unload_unneeded): New function.
40803 (pupa_dl_unload_all): Likewise.
40804 (pupa_dl_init): Renamed to ...
40805 (pupa_dl_set_prefix): ... this.
40806 (pupa_dl_get_prefix): New function.
40807
40808 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
40809 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
40810 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
40811 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
40812 (pupa_install_dos_part): Declared.
40813 (pupa_install_bsd_part): Likewise.
40814 (pupa_prefix): Likewise.
40815 (pupa_boot_drive): Likewise.
40816
40817 * include/pupa/types.h: Fix a typo.
40818
40819 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
40820 pupa_memmove.
40821 (pupa_memmove): Declared.
40822 (pupa_strcpy): Likewise.
40823
40824 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
40825 pupa_mod_init takes one argument, its own module.
40826 (pupa_dl_unload_unneeded): Declared.
40827 (pupa_dl_unload_all): Likewise.
40828 (pupa_dl_ref): Likewise.
40829 (pupa_dl_unref): Likewise.
40830 (pupa_dl_iterate): Likewise.
40831 (pupa_dl_init): Renamed to ...
40832 (pupa_dl_set_prefix): ... this.
40833 (pupa_dl_get_prefix): Declared.
40834
40835 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
40836 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
40837 unloaded.
40838 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
40839 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
40840
40841 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
40842 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
40843
40844 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
40845
40846 * util/i386/pc/pupa-setup.c (setup): Define the internal
40847 function find_first_partition_start at the top level, because GCC
40848 3.0.x cannot compile internal functions in deeper scopes
40849 correctly.
40850 (find_root_device): Use lstat instead of stat.
40851 Don't follow symbolic links.
40852 Fix the path-constructing code.
40853
40854 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
40855 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
40856 by a BLKGETSIZE ioctl first, because block devices don't fill
40857 the member st_mode of the structure stat on Linux.
40858 [__linux__] (linux_find_partition): Use a temporary buffer
40859 REAL_DEV for the working space. Copy it to DEV before returning.
40860 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
40861 buffer cache consistent.
40862 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
40863 strncmp. The previous value was merely wrong.
40864 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
40865
40866 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
40867 FAT size is 12. The previous value was merely wrong.
40868
40869 * kern/main.c (pupa_main): Don't split the starting message from
40870 newlines.
40871
40872 * kern/term.c (pupa_putchar): Put CR after LF instead of before
40873 LF, because BIOS goes crazy about character attributes in this
40874 case.
40875
40876 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
40877
40878 * include/i386/pc/util/biosdisk.h: New file.
40879 * util/i386/pc/biosdisk.c: Likewise.
40880 * util/i386/pc/pupa-setup.c: Likewise.
40881
40882 * Makefile.in (INCLUDE_DISTFILES): Added
40883 include/pupa/i386/pc/util/biosdisk.h.
40884 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
40885 directory util/i386/pc.
40886 (install-local): Added a rule for sbin_UTILITIES.
40887 (uninstall): Likewise.
40888
40889 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
40890
40891 * util/misc.c (xrealloc): New function.
40892 (pupa_malloc): Likewise.
40893 (pupa_free): Likewise.
40894 (pupa_realloc): Likewise.
40895 (pupa_stop): Likewise.
40896 (pupa_putchar): Likewise.
40897
40898 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
40899
40900 * include/pupa/util/misc.h (xrealloc): Declared.
40901
40902 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
40903 macro.
40904 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
40905 (PUPA_BOOT_MACHINE_BPB_END): ... this.
40906
40907 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
40908 [PUPA_UTIL] (pupa_fat_fini): Likewise.
40909
40910 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
40911 way should be implemented.
40912 [PUPA_UTIL] (pupa_fat_fini): Likewise.
40913
40914 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
40915 the size of NAME for safety.
40916 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
40917 0x88.
40918
40919 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
40920 (pupa_setup_SOURCES): Likewise.
40921
40922 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
40923
40924 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
40925
40926 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
40927 bunch of pushl's from pusha, because this destroys the return
40928 value.
40929
40930 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
40931
40932 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
40933 This means that any missing prototypes could be fatal. Also, you
40934 must take care when writing assembly code. See the comments at
40935 the beginning of startup.S, for more details.
40936
40937 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
40938 compilation mechanism.
40939 (pupa_chainloader_real_boot): Likewise.
40940 (pupa_biosdisk_rw_int13_extensions): Likewise.
40941 (pupa_biosdisk_rw_standard): Likewise.
40942 (pupa_biosdisk_check_int13_extensions): Likewise.
40943 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
40944 (pupa_biosdisk_get_diskinfo_standard): Likewise.
40945 (pupa_get_memsize): Likewise.
40946 (pupa_get_mmap_entry): Likewise.
40947 (pupa_console_putchar): Likewise.
40948 (pupa_console_setcursor): Likewise.
40949 (pupa_getrtsecs): Use pushl instead of push.
40950
40951 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
40952 memory instead of the stack for a mmap entry, because some
40953 BIOSes may ignore the maximum size and overflow.
40954
40955 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
40956
40957 * genmk.rb (PModule#rule): Compile automatically generated
40958 sources with module-specific CFLAGS as well as other sources.
40959
40960 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
40961
40962 * configure.ac: Check ld.
40963 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
40964 respectively, before checking endianness and sizes.
40965
40966 * Makefile.in (LD): New variable.
40967
40968 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
40969
40970 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
40971
40972 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
40973
40974 * Changelog: New file.
40975