]> git.proxmox.com Git - grub2.git/blob - ChangeLog
* grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
[grub2.git] / ChangeLog
1 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
2
3 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
4 old method if mountinfo would return /dev/root and /dev/root doesn't
5 exist.
6
7 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
8
9 ZFS zlib support
10
11 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
12 (decomp_table): Add zlib entries.
13 (zio_read): USe 8 bits for compression function rather than 3.
14 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
15
16 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
17
18 * grub-core/disk/ahci.c: Add missing license statements.
19 * grub-core/fs/romfs.c: Likewise.
20 * grub-core/lib/ia64/setjmp.S: Likewise.
21 * grub-core/loader/i386/pc/freedos.c: Likewise.
22 * grub-core/loader/ia64/efi/linux.c: Likewise.
23 * grub-core/video/colors.c: Likewise.
24 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
25
26 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
27
28 AHCI support.
29
30 * grub-core/Makefile.core.def (ata_pthru): Removed.
31 (ahci): New module.
32 (pata): Likewise.
33 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
34 on unload.
35 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
36 readwrite.
37 (grub_hdparm_do_check_powermode_cmd): Likewise.
38 (grub_hdparm_do_smart_cmd): Likewise.
39 (grub_hdparm_set_val_cmd): Likewise.
40 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
41 * grub-core/disk/ahci.c: New file.
42 * grub-core/disk/ata.c: Factor out the low-level part into ...
43 * grub-core/disk/pata.c: ... here.
44 * grub-core/disk/ata_pthru.c: Contents moved to ...
45 * grub-core/disk/pata.c: ... here.
46 * grub-core/disk/scsi.c (grub_scsi_names): New array.
47 (grub_scsi_iterate): Use grub_scsi_names.
48 (grub_scsi_open): Likewise.
49 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
50 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
51 (grub_ata_regs_t): New struct.
52 (grub_disk_ata_pass_through_parms): Likewise.
53 (grub_ata_device): Renamed to ...
54 (grub_ata): ... this.
55 (grub_ata_dev): New struct.
56 Removed all low-level inline functions.
57 * include/grub/scsi.h: Add PATA and AHCI subsystems.
58 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
59 iterate hooks and open. All users updated.
60 * util/grub-install.in: Handle AHCI disk module.
61
62 2011-06-23 Szymon Janc <szymon@janc.net.pl>
63
64 Add support for DRI and RSTn markers in JPEG files.
65
66 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
67 (JPEG_MARKER_RST0): Likewise.
68 (JPEG_MARKER_RST1): Likewise.
69 (JPEG_MARKER_RST2): Likewise.
70 (JPEG_MARKER_RST3): Likewise.
71 (JPEG_MARKER_RST4): Likewise.
72 (JPEG_MARKER_RST5): Likewise.
73 (JPEG_MARKER_RST6): Likewise.
74 (JPEG_MARKER_RST7): Likewise.
75 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
76 (grub_jpeg_decode_dri): New function.
77 (grub_jpeg_decode_sos): Move image data related part into
78 grub_jpeg_decode_data function.
79 (grub_jpeg_decode_data): New function.
80 (grub_jpeg_reset): New function.
81 (grub_jpeg_decode_jpeg): Handle new markers.
82
83 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
84
85 * util/ieee1275/ofpath.c (check_sas): Close fd.
86 (main): Free of_path.
87 Reported by: David Volgyes <dvolgyes>.
88
89 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
90
91 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
92 Reported by: David Volgyes <dvolgyes>.
93
94 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
95
96 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
97 file after stat.
98 Reported by: David Volgyes <dvolgyes>.
99
100 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
101
102 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
103
104 Reported by: David Volgyes <dvolgyes>.
105
106 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
107
108 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
109 Prevent memory leak.
110
111 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
112
113 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
114 (main): Close file.
115 Reported by: David Volgyes <dvolgyes>.
116
117 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
118
119 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
120 to continue if allocation is failed.
121
122 Reported by: David Volgyes <dvolgyes>.
123
124 2011-06-23 David Volgyes <dvolgyes>
125
126 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
127 dereference.
128
129 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
130
131 Fix spurious warning.
132
133 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
134 (acorn_partition_map_find): Use .bin member.
135
136 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
137
138 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
139 /dev/root as a valid device.
140
141 2011-06-23 Jim Meyering <meyering@redhat.com>
142
143 Avoid NULL deref in grub_device_open.
144
145 * grub-core/kern/device.c (grub_device_open): Don't dereference
146 a NULL pointer upon failed grub_env_get.
147
148 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
149
150 Support non-512B sectors and agglomerate reads.
151
152 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
153 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
154 (disk_io_guid): Removed.
155 (make_devices): Locate solely by BlockIO.
156 (grub_efidisk_open): Fill log_sector_size and total_sectors.
157 (grub_efidisk_read): Use read_blocks.
158 (grub_efidisk_write): Use write_blocks.
159 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
160 log_sector_size.
161 (get_safe_sectors): Handle non-512B sectors.
162 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
163 sectors.
164 (grub_biosdisk_write): Handle non-512B sectors.
165 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
166 (grub_scsi_read): Remove special non-512B block handling (now handled
167 one level up).
168 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
169 and do sanity checks.
170 (grub_disk_adjust_range): Handle non-512B sectors.
171 (transform_sector): New function.
172 (grub_disk_read_small): Likewise.
173 (grub_disk_read): Rewritten.
174 (grub_disk_write): Handle non-512B sectors.
175 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
176 log_sector_size.
177 (open_device): Use log_sector_size.
178 (grub_util_biosdisk_read): Likewise.
179 (grub_util_biosdisk_write): Likewise.
180 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
181 non-512B sectors.
182 (pc_partition_map_embed): Likewise.
183 * include/grub/disk.h (grub_disk): New field log_sector_size.
184 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
185 (GRUB_DISK_CACHE_BITS): Increased to 6.
186 * util/grub-fstest.c (fstest): New command testload.
187 (argp_parser): Likewise.
188
189 2011-06-16 Robert Millan <rmh@gnu.org>
190
191 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
192 `ata' driver on kernel of FreeBSD 9.
193
194 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
195 (get_ataraid_disk_name): New functions.
196 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
197 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
198 get_ataraid_disk_name() and get_ada_disk_name().
199
200 2011-06-13 Colin Watson <cjwatson@ubuntu.com>
201
202 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
203 input format.
204
205 2011-05-29 Colin Watson <cjwatson@ubuntu.com>
206
207 * docs/grub.texi (Obtaining and Building GRUB): Substitute
208 `ftp.gnu.org' for `alpha.gnu.org'.
209
210 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
211
212 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
213 partitions under /dev/disk/by-id/.
214
215 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
216
217 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
218 after ten consecutive open failures. Scanning all the way up to
219 10000 is excessive and can cause serious performance problems in
220 some configurations.
221 Fixes Ubuntu bug #787461.
222
223 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
224
225 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
226 opening new one.
227
228 2011-05-21 Colin Watson <cjwatson@ubuntu.com>
229 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
230
231 Don't stat devices unless we have to.
232
233 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
234 dir == /dev/mapper.
235 (grub_guess_root_device): Use already known os_dev if possible.
236 * grub-core/kern/emu/hostdisk.c
237 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
238 if device is known to be a dm one.
239
240 2011-05-20 Colin Watson <cjwatson@ubuntu.com>
241
242 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
243 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
244 Reported by: Pawel Tecza.
245
246 2011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
247
248 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
249 (lsefisystab): Likewise.
250 (lssal): Likewise.
251 (lsefimmap): Likewise.
252 (hdparm): Enable on qemu-mips.
253 (setjmp): Add ia64 nodist.
254 (serial): Simplify tags.
255
256 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
257
258 * Makefile.util.def (grub-ofpathname): Install manual page.
259
260 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
261
262 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
263
264 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
265
266 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
267
268 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
269
270 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
271 into dprintf.
272
273 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
274
275 Use full 64-bit division.
276
277 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
278 (grub_divmod64): ... this.
279 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
280 version.
281
282 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
283
284 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
285 `source'.
286
287 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
288
289 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
290 to avoid accidents when debugging with 'sh -x'.
291 * grub-core/gensyminfo.sh.in: Likewise.
292 * tests/example_scripted_test.in: Likewise.
293 * tests/grub_cmd_regexp.in: Likewise.
294 * tests/grub_script_blanklines.in: Likewise.
295 * tests/grub_script_dollar.in: Likewise.
296 * tests/grub_script_expansion.in: Likewise.
297 * tests/grub_script_final_semicolon.in: Likewise.
298 * tests/partmap_test.in: Likewise.
299 * tests/util/grub-shell-tester.in: Likewise.
300 * tests/util/grub-shell.in: Likewise.
301
302 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
303
304 Move gfxmenu color handling to video, so that gfxterm can use it
305 too.
306
307 * grub-core/gfxmenu/named_colors.c: Move to ...
308 * grub-core/video/colors.c: ... here. Rename
309 grub_gui_get_named_color to grub_video_get_named_color.
310 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
311 * grub-core/video/colors.c (my_isxdigit): ... here.
312 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
313 Move to ...
314 * grub-core/video/colors.c (parse_hex_color_component): ... here.
315 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
316 to ...
317 * grub-core/video/colors.c (grub_video_parse_color): ... here.
318
319 * include/grub/gui.h (grub_gui_color_t): Move to ...
320 * include/grub/video.h (grub_video_rgba_color_t): ... here.
321 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
322 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
323 * include/grub/gui.h (grub_gui_map_color): Move to ...
324 * include/grub/video.h (grub_video_map_rgba_color): ... here.
325 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
326 to ...
327 * include/grub/video.h (grub_video_get_named_color): ... here.
328 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
329 * include/grub/video.h (grub_video_parse_color): ... here.
330
331 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
332 video/colors.c.
333 (gfxmenu): Remove gfxmenu/named_colors.c.
334 (video) [videomodules]: Add video/colors.c.
335
336 Add a background_color command.
337
338 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
339 function.
340 (GRUB_MOD_INIT): Register background_color command.
341 (GRUB_MOD_FINI): Unregister background_color command.
342 (redraw_screen_rect): Allow blend/replace of text layer to be
343 controlled independently from whether there is a background bitmap.
344 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
345 changing bitmap.
346
347 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
348
349 Patch BPB in ntldr and chainloader --bpb.
350
351 * grub-core/fs/fat.c: Include grub/fat.h.
352 (grub_fat_bpb): Moved to ...
353 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
354 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
355 grub/ntfs.h.
356 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
357 Moved from here...
358 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
359 here.
360 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
361 New function.
362 (grub_chainloader_cmd): Patch BPB if --bpb is given.
363 (GRUB_MOD_INIT): Show --bpb.
364 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
365 * grub-core/normal/main.c (features): New variable.
366 (GRUB_MOD_INIT): Set feature_* variables.
367 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
368 proto.
369 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
370
371 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
372
373 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
374 for cleanness.
375
376 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
377
378 FreeDOS direct loading support.
379
380 * docs/grub.texi (Supported OS): Add FreeDOS.
381 * grub-core/Makefile.core.def (freedos): New module.
382 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
383 variable.
384 (grub_relocator16_boot): Handle %ebx.
385 * grub-core/lib/i386/relocator16.S: Likewise.
386 * grub-core/loader/i386/pc/freedos.c: New file.
387
388 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
389
390 Long Linux command line support.
391
392 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
393 (maximal_cmdline_size): New variable.
394 (allocate_pages): Use maximal_cmdline_size.
395 (grub_cmd_linux): Set and use maximal_cmdline_size.
396 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
397 (allocate_pages): Use maximal_cmdline_size.
398 (grub_cmd_linux): Set and use maximal_cmdline_size.
399 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
400 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
401 and cmdline_size.
402
403 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
404 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
405
406 Improve devmapper support
407
408 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
409 (grub_util_is_lvm): New function.
410 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
411 than lvm if not dmraid.
412 Handle mapped md nodes.
413 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
414 (grub_util_device_is_mapped): ... this. Make always available. All users
415 updated.
416 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
417 (convert_system_partition_to_system_disk): Handle lvm, mpath and
418 dmraid nodes.
419 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
420
421 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
422
423 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
424
425 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
426 * grub-core/modinfo.sh.in: New file.
427 * grub-core/Makefile.core.def (modinfo.sh): New script.
428 * util/grub-mknetdir.in: Use modinfo.sh.
429 * util/grub-mkrescue.in: Likewise.
430
431 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
432
433 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
434 Fix potential usage of Elf32 instead of Elf64 when compiling on
435 32-bit architecture. Add endianness macros while on it.
436
437 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
438
439 Use mipsel- rather than mips- in directories involving mipsel ports to
440 allow both endiannesses coexist.
441
442 * configure.ac: proparate target_cpu=mipsel rather than resetting to
443 mips. All conditions adjusted.
444 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
445 variable.
446 * util/grub-install.in: Adjust conditions to take renaming into account.
447 * util/grub-mkimage.c (image_targets): Likewise. New target
448 mips-qemu_mips-elf for bigendian mips.
449
450 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
451
452 Avoid unnecessary copying on MIPS.
453
454 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
455 early if src == dest.
456 * util/grub-mkimage.c (generate_image): Arange for src == dest if
457 compression is none.
458
459 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
460
461 Reduce memory footprint on SGI by putting modules before the kernel
462 as opposed to after.
463
464 * grub-core/Makefile.core.def (kernel): Increase linking address.
465 (none_decompress): Likewise.
466 (xz_decompress): Likewise.
467 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
468 address.
469 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
470 layout change.
471 (grub_arch_modules_addr): New function.
472 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
473 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
474 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
475 here.
476 * grub-core/kern/mips/startup.S (total_size): Rename to ...
477 (grub_total_modules_size): ... this. Make global.
478 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
479 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
480 New definition.
481 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
482 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
483 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
484 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
485 * util/grub-mkimage.c (image_target_desc): New flag
486 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
487 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
488 (generate_image): Handle images with modules before kernel.
489
490 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
491
492 Prevent potential loss of memory map by overwrite on qemu-mips.
493
494 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
495 Save ram size in $s4.
496 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
497 All users changed to grub_arch_memsize.
498 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
499 Loongson.
500 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
501 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
502 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
503 external variable.
504
505 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
506
507 * .bzrignore: Remove grub-dumpbios.
508
509 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
510
511 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
512 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
513 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
514 existing options which append).
515 * docs/grub.texi (Simple configuration): Document new options.
516 Reported by: Ian Jackson. Fixes Debian bug #617538.
517
518 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
519
520 * util/grub-fstest.c (cmd_cat): New function.
521 (fstest): Handle CMD_CAT.
522 (options): Add cat.
523 (argp_parser): Handle cat.
524
525 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
526
527 * Makefile.util.def (grub-bin2h): Don't install.
528 * docs/man/grub-bin2h.h2m: Remove.
529
530 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
531
532 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
533 place.
534
535 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
536
537 Reenable qemu-mips port.
538
539 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
540 Fix small arc bug while on it.
541 * gentpl.py: Handle qemu_mips.
542 * grub-core/Makefile.am: Likewise.
543 * grub-core/Makefile.core.def: Likewise.
544 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
545 inappropriate includes.
546 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
547 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
548 * grub-core/kern/main.c (grub_modules_get_end)
549 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
550 * grub-core/kern/mips/qemu-mips: Moved to ..
551 * grub-core/kern/mips/qemu_mips: ... this.
552 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
553 (grub_machine_init): Call terminfo_init and serial_init.
554 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
555 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
556 New variable.
557 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
558 parameter passing.
559 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
560 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
561 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
562 * include/grub/mips/qemu_mips/cmos.h: New file.
563 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
564 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
565 Removed.
566 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
567 Use correct mips-style address.
568 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
569 (GRUB_TICKS_PER_SECOND): Removed.
570 (grub_get_rtc): Likewise.
571 (grub_cpu_idle): Likewise.
572 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
573 New definition.
574 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
575 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
576 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
577 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
578 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
579 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
580 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
581 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
582
583 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
584
585 SGI ARCS port.
586
587 * Makefile.util.def (libgrubmods.a): Add dvh.c.
588 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
589 platforms.
590 * configure.ac: New target mips-arc.
591 * gentpl.py: Likewise.
592 * grub-core/Makefile.am: Likewise.
593 * grub-core/Makefile.core.def: Likewise.
594 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
595 (none_decompress): Likewise.
596 (lsdev): New module.
597 (datetime): Use lib/arc/datetime.c on ARC.
598 (part_dvh): New module.
599 * grub-core/commands/arc/lsdev.c: New file.
600 * grub-core/disk/arc/arcdisk.c: Likewise.
601 * grub-core/kern/mips/arc/init.c: Likewise.
602 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
603 aligned addresses.
604 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
605 support.
606 (grub_arch_dl_relocate_symbols): Likewise.
607 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
608 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
609 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
610 platforms.
611 * grub-core/lib/arc/datetime.c: New file.
612 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
613 pci.h on non-loongson.
614 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
615 (grub_linux_boot): Set unused registers to 0.
616 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
617 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
618 * grub-core/mmap/mips/uppermem.c: ...here.
619 * grub-core/partmap/dvh.c: New file.
620 * grub-core/term/arc/console.c: Likewise.
621 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
622 (grub_terminfo_set_current): Add terminal "arc".
623 (grub_terminfo_readkey): Support ARC sequences.
624 * include/grub/arc/arc.h: New file.
625 * include/grub/arc/console.h: Likewise.
626 * include/grub/disk.h (grub_disk_dev_id): Add
627 GRUB_DISK_DEVICE_ARCDISK_ID.
628 * include/grub/mips/arc/kernel.h: New file.
629 * include/grub/mips/arc/memory.h: Likewise.
630 * include/grub/mips/arc/time.h: Likewise.
631 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
632 * include/grub/mips/kernel.h (grub_halt): ... here.
633 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
634 here...
635 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
636 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
637 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
638 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
639 proto.
640 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
641 from here ...
642 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
643 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
644 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
645 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
646 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
647 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
648 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
649 (grub_phys_addr_t): Moved from here ...
650 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
651 (grub_vtop): Moved from here ...
652 * include/grub/mips/memory.h (grub_vtop): ... here.
653 (grub_map_memory): Moved from here ...
654 * include/grub/mips/memory.h (grub_map_memory): ... here.
655 (grub_unmap_memory): Moved from here ...
656 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
657 (grub_machine_mmap_iterate): Moved from here ...
658 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
659 (grub_mmap_get_lower): Moved from here ...
660 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
661 (grub_mmap_get_upper): Moved from here ...
662 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
663 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
664 here ...
665 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
666 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
667 here ...
668 * include/grub/mips/time.h (grub_get_rtc): ... here.
669 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
670 here ...
671 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
672 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
673 here ...
674 * include/grub/mips/time.h (grub_cpu_idle): ... here.
675 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
676 definition.
677 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
678 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
679 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
680 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
681 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
682 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
683 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
684 (GRUB_MACHINE_LINK_ADDR): Likewise.
685 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
686 to 6.
687 * util/grub-install.in: Run dvhtool on ARC.
688 * util/grub-mkimage.c (image_targets): Add mips-arc.
689 (generate_image): Handle ECOFF output for mips-arc.
690
691 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
692
693 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
694 blocks.
695
696 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
697
698 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
699 after enabling port.
700
701 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
702
703 Skip incorrect USB devices.
704
705 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
706 configcnt == 0.
707 * include/grub/usb.h (grub_usb_err_t): New enum value
708 GRUB_USB_ERR_BADDEVICE.
709
710 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
711
712 Fuloong video init support.
713
714 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
715 well.
716 (grub_vga_read_arx): New function.
717 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
718 definition.
719 (framebuffer): New members io, mmioptr and mmiobase.
720 (read_sis_cmd): New function.
721 (write_sis_cmd): Likewise.
722 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
723 rather than 640x400.
724 * grub-core/video/sis315_init.c: New file.
725
726 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
727
728 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
729 non-loongson.
730 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
731 to grub_dl_register_symbol.
732
733 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
734
735 Fix compilation errors.
736
737 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
738 potentially unused.
739 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
740 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
741 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
742 to loongson machines.
743
744 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
745
746 Several FS mtime support.
747
748 * grub-core/fs/affs.c (grub_affs_time): New struct.
749 (grub_affs_file): New field mtime.
750 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
751 type. Removed 'size'. New field 'di'. All users updated.
752 (grub_affs_mount): Simplify checsum checking.
753 (grub_affs_iterate_dir): New helper grub_affs_create_node.
754 (grub_affs_dir): Handle mtime.
755 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
756 (grub_cpio_dir): Likewise.
757 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
758 (grub_hfs_filerec): New field mtime.
759 (grub_hfs_dir): Handle mtime.
760 (grub_hfs_mtime): New function.
761 (grub_hfs_fs): Register grub_hfs_mtime.
762 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
763 (grub_iso9660_dir): New field mtime.
764 (grub_fshelp_node): New field dirent.
765 (iso9660_to_unixtime): New function.
766 (iso9660_to_unixtime2): Likewise.
767 (grub_iso9660_read_symlink): Use node->dirent.
768 (grub_iso9660_iterate_dir): Likewise.
769 (grub_iso9660_dir): Set mtime.
770 (grub_iso9660_mtime): New function.
771 (grub_iso9660_fs): Register grub_iso9660_mtime.
772 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
773 (grub_jfs_inode): New fields atime, ctime and mtime.
774 (grub_jfs_dir): Set mtime.
775 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
776 * grub-core/fs/ntfs.c (list_file): Set mtime.
777 (grub_ntfs_dir): Likewise.
778 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
779 (grub_reiserfs_iterate_dir): Set mtime.
780 (grub_reiserfs_dir): Likewise.
781 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
782 (grub_fshelp_node): Likewise.
783 (grub_sfs_iterate_dir): Set mtime.
784 (grub_sfs_dir): Likewise.
785 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
786 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
787 (grub_xfs_inode): New fields atime, mtime, ctime.
788 (grub_xfs_dir): Set mtime.
789 * include/grub/datetime.h (grub_datetime2unixtime): New function.
790 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
791 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
792
793 Support UDF symlinks.
794
795 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
796 (grub_ufs_read_symlink): New function. All users updated.
797
798 Check amiga partmap checksum.
799
800 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
801 (grub_amiga_partition): Likewise.
802 (amiga_partition_map_checksum): New function.
803 (amiga_partition_map_iterate): Check checksum.
804
805 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
806
807 ROMFS support.
808
809 * Makefile.util.def (libgrubmods.a): Add romfs.
810 * grub-core/Makefile.core.def (romfs): New module.
811 * grub-core/fs/romfs.c: New file.
812
813 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
814
815 Squashfs v4 support.
816
817 * Makefile.util.def (libgrubmods.a): Add squash4.
818 * grub-core/Makefile.core.def (squash4): New module.
819 * grub-core/fs/squash4.c: New file.
820 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
821 disk_input_start, disk_input.
822 (get_byte): Handle disk_input.
823 (grub_zlib_disk_read): New function.
824 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
825
826 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
827 2011-05-15 Feiran Zheng <famcool@gmail.com>
828
829 * Makefile.util.def (libgrubmods.a): Add minix3.
830 * grub-core/Makefile.core.def (minix3): New module.
831 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
832 (GRUB_MINIX_BSIZE): Removed.
833 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
834 (grub_minix_ino_t): New type.
835 (grub_minix_le_to_cpu_ino): New macro.
836 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
837 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
838 (grub_minix_data): New field block_size.
839 (grub_minix_read_file): Handle 64-bit correctly.
840 * grub-core/fs/minix3.c: New file.
841
842 2011-05-15 Tristan Gingold <gingold@free.fr>
843 2011-05-15 Robert Millan <rmh.grub@aybabtu.com>
844 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
845
846 IA64 support.
847
848 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
849 * configure.ac: Add ia64-efi target.
850 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
851 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
852 * gentpl.py: Add ia64_efi platform.
853 Rename x86_efi to efi and Add ia64-efi. All users updated.
854 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
855 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
856 Remove kern/generic/rtc_get_time_ms.c on EFI.
857 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
858 kern/ia64/dl_helper.c on ia64-efi.
859 Add kern/emu/cache.c on emu.
860 (linux): Use on loader/ia64/efi/linux.c on ia64.
861 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
862 whether symbol is a function.
863 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
864 (grub_symbol): New field 'isfunc'.
865 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
866 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
867 (grub_dl_load_segments): Place all sections into the same region.
868 [__ia64__]: Create trampolines and got.
869 [GRUB_MACHINE_EMU]: Call mprotect.
870 (grub_dl_resolve_symbols): Resolve symbol type as well.
871 [__ia64__]: Create function descriptors.
872 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
873 (grub_rtc_get_time_ms): ... this. Expressions simplified.
874 (grub_get_rtc): New function.
875 * grub-core/kern/emu/cache.c [__ia64__]: New file.
876 * grub-core/kern/emu/cache.S: Renamed to ...
877 * grub-core/kern/emu/cache_s.S: ... this.
878 [__ia64__]: Add a nop.
879 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
880 [__ia64__]: New function.
881 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
882 * grub-core/kern/ia64/dl.c: New file.
883 * grub-core/kern/ia64/dl_helper.c: Likewise.
884 * grub-core/kern/ia64/efi/init.c: New file.
885 * grub-core/kern/ia64/efi/startup.S: Likewise.
886 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
887 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
888 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
889 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
890 * grub-core/loader/ia64/efi/linux.c: New file.
891 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
892 (GRUB_MOD_DEP): Likewise.
893 (grub_dl) [__ia64__]: New fields got and tramp.
894 (grub_dl): New field 'base'.
895 (grub_dl_register_symbol): New argument isfunc. All users updated.
896 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
897 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
898 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
899 (grub_ia64_dl_get_tramp_got_size): New proto.
900 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
901 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
902 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
903 * include/grub/efi/api.h: Skip call wrappers on ia64.
904 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
905 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
906 * include/grub/elf.h (ELF_ST_INFO): New definition.
907 * include/grub/ia64/efi/kernel.h: New file.
908 * include/grub/ia64/efi/memory.h: Likewise.
909 * include/grub/ia64/efi/time.h: Likewise.
910 * include/grub/ia64/kernel.h: Likewise.
911 * include/grub/ia64/setjmp.h: Likewise (from glibc).
912 * include/grub/ia64/time.h: New file.
913 * include/grub/ia64/types.h: Likewise.
914 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
915 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
916 New protos.
917 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
918 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
919 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
920 * util/grub-mkimage.c (image_target_desc): New field pe_target.
921 All users updated.
922 (EFI64_HEADER_SIZE): New definition. All users updated.
923 (image_targets): Add ia64-efi.
924 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
925 jumpers_addr. All users updated.
926 Create function descriptors.
927 (count_funcs): New function.
928 (unaligned_uint32): New struct.
929 (MASK20): New definition.
930 (MASK19): Likewise.
931 (MASKF21): Likewise.
932 (add_value_to_slot_20b): New function.
933 (add_value_to_slot_21_real): Likewise.
934 (add_value_to_slot_21): Likewise.
935 (ia64_kernel_trampoline): New struct.
936 (nopm): New variable.
937 (jump): Likewise.
938 (make_trampoline): New function.
939 (relocate_addresses): Handle ia64.
940 (make_reloc_section): Likewise.
941 (load_image): Likewise.
942
943 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
944
945 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
946 warning. Move variables before code while on it.
947
948 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
949
950 Fuloong support.
951
952 * configure.ac: Rename yeeloong platform to loongson. All users updated.
953 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
954 * grub-core/boot/mips/loongson/fuloong.S: New file.
955 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
956 Explicitly init CS5536.
957 [FULOONG]: Don't use serial until CS5536 is available.
958 Set GPIO based on dumps.
959 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
960 [FULOONG]: Handle GPIO and memory controller differences.
961 Parse machine type in $a2.
962 * grub-core/boot/mips/startup_raw.S: Determine and save the
963 architecture.
964 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
965 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
966 init on architecture type.
967 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
968 SIS315E. Don't init at_keyboard on fuloong.
969 (grub_halt): Support Fuloong.
970 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
971 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
972 (loongson_machtypes): New array.
973 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
974 type.
975 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
976 config. All users updated. Handle CS5536 serial.
977 * grub-core/term/serial.c (grub_serial_register): Conditionalise
978 default port on machine type. Register serial as inactive.
979 * grub-core/video/sis315pro.c: New file.
980 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
981 definition.
982 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
983 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
984 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
985 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
986 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
987 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
988 to ...
989 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
990 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
991 definition.
992 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
993 (grub_arch_machine): New extern var.
994 * include/grub/mips/loongson/serial.h
995 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
996 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
997 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
998 (GRUB_MACHINE_SERIAL_PORT0): ... this.
999 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
1000 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
1001 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
1002 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
1003 * include/grub/term.h (grub_term_register_input_inactive): New inline
1004 function.
1005 (grub_term_register_output_inactive): Likewise.
1006 * include/grub/video.h (grub_video_driver_id): New value
1007 GRUB_VIDEO_DRIVER_SIS315PRO.
1008 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
1009 New field "names". All users updated.
1010 New field value IMAGE_FULOONG_FLASH.
1011 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
1012
1013 2011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
1014
1015 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
1016 and add some clarification.
1017
1018 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
1019
1020 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
1021 platforms if kernel is compressed.
1022
1023 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
1024
1025 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
1026 unused modules since currently referrence counter isn't reliable and
1027 there isn't much memory to recover there anyway.
1028
1029 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
1030
1031 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
1032 rather than resetting it to allow modules to reference themselves
1033 in init.
1034
1035 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
1036
1037 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
1038 counter on dependencies since grub_dl_unref already handles this.
1039
1040 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
1041
1042 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
1043 on error if not already done.
1044
1045 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
1046
1047 Fix few potential memory misusage.
1048
1049 * grub-core/font/font.c (load_font_index): Don't free char_index to
1050 avoid double free.
1051 (grub_font_load): Zero-fill font at alloc for safety.
1052 Close file on error.
1053 (free_font): Free bmp_idx.
1054
1055 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
1056
1057 * docs/grub.texi (Installation): Fix several outdated claims.
1058
1059 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
1060
1061 Handle module_license on windows.
1062
1063 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
1064 sections shifted.
1065 (insert_string): Make argument const char * instead of char *.
1066 (write_section_data): Handle long section names.
1067 Handle module_license.
1068
1069 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
1070
1071 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
1072 handle class-free menuentries.
1073 (grub_normal_add_menu_entry): Add a check to be sure.
1074
1075 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
1076
1077 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
1078 PgUp and PgDown.
1079
1080 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
1081
1082 * configure.ac: Bump version to 1.99.
1083
1084 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
1085
1086 Give ATA device a bit more time on first try in order to allow disks
1087 to spin up.
1088
1089 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
1090 if dev->present is 1. Reset dev->present on failure.
1091 (grub_ata_device_initialize): Set dev->present to 1.
1092 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
1093 (grub_ata_device): New member 'present'.
1094
1095 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
1096
1097 * util/grub-mkimage.c (generate_image): Update hash.
1098
1099 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
1100
1101 Flush caches on DMA memory.
1102
1103 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
1104 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
1105 (grub_dma_free): Likewise.
1106 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
1107
1108 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
1109
1110 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
1111 to avoid asm treating ld and sd as macros.
1112
1113 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
1114
1115 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
1116 decompressor.
1117
1118 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
1119
1120 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
1121 grub_decompress_core since later would fail if grub_decompress_core
1122 is too far.
1123
1124 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
1125
1126 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
1127 R_MIPS_JALR since it's used by newer compiler.
1128
1129 2011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
1130
1131 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
1132
1133 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
1134
1135 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
1136 file_path to 0 for surety.
1137 (grub_chainloader_boot): Set exit_data to NULL.
1138 Unset the loader once done.
1139 (grub_cmd_chainloader): Fix confusing error message if file is empty.
1140
1141 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
1142
1143 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
1144 unknown key into a dprintf.
1145
1146 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
1147
1148 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
1149 on first non-existant partition.
1150
1151 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
1152
1153 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
1154 openning fails.
1155 Reported by: Mark Korenberg.
1156
1157 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
1158
1159 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
1160 overflow.
1161
1162 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
1163
1164 * util/grub-mkimage.c (main): Explicitely flush and sync the output
1165 before closing to ensure that it will be readable by grub-setup.
1166
1167 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
1168
1169 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
1170 (devpath_1): Use MAKE_PIWG_PATH.
1171 (devpath_2): Likewise.
1172 (devpath_3): Likewise.
1173 (devpath_4): Likewise.
1174 (devpath_5): Likewise.
1175 (devpath_6): Likewise.
1176
1177 The appleldr.mod was checked that to be binary identical to previous
1178 version.
1179
1180 2011-05-05 Zach <mikezackles>
1181
1182 Support 2010 Macbooks.
1183
1184 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
1185 (devs): Add devpath_6.
1186
1187 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
1188
1189 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
1190 /dev/random. /dev/urandom is good enough for our purposes (salting).
1191
1192 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
1193
1194 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
1195
1196 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
1197
1198 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
1199 hexadecimal.
1200
1201 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
1202
1203 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
1204 and not 0 on failure.
1205
1206 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
1207
1208 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
1209 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
1210 disk; otherwise grub_fs_probe will not fall back to the next
1211 filesystem.
1212 (grub_pxefs_open): Likewise, for consistency.
1213 Reported and tested by: Ezekiel Grave.
1214
1215 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
1216
1217 * tests/partmap_test.in: Don't hardcode path to parted.
1218 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
1219
1220 2011-05-01 Colin Watson <cjwatson@ubuntu.com>
1221
1222 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
1223 of `ls' to find out which devices are available.
1224
1225 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
1226
1227 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
1228 than source address for efi mmap buffer.
1229
1230 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
1231
1232 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
1233 wrong action on non-detecting the magic.
1234
1235 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
1236
1237 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
1238 already supplied by another part of the module (fixes compilation on
1239 FreeBSD).
1240
1241 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
1242
1243 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
1244 match the one used by mdadm.
1245
1246 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
1247
1248 * po/README: Add instructions for creating po/LINGUAS.
1249
1250 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
1251
1252 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
1253 #551428.
1254
1255 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
1256 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
1257 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
1258 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
1259 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
1260 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
1261 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
1262 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
1263 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
1264 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
1265 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
1266 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
1267 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
1268 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
1269 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
1270 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
1271 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
1272 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
1273 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
1274 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
1275 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
1276 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
1277
1278 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
1279
1280 * grub-core/kern/emu/getroot.c
1281 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
1282 test that was incorrectly reintroduced in r3214.
1283 Reported by: Ian Dall. Fixes Savannah bug #33133.
1284
1285 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
1286
1287 Fix stack pointer handling in 16-bit relocator.
1288
1289 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
1290 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
1291 Fixes Ubuntu bug #683904.
1292
1293 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
1294
1295 * configure.ac: Bump version to 1.99~rc2.
1296
1297 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
1298
1299 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
1300 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
1301 * grub-core/lib/x86_64/setjmp.S: Likewise.
1302 * grub-core/lib/mips/setjmp.S: Likewise.
1303 * grub-core/lib/powerpc/setjmp.S: Likewise.
1304 * grub-core/lib/sparc64/setjmp.S: Likewise.
1305
1306 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
1307
1308 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
1309 * grub-core/lib/efi/datetime.c: Likewise.
1310
1311 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
1312
1313 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
1314 New function.
1315 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
1316 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
1317 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
1318
1319 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
1320
1321 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
1322 bitmap.
1323 (grub_gfxterm_term_init): Likewise.
1324
1325 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
1326
1327 Take into account the decorations the computing menu entry width.
1328
1329 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
1330 (grub_gfxmenu_create_box): Register get_border_width.
1331 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
1332 if available.
1333 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
1334 get_border_width.
1335
1336 2011-04-18 Endres Puschner <code@e7p.de>
1337
1338 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
1339 Don't skip first class.
1340
1341 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
1342
1343 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
1344 chunks.
1345 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
1346
1347 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
1348
1349 Complete 64-bit division support.
1350
1351 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
1352 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
1353 * include/grub/misc.h (grub_divmod64): Rename to ...
1354 (grub_divmod64_full): ... this.
1355 (grub_divmod64): New inline function.
1356
1357 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
1358
1359 * util/grub-mkimage.c (generate_image): Add forgotten comma.
1360
1361 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
1362
1363 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
1364 performing the necessary test.
1365
1366 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
1367
1368 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
1369 (kfreebsd.elf): Likewise.
1370 (pc-chainloader.elf): Likewise.
1371 (ntldr.elf): Likewise.
1372
1373 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
1374
1375 Identify RAID by its UUID rather than (guessed) name.
1376
1377 * grub-core/disk/raid.c (ascii2hex): New function.
1378 (grub_raid_open): Accept mduuid/%s specification.
1379 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
1380 (get_mdadm_uuid): ... this.
1381 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
1382
1383 2011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
1384
1385 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
1386 to negative size.
1387
1388 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
1389
1390 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
1391 btrfs subvolume.
1392 * util/grub.d/20_linux_xen.in: Likewise.
1393
1394 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
1395
1396 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
1397 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
1398
1399 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
1400 Build a list of relevant visible mounts using the mnt_id and
1401 parent_mnt_id fields, and then scan that list at the end.
1402
1403 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
1404
1405 * docs/grub.texi (normal): New section.
1406 (normal_exit): New section.
1407 (Embedded configuration): Add reference to normal.
1408 (GRUB only offers a rescue shell): Likewise.
1409 * docs/grub-dev.texi (Error Handling): Fix typo.
1410
1411 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
1412
1413 * NEWS: Drop obsolete entry about probe-only btrfs support.
1414
1415 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
1416
1417 * util/import_gcry.py: Fix typo.
1418
1419 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1420
1421 * NEWS: Add btrfs support.
1422
1423 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1424 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
1425
1426 BtrFS support. Written by me (Vladimir) with important bugfixes and
1427 even more important testing by Colin.
1428
1429 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
1430 * grub-core/Makefile.core.def (btrfs): Add crc.c.
1431 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
1432 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
1433 mem_input_off and mem_input. All users updated to accept in-RAM input.
1434 (gzio_seek): New function.
1435 (test_zlib_header): Likewise.
1436 (grub_gzio_read): Likewise.
1437 (grub_zlib_decompress): Likewise.
1438 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
1439 Accept partial and non-virtual mounts.
1440 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
1441 avoid receiving /dev/dm-X as device.
1442 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
1443 Handle bind and partial mounts.
1444 * grub-core/lib/crc.c: New file.
1445 * include/grub/deflate.h: Likewise.
1446 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
1447 proto.
1448 * include/grub/lib/crc.h: New file.
1449
1450 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1451
1452 Implement automatic module license checking according to new GNU
1453 guidelines.
1454
1455 * grub-core/kern/dl.c (grub_dl_check_license): New function.
1456 (grub_dl_load_core): Use grub_dl_check_license.
1457 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
1458 (GRUB_MOD_LICENSE): Likewise.
1459 (GRUB_MOD_DUAL_LICENSE): Likewise.
1460 All modules updated.
1461
1462 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
1463
1464 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
1465 reserved_first_sector to 1. btrfs reserves plenty of space for boot
1466 loaders.
1467 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
1468
1469 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1470
1471 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
1472
1473 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1474
1475 * util/grub-fstest.c (read_file): Report GRUB error if file opening
1476 failed.
1477
1478 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1479
1480 * grub-core/kern/file.c (grub_file_open): Don't take into account the
1481 parenthesis in the middle of the filename.
1482
1483 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
1484
1485 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
1486 rather than trying to put initrd way too high.
1487 Reported by: Ryan Lortie <desrt@desrt.ca>
1488
1489 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
1490
1491 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
1492 improperly removed string.
1493
1494 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
1495
1496 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
1497 is_disk.
1498 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
1499 (open_device) Likewise.
1500 (grub_util_biosdisk_close): Likewise.
1501 Reported by: Mark Korenberg.
1502
1503 2011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
1504
1505 * util/grub-mkconfig_lib.in: Add missing quotes.
1506
1507 2011-04-10 Colin Watson <cjwatson@ubuntu.com>
1508
1509 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
1510 is NULL.
1511
1512 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
1513
1514 Dynamically count the number of lines for the lower banner.
1515
1516 * grub-core/normal/menu_entry.c (per_term_screen): New member
1517 num_entries.
1518 (print_down): Use num_entries.
1519 (update_screen): Likewise.
1520 (grub_menu_entry_run): Set num_entries.
1521 * grub-core/normal/menu_text.c (menu_viewer_data): New member
1522 num_entries.
1523 (grub_print_message_indented): Move real part to ...
1524 (grub_print_message_indented_real): ... here. Additional argument
1525 dry_run.
1526 (draw_border): Additional argument num_entries.
1527 (print_message): Additional argument dry_run.
1528 (print_entries): Receive menu viewer data.
1529 (grub_menu_init_page): New argment num_entries.
1530 (menu_text_set_chosen_entry): Use num_entries.
1531 (grub_menu_try_text): Likewise.
1532 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
1533 All users updated.
1534 (grub_ucs4_count_lines): New function.
1535 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
1536 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
1537 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
1538 (grub_term_border_height): Likewise.
1539 (grub_term_num_entries): Likewise.
1540
1541 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
1542
1543 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
1544 Remove now unused string.
1545
1546 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
1547
1548 * docs/grub-dev.texi (Finding your way around): Update for 1.99
1549 build system.
1550 (Getting started): GRUB is developed in Bazaar now, not Subversion.
1551
1552 (Comment): Fix typo.
1553 (Getting started): General copy-editing.
1554 (Typical Development Experience): Likewise.
1555 (Error Handling): Likewise.
1556 (Video API): Likewise.
1557
1558 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
1559
1560 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
1561 throughout.
1562
1563 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
1564
1565 * util/grub-mkimage.c (main): Handle special naming of yeeloong
1566 directory.
1567
1568 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
1569
1570 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
1571 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
1572 "development".
1573
1574 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
1575
1576 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
1577 grub_strcpy since the lines aren't necessarily 0-terminated.
1578
1579 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
1580
1581 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
1582 root on legacy.
1583
1584 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
1585
1586 * grub-core/commands/probe.c (options): Argument to set isn't optional.
1587 (GRUB_MOD_INIT): DEVICE isn't optional.
1588
1589 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
1590
1591 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
1592 word on new line if it's too long anyway. Fixes a hang.
1593
1594 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
1595
1596 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
1597 const.
1598 * util/grub-setup.c (main): Reuse md device name if available.
1599 * util/raid.c (grub_util_raid_getmembers): Receive device name and
1600 not GRUB name as argument.
1601 Based on patch by: Florian Wagner <fwagner>.
1602
1603 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
1604
1605 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
1606 Place mbi on low memory for better compatibility.
1607
1608 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
1609
1610 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
1611
1612 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
1613 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
1614
1615 * autogen.sh: Ensure that collate and ctype locale is C.
1616 * conf/Makefile.common: Likewise.
1617
1618 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
1619
1620 * grub-core/normal/menu.c: Add missing include.
1621
1622 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
1623
1624 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
1625
1626 2011-04-08 Martin Zuther <mzuther@mzuther.de>
1627
1628 * util/grub-mkconfig.in: Ignore emacsen backup.
1629
1630 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
1631
1632 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
1633 on open.
1634 (grub_util_biosdisk_close): Likewise.
1635
1636 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
1637
1638 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
1639 const attribute and use grub_isdigit.
1640
1641 2011-04-06 Andrey <dev_null@ukr.net>
1642
1643 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
1644 gcc warning.
1645
1646 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
1647
1648 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
1649 useful grub_dprintf's.
1650
1651 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
1652
1653 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
1654
1655 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
1656
1657 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
1658
1659 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
1660
1661 Output errors if theme loading failed.
1662
1663 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
1664 grub_gfxterm_fullscreen on error paths to ...
1665 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
1666 theme loading error.
1667
1668 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
1669
1670 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
1671 space for older compilers.
1672 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
1673
1674 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
1675
1676 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
1677 and report them as not RAID members since they are useless for GRUB.
1678 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
1679
1680 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
1681
1682 Increase LVM implementation robustness in order not to crash on
1683 configurations like pvmove. Previously code assumed that in some places
1684 only lvs or only pvs are used whereas it seems that they are used
1685 interchangeably.
1686
1687 * grub-core/disk/lvm.c (read_node): New function.
1688 (read_lv): Use read_node.
1689 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
1690 Match volumes only at the end when all lvs are found. Take both
1691 pvs (first) and lvs (second) into account.
1692 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
1693 mirror_* into node_*. All users updated.
1694 (grub_lvm_stripe): Merge this ...
1695 (grub_lvm_mirror): ... and this ...
1696 (grub_lvm_node): ... into this. All users updated.
1697
1698 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
1699
1700 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
1701 of function to allow further scanning for LVMs.
1702
1703 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
1704
1705 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
1706 on failed seek as it breaks open fd reusage.
1707
1708 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
1709
1710 * util/grub-install.in: Add a recommendation to use --recheck before
1711 reporting bugs.
1712
1713 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
1714
1715 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
1716 are obtained.
1717
1718 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
1719
1720 GRUB developper manual based on existing Internals section and
1721 contributions by the various authors with active copyright assignment.
1722
1723 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
1724 * docs/font_char_metrics.png: New file.
1725 * docs/font_char_metrics.txt: Likewise.
1726 * docs/grub-dev.texi: Likewise.
1727 * docs/grub.texi (Internals): Move from here ...
1728 * docs/grub-dev.texi: ... here.
1729
1730 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
1731
1732 Store the loopback device as data on loopback grub_disk structures,
1733 rather than the file it points to. This fixes use of freed memory
1734 if an existing loopback device is replaced.
1735
1736 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
1737 disk->data, not dev->file.
1738 (grub_loopback_read): Adjust file assignment to match.
1739 Fixes Ubuntu bug #742967.
1740
1741 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
1742
1743 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
1744 when replacing an existing device.
1745
1746 2011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
1747
1748 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
1749 memory corruptions.
1750
1751 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
1752 unsigned.
1753 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
1754 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
1755 (grub_jfs_read_inode): Likewise.
1756 (grub_jfs_opendir): Likewise. Remove now useless casts.
1757 (grub_jfs_getent): Likewise.
1758 Make ino a grub_uint32_t rather than int.
1759 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
1760 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
1761 division and module with bit operations.
1762 (grub_jfs_find_file): Make ino a grub_uint32_t.
1763 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
1764
1765 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
1766
1767 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
1768 warning. (This was in fact always initialised before use, but GCC
1769 wasn't smart enough to prove that.)
1770 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
1771
1772 2011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
1773
1774 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
1775 stack alignment.
1776 (efi_wrap_1): Likewise.
1777 (efi_wrap_2): Likewise.
1778 (efi_wrap_3): Likewise.
1779 (efi_wrap_4): Likewise.
1780 (efi_wrap_5): Likewise.
1781 (efi_wrap_6): Likewise.
1782 (efi_wrap_10): Likewise.
1783 Based on information by: Red Hat/Peter Jones.
1784
1785 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
1786
1787 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
1788 set-but-not-used variable.
1789
1790 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
1791
1792 * docs/grub.texi (Simple configuration): Be more explicit about
1793 GRUB_DEFAULT, and add an example.
1794 Reported by: Leslie Rhorer.
1795
1796 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
1797
1798 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
1799 shell".
1800
1801 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
1802
1803 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
1804 * util/grub.d/20_linux_xen.in: Likewise.
1805
1806 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
1807
1808 * util/grub.d/10_linux.in: Try alternative config filenames where
1809 we parse config file.
1810 * util/grub.d/20_linux_xen.in: Likewise.
1811
1812 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
1813
1814 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
1815 * util/grub.d/20_linux_xen.in: Likewise.
1816
1817 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
1818
1819 * grub-core/disk/raid.c (insert_array): Add few potentially
1820 useful grub_util_info.
1821 (grub_raid_register): Likewise.
1822
1823 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
1824
1825 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
1826 Preserve partition number in mdadm code path.
1827
1828 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
1829
1830 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
1831 few potentially useful grub_util_info.
1832
1833 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
1834
1835 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
1836
1837 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
1838
1839 * docs/grub.texi (default): Use @example rather than nested
1840 itemized lists to avoid breaking gendocs.
1841
1842 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
1843
1844 * docs/grub.texi (Future): Update.
1845
1846 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
1847
1848 * docs/grub.texi (Environment): New chapter.
1849 (Changes from GRUB Legacy): Link to "Environment block" section for
1850 details of limitations.
1851 (Simple configuration): Likewise. Link to documentation of gfxmode
1852 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
1853 respectively.
1854 (Shell-like scripting): Note that normal variables are stored in the
1855 environment.
1856 (gettext): Link to documentation of lang and locale_dir.
1857 (list_env): New section.
1858 (load_env): New section.
1859 (save_env): New section.
1860
1861 (Reporting bugs): Fix typo.
1862
1863 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
1864
1865 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
1866 the example.
1867
1868 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
1869
1870 * grub-core/term/at_keyboard.c (set_scancodes)
1871 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
1872
1873 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
1874
1875 * docs/grub.texi (Menu-specific commands): Remove some semantics
1876 that were true in GRUB Legacy but not in GRUB 2.
1877 (submenu): New section.
1878 (false): New section.
1879 (read): New section.
1880 (true): New section.
1881
1882 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
1883
1884 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
1885
1886 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
1887
1888 * docs/grub.texi (Simple configuration): Explain some of the
1889 current limitations of grub-mkconfig.
1890 Reported by: Leslie Rhorer.
1891
1892 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
1893
1894 Old macs search for boot.efi rather than for bootia32.efi.
1895
1896 * util/grub-install.in: Copy bootia32.efi to boot.efi.
1897 * util/grub-mkrescue.in: Likewise.
1898 Suggested by: Peter Jones.
1899
1900 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
1901
1902 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
1903
1904 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
1905
1906 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
1907 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
1908 (grub_lvm_mirror): New struct.
1909 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
1910 (grub_lvm_iterate): Iterate only visible volumes.
1911 (grub_lvm_read): Factor out to ..
1912 (read_lv): ... this. Support mirrors.
1913 (grub_lvm_read): New wrapper function.
1914 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
1915 stripped or mirrored.
1916
1917 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
1918
1919 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
1920
1921 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
1922
1923 * docs/grub.texi (loopback): New section.
1924
1925 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
1926
1927 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
1928 removed -p option.
1929
1930 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
1931
1932 * docs/grub.texi (BIOS installation): New section, partly based on
1933 previous text in other sections.
1934 (Installing GRUB using grub-install): Replace BIOS discussion with a
1935 cross-reference.
1936 (Images): Likewise.
1937
1938 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
1939
1940 * grub-core/kern/emu/hostdisk.c (find_partition_start)
1941 [HAVE_DIOCGDINFO]: Add safety checks.
1942
1943 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
1944
1945 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
1946 per default compiled in kernel and prior to 8.0 isn't shipped at all.
1947
1948 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
1949
1950 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
1951 real_sb->size is zero (e.g. RAID-0), get the disk size from
1952 real_sb->data_size instead.
1953 Fixes Ubuntu bug #743136.
1954
1955 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
1956
1957 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
1958 printf clauses for printing size and start.
1959
1960 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
1961
1962 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
1963 Reported and tested by: Timothy Nikkel.
1964
1965 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
1966
1967 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
1968 (dirty_region_add_real): ... this.
1969 (dirty_region_add): Don't discard margin refresh when performing
1970 scheduled repaint.
1971
1972 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
1973
1974 * grub-core/lib/relocator.c (allocate_regstart)
1975 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
1976 terminals are capabple of malloc-free operation.
1977 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
1978 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
1979
1980 2011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
1981
1982 * util/grub-setup.c: Copy the partition table zone if floppy support
1983 is disabled, even if no partition table is found.
1984
1985 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
1986 during POST if an invalid partition table is contained in the PBR
1987 of the active partition when GRUB is installed to a partition.
1988
1989 2011-03-28 Colin Watson <cjwatson@debian.org>
1990
1991 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
1992 comment.
1993
1994 2011-03-28 Colin Watson <cjwatson@debian.org>
1995
1996 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
1997 to be specific about what kind of RAID device we're scanning for.
1998
1999 2011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
2000
2001 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
2002 return freed string.
2003
2004 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
2005
2006 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
2007
2008 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
2009
2010 Use libgeom on FreeBSD to detect partitions.
2011
2012 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
2013 (grub-mkrelpath): Likewise.
2014 (grub-script-check): Likewise.
2015 (grub-editenv): Likewise.
2016 (grub-mkpasswd-pbkdf2): Likewise.
2017 (grub-fstest): Likewise.
2018 (grub-mkfont): Likewise.
2019 (grub-mkdevicemap): Likewise.
2020 (grub-probe): Likewise.
2021 (grub-setup): Likewise.
2022 (grub-ofpathname): Likewise.
2023 (grub-mklayout): Likewise.
2024 (example_unit_test): Likewise.
2025 (grub-menulst2cfg): Likewise.
2026 * grub-core/Makefile.core.def (grub-emu): Likewise.
2027 (grub-emu-lite): Likewise.
2028 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
2029 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
2030 define HAVE_DIOCGDINFO.
2031 (follow_geom_up) [FreeBSD]: New function.
2032 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
2033 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
2034 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
2035 unconditionally of HAVE_DIOCGDINFO.
2036
2037 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
2038
2039 Fix FreeBSD compilation problem.
2040
2041 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
2042 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
2043
2044 2011-03-24 Colin Watson <cjwatson@ubuntu.com>
2045
2046 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
2047 Switch back to page zero before loading a kernel, since some kernel
2048 drivers expect that.
2049 Thanks to: Felix Kuehling.
2050
2051 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
2052
2053 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
2054 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
2055 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
2056
2057 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
2058
2059 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
2060 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
2061
2062 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
2063
2064 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
2065 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
2066 malloc is disabled.
2067
2068 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
2069
2070 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
2071 for modules headers when counting the needed allocation size.
2072
2073 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
2074
2075 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
2076 if no ASCII character is found to prevent crash.
2077
2078 2011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
2079
2080 * grub-core/video/bitmap.c (match_extension): Ignore case.
2081
2082 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
2083
2084 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
2085
2086 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
2087
2088 * grub-core/script/parser.y: Declare "time" as valid argument.
2089
2090 2011-03-23 Peter Jones <pjones@redhat.com>
2091
2092 Fix incorrect assert failure reporting.
2093
2094 * grub-core/tests/example_functional_test.c (example_test): Add
2095 a failure comment.
2096 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
2097 (failure_start): ...this. Check that malloc succeeded.
2098 Don't call xvasprintf. Return failure struct.
2099 (failure_append_vtext): New function.
2100 (failure_append_text): Likewise.
2101 (add_failure): Likewise.
2102 (grub_test_assert_helper): Likewise.
2103 * include/grub/test.h (grub_test_assert_helper): New declaration.
2104 (grub_test_assert): Macro rewritten.
2105
2106 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
2107
2108 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
2109
2110 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
2111
2112 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
2113
2114 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
2115
2116 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
2117 into GRUB-style one.
2118
2119 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
2120
2121 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
2122 error and not grub_errno.
2123 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
2124
2125 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
2126
2127 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
2128 GRUB_USB_SPEED_NONE in case of failure and not the error code.
2129
2130 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
2131
2132 * grub-core/efiemu/i386/pc/cfgtables.c
2133 (grub_machine_efiemu_init_tables): Make declaration a prototype.
2134 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
2135 (grub_xnu_unlock): Likewise.
2136 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
2137
2138 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
2139
2140 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
2141 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
2142 * grub-core/commands/hashsum.c (aliases): Likewise.
2143 * grub-core/commands/setpci.c (pci_registers): Likewise.
2144 * grub-core/disk/usbms.c (attach_hook): Likewise.
2145 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
2146 (zio_checksum_table): Likewise.
2147 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
2148 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
2149 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
2150 * grub-core/lib/relocator.c (leftovers): Likewise.
2151 (extra_blocks): Likewise.
2152 * grub-core/loader/i386/bsd.c (relocator): Likewise.
2153 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
2154 (modules_last): Likewise.
2155 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
2156 (devices): Likewise.
2157 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
2158 (modules_last): Likewise.
2159 * grub-core/normal/auth.c (users): Likewise.
2160 * grub-core/normal/context.c (initial_menu): Likewise.
2161 (current_menu): Likewise.
2162 * grub-core/normal/crypto.c (crypto_specs): Likewise.
2163 * grub-core/term/serial.c (grub_serial_ports): Likewise.
2164 (grub_serial_terminfo_input_template): Likewise.
2165 (grub_serial_terminfo_output_template): Likewise.
2166 (grub_serial_terminfo_input): Likewise.
2167 (grub_serial_terminfo_output): Likewise.
2168 (registered): Likewise.
2169 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
2170
2171 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
2172
2173 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
2174 grub_video_mode_type_t.
2175 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
2176 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
2177 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
2178
2179 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
2180
2181 * util/grub-install.in: Correct the x86-64 name as x86_64.
2182
2183 2011-03-11 Colin Watson <cjwatson@ubuntu.com>
2184
2185 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
2186 initial chunk read from the kernel always includes GRUB's multiboot
2187 header, which is now outside the first sector.
2188
2189 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
2190
2191 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
2192 cached mmap_size, so that this works correctly when called multiple
2193 times.
2194 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
2195
2196 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
2197
2198 * docs/grub.texi (Simple configuration): Tidy up formatting.
2199
2200 2011-03-07 Szymon Janc <szymon@janc.net.pl>
2201
2202 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
2203 Set-but-not-used variable removed.
2204
2205 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
2206
2207 Workaround yet another IEEE1275 bug.
2208
2209 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
2210 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
2211 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
2212 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
2213 is set.
2214 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
2215 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
2216
2217 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
2218
2219 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
2220 error.
2221
2222 2011-02-11 Colin Watson <cjwatson@ubuntu.com>
2223
2224 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
2225 empty, since in that case we can only generate either nothing or a
2226 syntactically invalid configuration file.
2227 Reported by: Michal Suchanek. Fixes Debian bug #612898.
2228
2229 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
2230
2231 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
2232 (Making a GRUB bootable CD-ROM): Likewise.
2233 (Invoking grub-mkrescue): New section.
2234 Reported by: Yann Dirson. Fixes Debian bug #612585.
2235
2236 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
2237
2238 * util/grub-install.in: Remove unnecessary brackets from tr
2239 arguments.
2240 * util/grub.d/10_hurd.in: Likewise.
2241 * util/grub.d/10_kfreebsd.in: Likewise.
2242 * util/grub.d/10_linux.in: Likewise.
2243 * util/grub.d/20_linux_xen.in: Likewise.
2244 Reported by: Jamie Heilman. Fixes Debian bug #612564.
2245
2246 2011-02-08 Colin Watson <cjwatson@ubuntu.com>
2247
2248 * include/grub/file.h (not_easly_seekable): Rename to ...
2249 (not_easily_seekable): ... this. Update all users.
2250
2251 2011-01-28 Colin Watson <cjwatson@ubuntu.com>
2252
2253 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
2254 grub-mkrescue.
2255
2256 2011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
2257
2258 * util/grub-mkimage.c (generate_image): Refuse to create the images
2259 bigger than the actual flash (512K) in Loongson machines. 512K is also
2260 the biggest chip supported by them.
2261
2262 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
2263
2264 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
2265
2266 2011-01-22 Anthony DeRobertis <anthony@derobert.net>
2267
2268 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
2269 super_offset field.
2270
2271 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
2272
2273 * util/grub-install.in: Ignore install device on platforms
2274 where it doesn't make sense. Always use UUIDs except on pc, efi and
2275 sparc64.
2276 Reported by: Daniel Kahn Gillmor.
2277
2278 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
2279
2280 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
2281
2282 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
2283
2284 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
2285 (iterate_real): Don't rely on partition being non-NULL.
2286
2287 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
2288
2289 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
2290 supported platforms. Put a compile time assert for this rather than
2291 generate a warning with 32-bit shift.
2292
2293 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
2294
2295 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
2296 logical expression more readable.
2297
2298 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
2299
2300 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
2301 even if some elements have a name.
2302 Reported by: Alexander GQ Gerasiov.
2303
2304 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
2305
2306 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
2307 path unreadable if `grub-probe -t abstraction' fails, for example if
2308 memberlist fails on an LVM volume group.
2309 Reported by: Darius Jahandarie.
2310
2311 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
2312
2313 * docs/grub.texi (Simple configuration): Document
2314 GRUB_PRELOAD_MODULES.
2315
2316 2011-01-17 Colin Watson <cjwatson@ubuntu.com>
2317
2318 * .bzrignore: Remove nonexistent grub-pbkdf2.
2319
2320 2011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
2321
2322 * configure.ac: Bump version to 1.99~rc1.
2323
2324 2011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
2325
2326 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
2327 for safety.
2328
2329 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
2330
2331 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
2332 module.
2333
2334 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
2335
2336 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
2337
2338 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
2339
2340 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
2341 diskdevid.
2342
2343 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
2344
2345 Fix compilation on cygwin.
2346
2347 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
2348 -R .drectve on cygwin.
2349 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
2350 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
2351 (COND_CYGWIN): New condition.
2352 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
2353 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
2354 not @TARGET_OBJ2ELF@.
2355 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
2356 type to determine whether aux is to be used.
2357
2358 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
2359
2360 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
2361 realpath'ed device string.
2362 Handle floppy (somewhat).
2363 Issue error in unknown case rather than garbage.
2364 Reported by: Axel Beckert.
2365
2366 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
2367
2368 * util/grub.d/00_header.in (load_video): Handle the case when no video
2369 drivers available.
2370 Thanks to: Axel Beckert.
2371
2372 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
2373
2374 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
2375 variable. Fixes problem on big endian platforms.
2376
2377 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
2378
2379 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
2380 It doesn't work well there.
2381
2382 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
2383
2384 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
2385 warning.
2386 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
2387 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
2388 counter.
2389
2390 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
2391
2392 Use alias->path rather than buggy "canon".
2393
2394 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
2395 (ofdisk_hash_add): New argument curcan. All users updated.
2396
2397 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
2398
2399 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
2400
2401 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
2402
2403 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
2404 loadmask before doing any calculations. Use correct type for offset.
2405 (grub_linux_load64): Likewise.
2406
2407 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
2408
2409 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
2410 with NULL.
2411 (console_grub_equivalences_unshift): Likewise.
2412 Reported by: Daniel Dehennin.
2413
2414 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
2415
2416 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
2417 (set_env_limn_ro): Likewise.
2418 (GRUB_MOD_INIT): Likewise.
2419 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
2420 ARRAY_SIZE while on it.
2421 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
2422 * grub-core/normal/context.c (grub_env_export): Move from here ...
2423 * grub-core/kern/env.c (grub_env_export): ... here.
2424 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
2425 prefix.
2426 * grub-core/kern/main.c (grub_main): Export root and prefix.
2427 * include/grub/env.h (grub_env_export): Export.
2428 Reported by: Seth Goldberg.
2429
2430 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
2431
2432 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
2433 Take into account space used by ELF sections and multiboot palette.
2434 Reported by: Grégoire Sutre.
2435
2436 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
2437
2438 * BUGS: New file.
2439
2440 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
2441
2442 Pass more appropriate video id to Linux.
2443
2444 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
2445 grub_video_get_driver_id and variable gfxpayloadforcelfb to
2446 fill have_vga.
2447 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
2448 shift params->lfb_size.
2449 * include/grub/i386/linux.h: Make an enume out of have_vga values.
2450
2451 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
2452
2453 * util/grub-menulst2cfg.c: Add missing include of misc.h.
2454
2455 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
2456
2457 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
2458 separator and pass bootpath/devid even if only one of them is available.
2459 Reported by: Seth Goldberg.
2460
2461 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
2462
2463 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
2464 implementations bug on them.
2465
2466 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
2467 memory.
2468 (filter_memory_map): Likewise.
2469
2470 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
2471
2472 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
2473 Reported by: nebuchadnezzar.
2474
2475 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
2476
2477 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
2478 Reported by: nebuchadnezzar.
2479
2480 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
2481
2482 Submenu default support.
2483
2484 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
2485 auto_boot. All users updated.
2486 Declared static.
2487 Handle chosen and default with submenus.
2488 (grub_menu_execute_with_fallback): Declared static.
2489 Don't notify failure if autobooted. Upper level does it.
2490 (menuentry_eq): New function.
2491 (get_entry_number): Use menuentry_eq.
2492 (show_menu): New parameter "autobooted". All users updated.
2493 (grub_show_menu): Likewise.
2494 * include/grub/normal.h (grub_show_menu): Likewise.
2495 * include/grub/menu.h (grub_menu_execute_entry): Removed.
2496 (grub_menu_execute_with_fallback): Likewise.
2497
2498 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
2499
2500 * util/grub-mklayout.c (usage): Update help text.
2501
2502 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
2503
2504 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
2505
2506 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
2507
2508 * util/grub-menulst2cfg.c (main): Trim the line.
2509
2510 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
2511
2512 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
2513 (grub_machine_init): Don't check amount of low memory as reportedly
2514 INT 12h can be broken and if low memory is too low we wouldn't have
2515 gotten into grub_machine_init anyway.
2516
2517 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
2518
2519 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
2520 (grub_machine_mmap_iterate): Take low memory into account
2521
2522 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
2523
2524 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
2525 badfs.
2526 Reported by: TiCPU.
2527
2528 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
2529
2530 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
2531 members errors.
2532
2533 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
2534
2535 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
2536 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
2537
2538 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
2539
2540 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
2541 openbsd and netbsd types being in part_bsd module.
2542
2543 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
2544
2545 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
2546 (_FILE_OFFSET_BITS): Likewise.
2547 Reported by: Seth Goldberg.
2548
2549 2011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
2550
2551 * configure.ac: Check for libdevmapper header.
2552
2553 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
2554
2555 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
2556 avoid aliasing.
2557 (fzap_lookup): Likewise.
2558 (dnode_get): Likewise.
2559 (make_mdn): Likewise.
2560 (zfs_mount): Likewise.
2561 (fzap_iterate): Use temporary pointer to avoid aliasing.
2562 (grub_zfs_read): Likewise.
2563 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
2564 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
2565 pointers to avoid aliasing.
2566 (grub_cmd_xnu_kernel64): Likewise.
2567 (grub_xnu_load_driver): Likewise.
2568
2569 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
2570
2571 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
2572 aliasing warning.
2573 (grub_cmd_terminal_output): Likewise.
2574 Reported and tested by: Grégoire Sutre.
2575
2576 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
2577
2578 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
2579 warning.
2580 Reported and tested by: Grégoire Sutre.
2581
2582 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
2583
2584 * configure.ac: Do CPU substitution even if it's specified explicitly.
2585 Reported and tested by: Alain Greppin.
2586
2587 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
2588
2589 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
2590 Reported and tested by: Alain Greppin.
2591
2592 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
2593
2594 Satisfy some bison versions need for inttypes.h.
2595
2596 * grub-core/lib/posix_wrap/inttypes.h: New file.
2597 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
2598 (int16_t): Likewise.
2599 (int32_t): Likewise.
2600 (int64_t): Likewise.
2601 Reported and tested by: Alain Greppin.
2602
2603 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
2604
2605 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
2606 Silence spurious warning.
2607 Reported and tested by: Alain Greppin.
2608
2609 2011-01-07 Szymon Janc <szymon@janc.net.pl>
2610
2611 * docs/grub.texi (Support automatic decompression): Update with xz
2612 decompression support.
2613
2614 2011-01-07 Szymon Janc <szymon@janc.net.pl>
2615
2616 Improve loaders' kernel command line handling.
2617
2618 * grub-core/lib/cmdline.c: New file.
2619 * include/grub/lib/cmdline.h: Likewise.
2620 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
2621 grub_create_loader_cmdline to create kernel command line.
2622 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
2623 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
2624 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
2625 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
2626 (linux): Add lib/cmdline.c on common.
2627
2628 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
2629
2630 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
2631 inopos might be unaligned.
2632
2633 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
2634
2635 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
2636 endian transformations.
2637 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
2638 Based on report by: Doug Nazar.
2639
2640 2011-01-07 Doug Nazar <nazard.michi@gmail.com>
2641
2642 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
2643 array->members[i].start_sector.
2644 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
2645
2646 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
2647
2648 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
2649 Reported and tested by: Grégoire Sutre.
2650
2651 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
2652
2653 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
2654 avoid causing test failures by clearing the screen.
2655
2656 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
2657
2658 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
2659 Fix prefix check to handle the case where dir ends with a slash
2660 (most significantly, "/" itself).
2661 Reported by: Michael Vogt.
2662
2663 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
2664
2665 Run terminfo_cls on initing terminfo output to clear the screen and
2666 move the cursor to (0,0).
2667
2668 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
2669 Call grub_terminfo_output_init.
2670 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
2671 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
2672 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
2673
2674 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
2675
2676 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
2677 only when needed.
2678
2679 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
2680
2681 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
2682 CTRL.
2683
2684 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
2685
2686 The E820 type 5 is BADRAM, not EXEC_CODE.
2687
2688 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
2689 (GRUB_E820_BADRAM): New define.
2690 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
2691 into reserved. Propagate BADRAM.
2692 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
2693 (GRUB_E820_BADRAM): New define.
2694
2695 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
2696
2697 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
2698 Ignore the memory post-4G.
2699 (grub_relocator_firmware_alloc_region): Additional debug statement.
2700
2701 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
2702
2703 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
2704 names.
2705 Reported by: David Pravec.
2706
2707 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
2708
2709 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
2710 BIOSes.
2711
2712 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
2713
2714 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
2715 Prevent overflow.
2716 (grub_reed_solomon_recover): Likewise.
2717
2718 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
2719
2720 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
2721
2722 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
2723
2724 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
2725 variable.
2726
2727 2011-01-04 Colin Watson <cjwatson@ubuntu.com>
2728
2729 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
2730 descriptions of extract_legacy_entries_source and
2731 extract_legacy_entries_configfile.
2732 Reported by: Seung Soo, Ha.
2733
2734 2011-01-03 Colin Watson <cjwatson@ubuntu.com>
2735
2736 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
2737 on devices that do not implement function 0.
2738
2739 2011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
2740
2741 * grub-core/fs/hfsplus.c: Make parent unsigned.
2742 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
2743 overflows.
2744 (grub_hfsplus_cmp_extkey): Likewise
2745
2746 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
2747
2748 * util/grub-install.in: Correctly use bootloader_id and not
2749 GRUB_DISTRIBUTOR on efibootmgr line.
2750
2751 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
2752
2753 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
2754
2755 2010-12-31 Ian Campbell <ijc@hellion.org.uk>
2756
2757 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
2758 Xen and reorder menu item wording to make it clearer that this entry
2759 will launch Xen. Print separate messages when loading Xen and
2760 Linux.
2761
2762 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
2763
2764 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
2765 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
2766 loop in case of incorrect amiga partmap.
2767
2768 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
2769
2770 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
2771 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
2772 Reported by:EHeM.
2773
2774 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
2775
2776 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
2777 spurious warning.
2778 Reported by: crocket
2779
2780 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
2781
2782 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
2783 Preload EFIemu.
2784 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
2785
2786 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
2787
2788 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
2789 is loaded
2790 (grub_cmd_xnu_kextdir): Likewise.
2791 (grub_cmd_xnu_splash): Likewise.
2792
2793 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
2794
2795 Avoid using Reed-Solomon with 0 redundancy.
2796
2797 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
2798 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
2799 or 0 redundancy.
2800 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
2801 (grub_reed_solomon_recover): Likewise.
2802
2803 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
2804
2805 Don't use disk subsystem in freebsd_boot.
2806
2807 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
2808 (freebsd_biosdev): Likewise.
2809 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
2810 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
2811
2812 2010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
2813
2814 Handling of files of unknown size is currently limited. They can't be
2815 used e.g. for initrd or modules. Moreover gzip handling of not
2816 easily seekable files is buggy. Disable unknown file size for now. May
2817 be inefficient but works.
2818
2819 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
2820 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
2821
2822 2010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
2823
2824 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
2825 floppy probe.
2826
2827 2010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
2828
2829 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
2830
2831 2010-12-25 Shea Levy <shlevy>
2832
2833 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
2834
2835 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
2836
2837 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
2838 Windows Server 2008.
2839 Reported by: Devin Giddings.
2840
2841 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
2842
2843 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
2844 writing an error message because of async power management.
2845 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
2846 (grub_reboot): Likewise.
2847
2848 2010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
2849
2850 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
2851 keep unit tests from failing when they shouldn't.
2852
2853 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
2854
2855 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
2856 previous patch increased the size of the RS code by 20 bytes (at
2857 least with gcc-4.4), so increase this by 20 bytes to match.
2858 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
2859
2860 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
2861
2862 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
2863 scratch area. Make sure to initialise chosen in standalone mode as
2864 well as non-standalone.
2865 Reported by: Robert Hooker and Andy Whitcroft.
2866 Tested by: Andy Whitcroft.
2867
2868 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
2869
2870 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
2871 constructing a new unescaped string and passing it to grub_xputs in
2872 one go, rather than passing characters to grub_printf one at a time.
2873
2874 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
2875
2876 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
2877 initialising utf16.
2878
2879 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
2880
2881 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
2882 comment. Add an extra layer of quotation, requiring the output of
2883 this function to be used in a printf format string.
2884 (gettext_printf): New function.
2885 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
2886 Extract translatable strings from here-documents and use a temporary
2887 variable instead, so that xgettext can find them.
2888 * util/grub.d/10_kfreebsd.in: Likewise.
2889 * util/grub.d/10_linux.in: Likewise.
2890 * util/grub.d/20_linux_xen.in: Likewise.
2891
2892 * po/grub.d.sed: New file.
2893 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
2894 arguments. Set c-format flags on all strings extracted from
2895 util/grub.d/ (xgettext refuses to include these itself for strings
2896 it extracted from a shell file, but these really are c-format).
2897
2898 2010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
2899
2900 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
2901 Avoid next pointing to nowhere.
2902
2903 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
2904
2905 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
2906 rather than assuming than rootblock is exactly in the middle.
2907 (grub_affs_label): Likewise.
2908
2909 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
2910
2911 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
2912 reserved_first_sector to 0.
2913 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
2914 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
2915 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
2916
2917 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
2918
2919 Fix handling of UTF-16 UDF labels.
2920
2921 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
2922 (read_string): .. here.
2923 (grub_udf_label): Use read_string.
2924
2925 2010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
2926
2927 * grub-core/normal/menu_entry.c (run): Execute commands from menu
2928 editor under argument scope.
2929 Reported by: Jordan Uggla
2930
2931 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
2932
2933 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
2934
2935 2010-12-18 Colin Watson <cjwatson@ubuntu.com>
2936
2937 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
2938 line, and other keys scroll an entire page (previous handling was
2939 for \r and \n to scroll a page and other keys to scroll two lines).
2940
2941 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
2942
2943 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
2944 Set ptrdest to correct get_physical_target_address rather than
2945 incorrect get_virtual_current_address.
2946
2947 2010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
2948
2949 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
2950 correct cat to grub_uint8_t * rather than grub_uint32_t *.
2951
2952 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
2953
2954 * .bzrignore: Ignore grub-core/rs_decoder.S.
2955
2956 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
2957
2958 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
2959 .mo/.mo.gz opening sequence to ...
2960 (grub_mofile_open_lang): ... here.
2961 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
2962 * util/grub.d/00_header.in (grub_lang): Include country part of
2963 locale.
2964 Reported by: Mario Limonciello.
2965
2966 2010-12-09 Robert Millan <rmh@gnu.org>
2967
2968 * NEWS: Document addition of ZFS support.
2969
2970 2010-12-04 Colin Watson <cjwatson@ubuntu.com>
2971
2972 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
2973 rather than `/ 2', as the latter requires -Wa,--divide which would
2974 require bumping our minimum binutils version.
2975
2976 2010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
2977
2978 * util/grub-script-check.c (main): Print script line number on
2979 error.
2980
2981 2010-12-01 Robert Millan <rmh@gnu.org>
2982
2983 * grub-core/fs/zfs/zfs.c: New file.
2984 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
2985 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
2986 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
2987 * grub-core/fs/zfs/zfsinfo.c: Likewise.
2988
2989 * include/grub/zfs/dmu.h: Likewise.
2990 * include/grub/zfs/dmu_objset.h: Likewise.
2991 * include/grub/zfs/dnode.h: Likewise.
2992 * include/grub/zfs/dsl_dataset.h: Likewise.
2993 * include/grub/zfs/dsl_dir.h: Likewise.
2994 * include/grub/zfs/sa_impl.h: Likewise.
2995 * include/grub/zfs/spa.h: Likewise.
2996 * include/grub/zfs/uberblock_impl.h: Likewise.
2997 * include/grub/zfs/vdev_impl.h: Likewise.
2998 * include/grub/zfs/zap_impl.h: Likewise.
2999 * include/grub/zfs/zap_leaf.h: Likewise.
3000 * include/grub/zfs/zfs.h: Likewise.
3001 * include/grub/zfs/zfs_acl.h: Likewise.
3002 * include/grub/zfs/zfs_znode.h: Likewise.
3003 * include/grub/zfs/zil.h: Likewise.
3004 * include/grub/zfs/zio.h: Likewise.
3005 * include/grub/zfs/zio_checksum.h: Likewise.
3006
3007 * Makefile.util.def: Build ZFS into libgrubmods.
3008 * grub-core/Makefile.core.def: Build zfs.mod.
3009
3010 2010-11-30 Szymon Janc <szymon@janc.net.pl>
3011
3012 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
3013 variable.
3014 * grub-core/commands/wildcard.c (match_files): Likewise.
3015
3016 2010-11-30 Robert Millan <rmh@gnu.org>
3017
3018 * grub-core/loader/i386/bsd.c
3019 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
3020 whether kernel is loaded using grub_loader_is_loaded(), rather
3021 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
3022 certain error conditions.
3023
3024 2010-11-30 Robert Millan <rmh@gnu.org>
3025
3026 * grub-core/commands/echo.c: Include `<grub/term.h>'.
3027 (grub_cmd_echo): Call grub_refresh() after printing a message.
3028
3029 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
3030
3031 Avoid using tricks for initialising endian variables.
3032
3033 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
3034 Make const.
3035 (GRUB_MOD_INIT): Don't byte-swap.
3036 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
3037 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
3038 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
3039 (grub_swap_bytes32_compile_time): Likewise.
3040 (grub_cpu_to_le32_compile_time): Likewise.
3041 (grub_cpu_to_le16_compile_time): Likewise.
3042
3043 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
3044
3045 * util/grub-setup.c (setup): Stop recommending --force. People who
3046 understand the dangers of blocklists are able to find this option
3047 anyway and the ones who don't shouldn't use it anyway.
3048
3049 2010-11-26 Robert Millan <rmh@gnu.org>
3050
3051 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
3052 Update all users.
3053
3054 2010-11-26 Colin Watson <cjwatson@ubuntu.com>
3055
3056 Fix LVM-on-RAID probing.
3057
3058 * util/grub-probe.c (probe): Remember which disk was detected as
3059 RAID (perhaps an LVM physical volume). Use that disk's raidname
3060 rather than that of the top-level disk.
3061
3062 2010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
3063
3064 Fix cmdline argument quotes for setparams command of menuentry
3065 definitions.
3066
3067 * grub-core/commands/menuentry.c (setparams_prefix): Use single
3068 quotes for arguments.
3069 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
3070 grub_strchrsub function instead.
3071
3072 * include/grub/misc.h (grub_strchrsub): New function.
3073
3074 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
3075
3076 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
3077 effort by skipping "." and ".." entries up-front.
3078 Suggested by: Michael Lazarev.
3079
3080 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
3081
3082 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
3083 ldflags to ldadd, to fix link line ordering.
3084 (none_decompress): Likewise.
3085
3086 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
3087
3088 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
3089 platforms.
3090 (grub-emu-lite): Remove kern/emu/cache.S.
3091
3092 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
3093
3094 * util/deviceiter.c (compare_devices): If the by-id link for a
3095 device couldn't be resolved, fall back to sorting by the by-id link
3096 rather than segfaulting.
3097 Reported and tested by: Daniel Mierswa.
3098
3099 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
3100
3101 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
3102 ldflags, to fix link line ordering.
3103
3104 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
3105
3106 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
3107 linkers are picky about this.
3108
3109 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
3110
3111 * grub-core/Makefile.am (command.lst): Adjust sed expression
3112 ordering so that extended and priority commands aren't treated as
3113 ordinary commands.
3114
3115 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
3116
3117 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
3118 Remove byte-swapping function calls, which are not valid in
3119 structure initialisers.
3120 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
3121 non-const.
3122 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
3123 grub_gpt_partition_type_bios_boot.
3124
3125 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
3126
3127 Fix test program build on GNU/kFreeBSD.
3128
3129 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
3130 $(LIBNVPAIR)' library dependencies.
3131
3132 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
3133
3134 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
3135
3136 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
3137
3138 * util/grub-install.in: Remove excessive quoting that broke
3139 installations to RAID devices.
3140
3141 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
3142
3143 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
3144 bootloader version instead of 0.
3145
3146 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
3147
3148 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
3149 warning.
3150
3151 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
3152
3153 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
3154 retrieve the metadat sector if size isn't known.
3155 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
3156
3157 2010-11-18 Robert Millan <rmh@gnu.org>
3158
3159 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
3160 with grub_memcmp().
3161
3162 2010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
3163
3164 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
3165 arrow.
3166 Reported by: Jordan Uggla.
3167
3168 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
3169
3170 Make better UTF compliant.
3171
3172 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
3173 sequences as incorrect.
3174 (grub_is_valid_utf8): Likewise.
3175 (grub_utf8_to_ucs4): Likewise.
3176 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
3177 (grub_ucs4_to_utf8_alloc): Likewise.
3178 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
3179
3180 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
3181
3182 Make legacy_source behave like source.
3183
3184 * grub-core/commands/legacycfg.c (legacy_file): Don't call
3185 grub_show_menu.
3186 (grub_cmd_legacy_source): Call grub_show_menu if needed.
3187
3188 2010-11-16 Colin Watson <cjwatson@debian.org>
3189
3190 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
3191 (-Wunused implies -Wunused-parameter, but not vice versa).
3192
3193 2010-11-16 Colin Watson <cjwatson@ubuntu.com>
3194
3195 * configure.ac: Make error messages less confusing by testing for
3196 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
3197 accepted, but produces a diagnostic if something else is wrong).
3198
3199 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
3200
3201 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
3202 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
3203 (now unused).
3204 (grub_keyboard_controller_init)
3205 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
3206 read the initial state since controller isn't inited yet.
3207
3208 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
3209
3210 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
3211 allocate_regbeg may need to create new chunk header.
3212
3213 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
3214
3215 Fix quoting in legacy parser.
3216
3217 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
3218 single quotes.
3219 (grub_legacy_parse): Likewise.
3220 Reported by: Jordan Uggla.
3221 Tested by: Jordan Uggla.
3222
3223 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
3224
3225 Don't add -lgcc on i386 and x86_64.
3226
3227 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
3228 * conf/Makefile.common (LDADD_KERNEL): Likewise.
3229 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
3230
3231 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
3232
3233 * configure.ac: Add -Wno-trampolines when supported.
3234
3235 2010-11-14 Modestas Vainius <modax@debian.org>
3236
3237 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
3238 fakeraid.
3239
3240 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
3241
3242 Add generic logical block size support for UDF.
3243
3244 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
3245 (GRUB_UDF_BLKSZ): Removed.
3246 (struct grub_udf_data): New field "lbshift" to hold the logical block
3247 size of the file system in log2 format. All users updated.
3248 (sblocklist): Change type to unsigned.
3249 (grub_udf_mount): Change type of "sblklist" to unsigned.
3250 Move AVDP search before VRS recognition, because the latter requires
3251 knowledge of the logical block size, which is detected during the
3252 former.
3253 Detect and validate logical block size during AVDP search, adding
3254 support for block sizes 512, 1024 and 4096.
3255 Make VRS recognition independent of block size.
3256
3257 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
3258
3259 Properly handle deleted files on UDF.
3260
3261 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
3262 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
3263 set.
3264
3265 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
3266
3267 Support reading files larger than 2 GiB.
3268
3269 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
3270 "offset" to grub_off_t.
3271 (grub_udf_read_file): Likewise for parameter "pos".
3272
3273 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
3274
3275 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
3276 unavailable.
3277 (Simple configuration): Refer to Changes from GRUB Legacy about
3278 save_env availability.
3279
3280 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
3281
3282 * util/grub-install.in: Ignore empty partition table detection
3283 instead of trying to include part_ module.
3284
3285 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
3286
3287 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
3288 LVM on RAID support.
3289
3290 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
3291
3292 Properly define WORDS_BIGENDIAN in wrapped environments.
3293
3294 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
3295 definition.
3296 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
3297
3298 Reported by: Manoel Rebelo Abranches.
3299 Tested by: Manoel Rebelo Abranches.
3300
3301 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3302
3303 * util/grub-mkconfig.in: Fix quoting.
3304
3305 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3306
3307 Support big ext2 files.
3308
3309 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
3310 (grub_ext2_read_block): Support triple indirect blocks.
3311 (grub_ext2_read_file): Use 64-bit types and read size_high.
3312 (grub_ext2_open): Read size_high.
3313 Reported by: Ximin Luo.
3314 Tested by: Manoel Rebelo Abranches.
3315
3316 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3317
3318 * util/grub-install.in: Handle filenames containing spaces.
3319 Reported by: Jordan Uggla.
3320 Tested by: Jordan Uggla.
3321
3322 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3323
3324 * util/grub-mkconfig.in (grub_script_check): New variable.
3325 Use grub_script_check instead of grub-script-check.
3326 Reported by: Barry Jackson.
3327
3328 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3329
3330 * docs/grub.texi (menu): Correct the order.
3331 Reported by: D. Hugh Redelmeier.
3332
3333 2010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3334
3335 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
3336 jump.
3337
3338 2010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
3339
3340 * include/grub/elfload.h (grub_elf32_size): New parameter.
3341 All users updated.
3342 Return maximum segments alignment.
3343 (grub_elf64_size): Likewise.
3344 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
3345 Return maximum segments alignment.
3346 (grub_elf64_size): Likewise.
3347 * grub-core/loader/powerpc/ieee1275/linux.c:
3348 (grub_linux_claimmap_iterate): New function. Uses the
3349 "available" property in the "memory" node for memory allocation
3350 for kernel in the PowerPC loader.
3351 (grub_linux_load32): Correctly find linux entry point offset.
3352 (grub_linux_load64): Likewise.
3353
3354 2010-11-07 Robert Millan <rmh@gnu.org>
3355
3356 On mips-yeeloong, build with -march=loongson2f when this flag is
3357 available (GCC >= 4.4).
3358 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
3359 `-march=mips3'.
3360 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
3361 or otherwise add -march=mips3.
3362
3363 2010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
3364
3365 Suppress shell expansion on echo '*' and echo "*" like cases.
3366 Reported by: Jordan Uggla.
3367
3368 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
3369 string arguments before shell expansion.
3370 * tests/grub_cmd_echo.in: New testcases.
3371
3372 2010-11-07 Robert Millan <rmh@gnu.org>
3373
3374 * conf/mips-qemu-mips.rmk: Remove stale file from previous
3375 transition.
3376
3377 2010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3378
3379 * grub-core/kern/emu/hostdisk.c
3380 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
3381
3382 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
3383
3384 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
3385 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
3386 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
3387
3388 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
3389
3390 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
3391
3392 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
3393
3394 * util/grub-install.in: Replace useless recomendation to pass
3395 --modules with a recomendation to report a bug.
3396
3397 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
3398
3399 Properly register serial terminfo.
3400 Reported by: Jordan Uggla
3401
3402 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
3403 const.
3404 (grub_serial_terminfo_output_template): Likewise.
3405 (grub_cmd_serial): Register "serial" with terminfo.
3406 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
3407 grub_serial_terminfo_output.
3408
3409 2010-11-05 Robert Millan <rmh@gnu.org>
3410
3411 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
3412 needed).
3413
3414 2010-11-05 Robert Millan <rmh@gnu.org>
3415
3416 On Yeeloong, pass machine type information to Linux.
3417
3418 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
3419 (LOONGSON_MACHTYPE): New macro, set to
3420 "machtype=lemote-yeeloong-2f-8.9inches".
3421 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
3422 additional argument to Linux.
3423
3424 2010-11-04 Robert Millan <rmh@gnu.org>
3425
3426 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
3427 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
3428 (its SATA disks are detected as slaveless IDE master drives on
3429 kFreeBSD).
3430 Reported by Carsten Aulbert.
3431
3432 2010-11-02 Colin Watson <cjwatson@ubuntu.com>
3433
3434 * util/bin2h.c (main): Fix spelling error in generated output.
3435
3436 2010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
3437
3438 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
3439
3440 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3441
3442 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
3443 vga= option is supplied.
3444
3445 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3446
3447 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
3448 * util/grub.d/10_kfreebsd.in: Likewise.
3449 * util/grub.d/10_linux.in: Likewise.
3450 * util/grub.d/20_linux_xen.in: Likewise.
3451
3452 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3453
3454 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
3455 argument as an argument to no-argument option.
3456
3457 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3458
3459 * util/grub.d/10_linux.in: Add missing load_video with explicit
3460 GRUB_GFXPAYLOAD_LINUX.
3461
3462 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3463
3464 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
3465
3466 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3467
3468 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
3469 elements with invlid index.
3470 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
3471 * grub-core/disk/raid.c (insert_array): Automatically reallocate
3472 members.
3473 * include/grub/raid.h (grub_raid_member): New struct.
3474 (grub_raid_array): Transform devices and start_sector into usage of
3475 grub_raid_member. All users updated
3476 (allocated_devs): New member.
3477
3478 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3479
3480 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
3481 is modified
3482
3483 2010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
3484
3485 NetBSD build fix for getline function conflict from gnulib.
3486
3487 * Makefile.util.def (libgrubkern.a): New library for grub kernel
3488 components that depend on gnulib headers.
3489 (libgrubmods.a): Renamed from earlier libgrub.a.
3490 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
3491
3492 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3493
3494 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
3495 install rather than creating a broken install.
3496
3497 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3498
3499 * util/grub-setup.c (argp): Remove misleading example of installing to
3500 a partition.
3501
3502 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3503
3504 * util/grub-setup.c (setup): Clarify the error message.
3505
3506 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3507
3508 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
3509
3510 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
3511
3512 * grub-core/kern/emu/misc.c
3513 (grub_make_system_path_relative_to_its_root)
3514 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
3515
3516 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
3517
3518 * grub-core/kern/emu/misc.c
3519 (grub_make_system_path_relative_to_its_root): Revert r2882.
3520
3521 2010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
3522
3523 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
3524 useless field head. All users updated.
3525 (free_subchunk): Correct handling of IN_REGION subchunk.
3526
3527 2010-10-22 Colin Watson <cjwatson@ubuntu.com>
3528
3529 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
3530 (Supported kernels): Likewise.
3531
3532 2010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
3533
3534 Make mktemp invocations portable.
3535
3536 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
3537 exit if mktemp fails.
3538 * tests/grub_script_blockarg.in: Likewise.
3539 * tests/partmap_test.in: Likewise.
3540 * tests/util/grub-shell-tester.in: Likewise.
3541 * tests/util/grub-shell.in: Likewise.
3542 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
3543 * Makefile.am: Likewise, and chain shell commands with `&&'
3544 instead of ';'.
3545 * util/grub-mkrescue.in: Use the same explicit template as above, and
3546 exit if mktemp fails.
3547
3548 2010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
3549
3550 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
3551 Linux kernel, reported by Dennis Schridde.
3552
3553 2010-10-17 Szymon Janc <szymon@janc.net.pl>
3554
3555 * grub-core/normal/auth.c (grub_auth_check_authentication):
3556 Set-but-not-used variable removed.
3557
3558 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
3559
3560 * docs/grub.texi (GNU/Linux): Document APM unavailability with
3561 32-bit linux protocol.
3562
3563 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
3564
3565 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
3566 cursor shape for sanity.
3567
3568 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
3569
3570 * docs/grub.texi (Installation): Document buggy BIOS install.
3571
3572 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
3573
3574 * docs/grub.texi (Installation): Indent.
3575
3576 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
3577
3578 * util/grub-setup.c (setup): New parameter allow_floppy.
3579 (arguments): New member allow_floppy.
3580 (argp_parser): Handle --allow-floppy.
3581 (main): Pass allow_floppy.
3582 * util/grub-install.in: New option --allow-floppy passed though to
3583 grub-setup.
3584
3585 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
3586
3587 * util/grub-install.in: Handle partitionless disks.
3588
3589 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
3590
3591 * util/grub-setup.c (setup): Don't clean blocklists before readability
3592 verfification.
3593
3594 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
3595
3596 * docs/grub.texi (Installation): Document embedding zone. Remove
3597 obsolete grub-install example.
3598
3599 2010-10-16 Szymon Janc <szymon@janc.net.pl>
3600
3601 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
3602 Set-but-not-used variable ifdef'ed.
3603 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
3604 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
3605 variable removed.
3606 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
3607 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
3608 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
3609 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
3610 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
3611 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
3612 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
3613 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
3614 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
3615 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
3616 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
3617 Likewise.
3618
3619 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
3620
3621 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
3622 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
3623 enum value.
3624
3625 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
3626
3627 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
3628 synonym to _S5_. Needed for some DSDTs.
3629
3630 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
3631
3632 Userspace ACPI parser debugging.
3633
3634 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
3635 headers and add relevant defines. Don't include standard headers.
3636 (main) [GRUB_DSDT_TEST]: New function.
3637 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
3638 Don't declare functions.
3639
3640 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
3641
3642 Remove dead grub_efi_mm_fini.
3643
3644 * grub-core/kern/efi/mm.c (allocated_page): Removed.
3645 (ALLOCATED_PAGES_SIZE): Likewise.
3646 (MAX_ALLOCATED_PAGES): Likewise.
3647 (allocated_pages): Likewise.
3648 (grub_efi_allocate_pages): Don't record allocated pages.
3649 (grub_efi_free_pages): Likewise.
3650 (grub_efi_mm_init): Likewise.
3651 (grub_efi_mm_fini): Removed.
3652
3653 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
3654
3655 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
3656 (grub_efi_mm_init): Take into account the memory map size increase.
3657
3658 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
3659
3660 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
3661 (serial_hw_put): Wait based on real time rather than port reads. Don't
3662 roken ports.
3663 * include/grub/serial.h (grub_serial_port): New field broken.
3664
3665 2010-10-16 Robert Millan <rmh@gnu.org>
3666
3667 * grub-core/kern/emu/misc.c
3668 (grub_make_system_path_relative_to_its_root): Fix premature return
3669 when processing non-root ZFS filesystems.
3670 Reported by Sergio Talens-Oliag.
3671
3672 2010-10-15 Robert Millan <rmh@gnu.org>
3673
3674 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
3675 guarantee compressed ones are processed first.
3676
3677 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
3678
3679 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
3680 grub_efiemu_autocore.
3681
3682 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
3683
3684 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
3685 rather than 0x1b.
3686 (grub_console_getkey): Use correct jae opcode rather than ja.
3687
3688 2010-10-12 Robert Millan <rmh@gnu.org>
3689
3690 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
3691 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
3692 variable. All references updated.
3693
3694 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
3695
3696 2010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
3697
3698 Correctly distinguish mdraid flavours.
3699
3700 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
3701 (insert_array): New argument raid.
3702 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
3703 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
3704 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
3705
3706 2010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
3707
3708 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
3709 handling of special keys.
3710
3711 2010-10-02 Aleš Nesrsta <starous@volny.cz>
3712
3713 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
3714 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
3715
3716 2010-10-02 Aleš Nesrsta <starous@volny.cz>
3717
3718 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
3719 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
3720 users updated.
3721 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
3722 Use right endpoint when querying descriptor.
3723
3724 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
3725
3726 Clear out 0x80 color bit on EFI.
3727 Tested by: decoder
3728 Reported by: decoder and meta tech.
3729
3730 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
3731 (grub_console_setcolorstate): Clear out 0x80 bit.
3732 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
3733 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
3734 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
3735
3736 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
3737
3738 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
3739 Set to "auto".
3740
3741 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
3742
3743 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
3744 mo_file after freeing.
3745
3746 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
3747
3748 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
3749
3750 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
3751
3752 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
3753 flags.
3754
3755 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
3756
3757 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
3758 usage.
3759
3760 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
3761
3762 Put terminfo into core on ieee1275 and yeeloong (needed for console).
3763
3764 * gentpl.py: New groups terminfoinkernel and terminfomodule.
3765 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
3766 and terminfo.h when needed.
3767 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
3768 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
3769 (terminfo): Enable only on terminfokernel.
3770 (extcmd): Likewise.
3771 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
3772 * include/grub/lib/arg.h: Likewise.
3773 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
3774 incorrect usage of ->.
3775
3776 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
3777
3778 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
3779 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
3780
3781 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
3782
3783 Fix coreboot compilation.
3784
3785 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
3786 Take VBE info into account even if only text is supported.
3787 (fill_vbe_info): Take into account the case when only VGA text
3788 is supported.
3789 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
3790 on coreboot, multiboot and qemu.
3791
3792 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
3793
3794 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
3795 debug messages.
3796 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
3797
3798 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
3799
3800 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
3801 parameters.
3802
3803 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
3804
3805 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
3806 if they were BSD-style.
3807
3808 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
3809
3810 * grub-core/boot/i386/pc/lnxboot.S: Replace
3811 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
3812 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
3813
3814 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
3815
3816 Write embedding zone using Reed-Solomon.
3817
3818 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
3819 * grub-core/Makefile.am (rs_decoder.S): New target.
3820 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
3821 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
3822 (multiboot): Move to RS part.
3823 (post_reed_solomon): New label.
3824 (grub_boot_drive): Move to non-RS part since it's modified in memory
3825 on boot.
3826 Include rs_decoder.S.
3827 * grub-core/lib/reed_solomon.c: New file.
3828 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
3829 New definition.
3830 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
3831 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
3832 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
3833 * include/grub/partition.h (grub_partition_map): Change prototype of
3834 embed to allow returning additional sectors.
3835 * include/grub/reed_solomon.h: New file.
3836 * util/grub-setup.c (setup): Handle Reed-Solomon.
3837
3838 2010-09-28 Colin Watson <cjwatson@ubuntu.com>
3839
3840 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
3841 i386 and x86-64 definedness tests.
3842
3843 2010-09-27 Yves Blusseau <blusseau@zetam.org>
3844
3845 Fix generation of kernel_syms.lst
3846
3847 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
3848 ASM_PREFIX
3849
3850 2010-09-26 Robert Millan <rmh@gnu.org>
3851
3852 Support degraded ZFS arrays in "grub-probe -t device" resolution.
3853
3854 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
3855 the pool is an array of devices, iterate through it and return the
3856 first device that passes a stat() test (instead of blindly returning
3857 the first one).
3858
3859 2010-09-26 Robert Millan <rmh@gnu.org>
3860
3861 Build fixes for GNU/kFreeBSD.
3862
3863 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
3864 to programs that require ZFS conversion.
3865 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
3866 kernels that don't have FLOPPY_MAJOR.
3867
3868 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
3869
3870 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
3871
3872 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
3873
3874 Fix grub-emu build.
3875
3876 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
3877 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
3878 mdraid09 and mdraid1x.
3879
3880 2010-09-24 Colin Watson <cjwatson@ubuntu.com>
3881
3882 Re-enable grub-extras.
3883
3884 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
3885 avoid confusing Automake. Run autogen only twice, once for the top
3886 level and once for grub-core. Add Makefile.util.def and
3887 Makefile.core.def from extra modules to the appropriate autogen
3888 invocations. If Makefile.common exists in an extra module, include
3889 it in both Makefile.util.am and grub-core/Makefile.core.am;
3890 similarly, include any Makefile.util.common file in Makefile.util.am
3891 and any Makefile.core.common file in grub-core/Makefile.core.am.
3892 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
3893 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
3894 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
3895 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
3896
3897 * gentpl.py (gvar_add): Turn GVARS into a set.
3898 (global_variable_initializers): Sort global variables on output.
3899 (vars_init): New function.
3900 (first_time): Likewise.
3901 (library): Ensure that non-global variable initialisations are
3902 emitted before the first time we emit code for a library block.
3903 Append to variables rather than setting them. Only emit
3904 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
3905 each conditional path.
3906 (program): installdir() emits an Autogen macro, so must be passed to
3907 var_add rather than gvar_add.
3908 (data): Likewise.
3909 (script): Likewise.
3910 (rules): New function, centralising handling for different target
3911 types. Set up Guile association lists for first_time and vars_init,
3912 and send most output to a diversion so that variable initialisations
3913 can be emitted first.
3914 (module_rules): Use new rules function.
3915 (kernel_rules): Likewise.
3916 (image_rules): Likewise.
3917 (library_rules): Likewise.
3918 (program_rules): Likewise.
3919 (script_rules): Likewise.
3920 (data_rules): Likewise.
3921
3922 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
3923
3924 * .bzrignore: Add contrib and grub-core/contrib. Remove
3925 grub-core/Makefile.gcry.am.
3926
3927 2010-09-24 Yves Blusseau <blusseau@zetam.org>
3928
3929 * grub-core/lib/LzFind.c: Add missing include.
3930 * grub-core/lib/LzmaEnc.c: Likewise.
3931 * grub-core/script/lexer.c: Likewise.
3932 * grub-core/script/yylex.l: Likewise.
3933 * util/grub-macho2img.c: Likewise.
3934 * util/grub-menulst2cfg.c: Likewise.
3935 * util/grub-mklayout.c: Likewise.
3936 * util/grub-mkpasswd-pbkdf2.c
3937 * util/grub-mkrelpath.c: Likewise.
3938 * util/resolve.c: Likewise.
3939
3940 2010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
3941
3942 * Makefile.util.def (example_unit_test): Add
3943 grub-core/gnulib/libgnu.a.
3944
3945 2010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
3946
3947 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
3948
3949 2010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
3950
3951 Support xz compression on yeeloong.
3952
3953 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
3954 * configure.ac: Check for LZMA.
3955 * grub-core/Makefile.core.def (xz_decompress): New target.
3956 (none_decompress): Likewise.
3957 * grub-core/boot/decompressor/minilib.c: New file.
3958 * grub-core/boot/decompressor/none.c: Likewise.
3959 * grub-core/boot/decompressor/xz.c: Likewise.
3960 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
3961 * grub-core/kern/mips/cache_flush.S: Likewise.
3962 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
3963 * grub-core/kern/mips/startup.S: Move first stage to ...
3964 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
3965 nomacro.
3966 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
3967 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
3968 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
3969 Allocate statically.
3970 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
3971 Allocate statically or use scratch. Don't check CRC32.
3972 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
3973 Allocate statically. Don't check CRC32.
3974 * include/grub/decompressor.h: New file.
3975 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
3976 Removed.
3977 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
3978 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
3979 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
3980 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
3981 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
3982 * util/grub-mkimage.c (grub_compression_t): New type.
3983 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
3984 (image_target_desc): New field default_compression.
3985 (image_targets): Adjust yeeloong targets.
3986 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
3987 (compress_kernel): New parameter comp.
3988 (generate_image): Likewise. Handle new compression case.
3989 (options): New option --compression
3990 (help): Likewise.
3991 (main): Handle new option.
3992
3993 2010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
3994
3995 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
3996
3997 2010-09-22 Colin Watson <cjwatson@ubuntu.com>
3998
3999 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
4000 typo in __i386__ conditional.
4001
4002 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
4003
4004 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
4005 include.
4006
4007 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
4008
4009 Implement EFI and ACPI multiboot2 extensions.
4010
4011 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
4012 new tags as supported.
4013 (acpiv2_size): New function.
4014 (grub_multiboot_get_mbi_size): Take new tags into account.
4015 (grub_multiboot_make_mbi): Add new tags.
4016 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
4017
4018 2010-09-21 Aleš Nesrsta <starous@volny.cz>
4019
4020 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
4021 Added missing configuration of USB device.
4022
4023 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
4024
4025 * grub-core/normal/menu_entry.c (run): Make sure we always return
4026 a value.
4027
4028 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
4029
4030 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
4031 NumberOfPages is UINT64 according to the UEFI specification, not
4032 UINTN. Fix printf format.
4033
4034 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
4035
4036 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
4037 `err' to grub_usb_err_t.
4038 Reported and tested by: KESHAV P.R.
4039
4040 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
4041
4042 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
4043 tpart non-const, so that we can assign to it. (Since this is a
4044 typedef, the constness refers to the pointer rather than what it
4045 points to.)
4046
4047 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
4048
4049 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
4050 $(top_srcdir)/grub-core/gnulib as well as
4051 $(top_builddir)/grub-core/gnulib.
4052 Reported by: KESHAV P.R.
4053
4054 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
4055
4056 * util/grub-install.in: Fix the bootloader ID option to be
4057 consistently --bootloader-id, not --bootloader_id.
4058 Reported by: KESHAV P.R.
4059
4060 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
4061
4062 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
4063 check hash checksum." consistently translatable.
4064
4065 2010-09-21 Yves Blusseau <blusseau@zetam.org>
4066
4067 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
4068 $(top_builddir).
4069
4070 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
4071
4072 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
4073 (GRUB_MOD_INIT): Register sha1sum command.
4074 (GRUB_MOD_FINI): Unregister sha1sum command.
4075
4076 2010-09-21 Yves Blusseau <blusseau@zetam.org>
4077
4078 Keep boot and grub directory names in sync with utils scripts
4079
4080 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
4081 * config.h.in: Add previous macros.
4082 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
4083 * util/grub-install.in: Use $bootdir and $grubdir variables.
4084
4085 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
4086
4087 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
4088 convert partition names to disk names if the new `convert' parameter
4089 is set.
4090 (grub_util_biosdisk_get_grub_dev): If opening the disk device
4091 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
4092 disk in its own right. This can happen with Xen disk images.
4093
4094 2010-09-21 Yves Blusseau <blusseau@zetam.org>
4095
4096 * util/grub-editenv.c: Update strings to avoid warnings when generating
4097 grub.pot file.
4098 * util/grub-setup.c: Likewise.
4099
4100 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
4101
4102 * configure.ac: Change version to 1.99~beta0.
4103
4104 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
4105
4106 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
4107 Add BADRAM.
4108 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
4109 Likewise.
4110 * include/multiboot.h: Resynced with specification.
4111 * include/multiboot2.h: Likewise.
4112
4113 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
4114
4115 Fix po directory handling.
4116
4117 * configure.ac: Create po/Makefile.in rather than po/Makefile.
4118 * grub-core/gnulib/Makefile.am: Import gettext module.
4119 * m4/gnulib-cache.m4: Likewise.
4120 * m4/gnulib-comp.m4: Likewise.
4121 * m4/gettext.m4: New file, from gnulib.
4122 * m4/glibc2.m4: Likewise.
4123 * m4/iconv.m4: Likewise.
4124 * m4/intdiv0.m4: Likewise.
4125 * m4/intl.m4: Likewise.
4126 * m4/intldir.m4: Likewise.
4127 * m4/intlmacosx.m4: Likewise.
4128 * m4/intmax.m4: Likewise.
4129 * m4/inttypes-pri.m4: Likewise.
4130 * m4/lcmessage.m4: Likewise.
4131 * m4/lib-ld.m4: Likewise.
4132 * m4/lib-link.m4: Likewise.
4133 * m4/lib-prefix.m4: Likewise.
4134 * m4/lock.m4: Likewise.
4135 * m4/nls.m4: Likewise.
4136 * m4/po.m4: Likewise.
4137 * m4/printf-posix.m4: Likewise.
4138 * m4/progtest.m4: Likewise.
4139 * m4/threadlib.m4: Likewise.
4140 * m4/uintmax_t.m4: Likewise.
4141 * m4/visibility.m4: Likewise.
4142 * po/Makefile.am: Remove.
4143 * po/Makefile.in.in: New file, from gettext.
4144 ($(DOMAIN).pot-update): Support POTFILES-shell.
4145 * po/Makevars: New file.
4146 * po/POTFILES-shell: Rename to ...
4147 * po/POTFILES-shell.in: ... this. Update.
4148 * po/POTFILES: Rename to ...
4149 * po/POTFILES.in: ... this. Update.
4150 * po/Rules-quot: New file, from gettext.
4151 * po/boldquot.sed: Likewise.
4152 * po/en@boldquot.header: Likewise.
4153 * po/en@quot.header: Likewise.
4154 * po/insert-header.sin: Likewise.
4155 * po/quot.sed: Likewise.
4156 * po/remove-potcdate.sin: Likewise.
4157
4158 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
4159
4160 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
4161
4162 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
4163
4164 * util/grub.d/20_linux_xen.in: Use submenus.
4165
4166 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
4167
4168 Support submenus.
4169
4170 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
4171 parameter submenu. All users updated.
4172 * grub-core/normal/main.c (free_menu): Rename to ...
4173 (grub_normal_free_menu): ... this. Made global.
4174 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
4175 if requested.
4176 * grub-core/normal/menu_entry.c (screen): New field submenu.
4177 (make_screen): Set submenu.
4178 (run): Open new context if requested.
4179 * include/grub/menu.h (grub_menu_entry): New field submenu.
4180 * include/grub/normal.h (grub_normal_free_menu): New proto.
4181
4182 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
4183
4184 Menu entries extractor.
4185
4186 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
4187 variants.
4188 (GRUB_MOD_INIT): Register new variants.
4189 (GRUB_MOD_FINI): Unregister new variants.
4190 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
4191 into grub_cmd_legacy_source.
4192 (grub_cmd_legacy_source): Implement extractor variants.
4193 (GRUB_MOD_INIT): Register new variants.
4194 (GRUB_MOD_FINI): Unregister new variants.
4195 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
4196 as an extractor.
4197 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
4198 search as an extractor.
4199 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
4200 test as an extractor.
4201 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
4202 as an extractor.
4203 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
4204 (grub_env_new_context): New function.
4205 (grub_env_context_open): Likewise.
4206 (grub_env_extractor_open): Likewise.
4207 (grub_env_extractor_close): Likewise.
4208 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
4209 grub_extractor_level.
4210 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
4211 * include/grub/env.h (grub_env_extractor_open): New proto.
4212 (grub_env_extractor_close): Likewise.
4213 * include/grub/normal.h (grub_extractor_level): New external variable.
4214
4215 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
4216
4217 Make cutmem accept a region specification.
4218 Suggested by: Samuel Thibault
4219
4220 * grub-core/mmap/mmap.c (parsemem): New function.
4221 (grub_cmd_cutmem): Handle new arguments.
4222
4223 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
4224
4225 New command cutmem.
4226
4227 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
4228 (GRUB_MOD_INIT): Register new command.
4229 (GRUB_MOD_FINI): Unregister new command.
4230
4231 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
4232
4233 Support some annoying BSD and Minix subpartitions.
4234
4235 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
4236 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
4237 Properly handle concatenation.
4238 * grub-core/kern/device.c (grub_device_iterate): Likewise.
4239 * grub-core/normal/completion.c (iterate_partition): Likewise.
4240 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
4241 contain partition. All users updated.
4242 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
4243 struct.
4244 (grub_openbsdlabel_partition_map): Likewise.
4245 (bsdlabel_partition_map_iterate): Rename to ..
4246 (iterate_real): ... this. New arguments sector, freebsd and pmap.
4247 (bsdlabel_partition_map_iterate): New function.
4248 (netopenbsdlabel_partition_map_iterate): Likewise.
4249 (netbsdlabel_partition_map_iterate): Likewise.
4250 (openbsdlabel_partition_map_iterate): Likewise.
4251 (GRUB_MOD_INIT): Register new partmaps.
4252 (GRUB_MOD_FINI): Unregister new partmaps.
4253 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
4254 (grub_partition_msdos_iterate): ... this. All users updated.
4255 Don't support embedding other than in a minix partition.
4256 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
4257 proto.
4258 * include/grub/partition.h (grub_partition): New field msdostype.
4259 * util/grub-install.in: Handle openbsd and netbsd types being in
4260 part_bsd module.
4261
4262 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
4263
4264 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
4265
4266 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
4267 * grub-core/Makefile.core.def (mdraid): Renamed to ...
4268 (mdraid09): ... this.
4269 (mdraid1x): New module.
4270 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
4271 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
4272
4273 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
4274
4275 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
4276 vsprintf.
4277
4278 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
4279
4280 * grub-core/commands/efi/lsefimmap.c: Correct header.
4281 * NEWS: Update.
4282
4283 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
4284
4285 * util/grub-editenv.c (argp_parser): Don't pass translated strings
4286 as printf format strings; the translations might contain '%' which
4287 could cause a crash.
4288 (main): Likewise.
4289 * util/grub-fstest.c (argp_parser): Likewise.
4290 * util/grub-setup.c (argp_parser): Likewise.
4291 (main): Likewise.
4292
4293 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
4294
4295 Use argp in grub-fstest.
4296
4297 * util/grub-fstest.c: Don't include getopt.h.
4298 Include argp.h.
4299 (root): New variable.
4300 (args_count): Likewise.
4301 (nparm): Likewise.
4302 (num_disks): Likewise.
4303 (images): Likewise.
4304 (cmd): Likewise.
4305 (debug_str): Likewise.
4306 (args): Likewise.
4307 (options): Transformed to argp.
4308 (usage): Removed.
4309 (main): Split argument parsing into ...
4310 (argp_parser): ... this. Changed to argp format.
4311 (argp): New variable.
4312 (main): Use argp_parse.
4313
4314 2010-09-20 Tristan Gingold <gingold@free.fr>
4315 2010-09-20 Robert Millan <rmh.grub@aybabtu.com>
4316 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
4317
4318 * grub-core/commands/efi/lsefimmap.c: New file.
4319 * grub-core/Makefile.core.def (lsefimmap): New module.
4320 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
4321
4322 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
4323
4324 Pause the execution (10s max) if any errors are displayed so the user
4325 has a chance to see them.
4326
4327 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
4328 (grub_print_error): Increment grub_err_printed_errors.
4329 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
4330 execution if any errors were displayed.
4331 (show_menu): Remove old code for pause.
4332 * grub-core/normal/menu_entry.c (run): Likewise.
4333 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
4334 users updated.
4335 (grub_normal_get_char_counter): Likewise.
4336 * include/grub/err.h (grub_err_printed_errors): New external variable.
4337 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
4338
4339 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
4340
4341 Support multiboot VBE info.
4342
4343 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
4344 Take VBE info into account.
4345 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
4346 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
4347 Call fill_vbe_info when appropriate.
4348 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
4349 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
4350 as supported.
4351 (grub_multiboot_get_mbi_size): Take new tags into account.
4352 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
4353 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
4354 Call fill_vbe_tag when appropriate.
4355 (grub_multiboot_make_mbi): Properly align tags.
4356 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
4357 function.
4358 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
4359 proto.
4360 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
4361
4362 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
4363
4364 Suport manual terminal geometry specification.
4365
4366 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
4367 Save state in grub_ofconsole_terminfo_output.
4368 (grub_ofconsole_term): Use grub_terminfo_getwh.
4369 (grub_ofconsole_getwh): Removed.
4370 * grub-core/term/serial.c (grub_serial_getwh): Removed.
4371 (grub_serial_term): Use grub_terminfo_getwh.
4372 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
4373 (options): New struct.
4374 (OPTION_*): New enum.
4375 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
4376 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
4377 width and height.
4378 (grub_terminfo_getwh): New proto.
4379 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
4380
4381 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
4382
4383 Handle legacy "terminal" command.
4384
4385 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
4386 and FLAG_TERMINAL.
4387 (legacy_commands): Add terminal and title.
4388 (grub_legacy_parse): Handle terminal. Simplify title handling.
4389
4390 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
4391
4392 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
4393 parameters overflow.
4394
4395 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
4396
4397 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
4398 widthspec.h.
4399
4400 * docs/grub.texi (Shell-like scripting): Document `!'.
4401 (Network): Simplify using new i386-pc-pxe format. Mention
4402 grub-mknetdir.
4403
4404 * NEWS: Update.
4405
4406 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
4407
4408 * Makefile.am (SUBDIRS): Restore "."; it's important to force
4409 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
4410 when needed.
4411
4412 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
4413
4414 * grub-core/commands/efi/lsefisystab.c: Correct header.
4415 * grub-core/commands/efi/lssal.c: Likewise.
4416 * grub-core/commands/testload.c: Likewise.
4417
4418 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
4419
4420 * util/grub-mkrescue.in: Add explicit root argument to --set to
4421 prevent the UUID being interpreted as an argument to --set (matches
4422 previous change to prepare_grub_to_access_device).
4423
4424 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
4425
4426 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
4427 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
4428 the verbosity of later #ifs.
4429 (find_partition_start): Define this function on FreeBSD too.
4430 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
4431 function.
4432 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
4433 on FreeBSD.
4434
4435 2010-09-20 Yves Blusseau <blusseau@zetam.org>
4436
4437 * util/grub-editenv.c: Use argp instead of getopt.
4438
4439 2010-09-20 Yves Blusseau <blusseau@zetam.org>
4440
4441 * util/grub-setup.c: Use argp instead of getopt.
4442
4443 2010-09-20 Yves Blusseau <blusseau@zetam.org>
4444
4445 Use gnulib-tool to create gnulib source files.
4446
4447 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
4448 grub-core/gnulib directories
4449 * .bzignore: Add **/.deps and autogenerated gnulib files
4450 * configure.ac: Assign auxiliary directory to build-aux, add invocation
4451 of gnulib macros, add grub-core/gnulib/Makefile
4452 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
4453 include m4 directory to aclocal.
4454 * Makefile.util.def: Remove direct compilation of gnulib source files
4455 and use the new grub-core/gnulib/libgnu.a.
4456 * build-aux/config.rpath: move config.rpath from top directory to
4457 build-aux
4458 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
4459 in gnulib headers
4460 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
4461 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
4462 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
4463 header.
4464 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
4465 string.
4466
4467 2010-09-20 Yves Blusseau <blusseau@zetam.org>
4468
4469 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
4470 grub-core/genmod.sh and grub-core/gensyminfo.sh
4471
4472 2010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
4473
4474 Add a test for echo command options.
4475
4476 * tests/grub_cmd_echo.in: New test.
4477 * Makefile.util.def: Rules for new test.
4478
4479 2010-09-20 Szymon Janc <szymon@janc.net.pl>
4480
4481 Remove crc.mod and move crc command to hashsum.mod.
4482 Remove lib/crc.c - users updated to use gcrypt implementation.
4483
4484 * grub-core/commands/crc.c: Removed.
4485 * grub-core/Makefile.core.def (crc): Module removed.
4486 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
4487 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
4488 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
4489 * grub-core/lib/crc.c: Removed.
4490 * include/grub/lib/crc.h: Removed.
4491 * Makefile.util.def (crc): Remove lib/crc.c
4492 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
4493 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
4494 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
4495 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
4496 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
4497 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
4498
4499 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
4500
4501 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
4502
4503 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
4504
4505 Split config.h for util and core.
4506
4507 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
4508 (ADDR32): Likewise.
4509 (DATA32): Likewise.
4510 (BSS_START_SYMBOL): Likewise.
4511 (END_SYMBOL): Likewise.
4512 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
4513 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
4514 * config.h.in: New file.
4515 * configure.ac: Use config-util.h as config define file.
4516 Rename MACHINE into GRUB_MACHINE. All users updated.
4517 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
4518 updated.
4519 (NESTED_FUNC_ATTR): Likewise.
4520 Substitue new variables.
4521 (COND_HAVE_ASM_USCORE): New conditional.
4522 * grub-core/Makefile.am (ASM_PREFIX): New variable.
4523 (kernel_syms.lst): Use ASM_PREFIX.
4524 * grub-core/kern/emu/console.c: Include config-util.h.
4525 * grub-core/kern/emu/misc.c: Likewise.
4526 * grub-core/kern/emu/mm.c: Likewise.
4527 * include/grub/emu/misc.h: Likewise.
4528 * include/grub/libgcc.h: Likewise.
4529
4530 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
4531
4532 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
4533 constants usage.
4534 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
4535 Fix GRUB_TERM_KEY_* constants usage.
4536 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
4537
4538 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
4539
4540 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
4541 print pointer.
4542 * grub-core/bus/usb/uhci.c: Remove empty define.
4543 (grub_uhci_check_transfer): Add missing cast.
4544 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
4545 print pointer.
4546 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
4547 PRIuGRUB_SIZE.
4548 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
4549
4550 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
4551
4552 * grub-core/Makefile.core.def (legacycfg): Add
4553 lib/i386/pc/vesa_modes_table.c on emu.
4554
4555 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
4556
4557 Reduce number of temporary files generated by build system.
4558
4559 * grub-core/gencmdlist.sh: Removed.
4560 * grub-core/genfslist.sh: Removed.
4561 * grub-core/genhandlerlist.sh: Removed.
4562 * grub-core/genmodsrc.sh: Removed.
4563 * grub-core/genpartmaplist.sh: Removed.
4564 * grub-core/genparttoollist.sh: Removed.
4565 * grub-core/gentermiinallist.sh: Removed.
4566 * grub-core/genvideolist.sh: Removed.
4567
4568 * grub-core/genmod.sh.in: New file.
4569 * grub-core/gensyminfo.sh.in: New file.
4570
4571 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
4572 * conf/Makefile.extra-dist: Update with new files.
4573 * gentpl.py: Remove rules related to unnecessary temporary files.
4574 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
4575 and und-* files.
4576 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
4577 genmod.sh scripts.
4578 * grub-core/bus/usb/uhci.c: Remove empty #define.
4579 * grub-core/genmoddep.awk: Updated with new syminfo format.
4580 * util/bash-completion.d/Makefile.am: Add config.log to
4581 CLEANFILES.
4582
4583 2010-09-19 Yves Blusseau <blusseau@zetam.org>
4584
4585 * Makefile.util.def: Add forgotten $(LIBINTL) library.
4586
4587 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
4588
4589 * util/grub-mkconfig.in: Check the config script for syntax errors
4590 before saving.
4591
4592 2010-09-19 Colin Watson <cjwatson@ubuntu.com>
4593 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
4594
4595 * Makefile.util.def (grub-install): Use util/grub-install.in on all
4596 platforms.
4597 * util/grub-install.in: Add EFI and IEEE1275 support.
4598 * util/i386/efi/grub-install.in: Removed.
4599 * util/ieee1275/grub-install.in: Likewise.
4600
4601 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
4602
4603 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
4604 (grub_cmd_cmosclean): Likewise.
4605 (GRUB_MOD_INIT): Register command cmosclean.
4606 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
4607 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
4608
4609 2010-09-18 Carles Pina i Estany <carles@pina.cat>
4610 2010-09-18 Aleš Nesrsta <starous@volny.cz>
4611 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
4612
4613 Add keyboard layouts support.
4614
4615 * Makefile.util.def (grub-mklayout): New file.
4616 (grub-kbdcomp): New script.
4617 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
4618 Add keyboard_layouts.h.
4619 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
4620 commands/boot.c on yeeloong.
4621 (keylayouts): New module.
4622 * grub-core/bus/usb/ohci.c
4623 * grub-core/bus/usb/uhci.c
4624 * grub-core/bus/usb/usbhub.c (rescan): New variable.
4625 (grub_usb_add_hub): Poll interrupt pipe for device handling.
4626 (attach_root_port): Likewise.
4627 (poll_nonroot_hub): Likewise.
4628 (grub_usb_poll_devices): Likewise.
4629 (detach_device): Close transfer.
4630 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
4631 function.
4632 (grub_usb_bulk_setup_readwrite): Likewise.
4633 (grub_usb_bulk_finish_readwrite): Likewise.
4634 * grub-core/commands/keylayouts.c: New file.
4635 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
4636 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
4637 aliases.
4638 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
4639 support scancode 2.
4640 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
4641 * include/grub/keyboard_layouts.h: New file.
4642 * util/grub-mklayout.c: New file.
4643 * util/grub-kbdcomp.in: Likewise.
4644
4645 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
4646
4647 Unify memory types.
4648
4649 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
4650 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
4651 types.
4652 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
4653 (grub_upper_mem): Likewise.
4654 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
4655 * include/grub/memory.h (grub_memory_type_t): New enum.
4656 All users updated.
4657
4658 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
4659
4660 * grub-core/Makefile.core.def (lsapm): New module.
4661 * grub-core/commands/i386/pc/lsapm.c: New file.
4662 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
4663 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
4664 Likewise.
4665 * include/grub/i386/pc/apm.h: New file.
4666 * include/multiboot.h (multiboot_apm_info): New struct.
4667
4668 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
4669
4670 GRUB-legacy configuration file support.
4671
4672 * Makefile.util.def (grub-menulst2cfg): New util.
4673 * docs/man/grub-menulst2cfg.h2m: New file.
4674 * grub-core/Makefile.core.def (legacycfg): New module.
4675 * grub-core/commands/legacycfg.c: New file.
4676 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
4677 (grub_normal_add_menu_entry): ... this.
4678 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
4679 (grub_normal_set_password): ...this.
4680 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
4681 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
4682 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
4683 * grub-core/lib/legacy_parse.c: New file.
4684 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
4685 * include/grub/i386/pc/vesa_modes_table.h: New file.
4686 * include/grub/legacy_parse.h: Likewise.
4687 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
4688 * util/grub-menulst2cfg.c: New file.
4689
4690 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
4691
4692 * grub-core/kern/emu/hostdisk.c
4693 (convert_system_partition_to_system_disk): Initialise node.
4694
4695 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
4696
4697 * grub-core/kern/emu/hostdisk.c
4698 (convert_system_partition_to_system_disk): Fix devmapper memory pool
4699 leak.
4700 Reported and based on patch by: Modestas Vainius.
4701
4702 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
4703
4704 Fix DM-RAID probing with recent versions of device-mapper udev
4705 rules.
4706
4707 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
4708 canonicalise device paths under /dev/mapper/.
4709 (convert_system_partition_to_system_disk): Compare the
4710 uncanonicalised path to /dev/mapper/ rather than the canonicalised
4711 path, since device nodes under /dev/mapper/ are often symlinks.
4712
4713 2010-09-17 Yves Blusseau <blusseau@zetam.org>
4714
4715 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
4716
4717 2010-09-16 Yves Blusseau <blusseau@zetam.org>
4718
4719 * configure.ac: Avoid some annoying error messages if freetype-config
4720 program is not found.
4721
4722 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
4723
4724 Support RAID on virtio devices, and others.
4725
4726 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
4727 Rename to ...
4728 [__MINGW32__] (grub_find_device): ... this.
4729 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
4730 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
4731 reasonable default if dir is NULL.
4732 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
4733 ...
4734 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
4735 (grub_guess_root_device): Update callers.
4736 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
4737
4738 * util/raid.c (grub_util_getdiskname): Remove.
4739 (grub_util_raid_getmembers): Use grub_find_device rather than
4740 grub_util_getdiskname.
4741
4742 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
4743
4744 * docs/grub.texi (serial): Remove obsolete comment about GRUB
4745 needing to be compiled with serial support.
4746 (ls): Indicate that multiple files are accepted.
4747 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
4748 indicate that multiple files are accepted.
4749
4750 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
4751
4752 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
4753 libgrub_a_init.c, and util/bash-completion.d/grub.
4754
4755 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
4756
4757 * util/grub-setup.c (setup): Fix incorrect container semantics.
4758
4759 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
4760
4761 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
4762 misusage.
4763 Reported by: J. Nick Terry
4764
4765 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
4766
4767 Move embedding routines to partmap sources files.
4768
4769 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
4770 [GRUB_UTIL]: New variable.
4771 (gpt_partition_map_iterate): Set part.parent.
4772 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
4773 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
4774 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
4775 New function.
4776 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
4777 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
4778 (grub_partition_map) [GRUB_UTIL]: New field embed.
4779 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
4780 (setup): Use ->embed.
4781
4782 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
4783
4784 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
4785 function.
4786 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
4787 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
4788
4789 2010-09-15 Yves Blusseau <blusseau@zetam.org>
4790
4791 Add function to get completions from usage.
4792
4793 * util/bash-completion.d/grub-completion.bash.in: Add function to get
4794 completions from usage. Use LC_ALL=C to get options properly.
4795
4796 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
4797
4798 * grub-core/gnulib/basename-lgpl.c: Imported.
4799 * grub-core/gnulib/basename.c: Likewise.
4800 * grub-core/gnulib/dirname-lgpl.c: Likewise.
4801 * grub-core/gnulib/dirname.c: Likewise.
4802 * grub-core/gnulib/dirname.h: Likewise.
4803 * grub-core/gnulib/stripslash.c: Likewise.
4804
4805 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
4806
4807 * grub-core/gnulib/error.c: Resynced.
4808 * grub-core/gnulib/getopt.c: Likewise.
4809 * grub-core/gnulib/getopt_int.h: Likewise.
4810 * grub-core/gnulib/regex.h: Likewise.
4811 * grub-core/gnulib/regex_internal.c: Likewise.
4812 * grub-core/gnulib/regex_internal.h: Likewise.
4813
4814 2010-09-15 Szymon Janc <szymon@janc.net.pl>
4815
4816 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
4817 CRC calculations and validity checks.
4818 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
4819 calculations.
4820
4821 2010-09-15 Szymon Janc <szymon@janc.net.pl>
4822
4823 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
4824
4825 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
4826
4827 Fix incorrect echo options handling.
4828 Reported by: Yves Blusseau.
4829
4830 * include/grub/command.h (grub_command_flags_t): New flags
4831 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
4832 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
4833 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
4834
4835 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
4836
4837 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
4838 users updated.
4839 (GRUB_COMMAND_FLAG_MENU): Likewise.
4840 (GRUB_COMMAND_FLAG_BOTH): Likewise.
4841 (GRUB_COMMAND_FLAG_TITLE): Removed.
4842 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
4843 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
4844 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
4845 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
4846 (grub_command_flags_t): New enum. All users updated.
4847
4848 2010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
4849
4850 Fix solaris compilation.
4851
4852 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
4853 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
4854 (grub-emu-list): Likewise.
4855
4856 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
4857
4858 Remove deprecated root command.
4859
4860 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
4861 updated.
4862
4863 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
4864
4865 * util/i386/pc/grub-setup.c: Merge this ...
4866 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
4867 * util/grub-setup.c: ... into this.
4868 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
4869 New struct.
4870
4871 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
4872
4873 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
4874 possible.
4875
4876 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
4877
4878 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
4879 allocate p.
4880
4881 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
4882
4883 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
4884 explicit root argument to set to prevent UUID to be interpreted as
4885 argument to set.
4886
4887 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
4888
4889 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
4890
4891 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
4892
4893 Don't export grub_gate_a20.
4894
4895 * grub-core/kern/i386/pc/init.c: Remove leftovers.
4896 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
4897 to ...
4898 (grub_gate_a20): ... this. All users updated.
4899 * include/grub/i386/pc/init.h: Removed. All users updated.
4900
4901 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
4902
4903 Create euro.pf2 which supports most European languages.
4904
4905 * Makefile.am (grubdata_DATA): Add euro.pf2.
4906 (euro.pf2): New target.
4907 (CLEANFILES): Add euro.pf2.
4908
4909 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
4910
4911 * configure.ac: Disable emu-usb by default to prevent inadvertent
4912 device takeover.
4913
4914 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
4915
4916 Disable usbserial on grub-emu since our libusb code isn't good enough
4917 yet.
4918
4919 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
4920 (usbserial_pl2303): Likewise.
4921 (usbserial_ftdi): Likewise.
4922
4923 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
4924
4925 * include/grub/disk.h (grub_disk): Remove has_partitions.
4926 All users updated.
4927 * disk/loopback.c (grub_loopback): Remove has_partitions.
4928 All users updated.
4929 (options): Remove partitions. All users updated.
4930 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
4931 * util/i386/pc/grub-setup.c (setup): copy partition table only when
4932 actual partition table is found.
4933
4934 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
4935
4936 Remove readability checks (too many false negatives).
4937
4938 * util/grub-install.in: Remove readability checks.
4939 * util/grub-mkconfig.in: Likewise.
4940 * util/grub.d/10_hurd.in: Likewise.
4941 * util/grub.d/10_kfreebsd.in: Likewise.
4942 * util/grub.d/10_linux.in: Likewise.
4943 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
4944 way.
4945
4946 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
4947
4948 Enable acpi shutdown on all ACPI platforms.
4949
4950 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
4951 on coreboo, multiboot and EFI.
4952 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
4953 (grub_acpi_halt): Likewise.
4954 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
4955 (grub_cmd_halt): Don't call grub_acpi_halt directly.
4956 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
4957 * grub-core/lib/i386/halt.c (grub_halt)
4958 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
4959
4960 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
4961
4962 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
4963 context.
4964
4965 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
4966
4967 * grub-core/video/efi_gop.c: Fix over-80-chars line.
4968 * grub-core/video/efi_uga.c: Likewise.
4969
4970 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
4971
4972 Filter devaliases and never open same device twice.
4973
4974 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
4975 (last_ihandle): Likewise.
4976 (ofdisk_hash_ent): New member shortest.
4977 (ofdisk_hash_add): Add canonical path too.
4978 (scan): New function.
4979 (grub_ofdisk_iterate): Iterate over hashed entries.
4980 (compute_dev_path): Don't add :0.
4981 (grub_ofdisk_open): Don't really open the disk.
4982 (grub_ofdisk_close): Avoid closing unrelated disk.
4983 (grub_ofdisk_read): Implement reopen logic.
4984 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
4985 New function.
4986 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
4987 New proto.
4988
4989 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
4990
4991 Fix sparc64.
4992
4993 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
4994 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
4995 right address. Add sparc64_ieee1275_ldflags.
4996 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
4997 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
4998 to grub_host_to_target_addr
4999 (load_image): Likewise.
5000
5001 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
5002
5003 * grub-core/normal/completion.c (complete_file): Handle device
5004 containing slash.
5005 Fix based on patch by Doug Nazar.
5006
5007 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
5008
5009 grub-mknetdir script.
5010
5011 * Makefile.util.def (grub-mknetdir): New module.
5012 * tests/util/grub-shell.in: Support boot=net
5013 * util/grub-mknetdir.in: New file.
5014
5015 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
5016
5017 videoinfo on non-vbe.
5018
5019 * grub-core/Makefile.core.def (vbeinfo): Removed.
5020 (vbetest): Removed.
5021 (videoinfo): New module.
5022 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
5023 * grub-core/commands/i386/pc/vbetest.c: Removed.
5024 * grub-core/commands/videoinfo.c: New file.
5025 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
5026 specification.
5027 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
5028 as vbetest.
5029 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
5030 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
5031 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
5032 mode_number. New parameter mode. All users updated.
5033 (grub_video_gop_iterate): New function.
5034 (grub_video_efi_gop): New member iterate.
5035 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
5036 (grub_vbe_set_video_mode): Remove setting useless fields.
5037 (vbe2videoinfo): New function.
5038 (grub_video_vbe_iterate): Likewise.
5039 (grub_video_vbe_setup): Use vbe2videoinfo.
5040 (grub_video_vbe_print_adapter_specific_info): New function.
5041 (grub_video_vbe_adapter): New fields iterate and
5042 print_adapter_specific_info.
5043 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
5044 All users updated.
5045 (grub_video_mode_info): New field mode_number.
5046 (grub_video_adapter): New fields iterate and
5047 print_adapter_specific_info.
5048
5049 2010-09-13 Tristan Gingold <gingold@free.fr>
5050 2010-09-13 Robert Millan <rmh.grub@aybabtu.com>
5051 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
5052
5053 * grub-core/commands/efi/lsefisystab.c: New file.
5054 * grub-core/commands/efi/lssal.c: Likewise.
5055 * grub-core/Makefile.core.def (lsacpi): New module.
5056 (lsefisystab): Likewise.
5057 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
5058 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
5059 (grub_efi_sal_system_table): New struct.
5060 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
5061 (grub_efi_sal_system_table_memory_descriptor): Likewise.
5062 (grub_efi_sal_system_table_platform_features): Likewise.
5063 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
5064 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
5065 (grub_efi_sal_system_table_ap_wakeup): Likewise.
5066 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
5067
5068 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
5069
5070 Support explicit user claim that a device is BIOS-visible.
5071
5072 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
5073 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
5074 * grub-core/kern/emu/hostdisk.c
5075 (convert_system_partition_to_system_disk): Support mdX.
5076 (find_system_device): New parameter add. All users updated.
5077 (grub_util_biosdisk_is_present): New function.
5078 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
5079 proto.
5080
5081 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
5082
5083 Search hints support.
5084
5085 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
5086 All users updated.
5087
5088 2010-09-13 Yves Blusseau <blusseau@zetam.org>
5089
5090 Bash completion script for util commands
5091
5092 * Makefile.am: Add util/bash-completion.d directory
5093 * configure.ac: Likewise.
5094 * util/bash-completion.d/Makefile.am: New file.
5095 * util/bash-completion.d/grub-completion.bash.in: Likewise.
5096
5097 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
5098
5099 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
5100 (print_backlog): set backlog_ucs4 and backlog_glyphs.
5101 Reported by: Yves Blusseau.
5102
5103 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
5104
5105 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
5106 partition size and offset.
5107
5108 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
5109
5110 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
5111
5112 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
5113
5114 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
5115
5116 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
5117
5118 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
5119 (grub_xvasprintf): Likewise.
5120
5121 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
5122
5123 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
5124
5125 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
5126
5127 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
5128 args ending with NULL.
5129
5130 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
5131
5132 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
5133 pointer.
5134
5135 2010-09-11 Szymon Janc <szymon@janc.net.pl>
5136
5137 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
5138
5139 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
5140
5141 Shutdown using ACPI.
5142
5143 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
5144 * grub-core/commands/acpihalt.c: New file.
5145 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
5146 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
5147 (grub_acpi_halt): New proto.
5148 (GRUB_ACPI_SLP_EN): New const.
5149 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
5150 (GRUB_ACPI_OPCODE_*): New enum.
5151 (GRUB_ACPI_EXTOPCODE_*): Likewise.
5152
5153 2010-09-11 Tristan Gingold <gingold@free.fr>
5154 2010-09-11 Robert Millan <rmh.grub@aybabtu.com>
5155 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
5156
5157 * commands/lsacpi.c: New file.
5158 * grub-core/Makefile.core.def (lsacpi): New module.
5159 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
5160 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
5161 (grub_acpi_madt_entry_header): New struct.
5162 (grub_acpi_madt): Likewise.
5163 (grub_acpi_madt_entry_interrupt_override): Likewise.
5164 (grub_acpi_madt_entry_sapic): Likewise.
5165 (grub_acpi_madt_entry_lsapic): Likewise.
5166 (grub_acpi_madt_entry_platform_int_source): Likewise.
5167 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
5168 (PRIuGRUB_UINT32_T): Likewise.
5169 (PRIxGRUB_UINT64_T): Likewise.
5170
5171 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
5172
5173 Implement loading palette on ieee1275_fb.
5174
5175 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
5176 (have_setcolors): Likewise.
5177 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
5178 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
5179 (grub_video_ieee1275_set_palette): Implement.
5180
5181 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
5182 2010-09-11 Colin Watson <cjwatson@ubuntu.com>
5183
5184 * util/grub-install.in (grub_partition): New variable.
5185 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
5186 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
5187 Fixes a bug reported by Yves Blusseau.
5188
5189 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
5190
5191 Fix emu on mipsel.
5192
5193 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
5194 =grub_cpu_flush_cache on all mips and not only yeeloong.
5195 * configure.ac (COND_mips): New conditional.
5196 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
5197 platforms.
5198 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
5199 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
5200 [GRUB_LINKER_HAVE_INIT]: New function.
5201 (grub_emu_post_init): Likewise.
5202 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
5203 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
5204 * include/grub/cache.h (_mips): Include mips/cache.h.
5205 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
5206 LVM and RAID prototypes.
5207 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
5208 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
5209 function.
5210
5211 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
5212
5213 * util/grub-install.in: Don't try to verify core.img until after
5214 running grub-mkimage to create it.
5215
5216 2010-09-10 Robert Millan <rmh@gnu.org>
5217
5218 * util/grub.d/10_hurd.in: Add misc readability checks.
5219 * util/grub.d/10_kfreebsd.in: Likewise.
5220 * util/grub.d/10_linux.in: Likewise.
5221
5222 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
5223
5224 * util/grub-install.in: ${imgext} won't be defined here until the
5225 install branch is merged. For the meantime, only verify core.img on
5226 i386-pc and sparc64-ieee1275 platforms.
5227
5228 2010-09-10 Robert Millan <rmh@gnu.org>
5229
5230 Solaris support in grub_find_zpool_from_dir(). Thanks
5231 Seth Goldberg for referring to getextmntent() facility.
5232
5233 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
5234 `sys/mkdev.h'.
5235 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
5236 `<sys/mnttab.h>'.
5237 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
5238 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
5239 method for finding zpool name.
5240
5241 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
5242
5243 grub-fstest needs the host and hostfs modules while other utilities
5244 actively require those modules to be absent, so grub-fstest needs
5245 its own initialisation and finalisation code.
5246
5247 * Makefile.am (grub_fstest.pp): New target.
5248 (grub_fstest_init.lst): Likewise.
5249 (grub_fstest_init.c): Likewise.
5250 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
5251
5252 2010-09-10 Robert Millan <rmh@gnu.org>
5253
5254 * configure.ac: Check for `struct statfs.f_fstypename' and
5255 `struct statfs.f_mntfromname'.
5256
5257 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
5258 kFreeBSD-specific code.
5259
5260 2010-09-10 Robert Millan <rmh@gnu.org>
5261
5262 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
5263 on ZFS. Now non-main filesystems are supported as / too.
5264
5265 2010-09-09 Colin Watson <cjwatson@ubuntu.com>
5266
5267 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
5268 and grub-core/disk/host.c to ...
5269 (grub-fstest): ... here. Having the host disk implementation
5270 present confuses grub-probe and other utility programs.
5271
5272 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
5273 when writing to a file, not when writing to stdout.
5274
5275 2010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
5276
5277 * tests/partmap_test.in: New test for partitions.
5278 * Makefile.util.def: Rules for new test.
5279
5280 2010-09-09 Robert Millan <rmh@gnu.org>
5281
5282 * util/grub-probe.c (probe): Fix a pair of unhandled error
5283 conditions.
5284
5285 2010-09-09 Robert Millan <rmh@gnu.org>
5286
5287 Basic Btrfs support (detection and UUID).
5288
5289 * grub-core/fs/btrfs.c: New file.
5290 * Makefile.util.def (library): Register btrfs.c.
5291 * grub-core/Makefile.core.def: Likewise.
5292
5293 2010-09-08 Robert Millan <rmh@gnu.org>
5294
5295 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
5296 with (optional) parameters to specify device and relative path.
5297 * util/grub-install.in: Use is_path_readable_by_grub() to
5298 verify readability of a few critical files.
5299 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
5300 verify readability of grub.cfg.new.
5301
5302 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
5303
5304 Split minix.mod into minix.mod and minix2.mod.
5305
5306 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
5307 * grub-core/Makefile.core.def (minix2): New module.
5308 * grub-core/fs/minix.c: Use definitions instead of runtime version
5309 checking.
5310 * grub-core/fs/minix2.c: New file.
5311
5312 2010-09-08 Yves Blusseau <blusseau@zetam.org>
5313
5314 Add new --boot-directory option to replace --root-directory
5315
5316 * util/grub-install.in: Add new --boot-directory option
5317 * util/grub-reboot.in: Likewise.
5318 * util/grub-set-default.in: Likewise.
5319
5320 2010-09-08 Yves Blusseau <blusseau@zetam.org>
5321
5322 * util/grub-mkconfig.in: Use new variable.
5323
5324 2010-09-08 Yves Blusseau <blusseau@zetam.org>
5325
5326 * configure.ac: Define some useful variables.
5327
5328 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
5329
5330 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
5331 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
5332 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
5333 Use terminfo and don't use cursor-on/cursor-off unless it's known
5334 to work.
5335 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
5336 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
5337
5338 2010-09-08 Colin Watson <cjwatson@ubuntu.com>
5339
5340 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
5341 starts with "(,", fill the drive containing the loaded image in
5342 between those two characters, but expect that a full partition
5343 specification including partition map names will follow.
5344
5345 2010-09-08 Robert Millan <rmh@gnu.org>
5346
5347 * configure.ac: Remove `--enable-grub-fstest' option.
5348 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
5349
5350 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
5351 `grub-fstest' instead of `grub-probe' for readability verification.
5352 * util/grub-probe.c (probe): Remove readability verification kludge.
5353
5354 2010-09-08 Robert Millan <rmh@gnu.org>
5355
5356 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
5357 initializing `GRUB_FS'.
5358
5359 2010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
5360
5361 Not command (!) support to GRUB script.
5362
5363 * tests/grub_script_not.in: New test.
5364 * Makefile.util.def: Rules for new test.
5365
5366 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
5367 ! command as a special case.
5368 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
5369
5370 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
5371
5372 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
5373 grub_free.
5374
5375 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
5376
5377 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
5378
5379 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
5380
5381 * docs/grub.texi (Shell-like scripting): Documentation for break,
5382 continue, shift and return commands.
5383
5384 2010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
5385
5386 Rename CD-ROM to cd on BIOS.
5387
5388 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
5389 "cd".
5390 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
5391
5392 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
5393
5394 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
5395 * util/grub-probe.c (main): Likewise.
5396 * util/i386/pc/grub-setup.c (main): Likewise.
5397 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
5398 Reported and debugged by: alexxy
5399
5400 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
5401
5402 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
5403 diagnostic info.
5404
5405 2010-09-05 Jo Shields <directhex@apebox.org>
5406
5407 * util/grub.d/30_os-prober.in: Add missing classes.
5408
5409 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
5410
5411 * docs/grub.texi (Theme file format): Document new position format.
5412
5413 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
5414
5415 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
5416 a table. Use @code instead of @verbatim.
5417
5418 2010-09-05 Colin D Bennett <colin@gibibit.com>
5419
5420 Gfxmenu documentation.
5421
5422 * docs/grub.texi (Theme file format): New chapter.
5423
5424 2010-09-05 Szymon Janc <szymon@janc.net.pl>
5425
5426 * grub-core/Makefile.core.def (xzio): New module.
5427 * grub-core/io/xzio.c: New file.
5428 * grub-core/lib/xzembed/xz.h: New file (from xembed).
5429 * grub-core/lib/xzembed/xz_config.h: Likewise.
5430 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
5431 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
5432 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
5433 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
5434 * grub-core/lib/xzembed/xz_private.h: Likewise.
5435 * grub-core/lib/xzembed/xz_stream.h: Likewise.
5436 * include/grub/file.h (grub_file_filter_id): New compression filter
5437 GRUB_FILE_FILTER_XZIO.
5438
5439 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
5440
5441 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
5442 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
5443 size.
5444
5445 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
5446
5447 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
5448 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
5449
5450 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
5451
5452 Uncompressed checksum support.
5453
5454 * grub-core/commands/hashsum.c (options): Add option --uncompress.
5455 (check_list): New parameter uncompress.
5456 (grub_cmd_hashsum): Handle --uncompress.
5457
5458 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
5459
5460 Reintroduce testload.
5461
5462 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
5463 from here ...
5464 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
5465 (GRUB_MOD_INIT): New function.
5466 (GRUB_MOD_FINI): Likewise.
5467 * grub-core/Makefile.core.def (testload): New module.
5468
5469 2010-09-05 Szymon Janc <szymon@janc.net.pl>
5470
5471 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
5472 (uint8_t): New type.
5473 (uint16_t): Likewise.
5474 (uint32_t): Likewise.
5475 (uint64_t): Likewise.
5476
5477 2010-09-05 Szymon Janc <szymon@janc.net.pl>
5478
5479 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
5480
5481 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
5482
5483 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
5484 Made static.
5485 (grub_gzfile_open): Removed. All users updated.
5486 (GRUB_MOD_INIT): New function.
5487 (GRUB_MOD_FINI): Likewise.
5488 * grub-core/kern/file.c (grub_file_filters_all): New variable.
5489 (grub_file_filters_enabled): Likewise.
5490 (grub_file_open): Handle filters.
5491 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
5492 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
5493 * include/grub/file.h (grub_file_filter_id_t): New type.
5494 (grub_file_filter_t): Likewise.
5495 (grub_file_filters_all): New extern variable.
5496 (grub_file_filters_enabled): Likewise.
5497 (grub_file_filter_register): New inline function.
5498 (grub_file_filter_unregister): Likewise.
5499 (grub_file_filter_disable): Likewise.
5500 (grub_file_filter_disable_compression): Likewise.
5501 * include/grub/gzio.h: Removed.
5502
5503 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
5504
5505 Filename expansion support for wildcards in GRUB script.
5506
5507 * tests/grub_script_expansion.in: New test.
5508 * Makefile.util.def: Rule for new test.
5509
5510 * grub-core/commands/wildcard.c: New file, implements filename
5511 expansion support for GRUB script.
5512 * grub-core/Makefile.core.def: Rule update for regexp.mod.
5513 * grub-core/script/argv.c: Cosmetic changes.
5514 * grub-core/script/execute.c (grub_script_arglist_to_argv):
5515 Refactored to perform wildcard expansion on arguments.
5516 * include/grub/script_sh.h (grub_script_wildcard_translator): New
5517 struct.
5518
5519 * tests/util/grub-shell.in: Fix quoting for read input.
5520
5521 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
5522
5523 Support for updating environment variables with matched substrings
5524 of regexp.
5525
5526 * tests/grub_cmd_regexp.in: New test.
5527 * Makefile.util.def: Rule for new test.
5528
5529 * grub-core/commands/regexp.c: New option -s to update environment
5530 variables with regexp matches.
5531
5532 2010-09-04 Szymon Janc <szymon@janc.net.pl>
5533
5534 * include/grub/file.h (grub_file): New member not_easly_seekable.
5535 (grub_file_seekable): New inline function.
5536 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
5537 easily seekable.
5538 (grub_gzio_open): Set not_easly_seekable.
5539 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
5540 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
5541
5542 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
5543
5544 Support for options to appear multiple times on cmdline.
5545
5546 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
5547 * grub-core/commands/extcmd.c: Support for repeatable option.
5548 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
5549 repeatable option support.
5550
5551 Refactor menuentry into a regular command.
5552
5553 * grub-core/commands/menuentry.c: New file, menuentry command
5554 implementation.
5555 * grub-core/Makefile.core.def: Rule update for normal.mod.
5556 * grub-core/normal/main.c: Moved menuentry creation to
5557 grub-core/commands/menuentry.c.
5558 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
5559 (grub_menu_execute_entry_real): Removed.
5560 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
5561 function.
5562 (grub_script_execute_menuentry): Removed.
5563 * grub-core/script/parser.y (menuentry): Removed.
5564 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
5565 * grub-core/script/yylex.l (menuentry): Removed.
5566 * include/grub/menu.h (grub_menu_init): New prototype.
5567 (grub_menu_fini): New prototype.
5568 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
5569 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
5570 (grub_script_execute_sourcecode): New prototype.
5571
5572 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
5573
5574 "return" command for GRUB script functions.
5575
5576 * tests/grub_script_return.in: New test.
5577 * Makefile.util.def: Rules for new test.
5578
5579 * grub-core/script/execute.c (grub_script_return): New function.
5580 * grub-core/script/main.c: Register/unregister return commaond.
5581 * include/grub/script_sh.h (grub_script_return): New prototype.
5582
5583 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
5584
5585 "setparams" command to update positional parameters.
5586
5587 * tests/grub_script_setparams.in: New test.
5588 * Makefile.util.def: Rules for new test.
5589
5590 * grub-core/script/argv.c (grub_script_argv_make): New function.
5591 * grub-core/script/execute.c (replace_scope): New function.
5592 (grub_script_setparams): New function.
5593 * grub-core/script/lexer.c: Remove unused variables.
5594 * grub-core/script/main.c: Register/unregister setparams command.
5595 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
5596 (grub_script_setparams): New prototype.
5597
5598 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
5599
5600 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
5601 grub_free order.
5602
5603 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
5604
5605 Support for passing block of commands as an argument to extcmds.
5606
5607 * Makefile.util.def: Rules for new test.
5608 * tests/grub_script_blockarg.in: New test.
5609 * grub-core/tests/test_blockarg.c: New file, block argument
5610 command used in the test.
5611
5612 * include/grub/extcmd.h (grub_extcmd_context): New struct.
5613 (grub_register_extcmd_prio): New function prototype.
5614 (grub_extcmd_dispatcher): New function prototype.
5615 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
5616 type.
5617 * include/grub/script_sh.h (struct grub_script): New members
5618 `children', `next_siblings' and `refcnt' for block arguments and
5619 reference counting.
5620 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
5621 (grub_script_arg): New member `script' for block argument.
5622 (grub_script_argv): New member `script' for block argument.
5623 (grub_parser_param): New member `scripts' for block argument.
5624 (grub_script_mem_free): New extern function prototype.
5625 (grub_script_ref): New function prototype.
5626 (grub_script_unref): New function prototype.
5627
5628 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
5629 extcmd form to support block arguments.
5630 * grub-core/script/argv.c: Block arguments support.
5631 * grub-core/script/execute.c: Likewise.
5632 * grub-core/script/lexer.c: Likewise.
5633 * grub-core/script/main.c: Likewise.
5634 * grub-core/script/script.c: Likewise.
5635 * grub-core/script/parser.y: Likewise. New `block' and `block0'
5636 non-terminals.
5637
5638 * grub-core/commands/acpi.c: Update extcmd implementations with
5639 grub_extcmd_context_t.
5640 * grub-core/commands/cat.c: Likewise.
5641 * grub-core/commands/echo.c: Likewise.
5642 * grub-core/commands/extcmd.c: Likewise.
5643 * grub-core/commands/hashsum.c: Likewise.
5644 * grub-core/commands/hdparm.c: Likewise.
5645 * grub-core/commands/help.c: Likewise.
5646 * grub-core/commands/hexdump.c: Likewise.
5647 * grub-core/commands/i386/cpuid.c: Likewise.
5648 * grub-core/commands/i386/pc/drivemap.c: Likewise.
5649 * grub-core/commands/i386/pc/halt.c: Likewise.
5650 * grub-core/commands/i386/pc/sendkey.c: Likewise.
5651 * grub-core/commands/iorw.c: Likewise.
5652 * grub-core/commands/keystatus.c: Likewise.
5653 * grub-core/commands/loadenv.c: Likewise.
5654 * grub-core/commands/ls.c: Likewise.
5655 * grub-core/commands/lspci.c: Likewise.
5656 * grub-core/commands/memrw.c: Likewise.
5657 * grub-core/commands/probe.c: Likewise.
5658 * grub-core/commands/search_wrap.c: Likewise.
5659 * grub-core/commands/setpci.c: Likewise.
5660 * grub-core/commands/sleep.c: Likewise.
5661 * grub-core/disk/loopback.c: Likewise.
5662 * grub-core/hello/hello.c: Likewise.
5663 * grub-core/loader/i386/bsd.c: Likewise.
5664 * grub-core/loader/xnu.c: Likewise.
5665 * grub-core/term/gfxterm.c: Likewise.
5666 * grub-core/term/serial.c: Likewise.
5667 * grub-core/tests/lib/functional_test.c: Likewise.
5668
5669 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
5670
5671 Multi-line quoted strings support.
5672
5673 * grub-core/script/lexer.c (append_newline): Removed.
5674 (grub_script_lexer_yywrap): Refactored.
5675 (grub_script_lexer_init): Refactored.
5676 * grub-core/script/yylex.l (yywrap): New function.
5677 (grub_lexer_resplit): New function.
5678 (grub_lexer_unput): New function.
5679 * include/grub/script_sh.h (grub_lexer_param): New members, unput
5680 and resplit.
5681 * tests/grub_script_echo1.in: Added few more testcases.
5682
5683 2010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
5684
5685 * grub-core/kern/misc.c: Don't add abort alias in utils.
5686 Reported by: echoline.
5687
5688 2010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
5689
5690 Add missing files into "make dist" tarball for other platforms.
5691
5692 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
5693 * conf/Makefile.common (dist_noinst_DATA): New variable.
5694 * conf/Makefile.extra-dist: Added missing make dist files.
5695 * grub-core/Makefile.core.def: Likewise.
5696
5697 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
5698
5699 Compress grub_prefix.
5700
5701 * grub-core/boot/i386/pc/lnxboot.S: Use
5702 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
5703 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
5704 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
5705 GRUB_MACHINE_PREFIX_END. All users updated.
5706 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
5707 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
5708 + 0x40.
5709 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
5710 * util/grub-mkimage.c (image_target_desc): Change data_end to
5711 prefix_end. All users updated.
5712
5713 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
5714
5715 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
5716 value.
5717 (grub_openbsd_boot): Likewise.
5718 (grub_netbsd_boot): Likewise.
5719 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
5720 (grub_xnu_boot): Likewise.
5721
5722 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
5723
5724 * configure.ac: Clean LIBS variable after tests.
5725
5726 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
5727
5728 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
5729
5730 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
5731
5732 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
5733 echo if libdevmapper will be used.
5734
5735 2010-09-02 Ian Turner <Ian.Turner@deshaw.com>
5736
5737 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
5738 constant for the same file.
5739
5740 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
5741
5742 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
5743
5744 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
5745
5746 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
5747 grub-core/*.pp.
5748
5749 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
5750
5751 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
5752 required by the boot protocol.
5753
5754 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
5755 ebp and edi members.
5756 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
5757 state.ebp and state.edi.
5758 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
5759 %ebp and %edi according to grub_relocator32_ebp and
5760 grub_relocator32_edi respectively.
5761 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
5762 and state.edi.
5763
5764 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
5765
5766 Add i386-pc-pxe image target.
5767
5768 * util/grub-mkimage.c (image_target_desc): New enum value
5769 IMAGE_I386_PC_PXE.
5770 (image_targets): New target i386-pc-pxe.
5771 (generate_image): Handle i386-pc-pxe image.
5772
5773 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
5774
5775 Fix grub_pxe_scan.
5776
5777 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
5778 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
5779 All users updated.
5780 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
5781 (grub_pxe_pxenv): Correct type.
5782
5783 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
5784
5785 * NEWS: Document most of the important changes since 1.98.
5786
5787 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
5788
5789 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
5790 generated manual page) a little.
5791
5792 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
5793
5794 * docs/grub.texi: Add myself as an author.
5795
5796 2010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
5797
5798 * Makefile.util.def (libgrub.a): Add missing sunpc.
5799 Reported by: Seth Goldberg.
5800
5801 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
5802
5803 Interrupt wrapping and code simplifications.
5804
5805 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
5806 x86_noieee1275 which are functionaly equivalent in this case.
5807 (grub-install): Make source on each platform explicit. Enable on
5808 all noemu.
5809 * gentpl.py (x86_efi_pc): Removed group.
5810 (x86_noefi): Likewise.
5811 (i386_noefi): Likewise.
5812 (x86_noieee1275): Likewise.
5813 (i386_noieee1275): Likewise.
5814 (i386_noefi_noieee1275): Likewise.
5815 (i386_pc_qemu_coreboot): Likewise.
5816 (i386_coreboot_multiboot): Likewise.
5817 (i386_pc_coreboot_multiboot_qemu): Likewise.
5818 (x86_noefi_mips): Likewise.
5819 (noieee1275): Likewise.
5820 (ieee1275_mips): Likewise.
5821 (noemu_noieee1275): Likewise.
5822 (cmos): New group.
5823 (usb): Likewise.
5824 (videoinkernel): Likewise.
5825 (videomodules): Likewise.
5826 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
5827 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
5828 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
5829 include/grub/loader.h, include/grub/msdos_partition.h,
5830 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
5831 include/grub/machine/console.h, include/grub/machine/vga.h,
5832 include/grub/machine/vbe.h, include/grub/machine/init.h,
5833 include/grub/machine/kernel.h, include/grub/cpu/time.h,
5834 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
5835 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
5836 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
5837 * grub-core/Makefile.core.def (kernel): Explicit the source for
5838 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
5839 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
5840 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
5841 Use videoinkernel tag.
5842 (usb): Enable on all usb.
5843 (usbserial_common): Likewise.
5844 (usbserial_pl2303): Likewise.
5845 (usbserial_ftdi): Likewise.
5846 (uhci): Enable on all x86.
5847 (ohci): Enable on all pci.
5848 (cmostest): Enable on all CMOS.
5849 (acpi): Include commands/acpi.c on all platforms.
5850 (halt): Add relevant lib/*/halt.c.
5851 (hdparm): Enable on all pci.
5852 (lspci): Likewise.
5853 (usbtest): Enable on all usb.
5854 (ata): Enable on all pci.
5855 (ata_pthru): Likewise.
5856 (usbms): Enable on all usb.
5857 (usb_keyboard): Likewise.
5858 (font): Use tag videomodules.
5859 (bufio): Likewise.
5860 (datetime): Use tag cmos. Enable on all noemu.
5861 (mmap): Use tags common and x86.
5862 (gfxterm): Use tag videomodules.
5863 (bitmap): Likewise.
5864 (bitmap_scale): Likewise.
5865 (video_fb): Likewise.
5866 (video): Likewise.
5867 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
5868 adjust padding accordingly. All users updated.
5869 (grub_ohci_transaction): Fix bad format specification.
5870 (GRUB_MOD_INIT): Add asserts for struct size.
5871 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
5872 (grub_alloc_td): Likewise.
5873 (grub_free_queue): Likewise.
5874 (grub_uhci_transfer): Likewise.
5875 (grub_uhci_transaction): Fix bad format specification.
5876 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
5877 (grub_usb_bulk_readwrite): Likewise.
5878 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
5879 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
5880 Made static.
5881 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
5882 Made static.
5883 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
5884 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
5885 Transformed into C.
5886 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
5887 Moved from here ...
5888 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
5889 ... here. Transformed into C. Made static.
5890 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
5891 Moved from here ...
5892 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
5893 ... here. Transformed into C. Made static.
5894 * grub-core/kern/i386/pc/startup.S
5895 (grub_biosdisk_check_int13_extensions): Moved from here ...
5896 * grub-core/disk/i386/pc/biosdisk.c
5897 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
5898 Made static.
5899 * grub-core/kern/i386/pc/startup.S
5900 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
5901 * grub-core/disk/i386/pc/biosdisk.c
5902 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
5903 Transformed into C. Made static.
5904 * grub-core/kern/i386/pc/startup.S
5905 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
5906 * grub-core/disk/i386/pc/biosdisk.c
5907 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
5908 Transformed into C. Made static.
5909 * grub-core/kern/i386/pc/startup.S
5910 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
5911 * grub-core/disk/i386/pc/biosdisk.c
5912 (grub_biosdisk_get_diskinfo_standard): ... here.
5913 Transformed into C. Made static.
5914 * grub-core/kern/i386/pc/startup.S
5915 (grub_biosdisk_get_num_floppies): Moved from here ...
5916 * grub-core/disk/i386/pc/biosdisk.c
5917 (grub_biosdisk_get_num_floppies): ... here.
5918 Transformed into C. Made static.
5919 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
5920 New function.
5921 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
5922 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
5923 Transformed into C. Made static.
5924 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
5925 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
5926 Transformed into C. Made static.
5927 * grub-core/kern/i386/ieee1275/init.c: Removed.
5928 * grub-core/kern/i386/misc.S: Likewise.
5929 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
5930 Splitted from here ...
5931 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
5932 Transformed into C. Made static. All users updated.
5933 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
5934 Transformed into C. Made static. All users updated.
5935 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
5936 Moved from here...
5937 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
5938 Transformed into C. Made static. All users updated.
5939 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
5940 Moved from here...
5941 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
5942 Transformed into C. Made static. All users updated.
5943 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
5944 Removed (replaced by C version).
5945 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
5946 Moved from here...
5947 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
5948 Transformed into C. Made static.
5949 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
5950 Moved from here...
5951 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
5952 ... here. Transformed into C.
5953 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
5954 Moved from here...
5955 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
5956 ... here. Transformed into C.
5957 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
5958 Moved from here...
5959 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
5960 ... here. Transformed into C. Made static.
5961 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
5962 Moved from here...
5963 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
5964 ... here. Transformed into C.
5965 * grub-core/kern/i386/pc/startup.S
5966 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
5967 * grub-core/video/i386/pc/vbe.c
5968 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
5969 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
5970 Moved from here...
5971 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
5972 ... here. Transformed into C.
5973 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
5974 Moved from here...
5975 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
5976 ... here. Transformed into C.
5977 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
5978 Moved from here...
5979 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
5980 ... here. Transformed into C.
5981 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
5982 Moved from here...
5983 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
5984 ... here. Transformed into C.
5985 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
5986 Moved from here...
5987 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
5988 ... here. Transformed into C. Made static.
5989 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
5990 Moved from here...
5991 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
5992 ... here. Transformed into C. Made static.
5993 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
5994 Moved from here...
5995 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
5996 ... here. Transformed into C. Made static.
5997 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
5998 pxe_rm_entry as third argument.
5999 (grub_bios_interrupt): New function.
6000 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
6001 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
6002 of calling grub_stop.
6003 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
6004 * grub-core/lib/efi/halt.c (grub_halt): ...here.
6005 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
6006 * grub-core/lib/emu/halt.c (grub_halt): ... here.
6007 * grub-core/lib/i386/halt.c: Moved from here ...
6008 * grub-core/lib/i386/halt.c: ... here.
6009 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
6010 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
6011 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
6012 grub_stop_floppy.
6013 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
6014 * include/grub/i386/coreboot/init.h: Removed.
6015 * include/grub/i386/multiboot/init.h: Likewise.
6016 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
6017 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
6018 * include/grub/i386/pc/int.h: New file.
6019 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
6020 (grub_pxe_scan): Removed.
6021 (grub_pxe_call): Update prototype.
6022 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
6023 prototypes.
6024 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
6025 * include/grub/i386/qemu/init.h: Removed.
6026 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
6027 noreturn.
6028 (grub_halt): Likewise.
6029 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
6030 (grub_reboot): Likewise.
6031 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
6032 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
6033 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
6034
6035 2010-08-30 Robert Millan <rmh@gnu.org>
6036
6037 * NEWS: Document addition of ZFS support in `grub-install' and
6038 `grub-mkconfig'.
6039
6040 2010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
6041
6042 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
6043 dprintf output.
6044
6045 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
6046
6047 Remove leftover embedding of font objects.
6048
6049 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
6050 * util/grub-install.in (font): Removed.
6051 * util/grub-mkimage.c (generate_image): Remove font support. All users
6052 updated.
6053
6054 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
6055
6056 Remove leftover embedding of font objects.
6057
6058 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
6059 * util/grub-install.in (font): Removed.
6060 * util/grub-mkimage.c (generate_image): Remove font support. All users
6061 updated.
6062
6063 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
6064
6065 * docs/grub.texi (Network): Fix reference to pxe_blksize.
6066 Reported by: Ian Turner
6067
6068 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
6069
6070 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
6071 timeout to avoid indefinite boot stalling.
6072
6073 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
6074
6075 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
6076 (grub_env_write_color_highlight): Likewise.
6077
6078 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
6079
6080 * grub-core/normal/term.c (print_more): Return to normal and not
6081 to standard state after printing "---MORE---".
6082
6083 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
6084
6085 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
6086 Mask out the bit 0x80 since it has other meaning that specifiing color.
6087
6088 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
6089
6090 New relocator. Allows for more kernel support and more straightforward
6091 loader writing.
6092
6093 * Makefile.am (BOOTTARGET): New variable.
6094 (QEMU32): Likewise.
6095 (linux.init.x86_64): New target.
6096 (linux.init.i386): Likewise.
6097 (multiboot.elf): Likewise.
6098 (kfreebsd.elf): Likewise.
6099 (kfreebsd.aout): Likewise.
6100 (pc-chainloader.elf): Likewise.
6101 (pc-chainloader.bin): Likewise.
6102 (ntldr.elf): Likewise.
6103 (ntldr.bin): Likewise.
6104 (multiboot2.elf): Likewise.
6105 (kfreebsd.init.x86_64): Likewise.
6106 (kfreebsd.init.i386): Likewise.
6107 (knetbsd.init.i386): Likewise.
6108 (kopenbsd.init.i386): Likewise.
6109 (knetbsd.init.x86_64): Likewise.
6110 (kopenbsd.init.x86_64): Likewise.
6111 (linux-initramfs.i386): Likewise.
6112 (linux-initramfs.x86_64): Likewise.
6113 (kfreebsd-mfsroot.i386.img): Likewise.
6114 (knetbsd.image.i386): Likewise.
6115 (kopenbsd.image.i386): Likewise.
6116 (kopenbsd.image.x86_64): Likewise.
6117 (knetbsd.miniroot-image.i386.img): Likewise.
6118 (kfreebsd-mfsroot.x86_64.img): Likewise.
6119 (knetbsd.image.x86_64): Likewise.
6120 (knetbsd.miniroot-image.x86_64.img): Likewise.
6121 (kfreebsd-mfsroot.i386.gz): Likewise.
6122 (bootcheck-kfreebsd-i386): Likewise.
6123 (kfreebsd-mfsroot.x86_64.gz): Likewise.
6124 (bootcheck-kfreebsd-x86_64): Likewise.
6125 (knetbsd.miniroot-image.i386.gz): Likewise.
6126 (bootcheck-knetbsd-i386): Likewise.
6127 (bootcheck-kopenbsd-i386): Likewise.
6128 (bootcheck-kopenbsd-x86_64): Likewise.
6129 (knetbsd.miniroot-image.x86_64.gz): Likewise.
6130 (bootcheck-knetbsd-x86_64): Likewise.
6131 (bootcheck-linux-i386): Likewise.
6132 (bootcheck-linux-x86_64): Likewise.
6133 (bootcheck-linux16-i386): Likewise.
6134 (bootcheck-linux16-x86_64): Likewise.
6135 (bootcheck-multiboot): Likewise.
6136 (bootcheck-multiboot2): Likewise.
6137 (bootcheck-kfreebsd-aout): Likewise.
6138 (bootcheck-pc-chainloader): Likewise.
6139 (bootcheck-ntldr): Likewise.
6140 (CLEANFILES): Add new targets.
6141 (BOOTCHECKS): New variable.
6142 (.PHONY): Add bootchecks.
6143 (SUCCESSFUL_BOOT_STRING): New variable.
6144 (BOOTCHECK_TIMEOUT): Likewise.
6145 (bootcheck): New target
6146 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
6147 * configure.ac: Correct efiemu excuse.
6148 * docs/grub.texi (Supported kernels): New chapter.
6149 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
6150 include/grub/mm_private.h. Simplify inclusion of
6151 include/grub/boot.h, include/grub/loader.h
6152 and include/grub/msdos_partition.h
6153 (KERNEL_HEADER_FILES) [i386_coreboot]:
6154 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
6155 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
6156 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
6157 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
6158 include/grub/machine/loader.h.
6159 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
6160 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
6161 extra_dist.
6162 (pci.mod): Enable on i386-multiboot.
6163 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
6164 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
6165 i386-qemu.
6166 (relocator.mod): Rewritten.
6167 (aout.mod): Enable on all x86.
6168 (bsd.mod): Likewise.
6169 (ntldr.mod): New module.
6170 (linux.mod): Use loader/i386/linux.c on all x86.
6171 (xnu.mod): Enable on all x86.
6172 (vga_text.mod): disable on EFI and QEMU.
6173 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
6174 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
6175 * grub-core/efiemu/loadcore.c: Likewise.
6176 * grub-core/efiemu/main.c: Likewise.
6177 (grub_efiemu_exit_boot_services): Removed.
6178 (grub_efiemu_finish_boot_services): Likewise.
6179 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
6180 function.
6181 * grub-core/efiemu/i386/nocfgtables.c: New file.
6182 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
6183 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
6184 (grub_efi_finish_boot_services): Moved from here ...
6185 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
6186 Fille finish memory map and related data.
6187 (finish_mmap_buf): New variable.
6188 (grub_efi_uintn_t finish_mmap_size): Likewise.
6189 (grub_efi_uintn_t finish_key): Likewise.
6190 (grub_efi_uintn_t finish_desc_size): Likewise.
6191 (grub_efi_uint32_t finish_desc_version): Likewise.
6192 (grub_efi_is_finished): Likewise.
6193 (grub_efi_get_memory_map): Use saved memory map if EFI is already
6194 finished.
6195 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
6196 (grub_elf64_phdr_iterate): Likewise.
6197 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
6198 (grub_os_area_size): Likewise.
6199 (grub_machine_init): Don't reserve os area.
6200 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
6201 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
6202 * grub-core/kern/i386/loader.S: Removed.
6203 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
6204 (grub_os_area_size): Likewise.
6205 (grub_machine_init): Don't reserve os area.
6206 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
6207 Don't call grub_dl_unload_all.
6208 Don't include loader.S.
6209 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
6210 Declare the memory after _end as available.
6211 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
6212 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
6213 (GRUB_MM_ALLOC_MAGIC): Moved from here...
6214 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
6215 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
6216 * include/grub/mm_private.h (grub_mm_header): ... here.
6217 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
6218 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
6219 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
6220 (grub_mm_region): ..here. Removed addr. Added pre_size.
6221 All users updated.
6222 * grub-core/kern/mm.c (base): Renamed to ...
6223 (grub_mm_base): ... this. Made global.
6224 (grub_real_malloc): Alloc from end of region.
6225 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
6226 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
6227 * grub-core/kern/powerpc/cache_flush.S: ... here.
6228 * grub-core/lib/efi/relocator.c: New file.
6229 * grub-core/lib/i386/relocator.c: Rewritten.
6230 * grub-core/lib/i386/relocator16.S: New file.
6231 * grub-core/lib/i386/relocator32.S: Likewise.
6232 * grub-core/lib/i386/relocator64.S: Likewise.
6233 * grub-core/lib/i386/relocator_asm.S: Rewritten.
6234 * grub-core/lib/i386/relocator_common.S: New file.
6235 * grub-core/lib/ieee1275/relocator.c: Likewise.
6236 * grub-core/lib/mips/relocator.c: Rewritten.
6237 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
6238 stylistic adjustments.
6239 * grub-core/lib/powerpc/relocator.c: New file.
6240 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
6241 * grub-core/lib/relocator.c: Rewritten.
6242 * grub-core/lib/x86_64/relocator_asm.S: New file.
6243 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
6244 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
6245 (bsd_tag): New struct.
6246 (tags): New variable.
6247 (tags_last): Likewise.
6248 (netbsd_module): New struct.
6249 (netbsd_mods): New variable.
6250 (netbsd_mods_last): Likewise.
6251 (openbsd_opts): New parameter "serial".
6252 (OPENBSD_SERIAL_ARG): New definition.
6253 (netbsd_opts): New parameter "serial".
6254 (NETBSD_SERIAL_ARG): New definition.
6255 (grub_freebsd_add_meta): Reorganised into ...
6256 (grub_bsd_add_meta): ...this. All users updated.
6257 (grub_freebsd_add_mmap): Reorganised into ...
6258 (generate_e820_mmap): ...this...
6259 (grub_bsd_add_mmap): ...and this. All users updated.
6260 (grub_freebsd_list_modules): Use tags.
6261 (grub_netbsd_add_meta_module): New function.
6262 (grub_netbsd_list_modules): Likewise.
6263 (grub_freebsd_boot): Use relocator and finish EFI.
6264 (grub_openbsd_boot): Likewise.
6265 (grub_netbsd_setup_video): New function.
6266 (grub_netbsd_add_modules): Likewise.
6267 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
6268 and finish EFI.
6269 (grub_bsd_unload): Unload tags.
6270 (grub_bsd_load_aout): Use relocator.
6271 (grub_bsd_elf32_size_hook): New function.
6272 (grub_bsd_elf32_hook): Use relocator.
6273 (grub_bsd_elf64_size_hook): New function.
6274 (grub_bsd_elf64_hook): Use relocator.
6275 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
6276 (grub_bsd_load): Zero-out openbsd_ramdisk.
6277 (grub_bsd_load): Use relocator.
6278 (grub_cmd_openbsd): Support serial.
6279 (grub_cmd_netbsd): Support modules.
6280 (grub_cmd_freebsd_module): Use relocator.
6281 (grub_netbsd_module_load): New function.
6282 (grub_cmd_netbsd_module): Likewise.
6283 (grub_cmd_openbsd_ramdisk): Likewise.
6284 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
6285 kopenbsd_ramdisk.
6286 (GRUB_MOD_FINI): Unregister new commands.
6287 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
6288 (grub_freebsd_load_elfmodule_obj): Use relocator.
6289 (grub_freebsd_load_elfmodule): Likewise.
6290 (grub_freebsd_load_elf_meta): Likewise.
6291 (grub_netbsd_load_elf_meta): New function.
6292 (grub_openbsd_find_ramdisk): Likewise.
6293 * grub-core/loader/i386/bsd_helper.S: Removed.
6294 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
6295 * grub-core/loader/i386/bsd_trampoline.S: Removed.
6296 * grub-core/loader/i386/efi/linux.c: Likewise.
6297 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
6298 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
6299 (DEFAULT_VIDEO_MODE): Likewise.
6300 (real_mode_target): New variable.
6301 (prot_mode_target): Likewise.
6302 (initrd_mem_target): Likewise.
6303 (relocator): Likewise.
6304 (efi_mmap_buf): Likewise.
6305 (efi_mmap_size): Likewise.
6306 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
6307 (free_pages): Use relocator.
6308 (allocate_pages): Account for efi_mmap and use relocator. Return error.
6309 (grub_linux_setup_video): Return error.
6310 (grub_linux_trampoline_start): Removed.
6311 (grub_linux_trampoline_end): Likewise.
6312 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
6313 andd video parameters depending on firmware.
6314 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
6315 [GRUB_MACHINE_EFI]: Pass EFI parameters.
6316 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
6317 (grub_cmd_initrd): Use relocator.
6318 * grub-core/loader/i386/linux_trampoline.S: Removed.
6319 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
6320 (elf_sec_entsize): Likewise.
6321 (elf_sec_shstrndx): Likewise.
6322 (elf_sections): Likewise.
6323 (grub_multiboot_load): Use relocator.
6324 (grub_multiboot_get_mbi_size): Account for sections.
6325 (grub_multiboot_make_mbi): Use relocator and support sections.
6326 (grub_multiboot_add_elfsyms): New function.
6327 (grub_multiboot_free_mbi): Free sections.
6328 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
6329 (grub_linux_real_target): Likewise.
6330 (grub_linux_real_chunk): Likewise.
6331 (grub_linux16_prot_size): Likewise.
6332 (grub_linux16_boot): Use relocator.
6333 (grub_linux_unload): Unload relocator.
6334 (grub_cmd_linux): Use relocator.
6335 (grub_cmd_initrd): Likewise.
6336 * grub-core/loader/i386/pc/ntldr.c: New file.
6337 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
6338 Don't try to guess CPU frequency.
6339 (grub_xnu_set_video): Stretch bitmap.
6340 (grub_xnu_boot): Use relocator.
6341 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
6342 (grub_linux_unload): Free relocator.
6343 (grub_linux_load32): Use relocator.
6344 (grub_linux_load64): Likewise.
6345 (grub_cmd_initrd): Likewise.
6346 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
6347 (grub_multiboot_unload): Unload relocator.
6348 (grub_cmd_multiboot): Use relocator.
6349 (grub_cmd_module): Likewise.
6350 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
6351 Use relocator and support sections.
6352 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
6353 (elf_sec_entsize): Likewise.
6354 (elf_sec_shstrndx): Likewise.
6355 (elf_sections): Likewise.
6356 (grub_multiboot_load): Use relocator.
6357 (grub_multiboot_get_mbi_size): Account for sections.
6358 (grub_multiboot_make_mbi): Use relocator and support sections.
6359 (grub_multiboot_add_elfsyms): New function.
6360 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
6361 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
6362 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
6363 Prototype changed. All users updated.
6364 (grub_xnu_align_heap): Simplified.
6365 (grub_xnu_writetree_toheap): Likewise.
6366 (grub_xnu_unload): Unload relocator.
6367 (grub_cmd_xnu_kernel): Use relocator.
6368 (grub_cmd_xnu_kernel64): Likewise.
6369 (grub_xnu_register_memory): Simplified.
6370 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
6371 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
6372 EFI is finished.
6373 (grub_console_checkkey): Likewise.
6374 (grub_console_getkey): Likewise.
6375 (grub_console_getwh): Likewise.
6376 (grub_console_getxy): Likewise.
6377 (grub_console_gotoxy): Likewise.
6378 (grub_console_cls): Likewise.
6379 (grub_console_setcolorstate): Likewise.
6380 (grub_console_setcursor): Likewise.
6381 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
6382 * grub-core/tests/boot/kbsd.init-i386.S: New file.
6383 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
6384 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
6385 * grub-core/tests/boot/kernel-8086.S: Likewise.
6386 * grub-core/tests/boot/kernel-i386.S: Likewise.
6387 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
6388 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
6389 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
6390 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
6391 * grub-core/tests/boot/knetbsd.cfg: Likewise.
6392 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
6393 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
6394 * grub-core/tests/boot/linux.cfg: Likewise.
6395 * grub-core/tests/boot/linux.init-i386.S: Likewise.
6396 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
6397 * grub-core/tests/boot/linux16.cfg: Likewise.
6398 * grub-core/tests/boot/multiboot.cfg: Likewise.
6399 * grub-core/tests/boot/multiboot2.cfg: Likewise.
6400 * grub-core/tests/boot/ntldr.cfg: Likewise.
6401 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
6402 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
6403 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
6404 New definition.
6405 * include/grub/dl.h (grub_dl_unload_all): Removed.
6406 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
6407 (grub_efi_finish_boot_services): Change prototype.
6408 (grub_efi_is_finished): New variable.
6409 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
6410 Changed prototype.
6411 (grub_efiemu_finish_boot_services): Removed.
6412 (grub_machine_efiemu_init_tables): New prototype.
6413 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
6414 (grub_elf64_phdr_iterate): Likewise.
6415 * include/grub/i386/bsd.h: Include relocator.h.
6416 (freebsd_tag_header): New struct.
6417 (grub_openbsd_bios_mmap): Removed.
6418 (grub_unix_real_boot): Removed.
6419 (grub_freebsd_load_elfmodule32): Changed prototype.
6420 (grub_freebsd_load_elfmodule_obj64): Likewise.
6421 (grub_freebsd_load_elf_meta32): Likewise.
6422 (grub_freebsd_load_elf_meta64): Likewise.
6423 (grub_freebsd_add_meta): Removed.
6424 (grub_netbsd_load_elf_meta32): New prototype.
6425 (grub_netbsd_load_elf_meta64): Likewise.
6426 (grub_bsd_add_meta): Likewise.
6427 (grub_openbsd_ramdisk_descriptor): New struct.
6428 (grub_openbsd_find_ramdisk32): New prototype.
6429 (grub_openbsd_find_ramdisk64): Likewise.
6430 * include/grub/i386/coreboot/loader.h: Removed.
6431 * include/grub/i386/efi/loader.h: Likewise.
6432 * include/grub/i386/ieee1275/loader.h: Likewise.
6433 * include/grub/i386/linux.h (linux_kernel_header): Change void *
6434 to grub_uint32_t.
6435 * include/grub/i386/loader.h: Removed.
6436 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
6437 value.
6438 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
6439 (grub_phys_addr_t): New type.
6440 (grub_vtop): New inline function.
6441 (grub_map_memory): Likewise.
6442 (grub_unmap_memory): Likewise.
6443 * include/grub/i386/multiboot/loader.h: Removed.
6444 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
6445 (NETBSD_BTINFO_CONSOLE): New definition.
6446 (NETBSD_BTINFO_SYMTAB): Likewise.
6447 (NETBSD_BTINFO_MODULES): Likewise.
6448 (NETBSD_BTINFO_FRAMEBUF): Likewise.
6449 (grub_netbsd_bootinfo): New struct.
6450 (grub_netbsd_btinfo_common): Use explicit bitsize.
6451 (grub_netbsd_btinfo_mmap_entry): Removed.
6452 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
6453 (grub_netbsd_btinfo_bootdisk): New struct.
6454 (grub_netbsd_btinfo_symtab): Likewise.
6455 (grub_netbsd_btinfo_serial): Likewise.
6456 (grub_netbsd_btinfo_modules): Likewise.
6457 (grub_netbsd_btinfo_framebuf): Likewise.
6458 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
6459 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
6460 Likewise.
6461 (grub_openbsd_bootargs): Use explicit bitsize.
6462 (grub_openbsd_bootarg_console): New struct.
6463 (GRUB_OPENBSD_COM_MAJOR): New definition.
6464 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
6465 * include/grub/i386/pc/efiemu.h: Removed.
6466 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
6467 * include/grub/i386/qemu/loader.h: Removed.
6468 * include/grub/i386/relocator.h: Rewritten.
6469 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
6470 * include/grub/mips/memory.h: New file.
6471 * include/grub/mips/multiboot.h: Rewritten.
6472 * include/grub/mips/relocator.h: Rewritten.
6473 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
6474 (grub_vtop): New function.
6475 (grub_map_memory): Likewise.
6476 (grub_unmap_memory): Likewise.
6477 * include/grub/misc.h (ALIGN_DOWN): New definition.
6478 * include/grub/mm.h (grub_mm_check_real): New proto.
6479 (GRUB_MM_CHECK): New definition.
6480 * include/grub/mm_private.h: New file.
6481 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
6482 (grub_multiboot_get_mbi_size): Removed.
6483 (grub_multiboot_make_mbi): Change prottype.
6484 (grub_multiboot_set_accepts_video): New proto.
6485 (grub_multiboot_add_elfsyms): Likewise.
6486 (grub_multiboot_payload_eip): New variable.
6487 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
6488 New prototype.
6489 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
6490 New definition.
6491 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
6492 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
6493 * include/grub/powerpc/ieee1275/loader.h: Removed.
6494 * include/grub/powerpc/memory.h: New file.
6495 * include/grub/powerpc/relocator.h: Likewise.
6496 * include/grub/relocator.h: Likewise.
6497 * include/grub/relocator_private.h: Likewise.
6498 * include/grub/sparc64/ieee1275/loader.h: Removed.
6499 * include/grub/x86_64/memory.h: New file.
6500 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
6501 (grub_xnu_heap_malloc): Likewise.
6502 (grub_xnu_heap_real_start): Removed.
6503 (grub_xnu_heap_start): Likewise.
6504 (grub_xnu_relocator): New variable.
6505 (grub_xnu_heap_target_start): Likewise.
6506 * tests/util/grub-shell.in: Support non-pc.
6507 * util/grub-mkimage.c (image_targets): Fix multiboot target.
6508
6509 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
6510
6511 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
6512 on malloc error.
6513 (grub_bidi_logical_to_visual): Check that malloc succeded.
6514 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
6515 puts.
6516 (grub_xputs_normal): Likewise.
6517
6518 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
6519
6520 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
6521 extra_dist.
6522
6523 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
6524
6525 * grub-core/efiemu/runtime/efiemu.sh: Removed.
6526
6527 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
6528
6529 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
6530
6531 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
6532
6533 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
6534 dprintf.
6535
6536 2010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
6537
6538 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
6539
6540 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
6541
6542 * grub-core/normal/term.c (print_more): Fix a memory leak.
6543 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
6544 (grub_xputs_normal): Likewise.
6545
6546 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
6547
6548 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
6549 the begining of the string
6550
6551 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
6552
6553 * grub-core/script/script.c (grub_script_parse): Free parsed on
6554 failure.
6555
6556 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
6557
6558 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
6559 on failure.
6560
6561 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
6562
6563 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
6564 return.
6565
6566 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
6567
6568 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
6569 (scroll_up): Fix a memory leak.
6570
6571 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
6572
6573 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
6574 errors.
6575
6576 2010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
6577
6578 Handle USB pendrives exposed as floppies.
6579
6580 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
6581 floppy.
6582 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
6583 Check for partitions on all devices.
6584
6585 2010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
6586
6587 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
6588 (readkey): Likewise.
6589
6590 2010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
6591
6592 Multiple variable names support to "export" command.
6593
6594 * normal/context.c (grub_cmd_export): "export" command supports
6595 multiple variable names.
6596
6597 2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
6598
6599 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
6600 --target=drive output to Mach device name.
6601
6602 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
6603
6604 New Automake based build system for GRUB.
6605
6606 * ABOUT-NLS: New file.
6607 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
6608 in Makefile.util.def file.
6609 * Makefile.util.def: New file. Autogen build definitions file for
6610 GRUB host utils.
6611 * conf/Makefile.common: New file. Common variables for GRUB host
6612 utils and target modules.
6613 * conf/Makefile.extra-dist: New file. Extra files for make dist.
6614 * docs/Makefile.am: New file. Automake file for docs.
6615 * gentpl.py: New file. Python script to generate Autogen
6616 template.
6617 * grub-core/Makefile.am: New file. GRUB target modules' rules
6618 that doesn't fit in Makefile.core.def file.
6619 * grub-core/Makefile.core.def: New file. Autogen build
6620 definitions file for GRUB target modules.
6621 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
6622 specific setjmp.S file.
6623 * po/Makefile.am: New file.
6624
6625 * .bzrignore: New ignores.
6626 * INSTALL: New requirements, without Ruby.
6627 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
6628 * autogen.sh: Updated to invoke autogen as necessary.
6629 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
6630 and defines for Automake conditionals.
6631 * geninit.sh: Refactoring.
6632
6633 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
6634 necessary.
6635 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
6636 New prototype.
6637
6638 * include/grub/test.h: Fix functional test modules' naming.
6639 * grub-core/tests/example_functional_test.c: Fix test module name.
6640
6641 * util/misc.c: Hosted versions' of grub functions for libgrub.a
6642 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
6643 * util/grub-editenv.c: Likewise.
6644 * util/grub-fstest.c: Likewise.
6645 * util/grub-mkdevicemap.c: Likewise.
6646 * util/grub-mkfont.c: Likewise.
6647 * util/grub-mkimage.c: Likewise.
6648 * util/grub-mkpasswd-pbkdf2.c: Likewise.
6649 * util/grub-probe.c: Likewise.
6650 * util/grub-script-check.c: Likewise.
6651 * util/i386/pc/grub-setup.c: Likewise.
6652 * util/sparc64/ieee1275/grub-setup.c: Likewise.
6653
6654 * tests/util/grub-shell.in: Fix override directory path.
6655 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
6656 * util/import_gcry.py: Create Makefile.gcry.def file instead.
6657
6658 * util/lvm.c: Update #includes.
6659 * util/raid.c: Likewise.
6660 * util/resolve.c: Likewise.
6661 * grub-core/bus/emu/pci.c: Likewise.
6662 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
6663 * grub-core/lib/posix_wrap/string.h: Likewise.
6664 * grub-core/kern/emu/main.c: Likewise.
6665
6666 * grub-core/gensymlist.sh: New file. Script for generating kernel
6667 symbols file.
6668 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
6669
6670 * grub-core/gentrigtables.c: Fix unused variable warnings.
6671
6672 * Makefile.in: Removed.
6673 * conf/any-emu.rmk: Removed.
6674 * conf/common.rmk: Removed.
6675 * conf/i386-coreboot.rmk: Removed.
6676 * conf/i386-efi.rmk: Removed.
6677 * conf/i386-ieee1275.rmk: Removed.
6678 * conf/i386-multiboot.rmk: Removed.
6679 * conf/i386-pc.rmk: Removed.
6680 * conf/i386-qemu.rmk: Removed.
6681 * conf/i386.rmk: Removed.
6682 * conf/mips-yeeloong.rmk: Removed.
6683 * conf/mips.rmk: Removed.
6684 * conf/powerpc-ieee1275.rmk: Removed.
6685 * conf/sparc64-ieee1275.rmk: Removed.
6686 * conf/tests.rmk: Removed.
6687 * conf/x86-efi.rmk: Removed.
6688 * conf/x86_64-efi.rmk: Removed.
6689 * gendistlist.sh: Removed.
6690 * geninitheader.sh: Removed.
6691 * genkernsyms.sh.in: Removed.
6692 * genmk.rb: Removed.
6693 * gensymlist.sh.in: Removed.
6694 * mkinstalldirs: Removed.
6695 * boot: Moved ...
6696 * grub-core/boot: ... to here.
6697 * bus: Moved ...
6698 * grub-core/bus: ... to here.
6699 * commands: Moved ...
6700 * grub-core/commands: ... to here.
6701 * disk: Moved ...
6702 * grub-core/disk: ... to here.
6703 * efiemu: Moved ...
6704 * grub-core/efiemu: ... to here.
6705 * font: Moved ...
6706 * grub-core/font: ... to here.
6707 * fs: Moved ...
6708 * grub-core/fs: ... to here.
6709 * gencmdlist.sh: Moved ...
6710 * grub-core/gencmdlist.sh: ... to here.
6711 * genemuinit.sh: Moved ...
6712 * grub-core/genemuinit.sh: ... to here.
6713 * genemuinitheader.sh: Moved ...
6714 * grub-core/genemuinitheader.sh: ... to here.
6715 * genfslist.sh: Moved ...
6716 * grub-core/genfslist.sh: ... to here.
6717 * genhandlerlist.sh: Moved ...
6718 * grub-core/genhandlerlist.sh: ... to here.
6719 * genmoddep.awk: Moved ...
6720 * grub-core/genmoddep.awk: ... to here.
6721 * genmodsrc.sh: Moved ...
6722 * grub-core/genmodsrc.sh: ... to here.
6723 * genpartmaplist.sh: Moved ...
6724 * grub-core/genpartmaplist.sh: ... to here.
6725 * genparttoollist.sh: Moved ...
6726 * grub-core/genparttoollist.sh: ... to here.
6727 * genterminallist.sh: Moved ...
6728 * grub-core/genterminallist.sh: ... to here.
6729 * gentrigtables.c: Moved ...
6730 * grub-core/gentrigtables.c: ... to here.
6731 * genvideolist.sh: Moved ...
6732 * grub-core/genvideolist.sh: ... to here.
6733 * gettext: Moved ...
6734 * grub-core/gettext: ... to here.
6735 * gfxmenu: Moved ...
6736 * grub-core/gfxmenu: ... to here.
6737 * gnulib: Moved ...
6738 * grub-core/gnulib: ... to here.
6739 * hello: Moved ...
6740 * grub-core/hello: ... to here.
6741 * hook: Moved ...
6742 * grub-core/hook: ... to here.
6743 * io: Moved ...
6744 * grub-core/io: ... to here.
6745 * kern: Moved ...
6746 * grub-core/kern: ... to here.
6747 * lib: Moved ...
6748 * grub-core/lib: ... to here.
6749 * loader: Moved ...
6750 * grub-core/loader: ... to here.
6751 * mmap: Moved ...
6752 * grub-core/mmap: ... to here.
6753 * normal: Moved ...
6754 * grub-core/normal: ... to here.
6755 * partmap: Moved ...
6756 * grub-core/partmap: ... to here.
6757 * parttool: Moved ...
6758 * grub-core/parttool: ... to here.
6759 * script: Moved ...
6760 * grub-core/script: ... to here.
6761 * term: Moved ...
6762 * grub-core/term: ... to here
6763 * tests/example_functional_test.c: Moved ...
6764 * grub-core/tests/example_functional_test.c: ... to here.
6765 * tests/lib/functional_test.c: Moved ...
6766 * grub-core/tests/lib/functional_test.c: ... to here.
6767 * tests/lib/test.c: Moved ...
6768 * grub-core/tests/lib/test.c: ... to here.
6769 * video: Moved ...
6770 * grub-core/video: ... to here.
6771
6772 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
6773
6774 Replace --enable-grub-emu-modules with grub-emu-lite.
6775
6776 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
6777 cache.S.
6778
6779 * include/grub/emu/misc.h (grub_emu_init): New prototype.
6780 * kern/emu/full.c: New file. For grub-emu specific initialization.
6781 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
6782 * kern/emu/main.c: Call initialization function grub_emu_init.
6783
6784 * Makefile.in: Include grub-emu-lite in install.
6785 * commands/parttool.c: Use grub_no_autoload to differentiate
6786 between grub-emu and grub-emu-lite.
6787 * include/grub/misc.h: New variable grub_no_autoload.
6788
6789 * conf/any-emu.rmk: New rules for grub-emu-lite.
6790 * configure.ac: Remove --enable-grub-emu-modules.
6791 * genmk.rb: Cleanup unnecessary rules.
6792 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
6793
6794 * normal/main.c: Don't load list files on grub-emu-lite.
6795 * util/misc.c (grub_arch_sync_caches): Removed.
6796
6797 2010-08-23 Colin Watson <cjwatson@ubuntu.com>
6798
6799 * kern/mips/startup.S (grub_prefix): Update comment to refer to
6800 grub-mkimage rather than grub-mkelfimage.
6801 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
6802
6803 2010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
6804
6805 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
6806 a key after CapsLock or NumLock. It's just a qemu bug.
6807
6808 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
6809
6810 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
6811 needed by libusb wrapper.
6812
6813 2010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
6814
6815 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
6816
6817 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
6818
6819 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
6820 --nounzip is passed.
6821
6822 2010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
6823
6824 USB hotunplugging and USB serial support.
6825
6826 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
6827 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
6828 (grub_uhci_transfer): Respect timeout and set *actual.
6829 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
6830 non-standard length.
6831 (grub_usb_device_attach): Autoload modules.
6832 (GRUB_MOD_INIT): Set grub_term_poll_usb.
6833 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
6834 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
6835 users updated.
6836 (grub_usb_add_hub): Fill nports and children.
6837 (attach_root_port): Receive hub instead of controller.
6838 All users updated. Fill hub->devices.
6839 (grub_usb_root_hub): Allocate hub->devices.
6840 (detach_device): New function.
6841 (poll_nonroot_hub): Fill children and detach devices.
6842 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
6843 actual arguments. All users updated.
6844 (grub_usb_bulk_read_extended): New function.
6845 * bus/usb/serial/common.c: New file.
6846 * bus/usb/serial/ftdi.c: Likewise.
6847 * bus/usb/serial/pl2303.c: Likewise.
6848 * commands/terminal.c (handle_command): Support wildcard.
6849 * commands/usbtest.c: Output "Unknown" instead of empty string.
6850 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
6851 (usbserial_common_mod_SOURCES): New variable.
6852 (usbserial_common_mod_CFLAGS): Likewise.
6853 (usbserial_common_mod_LDFLAGS): Likewise.
6854 (pkglib_MODULES): Add usbserial_pl2303.mod.
6855 (usbserial_pl2303_mod_SOURCES): New variable.
6856 (usbserial_pl2303_mod_CFLAGS): Likewise.
6857 (usbserial_pl2303_mod_LDFLAGS): Likewise.
6858 (pkglib_MODULES): Add usbserial_ftdi.mod.
6859 (usbserial_ftdi_mod_SOURCES): New variable.
6860 (usbserial_ftdi_mod_CFLAGS): Likewise.
6861 (usbserial_ftdi_mod_LDFLAGS): Likewise.
6862 (pkglib_MODULES): Add serial.mod.
6863 (serial_mod_SOURCES): New variable.
6864 (serial_mod_CFLAGS): Likewise.
6865 (serial_mod_LDFLAGS): Likewise.
6866 * conf/i386-pc.rmk: Likewise.
6867 * conf/mips-yeeloong.rmk: Likewise.
6868 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
6869 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
6870 * disk/usbms.c (first_available_slot): New variable.
6871 (grub_usbms_attach): Don't reuse free slots due to potential cache
6872 problems.
6873 * include/grub/serial.h: Moved to ..
6874 * include/grub/ns8250.h: ...this.
6875 * include/grub/serial.h: New file.
6876 * include/grub/term.h (grub_term_poll_usb): New variable.
6877 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
6878 readkey. All users updated.
6879 (grub_terminfo_output_state): Pass term to put.
6880 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
6881 (grub_usb_controller_dev): Add timeout and actual arguments to
6882 transfer. All users updated.
6883 (grub_usb_interface): New field detach_data.
6884 (grub_usb_device): New fields children and nports.
6885 (grub_usb_ep_type_t): New type.
6886 (grub_usb_get_ep_type): New function.
6887 (grub_usb_bulk_read_extended): Likewise.
6888 * include/grub/usbdesc.h (grub_usb_desc): New type.
6889 * include/grub/usbserial.h: New file.
6890 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
6891 * kern/term.c (grub_term_poll_usb): New variable.
6892 (grub_getkey): Call grub_term_poll_usb if set.
6893 (grub_checkkey): Likewise.
6894 (grub_getkeystatus): Likewise.
6895 * term/serial.c: Moved controller-specific parts to ...
6896 * term/ns8250.c: ... here.
6897 * term/serial.c: Mostly rewritten.
6898 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
6899 according to spec.
6900
6901 2010-08-20 Robert Millan <rmh@gnu.org>
6902
6903 Make kFreeBSD code more generic to support ext2fs as root, ufs as
6904 a separate module and maybe other interesting combinations.
6905
6906 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
6907 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
6908 (kfreebsd_entry): Add generic filesystem module load routine.
6909 Map GRUB `ext2' to kFreeBSD `ext2fs'.
6910
6911 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
6912
6913 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
6914 "numcenter" (I misunderstood the purpose of this entry).
6915 * docs/grub.texi (sendkey): Likewise.
6916
6917 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
6918
6919 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
6920 status flag options; simply omitting the option is equivalent and
6921 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
6922 (keysym_table): Rename "num5numlock" to "numlock".
6923 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
6924 can uniformly say that only the last of multiple `sendkey'
6925 invocations has any effect.
6926 * docs/grub.texi (sendkey): New section.
6927
6928 2010-08-19 Colin Watson <cjwatson@ubuntu.com>
6929
6930 * commands/i386/pc/sendkey.c (options): Fix three typos.
6931
6932 2010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
6933
6934 Implement sendkey support.
6935
6936 * commands/i386/pc/sendkey.c: New file.
6937 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
6938 (sendkey_mod_SOURCES): New variable.
6939 (sendkey_mod_CFLAGS): Likewise.
6940 (sendkey_mod_LDFLAGS): Likewise.
6941
6942 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
6943
6944 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
6945 fix warnings from Autoconf.
6946
6947 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
6948
6949 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
6950 to avoid false positives with some assemblers that output things
6951 like "someprefix_func" as part of their output.
6952
6953 2010-08-15 Robert Millan <rmh@gnu.org>
6954
6955 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
6956 errors.
6957 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
6958 grub_get_libzfs_handle() errors.
6959
6960 2010-08-14 Robert Millan <rmh@gnu.org>
6961
6962 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
6963 filesystem is not ZFS.
6964
6965 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
6966
6967 Fix for misspelled color names defaulting to black/black (bug
6968 reported by Doug Nazar)
6969
6970 * include/grub/normal.h (grub_parse_color_name_pair): Add return
6971 status to prototype.
6972 * normal/color.c (grub_parse_color_name_pair): Return failure
6973 status.
6974 (grub_env_write_color_normal): Ignore bad color names.
6975 (grub_env_write_color_highlight): Likewise.
6976 * normal/main.c (GRUB_MOD_INIT): Set default color names.
6977
6978 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
6979
6980 "shift" command support to GRUB script.
6981
6982 * include/grub/script_sh.h (grub_script_shift): New prototype.
6983 * script/execute.c (grub_script_shift): New function.
6984 * script/main.c (grub_script_init): Register shift command.
6985 (grub_script_fini): Unregister shift command.
6986 * util/grub-script-check.c (grub_script_cmd_shift): New function.
6987
6988 * tests/grub_script_shift.in: New testcase.
6989 * conf/tests.rmk: Rules for new testcase.
6990
6991 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
6992
6993 "continue" command support to GRUB script.
6994
6995 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
6996 (grub_script_break): Continue support.
6997 * script/main.c (grub_script_init): Register continue command.
6998 (grub_script_fini): Unregister continue command.
6999
7000 * tests/grub_script_continue.in: New testcase.
7001 * conf/tests.rmk: Rules for new testcase.
7002
7003 2010-08-12 BVK Chaitanya <bvk@dbook>
7004
7005 "break" command support to GRUB script.
7006
7007 * conf/common.rmk: Rule updates to grub-script-check.
7008 * include/grub/misc.h (grub_min): New function.
7009 * include/grub/script_sh.h (grub_script_init): New prototype.
7010 (grub_script_fini): New prototype.
7011 (grub_script_break): New prototype.
7012 * script/main.c (grub_script_init): New function.
7013 (grub_script_fini): New function.
7014 * script/execute.c (grub_script_break): New function.
7015 * normal/main.c: Calls to grub_script_{init,fini}.
7016 * util/grub-script-check.c (grub_script_break): New function.
7017
7018 * tests/grub_script_break.in: New testcase.
7019 * conf/tests.rmk: Rules for new test case.
7020
7021 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
7022
7023 Function parameters support to GRUB script.
7024
7025 * script/yylex.l (VARIABLE): Regular expression update.
7026 * script/function.c (grub_script_function_call): Moved ...
7027 * script/execute.c (grub_script_function_call): ... to here.
7028 (grub_script_execute_arglist_to_argv): Removed.
7029 (grub_script_arglist_to_argv): New function.
7030 * script/argv.c: New file.
7031 (grub_script_argv_free): New function.
7032 (grub_script_argv_next): Likewise.
7033 (grub_script_argv_append): Likewise.
7034 (grub_script_argv_split_append): Likewise.
7035 * include/grub/script_sh.h (grub_script_argv): New struct.
7036 (grub_script_argv_free): New function.
7037 (grub_script_argv_next): Likewise.
7038 (grub_script_argv_append): Likewise.
7039 (grub_script_argv_split_append): Likewise.
7040
7041 * conf/common.rmk (normal.mod): New source script/argv.c.
7042
7043 * tests/grub_script_echo1.in: More tests.
7044 * tests/grub_script_vars1.in: Likewise.
7045 * tests/grub_script_functions.in: New test case.
7046 * conf/tests.rmk: Rules for new testcase.
7047
7048 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
7049
7050 Remove grub_script_cmdblock struct.
7051
7052 * include/grub/script_sh.h: Remove grub_script_cmdblock.
7053 * script/parser.y: Likewise.
7054 * script/execute.c: Rename cmdblock suffix to cmdlist.
7055 * script/script.c: Likewise.
7056 * util/grub-script-check.c: Likewise.
7057
7058 2010-08-11 Yves Blusseau <blusseau@zetam.org>
7059
7060 * .bzrignore: add grub-macho2img
7061
7062 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
7063
7064 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
7065
7066 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
7067
7068 Remove the dump of sm712 initialisation sequence.
7069
7070 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
7071 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
7072 (GRUB_VGA_IO_MISC_WRITE): Likewise.
7073 (GRUB_VGA_CR_*): Added many registers.
7074 (GRUB_VGA_SR_*): Likewise.
7075 (GRUB_VGA_GR_*): Likewise.
7076 (grub_vga_write_arx): New function.
7077 (grub_video_hw_config): New struct.
7078 (grub_vga_set_geometry): New function.
7079 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
7080 GRUB_PCI_CLASS_SUBCLASS_VGA.
7081 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
7082 * video/sm712.c (grub_sm712_write_reg): New function
7083 (grub_sm712_read_reg): Likewise.
7084 (grub_sm712_sr_write): Likewise.
7085 (grub_sm712_gr_write): Likewise.
7086 (grub_sm712_cr_write): Likewise.
7087 (grub_sm712_write_arx): Likewise.
7088 (grub_sm712_cr_shadow_write): Likewise.
7089 (grub_sm712_write_dda_lookup): Likewise.
7090 (grub_video_sm712_setup): Initialise the video rather then
7091 blindly replay the dump.
7092 (main) [TEST]: Add a routine to be able to compile as standalone for
7093 tests.
7094 * video/sm712_init.c (sm712_init): Removed.
7095 (sm712_sr_seq1): New array.
7096 (sm712_sr_seq2): Likewise.
7097
7098 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
7099
7100 * include/grub/vga.h: Add missing grub/pci.h include.
7101
7102 2010-08-10 Yves Blusseau <blusseau@zetam.org>
7103
7104 * util/grub-macho2img.c (main): fix typo
7105
7106 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
7107
7108 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
7109 (grub_vga_gr_read): Likewise.
7110 (grub_vga_cr_write): Likewise.
7111 (grub_vga_cr_read): Likewise.
7112 (grub_vga_sr_write): Likewise.
7113 (grub_vga_sr_read): Likewise.
7114 (grub_vga_palette_read): Likewise.
7115 (grub_vga_palette_write): Likewise.
7116 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
7117 (grub_sm712_sr_read): New function.
7118 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
7119 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
7120
7121 2010-08-09 Robert Millan <rmh@gnu.org>
7122
7123 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
7124 out unused variables on non-ZFS build.
7125
7126 2010-08-08 Robert Millan <rmh@gnu.org>
7127
7128 Fix path generation for sub-filesystems in ZFS.
7129
7130 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
7131 missing slash.
7132
7133 2010-08-08 Robert Millan <rmh@gnu.org>
7134
7135 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
7136
7137 2010-08-08 Robert Millan <rmh@gnu.org>
7138
7139 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
7140 exist, issue a proper error message (rely on `ls' for translated
7141 strings).
7142
7143 2010-08-08 Robert Millan <rmh@gnu.org>
7144
7145 Fix grub-probe invocation.
7146
7147 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
7148
7149 2010-08-04 Robert Millan <rmh@gnu.org>
7150
7151 * configure.ac: Remove checks for getfsstat() and getmntany().
7152 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
7153 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
7154 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
7155 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
7156 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
7157 function.
7158 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
7159 via find_mount_point_from_dir() and getfsstat() / getmntany().
7160
7161 2010-08-04 Robert Millan <rmh@gnu.org>
7162
7163 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
7164 (grub_find_zpool_from_mount_point): Merge into ...
7165 (grub_find_zpool_from_dir): ... this.
7166 * kern/emu/misc.c: Likewise.
7167
7168 * kern/emu/misc.c
7169 (grub_make_system_path_relative_to_its_root): Replace
7170 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
7171 with grub_find_zpool_from_dir().
7172 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
7173
7174 2010-08-04 Robert Millan <rmh@gnu.org>
7175
7176 Support OpenSolaris in ZFS device resolution.
7177
7178 * configure.ac: Check for getmntany().
7179 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
7180 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
7181 support.
7182
7183 2010-08-03 Robert Millan <rmh@gnu.org>
7184
7185 Fix grub-emu build.
7186
7187 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
7188 * include/grub/emu/misc.h: ... here.
7189
7190 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
7191 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
7192
7193 * util/misc.c: Remove `<grub/util/libzfs.h>'.
7194 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
7195 (grub_get_libzfs_handle): Move to ...
7196 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
7197 (grub_get_libzfs_handle): ... here.
7198
7199 2010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
7200
7201 * script/execute.c (grub_script_execute_cmdline): Check for NULL
7202 as command name case.
7203
7204 2010-08-02 Colin Watson <cjwatson@ubuntu.com>
7205
7206 * disk/raid.c (insert_array): Select unique numbers for named arrays
7207 as well, for use as keys in the disk cache.
7208
7209 2010-08-01 Robert Millan <rmh@gnu.org>
7210
7211 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
7212 kFreeBSD device name, except on ZFS where the filesystem label is
7213 used.
7214 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
7215 `/boot/zfs/zpool.cache'.
7216 Set mountfrom kernel variable using ${kfreebsd_device}.
7217
7218 2010-08-01 Robert Millan <rmh@gnu.org>
7219
7220 Make it even harder to use uninitialized `libzfs_handle' (and
7221 make the interface a bit simpler).
7222
7223 * include/grub/util/misc.h (grub_util_init_libzfs)
7224 (libzfs_handle): Remove.
7225 (grub_get_libzfs_handle): New prototype.
7226
7227 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
7228 attribute.
7229 (grub_util_init_libzfs): Remove.
7230 (grub_get_libzfs_handle): New function.
7231
7232 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
7233 grub_get_libzfs_handle() to obtain a libzfs handle instead of
7234 accessing `libzfs_handle' directly.
7235
7236 2010-08-01 Robert Millan <rmh@gnu.org>
7237
7238 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
7239 (grub_find_zpool_from_mount_point): New function prototypes.
7240
7241 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
7242 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
7243
7244 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
7245 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
7246 `static' attribute.
7247
7248 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
7249 finding zpool from mount point into ...
7250 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
7251
7252 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
7253 requested path is part of a ZFS pool, use
7254 grub_find_zpool_from_mount_point() to detect its filesystem name,
7255 and generate a path with `/fsname@path' syntax.
7256
7257 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
7258
7259 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
7260 (void) rather than () so that this is a proper prototype.
7261
7262 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
7263
7264 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
7265
7266 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
7267
7268 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
7269 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
7270
7271 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
7272
7273 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
7274
7275 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
7276
7277 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
7278
7279 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
7280
7281 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
7282 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
7283 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
7284 disable gfxpayload.
7285 (Shell-like scripting): Add real content.
7286 (Serial terminal): Suggest `terminal_input serial; terminal_output
7287 serial' rather than putting the two commands on separate lines,
7288 since console input will be inoperative after the first command.
7289 (menuentry): Document --class, --users, and --hotkey options.
7290 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
7291 Vladimir Serbinenko).
7292
7293 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
7294 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
7295
7296 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
7297
7298 2010-08-01 Robert Millan <rmh@gnu.org>
7299
7300 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
7301 (grub_find_zpool_from_mount_point): New function prototypes.
7302
7303 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
7304 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
7305
7306 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
7307 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
7308 `static' attribute.
7309
7310 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
7311 finding zpool from mount point into ...
7312 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
7313
7314 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
7315 requested path is part of a ZFS pool, use
7316 grub_find_zpool_from_mount_point() to detect its filesystem name,
7317 and generate a path with `/fsname@path' syntax.
7318
7319 2010-08-01 Robert Millan <rmh@gnu.org>
7320
7321 Prevent accidental use of uninitialized libzfs_handle.
7322
7323 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
7324 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
7325 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
7326
7327 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
7328
7329 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
7330 util/grub.d/10_linux.in). Fixes Debian bug #591093.
7331
7332 2010-08-01 Robert Millan <rmh@gnu.org>
7333
7334 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
7335
7336 2010-07-31 Robert Millan <rmh@gnu.org>
7337
7338 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
7339
7340 2010-07-31 Robert Millan <rmh@gnu.org>
7341
7342 * kern/emu/misc.c: Add missing license header.
7343
7344 2010-07-31 Robert Millan <rmh@gnu.org>
7345
7346 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
7347
7348 * include/grub/util/libnvpair.h: Include `<config.h>'.
7349 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
7350 declaring libnvpair prototypes ourselves.
7351 * include/grub/util/libzfs.h: Include `<config.h>'.
7352 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
7353 declaring libzfs prototypes ourselves.
7354
7355 (libzfs_handle): Moved to ...
7356 * include/grub/util/misc.h (libzfs_handle): ... here.
7357 Include `<grub/util/libzfs.h>'.
7358
7359 2010-07-30 Robert Millan <rmh@gnu.org>
7360
7361 * include/grub/emu/misc.h: Add missing license header.
7362
7363 2010-07-30 Robert Millan <rmh@gnu.org>
7364
7365 Enable `grub-probe -t device' resolution on ZFS.
7366
7367 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
7368 * include/grub/util/libnvpair.h: New file.
7369 * include/grub/util/libzfs.h: New file.
7370
7371 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
7372 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
7373 `<grub/util/libnvpair.h>'.
7374 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
7375
7376 (find_mount_point_from_dir): New static function.
7377 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
7378 function.
7379 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
7380 find_root_device_from_libzfs() before ressorting to find_root_device().
7381
7382 * include/grub/util/misc.h (grub_util_init_libzfs): New function
7383 prototype.
7384 * util/misc.c: Include `<grub/util/libzfs.h>'.
7385 (grub_util_init_libzfs): New function.
7386 [HAVE_LIBZFS] (libzfs_handle): New global variable.
7387 [HAVE_LIBZFS] (fini_libzfs): New static function.
7388 (grub_util_init_libzfs): New function.
7389 * util/grub-probe.c (main): Call grub_util_init_libzfs().
7390
7391 2010-07-30 Robert Millan <rmh@gnu.org>
7392
7393 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
7394 (xmalloc, xrealloc, xstrdup, xasprintf): Add
7395 `warn_unused_result' attribute.
7396 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
7397 (grub_xasprintf, grub_xvasprintf): Likewise.
7398 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
7399
7400 2010-07-29 Robert Millan <rmh@gnu.org>
7401
7402 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
7403 (probe): Handle `PRINT_FS_LABEL'.
7404 (main): Handle `-t fs_label'.
7405
7406 2010-07-29 Robert Millan <rmh@gnu.org>
7407
7408 * configure.ac: Remove grub-mkisofs checks.
7409
7410 2010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
7411
7412 * util/ieee1275/grub-install.in: Don't use empty grub_device.
7413 Reported by: Lennart Sorensen.
7414
7415 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
7416
7417 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
7418 prior to terminal_input/terminal_output separation. It's been over 1.5
7419 years and those versions weren't widely deployed.
7420
7421 2010-07-22 Colin Watson <cjwatson@ubuntu.com>
7422
7423 * disk/raid.c (insert_array): Don't count named arrays when looking
7424 for unused array numbers.
7425 Reported and tested by: Michael Guntsche.
7426
7427 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
7428
7429 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
7430 implementation of this so that grub-emu links again, with a note
7431 that this should support hotplugging in the future.
7432
7433 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
7434
7435 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
7436
7437 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
7438
7439 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
7440 handle on failure.
7441 (grub_loopback_close): Remove empty function.
7442 (grub_loopback_dev): Remove close method.
7443
7444 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
7445
7446 Disable EFI cursor when the EFI console becomes inactive.
7447
7448 * term/efi/console.c (grub_efi_console_init): New function.
7449 (grub_efi_console_fini): New function.
7450 (grub_console_term_output): Register init and fini methods.
7451
7452 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
7453
7454 * tests/util/grub-shell-tester.in: Remove bashism and declare as
7455 sh script.
7456
7457 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
7458
7459 * disk/loopback.c (grub_loopback): Replace filename with file.
7460 (delete_loopback): Handle new semantics.
7461 (grub_cmd_loopback): Likewise.
7462 (grub_loopback_iterate): Likewise.
7463 (grub_loopback_close): Likewise.
7464
7465 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
7466
7467 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
7468 with -p "".
7469 Reported by: Tito Keitel.
7470
7471 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
7472
7473 * docs/grub.texi (Naming convention): Document new naming convention.
7474
7475 2010-07-20 Vadim Solomin <vadic052@gmail.com>
7476 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
7477
7478 Generate device.map in something closer to the old ordering.
7479
7480 * util/deviceiter.c (struct device): New declaration.
7481 (compare_file_names): Rename to ...
7482 (compare_devices): ... this. Sort by kernel name in preference to
7483 the stable by-id name, but keep the latter as a fallback comparison.
7484 Update header comment.
7485 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
7486 of `struct device' rather than of plain file names.
7487
7488 2010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
7489
7490 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
7491 on i386.
7492
7493 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
7494
7495 * commands/acpi.c (setup_common_tables): Use sizeof instead of
7496 hardcoding size.
7497 (setv1table): Likewise.
7498
7499 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
7500
7501 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
7502 removing the homehost if present.
7503 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
7504 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
7505 removing the homehost if present.
7506 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
7507 if possible.
7508 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
7509
7510 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
7511 parameter. Set its pointer target to 0.
7512 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
7513 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
7514 `data_offset' value from the superblock for 1.x metadata.
7515 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
7516 data on the device.
7517 (insert_array): Record the start sector of data on the device.
7518 (grub_raid_register): Pass start_sector parameters to
7519 grub_raid_list->detect and insert_array.
7520 * include/grub/raid.h (struct grub_raid_array): Add start_sector
7521 member.
7522 (struct grub_raid): Add start_sector parameter to `detect'.
7523
7524 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
7525 __attribute__ ((packed)), leaving a comment.
7526 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
7527 (grub_mdraid_detect_09): ... here and ...
7528 (grub_mdraid_detect_1x): ... here.
7529
7530 2010-07-20 Peter Henn <peter.henn@web.de>
7531
7532 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
7533 chunk size and disk size, which are already given as sector counts
7534 as distinct from the 0.90 units. Fetch the correct device number
7535 from the role table instead of using the table index.
7536
7537 2010-07-20 Felix Zielcke <fzielcke@z-51.de>
7538
7539 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
7540 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
7541 (WriteMostly1): New macro.
7542 Set array->name to NULL for metadata format 0.90. Add support for
7543 metadata 1.x. Fix some comments.
7544 * disk/raid.c (): Add support for name based RAID arrays. Fix a
7545 few comments.
7546 * util/getroot.c (grub_util_get_grub_dev): Add support for
7547 /dev/md/name style devices.
7548
7549 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
7550
7551 * .bzrignore: Ignore 20_linux_xen.
7552
7553 2010-07-17 Colin Watson <cjwatson@ubuntu.com>
7554
7555 * util/import_unicode.py: Remove unnecessary imports.
7556
7557 2010-07-17 Aleš Nesrsta <starous@volny.cz>
7558
7559 Hotplugging and USB hub support.
7560
7561 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
7562 (grub_ohci): Likewise.
7563 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
7564 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
7565 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
7566 (GRUB_OHCI_CTRL_EDS): Likewise.
7567 (GRUB_OHCI_BULK_EDS): Likewise.
7568 (GRUB_OHCI_TDS): Likewise.
7569 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
7570 (grub_ohci_ed_phys2virt): New function.
7571 (grub_ohci_virt_to_phys): Likewise.
7572 (grub_ohci_td_phys2virt): Likewise.
7573 (grub_ohci_td_virt2phys): Likewise.
7574 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
7575 attachment.
7576 (grub_ohci_find_ed): New function.
7577 (grub_ohci_alloc_td): Likewise.
7578 (grub_ohci_free_td): Likewise.
7579 (grub_ohci_free_tds): Likewise.
7580 (grub_ohci_transfer): Use previously allocated memory.
7581 (grub_ohci_portstatus): Reset status changed bit.
7582 (grub_ohci_detect_dev): Supply status changed.
7583 (grub_ohci_fini_hw): Free memory.
7584 (grub_ohci_restore_hw): Reallocate memory.
7585 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
7586 Reset status change.
7587 (grub_uhci_detect_dev): Supply status_change.
7588 * bus/usb/usb.c (attach_hooks): New var.
7589 (grub_usb_device_attach): New function.
7590 (grub_usb_register_attach_hook_class): Likewise.
7591 (grub_usb_unregister_attach_hook_class): Likewise.
7592 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
7593 (grub_usb_add_hub): Reset connection changed bit.
7594 (attach_root_port): New function.
7595 (grub_usb_root_hub): Likewise.
7596 (poll_nonroot_hub): Likewise.
7597 (grub_usb_poll_devices): Likewise.
7598 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
7599 * disk/usbms.c (grub_usbms_open): Use device hooks.
7600 (grub_usbms_iterate) :Poll devices.
7601 (grub_usbms_finddevs): Split into ...
7602 (grub_usbms_attach): ... this ...
7603 (grub_usbms_attach): ... and this.
7604 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
7605 in detect_dev.
7606 (grub_usb_interface): New fields attached and detach_hook.
7607 (grub_usb_attach_hook_class): New type.
7608 (grub_usb_attach_desc): New struct.
7609 (grub_usb_register_attach_hook_class): New function.
7610 (grub_usb_unregister_attach_hook_class): Likewise.
7611 (grub_usb_poll_devices): Likewise.
7612 (grub_usb_device_attach): Likewise.
7613 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
7614 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
7615
7616 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
7617
7618 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
7619 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
7620 delta determination style. Works with most NetBSD partitions too.
7621
7622 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
7623
7624 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
7625 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
7626
7627 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
7628
7629 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
7630
7631 2010-07-14 Anton Blanchard <anton@samba.org>
7632
7633 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
7634 ET_DYN files.
7635
7636 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
7637
7638 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
7639
7640 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
7641
7642 * kern/partition.c (grub_partition_check_containment): New function to
7643 check that a partition is physically contained in a parent. Since
7644 offsets are relative (and non-negative), this reduces to checking that
7645 the partition ends before its parent.
7646 (grub_partition_map_probe): Discard out-of-range sub-partitions.
7647 (grub_partition_iterate): Likewise.
7648 * include/grub/partition.h (grub_partition_map): Slightly more detailed
7649 comments.
7650 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
7651 partitions that start before their parent, and add debug printfs.
7652
7653 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
7654
7655 * Makefile.in (.SUFFIX): Spell correctly, as ...
7656 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
7657 bare module name without `.mod', e.g. `test') tried to invoke a
7658 Modula-2 compiler.
7659
7660 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
7661
7662 * README: Point to the Info manual.
7663
7664 2010-07-13 Jiro SEKIBA <jir@unicus.jp>
7665
7666 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
7667 2nd superblock position from partition size.
7668
7669 2010-07-10 Colin Watson <cjwatson@ubuntu.com>
7670
7671 * Makefile.in (MAINTAINER_CLEANFILES): Remove
7672 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
7673 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
7674 outputs.
7675
7676 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
7677
7678 Restructure SCSI .id handling.
7679 Reported and tested by: Aleš Nesrsta.
7680
7681 * disk/ata.c (grub_atapi_close): Removed. All users updated.
7682 (grub_atapi_dev): Changed .name to "ata". New field .id.
7683 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
7684 (grub_usbms_dev): New field .id.
7685 * disk/scsi.c (grub_scsi_iterate): Generate name.
7686 (grub_scsi_open): Parse name.
7687 * include/grub/scsi.h (grub_make_scsi_id): New function.
7688 (grub_scsi_dev): Change iterate and open to number instead of naming
7689 busses. All users updated.
7690 (grub_scsi): Remove name. Add .bus.
7691
7692 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
7693
7694 * commands/help.c (grub_cmd_help): Fix a typo.
7695
7696 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
7697
7698 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
7699 Reported and tested by: Colin Watson.
7700
7701 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
7702
7703 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
7704 in this context.
7705
7706 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
7707
7708 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
7709
7710 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
7711
7712 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
7713 indentation.
7714
7715 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
7716
7717 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
7718 and disk/raid6_recover.c.
7719 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
7720 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
7721
7722 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
7723
7724 * term/gfxterm.c (repaint_schedulded): Rename to ...
7725 (repaint_scheduled): ... this. Update all callers.
7726 (repaint_was_schedulded): Rename to ...
7727 (repaint_was_scheduled): ... this. Update all callers.
7728
7729 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
7730
7731 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
7732 which we expect to be handled by upper layers.
7733
7734 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
7735
7736 * bus/usb/usbhub.c: #include time.h header.
7737
7738 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
7739
7740 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
7741 entry_name also for entries without stat blocks (e.g. ".."); fixes
7742 corruption of the first entry in a directory.
7743
7744 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
7745
7746 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
7747 after setting gfxterm as the active terminal. GRUB_BACKGROUND
7748 doesn't work otherwise.
7749
7750 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
7751
7752 * docs/grub.texi (Features): Update list of supported file systems.
7753 (GNU/Linux): Update for GRUB 2.
7754 (Serial terminal): Remove mention of --disable-serial, which was a
7755 GRUB Legacy configure option. Update instructions to use
7756 `terminal_input' and `terminal_output' rather than `terminal'.
7757 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
7758 configuration' and `Installing GRUB using grub-install'.
7759 (Menu entry editor): Update for GRUB 2.
7760 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
7761 Document new -a, -u, and -v options.
7762 (initrd): New section.
7763 (initrd16): New section.
7764 (linux): New section.
7765 (linux16): New section.
7766 (search): The `var' argument to `--set' is optional.
7767 (GRUB only offers a rescue shell): Go into a little more detail on
7768 drive ordering.
7769
7770 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
7771
7772 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
7773
7774 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
7775
7776 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
7777 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
7778
7779 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
7780
7781 * util/i386/pc/grub-setup.c (setup): Rename prefix to
7782 install_prefix, in line with install_dos_part and install_bsd_part.
7783 Add new prefix variable, which is copied to install_prefix after
7784 comparing core.img in memory with the one read from disk in the
7785 no-embedding case, and use that rather than overwriting
7786 install_prefix immediately when installing to a partition.
7787 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
7788 Bicakci.
7789
7790 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
7791
7792 * configure.ac: Avoid == in test command, it's not portable.
7793 * util/grub.d/30_os-prober.in: Likewise.
7794
7795 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
7796
7797 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
7798
7799 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
7800
7801 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
7802 multiple (top-level) partmaps.
7803
7804 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
7805
7806 * util/i386/efi/grub-install.in: Don't use empty grub_device.
7807 Reported by: Tino Keitel.
7808
7809 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
7810
7811 Bidi and diacritics support.
7812
7813 * Makefile.in (widthspec.bin): New target.
7814 (widthspec.h): Likewise.
7815 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
7816 * autogen.sh: Generate unidata.c.
7817 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
7818 * commands/ls.c (grub_ls_list_devices): Likewise.
7819 (grub_ls_list_files): Likewise.
7820 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
7821 (grub_mini_cmd_lsmod): Likewise.
7822 * commands/read.c: Likewise.
7823 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
7824 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
7825 * lib/arg.c (grub_arg_show_help): Likewise.
7826 * lib/crypto.c (grub_password_get): Likewise.
7827 * normal/auth.c (grub_username_get): Likewise.
7828 * normal/misc.c (grub_normal_print_device_info): Likewise.
7829 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
7830 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
7831 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
7832 (normal/charset.c_DEPENDENCIES): New variable.
7833 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
7834 (pkglib_MODULES): Remove charset.mod.
7835 (charset_mod_SOURCES): Removed.
7836 (charset_mod_CFLAGS): Likewise.
7837 (charset_mod_LDFLAGS): Likewise.
7838 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
7839 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
7840 and term/tparm.c.
7841 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
7842 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
7843 (kernel_img_HEADERS): Add terminfo.h.
7844 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
7845 Fill ->font. Reverse ascii bitmaps.
7846 (grub_font_get_xheight): New function.
7847 * font/font.c (grub_font_get_string_width): Moved from here ...
7848 * gfxmenu/font.c (grub_font_get_string_width): ... here.
7849 * font/font.c (grub_font_draw_string): Moved from here ...
7850 * gfxmenu/font.c (grub_font_draw_string): ... here.
7851 * font/font.c (grub_font_dup_glyph): New function.
7852 (grub_font_blit_glyph): Likewise.
7853 (grub_font_blit_glyph_mirror): Likewise.
7854 (blit_comb): Likewise.
7855 (grub_font_construct_dry_run): Likewise.
7856 (grub_font_get_constructed_device_width): Likewise.
7857 (grub_font_construct_glyph): Likewise.
7858 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
7859 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
7860 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
7861 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
7862 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
7863 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
7864 (grub_font_get_xheight): New proto.
7865 (grub_font_get_constructed_device_width): Likewise.
7866 (grub_font_construct_glyph): Likewise.
7867 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
7868 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
7869 * include/grub/font.h (grub_font_draw_string): Moved from here ...
7870 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
7871 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
7872 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
7873 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
7874 (grub_console_getcharwidth): Likewise.
7875 * include/grub/misc.h (grub_xputs): New proto.
7876 (grub_puts): Inlined.
7877 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
7878 (grub_normal_get_line_counter): Removed.
7879 (grub_install_newline_hook): Likewise.
7880 (grub_normal_get_char_counter): New proto.
7881 (grub_normal_reset_more): Likewise.
7882 (grub_xputs_normal): Likewise.
7883 * include/grub/powerpc/ieee1275/console.h: Removed.
7884 * include/grub/sparc64/ieee1275/console.h: Likewise.
7885 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
7886 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
7887 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
7888 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
7889 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
7890 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
7891 (grub_term_input): Pass reference to self. All users updated.
7892 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
7893 Pass reference to self. New fields normal_color, highlight_color and
7894 data. All users updated.
7895 (grub_putchar): Removed.
7896 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
7897 (grub_unicode_estimate_width): New function.
7898 (grub_term_getcharwidth): Add defaults.
7899 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
7900 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
7901 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
7902 (grub_cls): Remove EXPORT_FUNC.
7903 (grub_setcolorstate): Inline.
7904 (grub_newline_hook): Removed.
7905 * include/grub/terminfo.h: Rewritten. All users updated.
7906 * include/grub/unicode.h: New file.
7907 * include/grub/video.h (grub_video_signed_rect): New type.
7908 * kern/emu/console.c (grub_console_highlight_color): Removed.
7909 (grub_console_normal_color): Likewise.
7910 (grub_console_standard_color): Made static.
7911 (grub_ncurses_putchar): Remove mapping.
7912 (grub_ncurses_getcharwidth): Removed.
7913 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
7914 (grub_ncurses_setcolor): Removed.
7915 (grub_ncurses_getcolor): Likewise.
7916 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
7917 (grub_console_putchar): ... this.
7918 (grub_console_putchar): Handle argument difference.
7919 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
7920 console_init_early and console_init_lately.
7921 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
7922 * kern/misc.c (grub_puts): Removed.
7923 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
7924 (grub_vsnprintf_real): Remove str = NULL support.
7925 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
7926 * normal/charset.c (grub_utf8_to_ucs4): ... here.
7927 * kern/term.c (grub_putcode): Renamed to ...
7928 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
7929 (grub_putchar): Removed.
7930 (grub_xputs_dumb): New function.
7931 (grub_xputs): New variable.
7932 * lib/charset.c: Move from here ...
7933 * normal/charset.c: ... to here.
7934 (grub_ucs4_to_utf8): New function.
7935 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
7936 (join_types): New variable.
7937 (unpack_join): New function.
7938 (bidi_types): New variable.
7939 (unpack_bidi): New function.
7940 (get_bidi_type): Likewise.
7941 (get_join_type): Likewise.
7942 (is_mirrored): Likewise.
7943 (grub_unicode_get_comb_type): Likewise.
7944 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
7945 (is_type_after): Likewise.
7946 (grub_unicode_aglomerate_comb): Likewise.
7947 (bidi_line_wrap): Likewise.
7948 (grub_bidi_line_logical_to_visual): Likewise.
7949 (grub_bidi_logical_to_visual): Likewise.
7950 (grub_unicode_mirror_code): Likewise.
7951 (grub_unicode_shape_code): Likewise.
7952 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
7953 Don't use grub_putchar.
7954 * normal/main.c (grub_normal_init_page): Use grub_putcode.
7955 (grub_normal_reader_init): Likewise.
7956 (grub_xputs_saved): New variable.
7957 (GRUB_MOD_INIT): Set grub_xputs.
7958 (GRUB_MOD_FINI): Restore grub_xputs.
7959 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
7960 (menu_init): Avoid printing gfxmenu error.
7961 (show_menu): Use grub_normal_get_char_counter.
7962 * normal/menu_entry.c (update_screen): Fix out-of-array.
7963 (complete): Avoid NULL dereferencing.
7964 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
7965 * normal/menu_text.c (print_spaces): Removed.
7966 (grub_print_ucs4): Likewise.
7967 (grub_print_message_indented): Use grub_print_ucs4.
7968 (print_message): Use grub_putcode.
7969 (print_entry): Hanlde diacritics.
7970 * normal/term.c (term_state): New type.
7971 (grub_more_lines): Removed.
7972 (term_states): New variable.
7973 (grub_normal_line_counter): Renamed to ..
7974 (grub_normal_char_counter): ...this. All users updated.
7975 (grub_normal_get_line_counter): Renamed to ...
7976 (grub_normal_get_char_counter): ... this.
7977 (grub_normal_reset_more): New function.
7978 (process_newline): Removed.
7979 (print_more): New function.
7980 (grub_install_newline_hook): Removed.
7981 (map_code): New function.
7982 (grub_puts_terminal): Use grub_print_ucs4.
7983 (putglyph): New function.
7984 (putcode_real): Likewise.
7985 (grub_putcode): Use putcode_real.
7986 (get_maxwidth): New function.
7987 (get_startwidth): Likewise.
7988 (print_ucs4_terminal): Likewise.
7989 (find_term_state): Likewise.
7990 (put_glyphs_terminal): Likewise.
7991 (print_backlog): Likewise.
7992 (print_ucs4_real): Likewise.
7993 (grub_print_ucs4): Likewise.
7994 (grub_xputs_normal): Likewise.
7995 * term/efi/console.c (grub_console_putchar): Output diacritics.
7996 (grub_console_getcharwidth): Removed.
7997 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
7998 * term/gfxterm.c (clear_char): Free chars.
7999 (scroll_up): Avoid leaking memory.
8000 (grub_gfxterm_putchar): Support diacritics.
8001 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
8002 * term/i386/pc/console.c (grub_console_term_output): Declare as
8003 GRUB_TERM_CODE_TYPE_VGA.
8004 * term/i386/pc/vga.c (grub_vga_term): Declare as
8005 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
8006 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
8007 GRUB_TERM_CODE_TYPE_VGA.
8008 * term/i386/vga_common.c (map_char): Removed.
8009 (grub_console_putchar): Likewise.
8010 (grub_console_getcharwidth): Likewise.
8011 * term/ieee1275/ofconsole.c: Simplify using terminfo.
8012 (colors): Reordered to match terminfo.
8013 (grub_ofconsole_normal_color): Removed.
8014 (grub_ofconsole_writeesc): Likewise.
8015 (grub_ofconsole_highlight_color): Likewise.
8016 (grub_ofconsole_getcharwidth): Likewise.
8017 (grub_ofconsole_setcolorstate): Likewise.
8018 (grub_ofconsole_setcolor): Likewise.
8019 (grub_ofconsole_getcolor): Likewise.
8020 (grub_ofconsole_readkey): Renamed to ...
8021 (readkey): ... this. Remove escape sequence handling. Return -1 on no
8022 key.
8023 (grub_ofconsole_checkkey): Removed.
8024 (grub_ofconsole_getkey): Likewise.
8025 (grub_ofconsole_getxy): Likewise.
8026 (grub_ofconsole_gotoxy): Likewise.
8027 (grub_ofconsole_cls): Likewise.
8028 (grub_ofconsole_refresh): Likewise.
8029 (grub_ofconsole_terminfo_input): New struct.
8030 (grub_ofconsole_terminfo_output): Likewise.
8031 (grub_ofconsole_term_input): Use terminfo.
8032 (grub_ofconsole_term_output): Likewise.
8033 (grub_console_init): Split into ...
8034 (grub_console_init_early): ...this and ...
8035 (grub_console_init_lately): ...this. Use terminfo.
8036 (grub_ofconsole_putchar): Renamed to ...
8037 (put): ... this. Remove mapping.
8038 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
8039 * term/serial.c: Simplify using terminfo.
8040 (xpos): Removed.
8041 (ypos): Likewise.
8042 (keep_track): Likewise.
8043 (registered): Likewise.
8044 (input_buf): Likewise.
8045 (npending): Likewise.
8046 (serial_translate_key_sequence): Likewise.
8047 (fill_input_buf): Likewise.
8048 (grub_serial_checkkey): Likewise.
8049 (grub_serial_getkey): Likewise.
8050 (grub_serial_getxy): Likewise.
8051 (grub_serial_gotoxy): Likewise.
8052 (grub_serial_putchar): Likewise.
8053 (grub_serial_cls): Likewise.
8054 (grub_serial_setcolorstate): Likewise.
8055 (grub_serial_setcursor): Likewise.
8056 (serial_hw_init): Use serial_hw_fetch.
8057 (grub_serial_terminfo_input): New variable.
8058 (grub_serial_terminfo_output): Likewise.
8059 (grub_serial_term_input): Use terminfo.
8060 (grub_serial_term_output): Likewise.
8061 * term/terminfo.c (putstr): Use put.
8062 (grub_terminfo_all_free): New function
8063 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
8064 (grub_terminfo_output_register): New function.
8065 (grub_terminfo_output_unregister): Likewise.
8066 (grub_terminfo_getxy): Likewise.
8067 (grub_terminfo_readkey): Likewise.
8068 (grub_terminfo_checkkey): Likewise.
8069 (grub_terminfo_getkey): Likewise.
8070 (grub_terminfo_input_init): Likewise.
8071 (print_terminfo): Likewise.
8072 (grub_cmd_terminfo): Handle encoding.
8073 (grub_terminfo_gotoxy): Track position.
8074 (grub_terminfo_cls): Likewise.
8075 (grub_terminfo_putchar): Likewise.
8076 (grub_terminfo_setcolorstate): Handle colors
8077 (grub_terminfo_cursor_on): This ...
8078 (grub_terminfo_cursor_off): ... and this merged into ...
8079 (grub_terminfo_setcursor): ... this.
8080 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
8081 * unicode/ArabicShaping.txt: New file (imported from Unicode).
8082 * unicode/BidiMirroring.txt: Likewise.
8083 * unicode/UnicodeData.txt: Likewise.
8084 * unicode/COPYING: Likewise.
8085 * util/grub-editenv.c (grub_putchar): Removed.
8086 (grub_xputs_real): New function.
8087 (grub_xputs): New variable.
8088 * util/grub-fstest.c (grub_putchar): Removed.
8089 (grub_xputs_real): New function.
8090 (grub_xputs): New variable.
8091 * util/grub-mkdevicemap.c (grub_putchar): Removed.
8092 (grub_xputs_real): New function.
8093 (grub_xputs): New variable.
8094 * util/grub-probe.c (grub_putchar): Removed.
8095 (grub_xputs_real): New function.
8096 (grub_xputs): New variable.
8097 * util/grub-script-check.c (grub_putchar): Removed.
8098 (grub_xputs_real): New function.
8099 (grub_xputs): New variable.
8100 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
8101 (grub_xputs_real): New function.
8102 (grub_xputs): New variable.
8103 * util/import_unicode.py: New file.
8104 * util/grub-mkfont.c (ft_errmsgs): New array.
8105 (grub_glyph_info): Make bitmap a pointer.
8106 (file_formats): New type WIDTH_SPEC.
8107 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
8108 (options): Add width-spec.
8109 (help): Likewise.
8110 (add_char): Renamed to ...
8111 (add_glyph): ... this.
8112 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
8113 (glyph_replace): New type.
8114 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
8115 (add_char): New function.
8116 (add_subst): Likewise.
8117 (process_cursive): Likewise.
8118 (add_font): Handle GSUB.
8119 (write_font_width_spec): New function.
8120 (main): Sort glyphs.
8121 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
8122 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
8123 * kern/term.c (grub_cls): Moved from here...
8124 * normal/term.c (grub_cls): ... here.
8125
8126 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
8127
8128 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
8129 suitable for using within the format argument of printf when
8130 converting grub_size_t.
8131 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
8132 "x" to convert grub_size_t arguments.
8133
8134 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8135
8136 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
8137 too long captions.
8138 (list_get_minimal_size): Take selection box into account.
8139
8140 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8141
8142 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
8143 NULL font.
8144
8145 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
8146
8147 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
8148 devices when iterating over /dev/disk/by-id; they will be handled
8149 later if appropriate, which they aren't always (e.g. LVM).
8150
8151 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
8152
8153 * include/grub/misc.h (grub_reboot): Declare as noreturn.
8154 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
8155 fails.
8156 (grub_halt): Likewise.
8157 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
8158 reset-all fails.
8159 (grub_halt): Don't return, even if all of shut-down, power-off, and
8160 poweroff fail.
8161
8162 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
8163
8164 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
8165 arguments, not three.
8166
8167 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
8168
8169 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
8170 * util/grub.d/10_linux.in: Use it to check for LVM, so that
8171 LVM-on-RAID is handled correctly.
8172
8173 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
8174
8175 * docs/grub.texi (Changes from GRUB Legacy): New section.
8176 (Future): Fix typo.
8177
8178 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
8179
8180 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
8181 grub.d/README accidentally ends up executable for one reason or
8182 another. Ignore it.
8183
8184 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8185
8186 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
8187 (gpt_partition_map_iterate): Support non-512B sectors.
8188
8189 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8190
8191 * kern/efi/init.c (grub_efi_init): Disable watchdog.
8192 Tested by: Seth Goldberg.
8193
8194 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8195
8196 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
8197 Properly align mbi.
8198 Reported by: Seth Goldberg.
8199
8200 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
8201
8202 * util/grub-mkrescue.in: Avoid module duplication.
8203
8204 2010-07-01 Sean Finney <seanius@seanius.net>
8205
8206 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
8207
8208 2010-07-01 Sean Finney <seanius@seanius.net>
8209
8210 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
8211
8212 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
8213
8214 * disk/lvm.c (grub_lvm_checkvalue): New function.
8215 (grub_lvm_check_flag): Likewise.
8216
8217 2010-07-01 Robert Millan <rmh@gnu.org>
8218
8219 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
8220 Support 'p' as partition separator on kernel of FreeBSD (used
8221 with GPT labels).
8222 (grub_util_biosdisk_get_grub_dev): Likewise.
8223
8224 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
8225
8226 Yeeloong firmware port.
8227
8228 * boot/mips/yeeloong/fwstart.S: New file.
8229 * bus/cs5536.c (gpiodump): New const.
8230 (set_io_space): New function.
8231 (set_iod): Likewise.
8232 (set_p2d): Likewise.
8233 (grub_cs5536_init_geode): Likewise.
8234 * commands/mips/yeeloong/lsspd.c: New file.
8235 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
8236 (serial_mod_SOURCES): New variable.
8237 (serial_mod_CFLAGS): Likewise.
8238 (serial_mod_LDFLAGS): Likewise.
8239 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
8240 term/terminfo.c and term/tparm.c.
8241 (pkglib_IMAGES): Add fwstart.img.
8242 (fwstart_img_SOURCES): New variable.
8243 (fwstart_img_CFLAGS): Likewise.
8244 (fwstart_img_ASFLAGS): Likewise.
8245 (fwstart_img_LDFLAGS): Likewise.
8246 (fwstart_img_FORMAT): Likewise.
8247 (pkglib_MODULES): Add lsspd.mod.
8248 (lsspd_mod_SOURCES): New variable.
8249 (lsspd_mod_CFLAGS): Likewise.
8250 (lsspd_mod_LDFLAGS): Likewise.
8251 (pkglib_MODULES): Add halt.mod.
8252 (halt_mod_SOURCES): New variable.
8253 (halt_mod_CFLAGS): Likewise.
8254 (halt_mod_LDFLAGS): Likewise.
8255 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
8256 (serial_mod_SOURCES): Removed.
8257 (serial_mod_CFLAGS): Likewise.
8258 (serial_mod_LDFLAGS): Likewise.
8259 * disk/ata.c (check_device): New function.
8260 (grub_ata_device_initialize): Use check_device.
8261 (grub_ata_iterate): Recheck devices.
8262 (grub_ata_open): Likewise.
8263 (grub_atapi_iterate): Likewise.
8264 (grub_atapi_open): Likewise.
8265 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
8266 (GRUB_ATA_CH1_PORT1): Likewise.
8267 (GRUB_ATA_CH0_PORT2): Likewise.
8268 (GRUB_ATA_CH1_PORT2): Likewise.
8269 * include/grub/mips/loongson.h: New file.
8270 * include/grub/mips/yeeloong/ec.h: Likewise.
8271 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
8272 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
8273 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
8274 * include/grub/misc.h (grub_halt): Declare as noreturn.
8275 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
8276 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
8277 (UART_ENABLE_FIFO_TRIGGER1): New definition.
8278 (UART_ENABLE_DTRRTS): Likewise.
8279 (UART_ENABLE_MODEM): Removed.
8280 (UART_ENABLE_OUT2): New const.
8281 * include/grub/term.h (grub_term_register_input_active): New function.
8282 (grub_term_register_output_active): Likewise.
8283 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
8284 argument.
8285 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
8286 (init_pci): New function.
8287 (grub_machine_init): Execute platform init when firmware. Init serial.
8288 (grub_halt): Implement.
8289 (grub_exit): Likewise.
8290 (grub_reboot): Likewise.
8291 * term/serial.c (serial_hw_init): Update macros.
8292 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
8293 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
8294 (image_targets): New target mipsel-yeeloong-flash.
8295 (generate_image): Support IMAGE_YEELOONG_FLASH.
8296 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
8297 (grub_video_sm712_setup): Init card.
8298 (grub_video_sm712_set_palette): Removed.
8299 * video/sm712_init.c: New file.
8300
8301 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
8302
8303 * Makefile.in (install-local): Temporarily prepend $(builddir) to
8304 PATH when running help2man and then run it on the unadorned
8305 executable names, rather than passing $(builddir)/* paths to
8306 help2man. This avoids the build directory ending up in generated
8307 manual pages.
8308
8309 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
8310
8311 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
8312 to avoid accidents when debugging with 'sh -x'.
8313 * util/grub-mkrescue.in: Likewise.
8314 * util/grub.d/00_header.in: Likewise.
8315 * util/grub.d/10_hurd.in: Likewise.
8316 * util/grub.d/10_kfreebsd.in: Likewise.
8317 * util/grub.d/10_linux.in: Likewise.
8318 * util/grub.d/10_netbsd.in: Likewise.
8319 * util/grub.d/10_windows.in: Likewise.
8320 * util/grub.d/20_linux_xen.in: Likewise.
8321 * util/grub.d/30_os-prober.in: Likewise.
8322 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
8323
8324 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
8325
8326 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
8327 last character in the buffer.
8328 Reported by: Vladimir Serbinenko.
8329
8330 2010-06-29 Robert Millan <rmh@gnu.org>
8331
8332 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
8333 (Command-line and menu entry commands): Document `badram' command.
8334
8335 2010-06-28 Robert Millan <rmh@gnu.org>
8336
8337 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
8338 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
8339 command using ${GRUB_BADRAM} as parameter.
8340
8341 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
8342
8343 * docs/grub.texi (Device map): New section.
8344 (Themes): New section (stub).
8345 * Makefile.in (docs/grub.info): The info documentation now builds
8346 without errors. Make sure it stays that way.
8347
8348 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
8349
8350 Use normal parser for menu entries.
8351 Reported by: Thomas Frauendorfer
8352
8353 * include/grub/parser.h (grub_parser_execute): Don't export.
8354 * normal/menu.c (grub_menu_execute_entry_real): New function.
8355 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
8356
8357 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
8358
8359 * docs/grub.texi (Embedded configuration): New section (replacing
8360 old "Preset Menu" stub).
8361 (Images): New section.
8362 (configfile): Note that any menu entries defined in `file' are shown
8363 immediately.
8364
8365 2010-06-28 Josh Triplett <josh@joshtriplett.org>
8366
8367 * mmap/i386/pc/mmap_helper.S: Set CF on return.
8368
8369 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
8370
8371 * util/grub-install.in: Add --debug-image= option.
8372
8373 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
8374
8375 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
8376 possible on Linux.
8377
8378 * util/deviceiter.c (check_device): Rename to ...
8379 (check_device_readable_unique): ... this. Update all callers.
8380 Maintain and check a list of which devices (by canonicalized name)
8381 have already been seen.
8382 (clear_seen_devices): New function.
8383 (compare_file_names) [__linux__]: New function.
8384 (grub_util_iterate_devices): Clear the list of seen devices on exit
8385 and (just in case) on entry.
8386 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
8387 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
8388 seen-devices list, superseded by general code in check_device.
8389
8390 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
8391
8392 * commands/cat.c (options): New variable.
8393 (grub_cmd_cat): Parse options. If the --dos option is given, print
8394 DOS-style "\r\n" line endings as simple newlines (Debian bug
8395 #586358).
8396 (GRUB_MOD_INIT): Use extcmd.
8397 (GRUB_MOD_FINI): Likewise.
8398 * docs/grub.texi (cat): Document --dos.
8399
8400 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
8401
8402 XEN with Linux grub-mkconfig support.
8403
8404 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
8405 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
8406 GRUB_CMDLINE_XEN_DEFAULT.
8407 * util/grub.d/20_linux_xen.in: New file.
8408
8409 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
8410
8411 Initialise VGA video on qemu ourselves.
8412
8413 * boot/i386/qemu/boot.S: Don't call 0xc000.
8414 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
8415 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
8416 (kernel_img_HEADERS): Add pci.h.
8417 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
8418 * configure.ac: Force unifont on qemu and yeeloong.
8419 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
8420 (grub_vga_palette_write): Use correct register.
8421 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
8422 Call grub_qemu_init_cirrus.
8423 * kern/i386/qemu/init.c: New file.
8424 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
8425
8426 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
8427
8428 2010-06-26 Pavel Roskin <proski@gnu.org>
8429
8430 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
8431 13.
8432
8433 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
8434
8435 * docs/grub.texi (Simple configuration): Explain that
8436 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
8437 set to `true' to disable their respective recovery entries, not
8438 merely set.
8439
8440 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
8441
8442 Make the `source' command slightly faster.
8443
8444 * normal/main.c (grub_normal_execute): Don't re-read list files when
8445 nested.
8446
8447 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
8448
8449 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
8450 field position and mask size to red fields from mode_info, not
8451 green.
8452 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
8453 Remove redundant tag->common.framebuffer_type assignment.
8454 Reported by: Seth Goldberg.
8455
8456 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
8457
8458 Sync up other versions of the Linux loader with Robert Millan's
8459 change of 2010-01-09, "Make loader output a bit more user-friendly".
8460
8461 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
8462 grub_dprintf().
8463 (grub_cmd_linux): Likewise.
8464 (grub_cmd_initrd): Likewise.
8465 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
8466 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
8467
8468 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
8469
8470 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
8471 larger than MEMORY_MAP_SIZE.
8472
8473 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
8474
8475 Fix parallel build.
8476
8477 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
8478 dependency.
8479 * script/parser.y: #include grub_script.tab.h header.
8480
8481 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8482
8483 Support >3GiB and <16MiB RAM in i386-qemu.
8484
8485 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
8486 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
8487 (grub_lower_mem): Removed.
8488 (grub_upper_mem): Likewise.
8489 (mem_size): Made static.
8490 (above_4g): New variable.
8491 (grub_machine_mmap_init): Detect small mem_size and above_4g.
8492 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
8493 support.
8494
8495 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8496
8497 Cirrus 5446 and Bochs video cards support.
8498
8499 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
8500 video_bochs.mod
8501 (video_cirrus_mod_SOURCES): New variable.
8502 (video_cirrus_mod_CFLAGS): Likewise.
8503 (video_cirrus_mod_LDFLAGS): Likewise.
8504 (video_bochs_mod_SOURCES): Likewise.
8505 (video_bochs_mod_CFLAGS): Likewise.
8506 (video_bochs_mod_LDFLAGS): Likewise.
8507 * include/grub/vga.h: New file.
8508 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
8509 (grub_video_fb_set_page_t): New type.
8510 (grub_video_fb_setup): New prototype.
8511 (grub_video_fb_swap_buffers): Likewise.
8512 (grub_video_fb_get_info_and_fini): Likewise.
8513 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
8514 (CRTC_DATA_PORT): Likewise.
8515 (CRTC_CURSOR): Likewise.
8516 (CRTC_CURSOR_ADDR_HIGH): Likewise.
8517 (CRTC_CURSOR_ADDR_LOW): Likewise.
8518 (CRTC_CURSOR_DISABLE): Likewise.
8519 (update_cursor): Use grub_vga_cr_write.
8520 (grub_vga_text_setcursor): Likewise.
8521 * video/bochs.c: New file.
8522 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
8523 (palette): Likewise.
8524 (palette_size): Likewise.
8525 (framebuffer): New variable.
8526 (grub_video_fb_init): Use 'framebuffer'.
8527 (grub_video_fb_fini): Likewise.
8528 (grub_video_fb_get_info): Likewise.
8529 (grub_video_fb_get_palette): Likewise.
8530 (grub_video_fb_set_palette): Likewise.
8531 (grub_video_fb_set_viewport): Likewise.
8532 (grub_video_fb_get_viewport): Likewise.
8533 (grub_video_fb_map_color): Likewise.
8534 (grub_video_fb_map_rgb): Likewise.
8535 (grub_video_fb_map_rgba): Likewise.
8536 (grub_video_fb_unmap_color): Likewise.
8537 (grub_video_fb_unmap_color_int): Likewise.
8538 (grub_video_fb_fill_rect): Likewise.
8539 (grub_video_fb_blit_bitmap): Likewise.
8540 (grub_video_fb_blit_render_target): Likewise.
8541 (grub_video_fb_scroll): Likewise.
8542 (grub_video_fb_create_render_target): Likewise.
8543 (grub_video_fb_doublebuf_blit_init): Likewise.
8544 (grub_video_fb_set_active_render_target): Handle doublebuffering.
8545 (doublebuf_pageflipping_update_screen): New function.
8546 (doublebuf_pageflipping_init): Likewise.
8547 (grub_video_fb_setup): Likewise.
8548 (grub_video_fb_swap_buffers): Likewise.
8549 (grub_video_fb_get_info_and_fini): Likewise.
8550 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
8551 All users updated.
8552 (doublebuf_pageflipping_commit): Restructured into ...
8553 (doublebuf_pageflipping_set_page): ... this.
8554 (doublebuf_pageflipping_update_screen): Removed.
8555 (doublebuf_pageflipping_init): Likewise.
8556 (double_buffering_init): Likewise.
8557 (grub_video_vbe_setup): Use grub_video_fb_setup.
8558 (grub_video_vbe_swap_buffers): Removed.
8559 (grub_video_vbe_set_active_render_target): Likewise.
8560 (grub_video_vbe_get_active_render_target): Likewise.
8561 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
8562 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
8563 grub_video_fb_set_active_render_target and
8564 grub_video_fb_get_active_render_target.
8565 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
8566 (SEQUENCER_DATA_PORT): Likewise.
8567 (MAP_MASK_REGISTER): Likewise.
8568 (CRTC_ADDR_PORT): Likewise.
8569 (CRTC_DATA_PORT): Likewise.
8570 (START_ADDR_HIGH_REGISTER): Likewise.
8571 (START_ADDR_LOW_REGISTER): Likewise.
8572 (GRAPHICS_ADDR_PORT): Likewise.
8573 (GRAPHICS_DATA_PORT): Likewise.
8574 (READ_MAP_REGISTER): Likewise.
8575 (INPUT_STATUS1_REGISTER): Likewise.
8576 (INPUT_STATUS1_VERTR_BIT): Likewise.
8577 (get_map_mask): Use grub_vga_sr_read.
8578 (set_map_mask): Use grub_vga_sr_write.
8579 (set_read_map): Use grub_vga_gr_write.
8580 (set_start_address): Use grub_vga_cr_write.
8581 * video/sm712.c (framebuffer): Remove leftover fields.
8582
8583 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
8584
8585 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
8586 setting GRUB_VIDEO_BACKEND. Make it available as a user override
8587 instead. Replace the gfxterm backend check with a check that
8588 ${GRUB_PREFIX}/video.lst is non-empty.
8589 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
8590 again.
8591 (load_video): New generated function. Call it before loading
8592 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
8593 * util/grub.d/10_linux.in (linux_entry): Call load_video.
8594 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
8595 * docs/grub.texi (Simple configuration): Document
8596 GRUB_VIDEO_BACKEND.
8597
8598 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8599
8600 Use video functions in linux and xnu loaders.
8601
8602 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
8603 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
8604 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
8605 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
8606 loader/i386/pc/linux.c.
8607 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
8608 (find_line_len): Removed.
8609 (find_framebuf): Likewise.
8610 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
8611 * loader/i386/efi/xnu.c: Removed.
8612 * loader/i386/pc/xnu.c: Moved from here...
8613 * loader/i386/xnu.c: ...here.
8614
8615 Enable priorities in video drivers.
8616
8617 * include/grub/video.h (grub_video_adapter_prio_t): New type.
8618 (grub_video_adapter): New field prio.
8619 (grub_video_register): Respect prio when inserting.
8620 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
8621 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
8622 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
8623 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
8624 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
8625 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
8626 * video/sm712.c (grub_video_sm712_adapter): Likewise.
8627
8628 Fix SDL driver ID.
8629
8630 * include/grub/video.h (grub_video_driver_id_t): New value
8631 GRUB_VIDEO_DRIVER_SDL.
8632 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
8633
8634 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
8635
8636 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
8637 argument to printf.
8638 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
8639
8640 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
8641
8642 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
8643 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
8644
8645 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
8646
8647 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
8648 directly, and recommend grub-install instead.
8649 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
8650
8651 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
8652
8653 Fix i386-pc prefix handling with nested partitions (Debian bug
8654 #585068). Note that the case where the core image is booted using
8655 multiboot and relocated from its original location still requires
8656 more work.
8657
8658 * kern/i386/pc/init.c (make_install_device): If the prefix starts
8659 with "(,", fill the boot drive in between those two characters, but
8660 expect that a full partition specification including partition map
8661 names will follow.
8662 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
8663 specified, write a prefix without the drive name but including a
8664 full partition specification.
8665
8666 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
8667
8668 * util/grub-mkconfig.in: Ignore non-option arguments, for
8669 compatibility with older versions (before 2010-06-12) which did the
8670 same. In particular, this makes it easier to ship an update-grub
8671 wrapper which is compatible with that used with GRUB Legacy (Debian
8672 bug #586056).
8673
8674 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
8675
8676 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
8677 for manual page generation.
8678
8679 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
8680
8681 * po/POTFILES: Remove leftover commands/handler.c.
8682
8683 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
8684
8685 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
8686 left this script non-functional.
8687
8688 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
8689
8690 * docs/man/grub-emu.h2m: New file.
8691
8692 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
8693
8694 * docs/grub.texi (Commands): Document reduced command set in rescue
8695 mode.
8696 (cpuid): New section.
8697
8698 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
8699
8700 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
8701 new partition naming style.
8702 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
8703
8704 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
8705
8706 Add "-o grub.iso" like cmdline options support.
8707
8708 * util/grub-install.in: Improve cmdline option parsing.
8709 * util/grub-mkconfig.in: Likewise.
8710 * util/grub-mkrescue.in: Likewise.
8711 * util/grub-reboot.in: Likewise.
8712 * util/grub-set-default.in: Likewise.
8713 * util/i386/efi/grub-install.in: Likewise.
8714 * util/ieee1275/grub-install.in: Likewise.
8715 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
8716
8717 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
8718
8719 * .bzrignore: Ignore 41_custom.
8720
8721 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
8722
8723 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
8724
8725 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
8726
8727 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
8728 prototype declarations.
8729
8730 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
8731 generating fs, partmap, and video lists.
8732 * include/grub/fs.h (grub_fs_register): Omit prototype if
8733 GRUB_LST_GENERATOR is defined.
8734 * include/grub/partition.h (grub_partition_map_register): Likewise.
8735 * include/grub/video.h (grub_video_register): Likewise.
8736
8737 2010-06-12 Javier Martín <lordhabbit@gmail.com>
8738
8739 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
8740
8741 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
8742
8743 * util/grub-mkrescue.in: Support --xorriso argument.
8744
8745 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
8746
8747 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
8748 Suggested by: Thomas Schmitt.
8749
8750 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
8751
8752 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
8753 Suggested by: Thomas Schmitt.
8754
8755 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
8756
8757 custom.cfg support.
8758
8759 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
8760 * util/grub.d/41_custom.in: New file.
8761
8762 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
8763
8764 * util/grub-mkrescue.in (make_image): Remove sh module, which has
8765 been merged back into normal.
8766
8767 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
8768
8769 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
8770 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
8771
8772 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
8773
8774 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
8775 when generating manual pages.
8776 * docs/man/grub-bin2h.h2m: New file.
8777 * docs/man/grub-editenv.h2m: New file.
8778 * docs/man/grub-fstest.h2m: New file.
8779 * docs/man/grub-install.h2m: New file.
8780 * docs/man/grub-macho2img.h2m: New file.
8781 * docs/man/grub-mkconfig.h2m: New file.
8782 * docs/man/grub-mkdevicemap.h2m: New file.
8783 * docs/man/grub-mkfont.h2m: New file.
8784 * docs/man/grub-mkimage.h2m: New file.
8785 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
8786 * docs/man/grub-mkrelpath.h2m: New file.
8787 * docs/man/grub-mkrescue.h2m: New file.
8788 * docs/man/grub-ofpathname.h2m: New file.
8789 * docs/man/grub-pe2elf.h2m: New file.
8790 * docs/man/grub-probe.h2m: New file.
8791 * docs/man/grub-reboot.h2m: New file.
8792 * docs/man/grub-script-check.h2m: New file.
8793 * docs/man/grub-set-default.h2m: New file.
8794 * docs/man/grub-setup.h2m: New file.
8795
8796 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
8797
8798 Use FOR_* macros instead of *_iterate whenever possible.
8799
8800 * commands/handler.c: Removed.
8801 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
8802 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
8803 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
8804 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
8805 (grub_probe_SOURCES): Remove kern/parser.c.
8806 (util/grub-script-check.c_DEPENDENCIES): Removed.
8807 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
8808 and grub_script_check_init.c.
8809 (grub_script_check_init.lst): Removed.
8810 (grub_script_check_init.h): Likewise.
8811 (grub_script_check_init.c): Likewise.
8812 (pkglib_MODULES): Remove handler.mod and sh.mod.
8813 (handler_mod_SOURCES): Removed.
8814 (handler_mod_CFLAGS): Likewise.
8815 (handler_mod_LDFLAGS): Likewise.
8816 (normal_mod_SOURCES): Remove normal/handler.c.
8817 Add script/main.c, script/script.c, script/execute.c,
8818 script/function.c, script/lexer.c, grub_script.tab.c
8819 and grub_script.yy.c.
8820 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
8821 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
8822 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
8823 (grub_setup_SOURCES): Remove kern/parser.c.
8824 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
8825 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
8826 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
8827 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
8828 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
8829 (grub_setup_SOURCES): Remove kern/parser.c.
8830 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
8831 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
8832 * include/grub/command.h (grub_command_iterate): Removed.
8833 (FOR_COMMANDS): New macro.
8834 * include/grub/dl.h (grub_dl): New member next.
8835 (grub_dl_iterate): Removed.
8836 (grub_dl_head): New variable declaration.
8837 (FOR_DL_MODULES): New macro.
8838 * include/grub/fs.h: Include list.h.
8839 (grub_fs): Make next first element.
8840 (grub_fs_list): New variable declaration.
8841 (grub_fs_register): Make inline.
8842 (grub_fs_unregister): Likewise.
8843 (grub_fs_iterate): Removed.
8844 (FOR_FILESYSTEMS): New macro.
8845 * include/grub/handler.h: Removed.
8846 * include/grub/list.h (grub_list_hook_t): Removed.
8847 (grub_list_test_t): Likewise.
8848 (grub_list_pop): Likewise.
8849 (grub_list_iterate): Likewise.
8850 (grub_list_insert): Likewise.
8851 (FOR_LIST_ELEMENTS): New macro.
8852 * include/grub/parser.h (grub_parser_class): Removed.
8853 (grub_parser_register): Likewise.
8854 (grub_parser_unregister): Likewise.
8855 (grub_parser_get_current): Likewise.
8856 (grub_parser_set_current): Likewise.
8857 (grub_register_rescue_parser): Likewise.
8858 (grub_rescue_parse_line): New function.
8859 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
8860 * include/grub/script_sh.h (grub_script_function_list): New variable
8861 declaration.
8862 (FOR_SCRIPT_FUNCTIONS): New macro.
8863 (grub_script_function_iterate): Removed.
8864 (grub_normal_parse_line): New prototype.
8865 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
8866 (FOR_DISABLED_TERM_INPUTS): Likewise.
8867 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
8868 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
8869 * include/grub/video.h (grub_video_adapter): Move 'next' to first
8870 element.
8871 (grub_video_register): Inline.
8872 (grub_video_unregister): Likewise.
8873 (grub_video_adapter_list): New variable declaration.
8874 (grub_video_iterate): Removed.
8875 (FOR_VIDEO_ADAPTERS): New macro.
8876 * kern/dl.c (grub_dl_list): Removed. All users updated.
8877 (grub_dl_iterate): Removed.
8878 * kern/fs.c (grub_fs_list): Make global.
8879 (grub_fs_register): Removed.
8880 (grub_fs_unregister): Likewise.
8881 (grub_fs_iterate): Likewise.
8882 * kern/handler.c: Removed.
8883 * kern/list.c (grub_list_pop): Removed.
8884 (grub_list_iterate): Likewise.
8885 (grub_list_insert): Likewise.
8886 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
8887 (grub_prio_list_insert): Don't use grub_list_insert.
8888 * kern/main.c (grub_register_rescue_parser): Don't call
8889 grub_register_rescue_parser.
8890 * kern/parser.c (grub_parser_class): Removed.
8891 (grub_parser_execute): Use grub_rescue_parse_line.
8892 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
8893 (grub_rescue_parser): Removed.
8894 (grub_register_rescue_parser): Likewise.
8895 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
8896 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
8897 (grub_auth_check_authentication): Likewise.
8898 * normal/completion.c (iterate_command): Removed.
8899 (grub_normal_do_completion): Use FOR_COMMANDS.
8900 * normal/handler.c: Removed.
8901 * normal/main.c (read_config_file): Remove parser changing.
8902 (grub_normal_execute): Don't call read_handler_list.
8903 (grub_normal_read_line_real): Statically allocate prompt.
8904 (grub_cmdline_run): Use grub_normal_parse_line.
8905 (GRUB_MOD_FINI): Don't call free_handler_list.
8906 * normal/menu_entry.c (run): Likewise.
8907 * script/function.c (grub_script_function_list): Make global.
8908 (grub_script_function_iterate): Removed.
8909 * script/main.c (grub_normal_parse_line): Make global.
8910 (grub_sh_parser): Removed.
8911 (GRUB_MOD_INIT): Likewise.
8912 (GRUB_MOD_FINI): Likewise.
8913 * tests/lib/functional_test.c (grub_functional_test): Use
8914 FOR_LIST_ELEMENTS.
8915 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
8916 (grub_test_run): Use FOR_LIST_ELEMENTS.
8917 * tests/lib/unit_test.c (main): Likewise.
8918 * util/deviceiter.c (grub_util_iterate_devices): Don't use
8919 grub_list_pop.
8920 * util/grub-fstest.c (grub_term_input_class): Removed.
8921 (grub_term_output_class): Likewise.
8922 * util/grub-probe.c: Likewise.
8923 * util/i386/pc/grub-setup.c: Likewise.
8924 * util/sparc64/ieee1275/grub-setup.c: Likewise.
8925 * util/grub-script-check.c (main): Don't call grub_init_all and
8926 grub_fini_all.
8927 * video/video.c (grub_video_adapter_list): Make global.
8928 (grub_video_register): Removed.
8929 (grub_video_unregister): Likewise.
8930 (grub_video_iterate): Likewise.
8931
8932 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
8933
8934 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
8935 reported by Henrique Ferreiro.
8936
8937 2010-06-09 Robert Millan <rmh@gnu.org>
8938
8939 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
8940 ones, when both are available.
8941
8942 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
8943
8944 Make --version uniform and avoid hard-coded program name.
8945
8946 * util/grub-mkimage.c (main): Use `program_name' instead of
8947 hard-coded string.
8948 * util/i386/pc/grub-setup.c (main): Likewise.
8949 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
8950 * util/grub-install.in: Save the basename of $0 in $self, and use the
8951 latter in informational messages. Use the same format for --version
8952 as the binary programs.
8953 * util/grub-mkconfig.in: Likewise.
8954 * util/grub-mkrescue.in: Likewise.
8955 * util/grub-reboot.in: Likewise.
8956 * util/grub-set-default.in: Likewise.
8957 * util/i386/efi/grub-install.in: Likewise.
8958 * util/ieee1275/grub-install.in: Likewise.
8959 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
8960
8961 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
8962
8963 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
8964 embedding area. Use <= instead of == when checking for non-emptiness.
8965
8966 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
8967
8968 * configure.ac: Add `.' to the directories searched for unifont.
8969
8970 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
8971
8972 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
8973 grub_script.yy.h.
8974
8975 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
8976
8977 * docs/grub.texi (History): Expand to cover GRUB 2.
8978 (Serial terminal): Refer to `terminal_input' and `terminal_output'
8979 commands, not `terminal'.
8980 (serial): Likewise.
8981 (terminal_input): New section.
8982 (terminal_output): New section.
8983 (uppermem): New section (stub).
8984 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
8985
8986 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
8987
8988 * docs/grub.texi (Security): Menu entries are unrestricted by
8989 default, not restricted to superusers as I had previously thought.
8990 Reword to account for this.
8991
8992 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
8993
8994 * kern/emu/misc.c (device_mapper_null_log): New function.
8995 (grub_device_mapper_supported): New function.
8996 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
8997 prototype.
8998 * kern/emu/hostdisk.c (find_partition_start): Check whether
8999 device-mapper is supported before trying to use it.
9000 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
9001
9002 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
9003
9004 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
9005 (File name syntax): Likewise.
9006 (help): --all is no longer supported in GRUB 2. Be more precise
9007 about pattern matching.
9008
9009 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
9010
9011 * normal/completion.c (grub_normal_do_completion): When completing
9012 arguments to "set" and the current word contains an equals sign,
9013 skip to after the equals sign before starting completion.
9014
9015 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
9016
9017 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
9018
9019 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
9020
9021 * docs/grub.texi (Network): New section.
9022 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
9023 `(nd)' as in GRUB Legacy.
9024 (pxe_unload): New section.
9025
9026 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
9027
9028 * docs/grub.texi (Troubleshooting): `echo' is not usually available
9029 in the rescue shell, so recommend using `set' instead. Thanks,
9030 Jordan Uggla.
9031
9032 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
9033
9034 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
9035 (password): New section.
9036 (password_pbkdf2): New section.
9037 (search): New section.
9038 (Security): New section.
9039 (Troubleshooting): New section, currently very incomplete.
9040 (Invoking grub-mkpasswd-pbkdf2): New section.
9041 (Internals): New section, currently very incomplete.
9042
9043 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
9044
9045 * util/grub.d/00_header.in: Add some more quoting (of
9046 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
9047 work again.
9048 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
9049
9050 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
9051
9052 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
9053 to `count', fixing variable shadowing that broke the -c option.
9054
9055 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
9056
9057 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
9058 in case they contain spaces.
9059
9060 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
9061
9062 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
9063 "part_" to partmap module names, in line with grub-install.
9064 Reported by: Jindřich Makovička (Debian bug #584426).
9065
9066 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
9067
9068 * util/grub-mkimage.c: Make target-related error messages slightly
9069 more helpful; -O talks about "format". Explicitly point to the use
9070 of -O if no target is specified.
9071 Reported by: Didier Raboud (Debian bug #584415).
9072
9073 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
9074
9075 * INSTALL: Document several build requirements for optional features
9076 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
9077
9078 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
9079
9080 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
9081 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
9082 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
9083
9084 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
9085
9086 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
9087 Thanks to Jordan Uggla for spotting this.
9088
9089 2010-06-02 Aleš Nesrsta <starous@volny.cz>
9090
9091 Finally make USB usable.
9092
9093 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
9094 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
9095 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
9096 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
9097 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
9098 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
9099 (GRUB_OHCI_FSMPS): Likewise.
9100 (GRUB_OHCI_PERIODIC_START): Likewise.
9101 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
9102 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
9103 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
9104 (GRUB_OHCI_SET_PORT_RESET): Likewise.
9105 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
9106 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
9107 (grub_ohci_transaction): Likewise.
9108 (grub_ohci_transfer): Improve condition detection algorithms.
9109 Handle toggle property. Program the transactions correctly.
9110 Improve error handling. Various important fixups.
9111 (grub_ohci_portstatus): Put register writes in right order.
9112 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
9113 (grub_uhci_transfer): Don't show "failed" message on success.
9114 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
9115 array.
9116 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
9117 determine its size.
9118 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
9119 before initialization is completed. Use IN direction for empty
9120 transfers. Use last_trans and compute toggle.
9121 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
9122 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
9123 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
9124 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
9125 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
9126 (grub_usb_device): Increase toggle to 256.
9127 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
9128 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
9129 GRUB_USBMS_SUBCLASS_SFF8070.
9130 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
9131 (grub_scsi_inquiry): New member page and alloc_length.
9132 (grub_scsi_request_sense): New structure.
9133 (grub_scsi_request_sense_data): Likewise.
9134 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
9135 control.
9136 * disk/scsi.c (grub_scsi_request_sense): New function.
9137 (grub_scsi_test_unit_ready): Likewise.
9138 (grub_scsi_inquiry): Fill new fields.
9139 (grub_scsi_read_capacity): Likewise.
9140 (grub_scsi_read10): Add request sense at the end.
9141 (grub_scsi_read12): Likewise.
9142 (grub_scsi_write10): Likewise.
9143 (grub_scsi_write12): Likewise.
9144 (grub_scsi_open): Add Test Unit Ready.
9145 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
9146 Support additional subclasses. Con't clear halt yet. Activate the
9147 proper config. Calculate LUNs correctly.
9148 (grub_usbms_transfer): Various important fixups.
9149
9150 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9151
9152 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
9153 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
9154 (grub_ohci_fini_hw): New function.
9155 (grub_ohci_restore_hw): Likewise.
9156 (GRUB_MOD_INIT(ohci)): Register preboot hook.
9157 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
9158 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
9159
9160 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9161
9162 Dedicated DMA allocations.
9163
9164 * bus/pci.c (grub_memalign_dma32): New function
9165 (grub_dma_free): Likewise.
9166 (grub_dma_get_virt): Likewise.
9167 (grub_dma_get_phys): Likewise.
9168 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
9169 (grub_ohci_pci_iter): Use dma32_alloc.
9170 (grub_ohci_transfer): Likewise.
9171 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
9172 (grub_usb_bulk_readwrite): Likewise.
9173 * include/grub/pci.h: Add declarations.
9174
9175 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9176
9177 CS5536 support.
9178
9179 * bus/cs5536.c: New file.
9180 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
9181 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
9182 (cs5536_mod_SOURCES): New variable.
9183 (cs5536_mod_CFLAGS): Likewise.
9184 (cs5536_mod_LDFLAGS): Likewise.
9185 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
9186 machine/pci.h.
9187 (kernel_img_SOURCES): Add bus/cs5536.c.
9188 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
9189 usb_keyboard.mod.
9190 (usb_mod_SOURCES): New variable.
9191 (usb_mod_CFLAGS): New variable.
9192 (usb_mod_LDFLAGS): New variable.
9193 (usbtest_mod_SOURCES): New variable.
9194 (usbtest_mod_CFLAGS): New variable.
9195 (usbtest_mod_LDFLAGS): New variable.
9196 (ohci_mod_SOURCES): New variable.
9197 (ohci_mod_CFLAGS): New variable.
9198 (ohci_mod_LDFLAGS): New variable.
9199 (usbms_mod_SOURCES): New variable.
9200 (usbms_mod_CFLAGS): New variable.
9201 (usbms_mod_LDFLAGS): New variable.
9202 (usb_keyboard_mod_SOURCES): New variable.
9203 (usb_keyboard_mod_CFLAGS): New variable.
9204 (usb_keyboard_mod_LDFLAGS): New variable.
9205 * include/grub/smbus.h: New file.
9206 * include/grub/cs5536.h: New file.
9207
9208 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
9209
9210 * util/grub.d/00_header.in: Add safety check to make sure that
9211 ${locale_dir} exists before trying to probe it.
9212
9213 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
9214
9215 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
9216 per the GNU Coding Standards; this is now too obscure to be worth
9217 documenting.
9218 (QNX): Likewise.
9219 (chainloader): Remove cross-reference to `SCO UnixWare'.
9220
9221 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
9222
9223 * docs/grub.texi (Chain-loading): New section.
9224 (DOS/Windows): New section, borrowed from GRUB Legacy with details
9225 adjusted for GRUB 2.
9226 (SCO UnixWare): Likewise.
9227 (QNX): Likewise.
9228 (chainloader): Add reference to `Block list syntax'.
9229 (drivemap): New section.
9230 (parttool): New section.
9231
9232 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
9233
9234 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
9235 the grub shell'.
9236 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
9237 (Installing GRUB using grub-install): Remove reference to the grub
9238 shell; mention `grub-mkimage' and `grub-setup' instead.
9239 (Invoking grub-install): Likewise.
9240 (Interface): Add reference to `Menu entry editor'.
9241 (serial): Remove `--device' option.
9242
9243 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
9244
9245 * docs/grub.texi (Configuration): New section, documenting
9246 configuration file generation using grub-mkconfig. I've left a slot
9247 for documenting the full shell scripting format but have not yet
9248 started on writing that up.
9249 (Invoking grub-mkconfig): New section.
9250
9251 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
9252
9253 * docs/grub.texi (direntry): Remove grub-terminfo reference.
9254 (GNU GRUB manual): Likewise.
9255 (General commands): Update description of `terminfo' for GRUB 2.
9256
9257 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
9258
9259 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
9260 (GRUB_MOD_INIT): Fix capitalisation.
9261 * docs/grub.texi (Command-line and menu entry commands): Document
9262 gettext and gptsync commands.
9263
9264 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
9265
9266 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
9267 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
9268
9269 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
9270
9271 Add btrfs probing support, currently only in the single-device case.
9272
9273 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
9274 function.
9275 (grub_guess_root_device): Call find_root_device_from_mountinfo
9276 before looking in /dev.
9277
9278 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9279
9280 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
9281 GRUB_DISK_SIZE_UNKNOWN.
9282 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
9283
9284 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
9285
9286 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
9287 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
9288 corrupted or not synced properly.
9289
9290 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9291
9292 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
9293 Reported by: Seth Goldberg.
9294
9295 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9296
9297 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
9298 addition of dest.
9299 Reported by: Seth Goldberg.
9300
9301 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9302
9303 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
9304 Reported by: Seth Goldberg.
9305
9306 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9307
9308 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
9309 64-bit address as signed on MIPS.
9310
9311 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
9312
9313 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
9314 to the empty string.
9315
9316 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
9317
9318 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
9319
9320 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
9321 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
9322 * kern/misc.c (__enable_execute_stack): Disable on
9323 GRUB_MACHINE_EMU.
9324
9325 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
9326
9327 Make grub-probe work with symbolic links under /dev/mapper as well
9328 as with real block devices. The Linux world seems to be (at best)
9329 in transition here, and GRUB shouldn't get caught in the middle.
9330
9331 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
9332 /dev/mapper.
9333
9334 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
9335
9336 * util/grub-script-check.c (main): Ensure defined behaviour on empty
9337 input files (in which case exit zero).
9338
9339 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
9340
9341 * kern/emu/misc.c (canonicalize_file_name): realpath can still
9342 return NULL for various reasons even if it has a maximum-length
9343 buffer: for example, there might be a symlink loop, or the path
9344 might exceed PATH_MAX. If this happens, return NULL.
9345
9346 2010-05-27 Robert Millan <rmh@gnu.org>
9347
9348 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
9349 partmap module to handle cross-partmap setups.
9350 Reported by Orestes Mas. Gràcies!
9351
9352 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
9353
9354 * util/grub-mkrescue.in: Initialise override_dir rather than
9355 assuming that it's unset or empty in the environment.
9356
9357 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
9358
9359 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
9360 variable index into p_index to suppress a warning with -Wshadow.
9361
9362 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
9363
9364 * INSTALL: Added flex >= 2.5.35 requirement.
9365
9366 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
9367
9368 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
9369
9370 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
9371
9372 cmostest support.
9373
9374 * commands/i386/cmostest.c: New file.
9375 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
9376 (cmostest_mod_SOURCES): New variable.
9377 (cmostest_mod_CFLAGS): Likewise.
9378 (cmostest_mod_LDFLAGS): Likewise.
9379 * conf/i386-pc.rmk: Likewise.
9380 * docs/grub.texi (Vendor power-on keys): New section.
9381 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
9382 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
9383 and GRUB_BUTTON_CMOS_ADDRESS.
9384 * util/grub.d/00_header.in: Handle powering-on by separate button.
9385
9386 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
9387
9388 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
9389 Removed drawing_scrollbar argument. All users updated
9390 Fixes #29792.
9391 Reported by Jo Shields
9392
9393 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
9394
9395 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
9396 buffer since gfxterm handles double repaint.
9397
9398 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
9399
9400 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
9401 * term/gfxterm.c (real_scroll): Likewise.
9402
9403 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
9404
9405 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
9406 before calling BIOS.
9407
9408 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
9409
9410 * include/grub/i18n.h: Always enable grub_gettext.
9411
9412 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
9413
9414 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
9415 partition naming style.
9416
9417 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
9418
9419 * util/grub-mkconfig.in: Fix handling of -o so that it works when
9420 not the first option.
9421
9422 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
9423
9424 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
9425
9426 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
9427
9428 * util/misc.c: Move inclusion of <limits.h> to ...
9429 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
9430
9431 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
9432
9433 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
9434 Fix merge error in NetBSD code.
9435 (find_partition_start) [__NetBSD__]: Likewise.
9436
9437 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
9438
9439 Fix grub-mkrescue usage unit testing.
9440
9441 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
9442
9443 2010-05-18 Christian Franke <franke@computer.org>
9444
9445 * util/grub.d/10_windows.in: Use path names instead of
9446 drive letters to prevent warning from Cygwin 1.7.
9447 Add drivemap command to menuentry if needed.
9448
9449 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
9450
9451 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
9452 gnumach and gnumach.gz.
9453
9454 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
9455
9456 * include/grub/i18n.h (gettext): Inline instead of using #define.
9457 (grub_gettext): Likewise.
9458 (_): Likewise.
9459
9460 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
9461
9462 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
9463 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
9464 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
9465 (main): Add a slash after pkglibdirroot.
9466
9467 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
9468
9469 * util/grub-install.in: Add missing "in" keyword.
9470
9471 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
9472
9473 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
9474 Reported by: Seth Goldberg.
9475
9476 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
9477
9478 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
9479
9480 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
9481
9482 * configure.ac: Check for Linux device-mapper support.
9483
9484 * util/hostdisk.c (device_is_mapped): New function.
9485 (find_partition_start): New function, partly broken out from
9486 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
9487 device-mapper support added.
9488 (linux_find_partition): Use find_partition_start.
9489 (convert_system_partition_to_system_disk): Add `st' argument.
9490 Support Linux /dev/mapper/* devices if device-mapper support is
9491 available; only DM-RAID devices are understood at present.
9492 (find_system_device): Add `st' argument. Pass it to
9493 convert_system_partition_to_system_disk.
9494 (grub_util_biosdisk_get_grub_dev): Pass stat result to
9495 find_system_device and convert_system_partition_to_system_disk. Use
9496 find_partition_start.
9497
9498 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
9499 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
9500 * util/deviceiter.c [__linux__]: Define MINOR.
9501 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
9502 * util/mkdevicemap.c (grub_putchar): New function.
9503 (grub_getkey): New function.
9504 (grub_refresh): New function.
9505 (main): Set debug=all if -v -v is used.
9506
9507 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
9508
9509 Fix build with non-GNU libcs.
9510
9511 * util/misc.c (canonicalize_file_name): Move to ...
9512 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
9513 grub_make_system_path_relative_to_its_root.
9514
9515 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
9516
9517 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
9518 we handle finding grub-mkimage. Default to finding grub-mkimage in
9519 ${bindir} with program_transform_name applied, and provide a
9520 --grub-mkimage option to override this.
9521
9522 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
9523
9524 Remove grub-mkisofs.
9525
9526 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
9527 (grub_mkisofs_SOURCES): Removed.
9528 (grub_mkisofs_CFLAGS): Removed.
9529 * util/mkisofs/defaults.h: Removed.
9530 * util/mkisofs/eltorito.c: Likewise.
9531 * util/mkisofs/exclude.h: Likewise.
9532 * util/mkisofs/hash.c: Likewise.
9533 * util/mkisofs/include/: Likewise.
9534 * util/mkisofs/include/fctldefs.h: Likewise.
9535 * util/mkisofs/include/mconfig.h: Likewise.
9536 * util/mkisofs/include/prototyp.h: Likewise.
9537 * util/mkisofs/include/statdefs.h: Likewise.
9538 * util/mkisofs/iso9660.h: Likewise.
9539 * util/mkisofs/joliet.c: Likewise.
9540 * util/mkisofs/match.c: Likewise.
9541 * util/mkisofs/match.h: Likewise.
9542 * util/mkisofs/mkisofs.c: Likewise.
9543 * util/mkisofs/mkisofs.h: Likewise.
9544 * util/mkisofs/msdos_partition.h: Likewise.
9545 * util/mkisofs/multi.c: Likewise.
9546 * util/mkisofs/name.c: Likewise.
9547 * util/mkisofs/rock.c: Likewise.
9548 * util/mkisofs/tree.c: Likewise.
9549 * util/mkisofs/write.c: Likewise.
9550
9551 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
9552
9553 Unify grub-mkimage accross platforms.
9554
9555 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
9556 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
9557 (grub_mkelfimage_SOURCES): Removed.
9558 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
9559 (util/grub-mkimage.c_DEPENDENCIES): .. this.
9560 (bin_UTILITIES): Add grub-mkimage.
9561 (grub_mkimage_SOURCES): New variable.
9562 (kernel_img_HEADERS): Remove machine/kernel.h.
9563 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
9564 (pkglib_PROGRAMS): Add kernel.img.
9565 (kernel_img_HEADERS): Add machine/kernel.h.
9566 (kernel_img_FORMAT): Removed.
9567 (bin_UTILITIES): Remove grub-mkimage.
9568 (grub_mkimage_SOURCES): Removed.
9569 (grub_mkimage_CFLAGS): Likewise.
9570 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
9571 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
9572 (pkglib_PROGRAMS): Add kernel.img.
9573 (bin_UTILITIES): Remove grub-mkimage.
9574 (grub_mkimage_SOURCES): Removed.
9575 (grub_mkimage_CFLAGS): Likewise.
9576 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
9577 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
9578 (pkglib_PROGRAMS): Add kernel.img.
9579 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
9580 (pkglib_PROGRAMS): Add kernel.img.
9581 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
9582 (grub_mkimage_SOURCES): Removed.
9583 (grub_mkimage_CFLAGS): Likewise.
9584 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
9585 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
9586 (pkglib_PROGRAMS): Add kernel.img.
9587 (bin_UTILITIES): Remove grub-mkimage.
9588 (grub_mkimage_SOURCES): Removed.
9589 (grub_mkimage_CFLAGS): Likewise.
9590 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
9591 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
9592 (grub_mkimage_SOURCES): Removed.
9593 (grub_mkimage_CFLAGS): Likewise.
9594 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
9595 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
9596 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
9597 (grub_pe32_optional_header): ... this.
9598 (grub_pe64_optional_header): ... and this. All users updated.
9599 (GRUB_PE32_PE32_MAGIC): Split into ..
9600 (GRUB_PE32_PE32_MAGIC): .. this.
9601 (GRUB_PE32_PE64_MAGIC): .. and this.
9602 (GRUB_PE32_SIGNATURE_SIZE): New definition.
9603 * include/grub/elf.h (PT_GNU_STACK): New definition.
9604 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
9605 * include/grub/i386/efi/kernel.h: Likewise.
9606 * include/grub/i386/kernel.h: Likewise.
9607 * include/grub/i386/pc/kernel.h: Likewise.
9608 * include/grub/i386/qemu/boot.h: Likewise.
9609 * include/grub/mips/kernel.h: Likewise.
9610 * include/grub/mips/qemu-mips/kernel.h: Likewise.
9611 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
9612 * include/grub/powerpc/kernel.h: Likewise.
9613 * include/grub/sparc64/ieee1275/boot.h: Likewise.
9614 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
9615 * include/grub/sparc64/kernel.h: Likewise.
9616 * include/grub/x86_64/efi/kernel.h: Likewise.
9617 * include/grub/x86_64/kernel.h: Likewise.
9618 * include/grub/offsets.h: New file.
9619 * include/grub/kernel.h (grub_module_info): Split into ...
9620 (grub_module_info32): ... this.
9621 (grub_module_info64): ... and this.
9622 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
9623 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
9624 (grub_boot_blocklist): Moved from here ...
9625 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
9626 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
9627 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
9628 * include/grub/types.h (grub_target_to_host16): Removed.
9629 (grub_target_to_host32): Likewise.
9630 (grub_target_to_host64): Likewise.
9631 (grub_host_to_target16): Likewise.
9632 (grub_host_to_target32): Likewise.
9633 (grub_host_to_target64): Likewise.
9634 (grub_host_to_target_addr): Likewise.
9635
9636 Support grub-mkrescue for efi, coreboot and qemu.
9637
9638 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
9639 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
9640 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
9641 * util/grub-mkrawimage.c: Moved from here ...
9642 * util/grub-mkimage.c: ... here. All users updated.
9643 (ALIGN_ADDR): Use image_target.
9644 (TARGET_NO_FIELD): New const.
9645 (image_target_desc): New type.
9646 (image_targets): New array.
9647 (grub_target_to_host64): Use image_target.
9648 (grub_target_to_host32): Likewise.
9649 (grub_target_to_host16): Likewise.
9650 (grub_host_to_target64): Likewise.
9651 (grub_host_to_target32): Likewise.
9652 (grub_host_to_target16): Likewise.
9653 (grub_host_to_target_addr): Likewise.
9654 (generate_image): Handle multiimage.
9655 (main): Require -O parameter. All users updated.
9656 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
9657 util/efi/grub-mkimage.c
9658 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
9659 New option --rom-directory.
9660 Use xorriso.
9661 * util/i386/efi/grub-mkimage.c: Removed.
9662 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
9663 (grub_target_to_host32): Likewise.
9664 (grub_target_to_host64): Likewise.
9665 (grub_host_to_target16): Likewise.
9666 (grub_host_to_target32): Likewise.
9667 (grub_host_to_target64): Likewise.
9668 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
9669 (grub_target_to_host32): Likewise.
9670 (grub_target_to_host64): Likewise.
9671 (grub_host_to_target16): Likewise.
9672 (grub_host_to_target32): Likewise.
9673 (grub_host_to_target64): Likewise.
9674
9675 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
9676
9677 Source tree is reorganized for emu build.
9678
9679 * include/grub/util/console.h: Move from here...
9680 * include/grub/emu/console.h: ...to here.
9681 * include/grub/util/getroot.h: Move from here...
9682 * include/grub/emu/getroot.h: ...to here.
9683 * include/grub/util/hostdisk.h: Move from here...
9684 * include/grub/emu/hostdisk.h: ...to here.
9685 * util/console.c: Move from here...
9686 * kern/emu/console.c: ...to here.
9687 * util/getroot.c: Move from here...
9688 * kern/emu/getroot.c: ...to here.
9689 * util/grub-emu.c: Move from here...
9690 * kern/emu/main.c: ...to here.
9691 * util/hostdisk.c: Move from here...
9692 * kern/emu/hostdisk.c: ...to here.
9693 * util/hostfs.c: Move from here...
9694 * kern/emu/hostfs.c: ...to here.
9695 * util/mm.c: Move from here...
9696 * kern/emu/mm.c: ...to here.
9697 * util/pci.c: Move from here...
9698 * bus/emu/pci.c: ...to here.
9699 * util/sdl.c: Move from here...
9700 * video/emu/sdl.c: ...to here.
9701 * util/time.c: Move from here...
9702 * kern/emu/time.c: ...to here.
9703 * util/usb.c: Move from here...
9704 * bus/usb/emu/usb.c: ...to here.
9705
9706 * include/grub/emu/misc.h: New header for grub-emu functions.
9707 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
9708
9709 * conf/any-emu.rmk: Rule updates for above renames.
9710 * conf/common.rmk: Likewise.
9711 * conf/i386-pc.rmk: Likewise.
9712 * conf/i386-qemu.rmk: Likewise.
9713 * conf/mips.rmk: Likewise.
9714 * conf/sparc64-ieee1275.rmk: Likewise.
9715 * conf/x86-efi.rmk: Likewise.
9716
9717 * disk/lvm.h: #include updates for above renames.
9718 * util/grub-mkrelpath.c: Likewise.
9719 * util/grub-probe.c: Likewise.
9720 * util/i386/pc/grub-setup.c: Likewise.
9721 * util/sparc64/ieee1275/grub-setup.c: Likewise.
9722 * kern/emu/console.c: Likewise.
9723 * kern/emu/getroot.c: Likewise.
9724 * kern/emu/hostdisk.c: Likewise.
9725 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
9726
9727 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
9728 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
9729 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
9730 * util/misc.c: Remove grub-emu functions.
9731
9732 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
9733
9734 Fix gfxmenu crash.
9735 Reported by: Thorsten Grützmacher.
9736
9737 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
9738 timeout hook.
9739 (circprog_set_property): Register and unregister timeout hook.
9740 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
9741 (label_destroy): Free template. and unregister hook.
9742 (label_set_state): New function.
9743 (label_set_property): Handle templates and hooks.
9744 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
9745 timeout hook.
9746 (progress_bar_set_property): Register and unregister timeout hook.
9747 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
9748 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
9749 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
9750 (update_timeout_visit): Removed.
9751 (update_timeouts): New function.
9752 (redraw_timeouts): Likewise.
9753 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
9754 (grub_gfxmenu_clear_timeout): Likewise.
9755 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
9756 (grub_gfxmenu_timeout_notify): Likewise.
9757 (grub_gfxmenu_timeout_notifications): New external variable.
9758 (grub_gfxmenu_timeout_register): New function.
9759 (grub_gfxmenu_timeout_unregister): Likewise.
9760
9761 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
9762
9763 Transform (broken) vga terminal into (working) vga video driver.
9764
9765 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
9766 video/i386/pc/vga.c.
9767 * include/grub/video.h (grub_video_driver_id):
9768 Add GRUB_VIDEO_DRIVER_VGA.
9769 * term/i386/pc/vga.c: Renamed to ...
9770 * video/i386/pc/vga.c: ...this
9771 (DEBUG_VGA): Removed.
9772 (CHAR_WIDTH): Likewise.
9773 (CHAR_HEIGHT): Likewise.
9774 (TEXT_WIDTH): Likewise.
9775 (TEXT_HEIGHT): Likewise.
9776 (DEFAULT_FG_COLOR): Likewise.
9777 (DEFAULT_BG_COLOR): Likewise.
9778 (colored_char): Likewise.
9779 (xpos): Likewise.
9780 (ypos): Likewise.
9781 (cursor_state): Likewise.
9782 (fg_color): Likewise.
9783 (bg_color): Likewise.
9784 (text_buf): Likewise.
9785 (page): Likewise.
9786 (font): Likewise.
9787 (framebuffer): New variable.
9788 (set_read_map): Disabled.
9789 (setup): New variable.
9790 (is_target): Likewise.
9791 (grub_vga_mod_init): Likewise.
9792 (grub_vga_mod_fini): Likewise.
9793 (check_vga_mem): Likewise.
9794 (write_char): Likewise.
9795 (write_cursor): Likewise.
9796 (scroll_up): Likewise.
9797 (grub_vga_putchar): Likewise.
9798 (grub_vga_getcharwidth): Likewise.
9799 (grub_vga_getwh): Likewise.
9800 (grub_vga_getxy): Likewise.
9801 (grub_vga_gotoxy): Likewise.
9802 (grub_vga_cls): Likewise.
9803 (grub_vga_setcolorstate): Likewise.
9804 (grub_vga_setcursor): Likewise.
9805 (grub_video_vga_init): New function.
9806 (grub_video_vga_setup): Likewise.
9807 (grub_video_vga_fini): Likewise.
9808 (update_target): Likewise.
9809 (grub_video_vga_blit_bitmap): Likewise.
9810 (grub_video_vga_blit_render_target): Likewise.
9811 (grub_video_vga_set_active_render_target): Likewise.
9812 (grub_video_vga_get_active_render_target): Likewise.
9813 (grub_video_vga_swap_buffers): Likewise.
9814 (grub_video_vga_set_palette): Likewise.
9815 (grub_video_vga_get_info_and_fini): Likewise.
9816 (grub_vga_term): Removed.
9817 (grub_video_vga_adapter): New variable.
9818 (GRUB_MOD_INIT): Register a video driver instead of terminal.
9819 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
9820
9821 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
9822
9823 * video/readers/jpeg.c: Indented.
9824
9825 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
9826
9827 Various jpeg cleanups.
9828
9829 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
9830 (grub_jpeg_decode_quan_table): Use sizeof.
9831 (grub_jpeg_decode_du): Use ARRAY_SIZE.
9832
9833 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
9834
9835 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
9836 tables. Ignore non-last ac bit.
9837 (grub_jpeg_decode_quan_table): Likewise.
9838
9839 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
9840
9841 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
9842 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
9843 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
9844 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
9845 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
9846 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
9847
9848 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
9849
9850 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
9851 error.
9852
9853 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
9854
9855 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
9856
9857 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9858
9859 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
9860 condition.
9861
9862 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9863
9864 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
9865 part.
9866
9867 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9868
9869 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
9870 pointers.
9871
9872 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9873
9874 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
9875
9876 2010-05-01 Christian Franke <franke@computer.org>
9877
9878 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
9879 Remove broken Cygwin path conversion.
9880 * util/misc.c: [__CYGWIN__] Add include and define.
9881 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
9882 for Cygwin 1.7.
9883 (make_system_path_relative_to_its_root): Simplify loop, replace early
9884 return by break.
9885 [__CYGWIN__] Add conversion to win32 path.
9886 Include "/" case in trailing slash removal.
9887
9888 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9889
9890 * kern/main.c (grub_load_config): Fix copy-pasted comment.
9891 Reported by: Seth Goldberg
9892
9893 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9894
9895 * commands/help.c (grub_cmd_help): Fix a typo.
9896 Reported by: Seth Goldberg
9897
9898 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9899
9900 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
9901 name and add N_.
9902 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
9903 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
9904 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
9905 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
9906 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
9907 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
9908 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
9909 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
9910 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
9911 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
9912 * normal/context.c (GRUB_MOD_INIT): Likewise.
9913 * normal/main.c (GRUB_MOD_INIT): Likewise.
9914 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
9915 * term/serial.c (GRUB_MOD_INIT): Likewise.
9916 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
9917
9918 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9919
9920 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
9921 extra == 0.
9922
9923 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9924
9925 * commands/iorw.c: New file.
9926 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
9927 (iorw_mod_SOURCES): New variable.
9928 (iorw_mod_CFLAGS): Likewise.
9929 (iorw_mod_LDFLAGS): Likewise.
9930
9931 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9932
9933 Hotkey support
9934
9935 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
9936 * normal/main.c (hotkey_aliases): New variable.
9937 (grub_normal_add_menu_entry): Parse "--hotkey".
9938 * normal/menu_text.c (run_menu): Handle hotkeys.
9939
9940 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9941
9942 * kern/i386/coreboot/init.c (grub_machine_init): Call
9943 grub_machine_mmap_init on qemu.
9944
9945 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9946
9947 * boot/i386/qemu/boot.S: Add a missing .code16.
9948
9949 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9950
9951 Use LBIO on coreboot.
9952
9953 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
9954 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
9955 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
9956 New declaration.
9957 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
9958 grub_machine_mmap_init on coreboot.
9959 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
9960 GRUB_LINUXBIOS_MEMBER_LINK.
9961 (grub_machine_mmap_iterate): Fix declaration.
9962 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
9963
9964 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9965
9966 Split coreboot and multiboot ports.
9967
9968 * conf/i386-multiboot.rmk: New file.
9969 * configure.ac: Add multiboot port.
9970 * include/grub/i386/multiboot/boot.h: New file.
9971 * include/grub/i386/multiboot/console.h: Likewise.
9972 * include/grub/i386/multiboot/init.h: Likewise.
9973 * include/grub/i386/multiboot/kernel.h: Likewise.
9974 * include/grub/i386/multiboot/loader.h: Likewise.
9975 * include/grub/i386/multiboot/memory.h: Likewise.
9976 * include/grub/i386/multiboot/serial.h: Likewise.
9977 * include/grub/i386/multiboot/time.h: Likewise.
9978 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
9979 * loader/multiboot.c: Likewise.
9980 * loader/multiboot_mbi2.c: Likewise.
9981 * util/grub-mkrescue.in: Generate multiboot rescue.
9982
9983 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9984
9985 * kern/parser.c (grub_parser_execute): Cope with read-only config.
9986
9987 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9988
9989 Merge handling of input and output terminals. Fix a hang.
9990
9991 * commands/terminal.c (abstract_terminal): New struct.
9992 (handle_command): New function. Based on grub_cmd_terminal_input.
9993 (grub_cmd_terminal_input): Use handle_command.
9994 (grub_cmd_terminal_output): Use handle_command.
9995
9996 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
9997
9998 Fix comment handling.
9999
10000 * tests/grub_script_comments.in: New testcase.
10001 * conf/tests.rmk: Rules for new testcase.
10002 * script/yylex.l: Updated flex rules.
10003
10004 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
10005
10006 * docs/grub.texi (play): Document that zero pitches produce rests.
10007 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
10008 if argc is 1.
10009
10010 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
10011
10012 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
10013 autogen issues.
10014
10015 2010-04-26 Christian Franke <franke@computer.org>
10016
10017 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
10018 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
10019 (grub_get_prefix): Remove function.
10020 * util/grub-emu.c (main): Replace grub_get_prefix () call by
10021 make_system_path_relative_to_its_root ().
10022 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
10023
10024 2010-04-24 Christian Franke <franke@computer.org>
10025
10026 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
10027 (kernel_img_LDFLAGS): Remove -static-libgcc.
10028
10029 2010-04-24 Christian Franke <franke@computer.org>
10030
10031 * configure.ac: Do not CHECK_BSS_START_SYMBOL
10032 and CHECK_END_SYMBOL if grub-emu is built.
10033 Unset TARGET_OBJ2ELF if grub-emu is built
10034 without module support.
10035
10036 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
10037
10038 Nilfs2 support.
10039
10040 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
10041 (grub_fstest_SOURCES): Likewise.
10042 (pkglib_MODULES): Add nilfs2.mod.
10043 (nilfs2_mod_SOURCES): New variable.
10044 (nilfs2_mod_CFLAGS): Likewise.
10045 (nilfs2_mod_LDFLAGS): Likewise.
10046 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
10047 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
10048 * fs/nilfs2.c: New file.
10049
10050 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
10051
10052 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
10053 is not supported.
10054
10055 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
10056
10057 Add grub-mkconfig support for NetBSD.
10058
10059 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
10060 * util/grub-mkconfig.in: export new NetBSD specific variables.
10061 * po/POTFILES-shell: added 10_netbsd.in.
10062 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
10063
10064 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
10065
10066 Fix emu build with grub-emu-pci and grub-emu-modules.
10067
10068 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
10069 functions.
10070 * include/grub/libpciaccess.h: New file.
10071 * conf/any-emu.rmk: Update kernel headers for emu build.
10072
10073 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
10074
10075 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
10076
10077 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
10078
10079 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
10080
10081 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10082
10083 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
10084 Retrieve chosen/bootpath if bootpath isn't hardcoded.
10085 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
10086 util/ieee1275/ofpath.c.
10087 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
10088 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
10089 * include/grub/sparc64/ieee1275/boot.h
10090 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
10091 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
10092 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
10093 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
10094 const char *.
10095 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
10096 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
10097 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
10098 install.
10099
10100 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
10101
10102 * util/grub-mkconfig.in: Corrected two == equality tests.
10103 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
10104 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
10105 expect a number appended to it.
10106 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
10107 expects a number appended to it.
10108
10109 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10110
10111 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
10112
10113 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10114
10115 * util/hostdisk.c (make_device_name): Change to new partition naming.
10116
10117 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
10118
10119 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
10120
10121 2010-04-17 Christian Franke <franke@computer.org>
10122
10123 * Makefile.in: Add missing localedir setting.
10124
10125 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
10126
10127 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
10128 mistake in r2156. Noticed by Anthony Fok.
10129
10130 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
10131 @localedir@.
10132 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
10133
10134 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
10135
10136 Fix a spurious, uninitialized variable warning.
10137
10138 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
10139 Initialize variable, shdr.
10140 (grub_freebsd_load_elfmodule): Likewise.
10141 (grub_freebsd_load_elf_meta): Likewise.
10142
10143 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
10144
10145 Fix for escaped dollar in double quoted strings.
10146
10147 * script/yylex.l: Updated flex rules.
10148 * conf/tests.rmk: Rule for new testcase.
10149 * tests/grub_script_dollar.in: New testcase.
10150
10151 2010-04-13 Carles Pina i Estany <carles@pina.cat>
10152 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
10153
10154 Enclose all translated strings in grub.cfg in single quotes, and
10155 escape them appropriately (Ubuntu bug #552921).
10156
10157 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
10158 * util/grub.d/10_hurd.in: Use it.
10159 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
10160 * util/grub.d/10_linux.in (linux_entry): Likewise.
10161
10162 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10163
10164 Fix cygwin compilation.
10165
10166 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
10167 * include/grub/misc.h (__register_frame_info)
10168 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
10169 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
10170 * kern/misc.c (__register_frame_info)
10171 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
10172 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
10173
10174 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10175
10176 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
10177
10178 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10179
10180 Unify libgcc processing.
10181
10182 * Makefile.in (kernel_img_LDFLAGS): New variable.
10183 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
10184 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
10185 overwriting.
10186 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
10187 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
10188 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
10189 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
10190 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
10191 overwriting. Remove -lgcc and -static-libgcc
10192 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
10193 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
10194 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
10195 (kernel_img_LDFLAGS): Append instead of overwriting.
10196 Remove -lgcc and -static-libgcc
10197 * conf/sparc64-ieee1275.rmk: Likewise.
10198 * include/grub/powerpc/libgcc.h: Move to ...
10199 * include/grub/libgcc.h: .. this.
10200 * include/grub/libgcc.h: Don't export most of the function on x86.
10201 (__bswapsi2): New export.
10202 (__bswapdi2): Likewise.
10203 * include/grub/mips/libgcc.h: Removed.
10204 * include/grub/sparc64/libgcc.h: Likewise.
10205
10206 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
10207
10208 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
10209 disk_info_msg (conflicts with gettexting into languages with cases).
10210
10211 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
10212
10213 Add grub-probe support for NetBSD.
10214
10215 * util/getroot.c (find_root_device): Convert block device to
10216 character device on NetBSD.
10217 * util/probe.c (probe): Require character device on NetBSD.
10218 * util/hostdisk.c: NetBSD specific headers.
10219 (configure_device_driver): new function to tune device driver
10220 parameters (currently only for NetBSD floppy driver).
10221 (grub_util_biosdisk_open): NetBSD specific code (get disk size
10222 via disklabel ioctl).
10223 (open_device): call configure_device_driver on NetBSD.
10224 (convert_system_partition_to_system_disk): NetBSD specific code.
10225 (device_is_wholedisk): Likewise.
10226 (grub_util_biosdisk_get_grub_dev): Likewise.
10227 (make_device_name): Fixed a typo in bsd_part_str.
10228 * configure.ac: check for opendisk() and getrawpartition() on
10229 NetBSD and set LIBUTIL.
10230 * Makefile.in: add LIBUTIL to LIBS.
10231
10232 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
10233
10234 Documentation fix.
10235
10236 * util/grub-script-check.c: Better help message.
10237
10238 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
10239
10240 Fix FreeBSD build.
10241
10242 * configure.ac: Flex version check.
10243 * conf/common.rmk: Add -Wno-error to sh.mod.
10244 * script/yylex.l: Remove all #pragma.
10245
10246 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
10247
10248 * include/grub/util/misc.h (canonicalise_file_name): Add missing
10249 prototype.
10250 Reported by: Seth Goldberg.
10251
10252 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
10253
10254 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
10255 Rename "module" to "module2".
10256 Reported by: Seth Goldberg.
10257
10258 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
10259
10260 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
10261 EXPORT_FUNC.
10262 Reported by: Seth Goldberg.
10263
10264 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
10265
10266 * lib/posix_wrap/locale.h: Add missing file.
10267 Reported by: Seth Goldberg.
10268
10269 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
10270
10271 grub-emu module load support.
10272
10273 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
10274 NO_DYNAMIC_MODULES switched to this.
10275 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
10276 (CFLAGS): Likewise.
10277 * conf/any-emu.rmk: Generate symlist.
10278 (kernel_img_HEADERS): Add util/datetime.h.
10279 (kernel_img_HEADERS) [sdl]: Add sdl.h.
10280 (kernel_img_HEADERS) [libusb]: Add libusb.h.
10281 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
10282 kern/$(target_cpu)/cache.S.
10283 * configure.ac (grub-emu-modules): New option.
10284 * genmk.rb: Handle multiple source lists.
10285 * include/grub/sdl.h: New file.
10286 * include/grub/libusb.h: Likewise.
10287 * util/grub-emu.c (main): Hanle (host) root.
10288 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
10289 GRUB_ERR_UNKNOWN_DEVICE.
10290 * util/misc.c: Move mm functions to ...
10291 * util/mm.c: ... here. All users updated.
10292
10293 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
10294
10295 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
10296 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
10297 missing files.
10298 (maintainer-clean): Remove libgcrypt-grub.
10299
10300 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
10301
10302 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
10303
10304 2010-04-09 EFI Coder <eficoder@hotmail.com>
10305
10306 * normal/menu_text.c (print_message): Clean up the message and show
10307 the Fn information when on EFI
10308 * term/efi/console.c (grub_console_checkkey): Add F4 support.
10309
10310 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
10311
10312 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
10313 All users updated.
10314 * normal/crypto.c (read_crypto_list): Likewise.
10315 * normal/dyncmd.c (read_command_list): Likewise.
10316 * normal/term.c (read_terminal_list): Likewise.
10317 * normal/main.c (read_lists): Use explicit prefix.
10318 (read_lists_hook): Use read_lists.
10319 (grub_normal_execute): Likewise.
10320
10321 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
10322
10323 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
10324 Reported by: Thomas Schmitt.
10325 Add -no-emul-boot to grub-mkisofs parameters.
10326
10327 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
10328
10329 * font/font.c: Indented.
10330
10331 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
10332
10333 Elif support to GRUB script (by Deepak Vankadaru).
10334
10335 * tests/grub_script_if.in: New testcase.
10336 * conf/tests.rmk: Rule for new testcase.
10337 * script/parser.y: Grammar rules for elif.
10338
10339 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
10340
10341 While and until loops support to GRUB script.
10342
10343 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
10344 (grub_script_create_cmdwhile): New function prototype.
10345 (grub_script_execute_cmdwhile): New function prototype.
10346 * script/execute.c (grub_script_execute_cmdwhile): New function.
10347 * script/parser.y (command): New commands.
10348 (whilecmd): New grammar rule.
10349 (untilcmd): New grammar rule.
10350 * script/script.c (grub_script_create_cmdwhile): New function.
10351 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
10352 function.
10353
10354 * tests/grub_script_while1.in: New testcase.
10355 * conf/tests.rmk: Rule for new testcase.
10356
10357 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
10358
10359 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
10360 as *.jpg.
10361
10362 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
10363
10364 GRUB_BACKGROUND support.
10365
10366 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
10367 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
10368
10369 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
10370
10371 Load fonts and modules for gfxmenu in grub-mkconfig.
10372 Idea by: Mario Vazquez
10373
10374 * util/grub.d/00_header.in: Load pf2 and image modules.
10375
10376 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
10377
10378 grub-mkconfig multiple terminal support.
10379
10380 * util/grub-mkconfig.in: Handle multiple terminals correctly.
10381 * util/grub.d/00_header.in: Likewise.
10382
10383 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
10384
10385 * Makefile.in: Specify files explicitly instead of using $< and $@ since
10386 we use cd $(srcdir).
10387
10388 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
10389
10390 * util/grub.d/10_linux.in: Only use the first word of
10391 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
10392 spaces in GRUB_DISTRIBUTOR.
10393 * util/grub.d/10_kfreebsd.in: Likewise.
10394 * util/grub.d/10_hurd.in: Likewise.
10395
10396 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
10397
10398 Fix unit testing framework for Qemu 0.12.
10399
10400 * tests/util/grub-shell.in: Remove -serial stdio option.
10401
10402 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
10403
10404 POSIX header file wrappers.
10405
10406 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
10407 equivalents.
10408 * lib/posix_wrap/ctype.h: Likewise.
10409 * lib/posix_wrap/errno.h: Likewise.
10410 * lib/posix_wrap/langinfo.h: Likewise.
10411 * lib/posix_wrap/limits.h: Likewise.
10412 * lib/posix_wrap/localcharset.h: Likewise.
10413 * lib/posix_wrap/stdint.h: Likewise.
10414 * lib/posix_wrap/stdio.h: Likewise.
10415 * lib/posix_wrap/stdlib.h: Likewise.
10416 * lib/posix_wrap/string.h: Likewise.
10417 * lib/posix_wrap/sys/types.h: Likewise.
10418 * lib/posix_wrap/unistd.h: Likewise.
10419 * lib/posix_wrap/wchar.h: Likewise.
10420 * lib/posix_wrap/wctype.h: Likewise.
10421 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
10422 (grub_script.yy.h): Likewise.
10423 * script/yylex.l: Remove POSIX emulation #defines.
10424 * Makefile.in (POSIX_CFLAGS): New variable.
10425 (GNULIB_UTIL_CFLAGS): Likewise.
10426
10427 Regexp support.
10428
10429 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
10430 (regexp_mod_SOURCES): New variable.
10431 (regexp_mod_CFLAGS): Likewise.
10432 (regexp_mod_LDFLAGS): Likewise.
10433 * commands/regexp.c: New file.
10434 * gnulib/regcomp.c: New file. Imported from gnulib.
10435 * gnulib/regex.c: Likewise.
10436 * gnulib/regex_internal.c: Likewise.
10437 * gnulib/regex_internal.h: Likewise.
10438 * gnulib/regexec.c: Likewise.
10439 * gnulib/regex.h: Likewise.
10440
10441 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
10442
10443 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
10444 unsupported video mode types.
10445
10446 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
10447
10448 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
10449
10450 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
10451
10452 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
10453 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
10454
10455 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10456
10457 Remove unused grub_vga_get_font.
10458
10459 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
10460 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
10461
10462 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
10463
10464 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
10465 * include/grub/misc.h: Likewise.
10466
10467 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
10468
10469 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
10470 for which failure is fatal.
10471
10472 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
10473
10474 * util/grub-install.in: Use mkdir -p to create grub directory.
10475 * util/i386/efi/grub-install.in: Likewise.
10476 * util/ieee1275/grub-install.in: Likewise.
10477
10478 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
10479
10480 * Makefile.in (LEX): new variable.
10481
10482 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
10483
10484 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
10485 `=' and added double quotes on operands of this equality test.
10486
10487 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
10488
10489 * Makefile.in (uninstall): Remove a leftover debug echo.
10490 Reported by: Grégoire Sutre
10491
10492 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
10493
10494 MIPS multiboot2 support.
10495
10496 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
10497 (multiboot2_mod_SOURCES): New variable.
10498 (multiboot2_mod_CFLAGS): Likewise.
10499 (multiboot2_mod_LDFLAGS): Likewise.
10500 (multiboot2_mod_ASFLAGS): Likewise.
10501 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
10502 definition.
10503 (MULTIBOOT_ENTRY_REGISTER): Likewise.
10504 (MULTIBOOT_MBI_REGISTER): Likewise.
10505 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
10506 (MULTIBOOT_ELF32_MACHINE): Likewise.
10507 (MULTIBOOT_ELF64_MACHINE): Likewise.
10508 * include/grub/mips/multiboot.h: New file.
10509 * include/grub/video.h (grub_video_driver_id): New type
10510 GRUB_VIDEO_DRIVER_SM712.
10511 (grub_video_get_info_and_fini): Export.
10512 (grub_video_get_palette): Likewise.
10513 (grub_video_get_driver_id): Likewise.
10514 * include/multiboot2.h: Resynced with spec.
10515 * loader/i386/multiboot.c: Moved from here ...
10516 * loader/multiboot.c: ... here. All users updated.
10517 (grub_multiboot_boot): Use platform-specific macros.
10518 * loader/i386/multiboot_elfxx.c: Moved from here ...
10519 * loader/multiboot_elfxx.c: ... here. All users updated.
10520 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
10521 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
10522 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
10523
10524 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
10525
10526 Import gnulib argp module.
10527
10528 * gnulib/argp-ba.c: New file.
10529 * gnulib/argp-eexst.c: Likewise.
10530 * gnulib/argp-fmtstream.c: Likewise.
10531 * gnulib/argp-fmtstream.h: Likewise.
10532 * gnulib/argp-fs-xinl.c: Likewise.
10533 * gnulib/argp-help.c: Likewise.
10534 * gnulib/argp-namefrob.h: Likewise.
10535 * gnulib/argp-parse.c: Likewise.
10536 * gnulib/argp-pin.c: Likewise.
10537 * gnulib/argp-pv.c: Likewise.
10538 * gnulib/argp-pvh.c: Likewise.
10539 * gnulib/argp-version-etc.c: Likewise.
10540 * gnulib/argp-version-etc.h: Likewise.
10541 * gnulib/argp-xinl.c: Likewise.
10542 * gnulib/argp.h: Likewise.
10543
10544 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
10545
10546 * kern/device.c (grub_device_iterate): Clear errors after failed
10547 opening device.
10548
10549 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
10550
10551 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
10552 returned by firmware.
10553
10554 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
10555
10556 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
10557 compilation on coreboot and qemu
10558
10559 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
10560
10561 * include/multiboot2.h: Resync with spec.
10562
10563 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
10564
10565 Multiboot2 tag support
10566
10567 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
10568 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
10569 Remove loader/multiboot_loader.c.
10570 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
10571 (grub_multiboot2_real_boot): Likewise.
10572 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
10573 (grub_get_multiboot_mmap_count): New proto.
10574 (grub_fill_multiboot_mmap): Likewise.
10575 (grub_multiboot_set_video_mode): Likewise.
10576 (grub_multiboot_set_console): Likewise.
10577 (grub_multiboot_load): Likewise.
10578 (grub_multiboot_load_elf): Likewise.
10579 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
10580 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
10581 * include/multiboot.h: Resynced with specification.
10582 * include/multiboot2.h: Resynced with specification.
10583 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
10584 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
10585 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
10586 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
10587 users updated.
10588 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
10589 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
10590 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
10591 Removed.
10592 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
10593 Moved from here...
10594 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
10595 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
10596 Moved from here...
10597 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
10598 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
10599 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
10600 All users updated.
10601 * loader/i386/multiboot_mbi2.c: New file.
10602
10603 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
10604
10605 Resync with gnulib.
10606
10607 * Makefile.in (GNULIB_CFLAGS): New variable.
10608 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
10609 (grub_script_check_CFLAGS): New variable.
10610 * gnulib/alloca.h: Resync with gnulib.
10611 * gnulib/error.c: Likewise.
10612 * gnulib/error.h: Likewise.
10613 * gnulib/fnmatch.c: Likewise.
10614 * gnulib/fnmatch_loop.c: Likewise.
10615 * gnulib/getdelim.c: Likewise.
10616 * gnulib/getline.c: Likewise.
10617 * gnulib/getopt.c: Likewise.
10618 * gnulib/getopt1.c: Likewise.
10619 * gnulib/getopt_int.h: Likewise.
10620 * gnulib/gettext.h: Likewise.
10621 * gnulib/progname.c: Likewise.
10622 * gnulib/progname.h: Likewise.
10623
10624 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
10625
10626 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
10627 which is the case with --disabled-nls.
10628
10629 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
10630 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
10631 * util/misc.c: Likewise.
10632 * util/mkisofs/mkisofs.c: Likewise.
10633 * util/mkisofs/mkisofs.h: Likewise.
10634
10635 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
10636
10637 Simplify Apple CC support.
10638
10639 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
10640 Add 0 byte at the end not to have a symbol with empty target.
10641 * mmap/i386/pc/mmap_helper.S: Likewise.
10642 * genmk.rb: Ignore errors 2030 and 2050.
10643 * kern/i386/pc/startup.S: Use LOCAL when possible.
10644
10645 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
10646
10647 Testcase and the fix for final semicolon on cmdline.
10648
10649 * tests/grub_script_final_semicolon.in: New testcase.
10650 * conf/tests.rmk: Rules for the new testcase.
10651 * script/parser.y: Grammar fix.
10652
10653 2010-03-26 BVK Chaitanya <bvk@localhost>
10654
10655 Blank lines testcase for GRUB script.
10656
10657 * tests/grub_script_blanklines.in: New testcase.
10658 * conf/tests.rmk: Rules for the new testcase.
10659
10660 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
10661
10662 Don't use __FILE__.
10663
10664 * genmk.rb: Add -DGRUB_FILE to all C targets.
10665 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
10666 * include/grub/list.h: Likewise.
10667 * include/grub/misc.h: Likewise.
10668 * include/grub/mm.h: Likewise.
10669 * include/grub/test.h: Likewise.
10670 * kern/mm.c: Likewise.
10671 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
10672
10673 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
10674
10675 Sunpc partitions support.
10676
10677 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
10678 (grub_fstest_SOURCES): Likewise.
10679 (pkglib_MODULES): Add part_sunpc.mod.
10680 (part_sunpc_mod_SOURCES): New variable.
10681 (part_sunpc_mod_CFLAGS): Likewise.
10682 (part_sunpc_mod_LDFLAGS): Likewise.
10683 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
10684 * partmap/sunpc.c: New file.
10685
10686 2010-03-26 BVK Chaitanya <bvk@localhost>
10687
10688 For loop support to GRUB script.
10689
10690 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
10691 (grub_script_create_cmdfor): New function prototype.
10692 (grub_script_execute_cmdfor): New function prototype.
10693 * script/execute.c (grub_script_execute_cmdfor): New function.
10694 * script/parser.y (command): New for command.
10695 (forcmd): New grammar rule.
10696 * script/script.c (grub_script_create_cmdfor): New function.
10697 * util/grub-script-check.c (grub_script_execute_cmdfor): New
10698 function.
10699 * tests/grub_script_for1.in: New testcase.
10700 * conf/tests.rmk: Rules for new testcase.
10701
10702 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
10703
10704 Nested partitions
10705
10706 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
10707 'partition' is NULL, grub_partition_get_start already does that.
10708 * commands/loadenv.c (check_blocklists): Likewise.
10709 (write_blocklists): Likewise.
10710 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
10711 (grub_fstest_SOURCES): Likewise.
10712 (pkglib_MODULES): Add part_bsd.mod.
10713 (part_bsd_mod_SOURCES): New variable.
10714 (part_bsd_mod_CFLAGS): Likewise.
10715 (part_bsd_mod_LDFLAGS): Likewise.
10716 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
10717 (grub_emu_SOURCES): Likewise.
10718 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10719 * include/grub/bsdlabel.h: New file.
10720 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
10721 'get_name'.
10722 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
10723 (grub_partition_map_list): New variable.
10724 (grub_partition_map_register): Inline.
10725 (grub_partition_map_unregister): Likewise.
10726 (FOR_PARTITION_MAPS): New macro.
10727 (grub_partition_map_iterate): Removed.
10728 (grub_partition_get_start): Handle nested partitions.
10729 * include/grub/msdos_partition.h: Remove bsd-related entries.
10730 (grub_pc_partition): Remove.
10731 * kern/disk.c (grub_disk_close): Free partition data.
10732 (grub_disk_adjust_range): Handle nested partitions.
10733 * kern/partition.c (grub_partition_map_probe): New function.
10734 (grub_partition_probe): Parse name to number, handle subpartitions.
10735 (get_partmap): New function.
10736 (grub_partition_iterate): Handle subpartitions.
10737 (grub_partition_get_name): Likewise.
10738 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
10739 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
10740 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
10741 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
10742 Set 'number'.
10743 (acorn_partition_map_probe): Remove.
10744 (acorn_partition_map_get_name): Likewise.
10745 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
10746 Set 'number'.
10747 Set 'index' to 0 since there can be only one partition entry per sector.
10748 (amiga_partition_map_probe): Remove.
10749 (amiga_partition_map_get_name): Likewise.
10750 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
10751 Set 'number'.
10752 Set 'offset' and 'index' to real positions of partitions.
10753 (apple_partition_map_probe): Remove.
10754 (apple_partition_map_get_name): Likewise.
10755 * partmap/bsdlabel.c: New file.
10756 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
10757 Set 'number'.
10758 Allocate 'data' so it can be correctly freed.
10759 Set 'index' to offset inside sector.
10760 (gpt_partition_map_probe): Remove.
10761 (gpt_partition_map_get_name): Likewise.
10762 * partmap/msdos.c (grub_partition_parse): Remove.
10763 (pc_partition_map_iterate): Don't force raw access.
10764 Set 'number'.
10765 Make 'ext_offset' a local variable.
10766 (pc_partition_map_probe): Remove.
10767 (pc_partition_map_get_name): Remove.
10768 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
10769 Set 'number'.
10770 (sun_partition_map_probe): Remove.
10771 (sun_partition_map_get_name): Likewise.
10772 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
10773 (grub_pcpart_type): Likewise.
10774 * util/hostdisk.c (open_device): Handle new numbering scheme.
10775 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
10776 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
10777 * util/grub-probe.c (probe_partmap): Handle nested paritions.
10778 * util/grub-install.in: Insert all subpartition modules.
10779 * util/ieee1275/grub-install.in: Likewise.
10780
10781 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
10782
10783 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
10784 grammar.
10785
10786 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
10787
10788 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
10789
10790 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
10791
10792 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
10793 match where 'make install' puts them.
10794 * util/i386/efi/grub-install.in: Likewise.
10795
10796 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
10797
10798 * .bzrignore: Add gentrigtables, grub-script-check,
10799 grub_script_check_init.c, grub_script_check_init.h, and
10800 trigtables.c.
10801
10802 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
10803
10804 * kern/parser.c: Indented.
10805
10806 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
10807
10808 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
10809
10810 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
10811
10812 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
10813 alpha_mask_size == 0 case.
10814
10815 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
10816
10817 GRUB shell lexer and parser improvements.
10818
10819 * conf/any-emu.rmk: Build rule updates.
10820 * conf/common.rmk: Likewise.
10821 * conf/i386-coreboot.rmk: Likewise.
10822 * conf/i386-efi.rmk: Likewise.
10823 * conf/i386-ieee1275.rmk: Likewise.
10824 * conf/i386-pc.rmk: Likewise.
10825 * conf/powerpc-ieee1275.rmk: Likewise.
10826 * conf/x86_64-efi.rmk: Likewise.
10827
10828 * configure.ac: Configure check for flex.
10829
10830 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
10831 types.
10832 (grub_lexer_param): Struct member updates.
10833 (grub_parser_param): Likewise.
10834 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
10835 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
10836 (grub_script_lexer_init): Prototype update.
10837 (grub_script_lexer_record_start): Likewise.
10838 (grub_script_lexer_record_stop): Likewise.
10839 (grub_script_lexer_yywrap): New function prototype.
10840 (grub_script_lexer_fini): Likewise.
10841 (grub_script_execute_argument_to_string): Removed by...
10842 (grub_script_execute_argument_to_argv): ...better version.
10843
10844 * script/execute.c (ROUND_UPTO): New macro.
10845 (grub_script_execute_cmdline): Out of memory fixes.
10846 (grub_script_execute_menuentry): Likewise.
10847 (grub_script_execute_argument_to_string): Removed. Update all
10848 users by...
10849 (grub_script_execute_argument_to_argv): ...better version.
10850 * script/function.c (grub_script_function_create): Use
10851 grub_script_execute_argument_to_argv instead of
10852 grub_script_execute_argument_to_string.
10853
10854 * script/lexer.c (check_varstate): Removed.
10855 (check_textstate): Removed.
10856 (grub_script_lexer_record_start): Likewise.
10857 (grub_script_lexer_record_stop): Likewise.
10858 (recordchar): Replaced with...
10859 (grub_script_lexer_record): ...new function.
10860 (nextchar): Removed.
10861 (grub_script_lexer_init): Rewritten.
10862 (grub_script_yylex): Rewritten.
10863 (append_newline): New function.
10864 (grub_script_lexer_yywrap): New function.
10865 (grub_script_lexer_fini): New function.
10866 (grub_script_yyerror): Sets error flag.
10867
10868 * script/yylex.l: New file.
10869 (grub_lexer_yyfree): Wrapper for flex yyffre.
10870 (grub_lexer_yyalloc): Likewise.
10871 (grub_lexer_yyrealloc): Likewise.
10872 * script/parser.y: Refactored.
10873
10874 * script/script.c (grub_script_arg_add): Out of memory fixes.
10875 (grub_script_add_arglist): Likewise.
10876 (grub_script_create_cmdline): Likewise.
10877 (grub_script_create_cmdmenu): Likewise.
10878 (grub_script_add_cmd): Likewise.
10879 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
10880 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
10881 unnecessary code.
10882
10883 * tests/grub_script_echo1.in: New testcase.
10884 * tests/grub_script_vars1.in: New testcase.
10885 * tests/grub_script_echo_keywords.in: New testcase.
10886
10887 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
10888
10889 Remove some redundancy in build system.
10890
10891 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
10892 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
10893 (TARGET_LDFLAGS): Add -nostdlib.
10894 (TARGET_IMG_LDFLAGS): Likewise.
10895 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
10896 anything since mmap isn't available.
10897 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
10898 Add util/time.c.
10899 (pkglib_MODULES): Remove reboot.mod.
10900 (reboot_mod_SOURCES): Removed.
10901 (reboot_mod_CFLAGS): Likewise.
10902 (reboot_mod_LDFLAGS): Likewise.
10903 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
10904 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
10905 (DEFSYMFILES): Add kernel_syms.lst.
10906 (kernel_img_HEADERS): Add common headers.
10907 (symlist.c): New target.
10908 (kernel_syms.lst): Likewise.
10909 (pkglib_MODULES): Add memdisk.mod.
10910 (memdisk_mod_SOURCES): New variable.
10911 (memdisk_mod_CFLAGS): Likewise.
10912 (memdisk_mod_LDFLAGS): Likewise.
10913 (pkglib_MODULES): Add reboot.mod.
10914 (reboot_mod_SOURCES): New variable.
10915 (reboot_mod_CFLAGS): Likewise.
10916 (reboot_mod_LDFLAGS): Likewise.
10917 (pkglib_MODULES): Add date.mod.
10918 (date_mod_SOURCES): New variable.
10919 (date_mod_CFLAGS): Likewise.
10920 (date_mod_LDFLAGS): Likewise.
10921 (pkglib_MODULES): Add datehook.mod.
10922 (datehook_mod_SOURCES): New variable.
10923 (datehook_mod_CFLAGS): Likewise.
10924 (datehook_mod_LDFLAGS): Likewise.
10925 (pkglib_MODULES): Add lsmmap.mod.
10926 (lsmmap_mod_SOURCES): New variable.
10927 (lsmmap_mod_CFLAGS): Likewise.
10928 (lsmmap_mod_LDFLAGS): Likewise.
10929 (pkglib_MODULES): Add boot.mod.
10930 (boot_mod_SOURCES): New variable.
10931 (boot_mod_CFLAGS): Likewise.
10932 (boot_mod_LDFLAGS): Likewise.
10933 * conf/i386-coreboot.rmk: Removed redundant parts.
10934 * conf/i386-ieee1275.rmk: Likewise.
10935 * conf/i386-pc.rmk: Likewise.
10936 * conf/mips-yeeloong.rmk: Likewise.
10937 * conf/mips.rmk: Likewise.
10938 * conf/powerpc-ieee1275.rmk: Likewise.
10939 * conf/sparc64-ieee1275.rmk: Likewise.
10940 * conf/x86_64-efi.rmk: Likewise.
10941 * conf/i386-coreboot.rmk: Moved qemu parts ..
10942 * conf/i386-qemu.rmk: ... here
10943 * conf/i386-efi.rmk: Moved common parts to...
10944 * conf/x86-efi.rmk: ... here.
10945 * conf/i386.rmk: Added modules common to all x86 variants.
10946 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
10947 * disk/memdisk.c: Remove grub/machine/kernel.h.
10948 * gensymlist.sh.in: Include symbol.h.
10949 * hook/datehook.c: Correct module name.
10950 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
10951 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
10952 * include/grub/i386/efi/serial.h: New file.
10953 * include/grub/x86_64/efi/serial.h: Likewise.
10954 * util/time.c: Likewise.
10955 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
10956
10957 2010-03-14 Colin King <colin.king@ubuntu.com>
10958 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
10959
10960 Shrink the pre-partition-table part of boot.img by eight bytes.
10961
10962 * boot/i386/pc/boot.S (ERR): New macro.
10963 (chs_mode): Use ERR.
10964 (geometry_error): Likewise.
10965 (hd_probe_error): Remove. This is only used once, so we wrwite
10966 it inline instead.
10967 (read_error): Instead of printing read_error_string, just set up
10968 %si and fall through to ...
10969 (error_message): ... this new function, also used by ERR.
10970
10971 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
10972
10973 Speed up consecutive hostdisk operations on the same device.
10974
10975 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
10976 (grub_util_biosdisk_open): Initialise disk->data.
10977 (struct linux_partition_cache): New structure.
10978 (linux_find_partition): Cache partition start positions; these are
10979 expensive to compute on every read and write.
10980 (open_device): Cache open file descriptor in disk->data, so that we
10981 don't have to reopen it and flush the buffer cache for consecutive
10982 operations on the same device.
10983 (grub_util_biosdisk_close): New function.
10984 (grub_util_biosdisk_dev): Set `close' member.
10985
10986 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
10987 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
10988 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
10989 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
10990 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
10991
10992 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
10993
10994 Compile parts of grub-emu as modules.
10995
10996 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
10997 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
10998 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
10999 (all-local): Add $(GRUB_EMU).
11000 (install-local): Install $(GRUB_EMU).
11001 (uninstall): Uninstall $(GRUB_EMU).
11002 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
11003 * kern/dl.c: Likewise.
11004 * commands/sleep.c: Not include machine/time.h.
11005 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
11006 (COMMON_CFLAGS): Likewise.
11007 (sbin_UTILITIES): Remove grub-emu.
11008 (grub_emu_SOURCES): Removed.
11009 (kernel_img_RELOCATABLE): New variable.
11010 (pkglib_PROGRAMS): Add kernel.img.
11011 (kernel_img_SOURCES): New variable
11012 (kernel_img_CFLAGS): Likewise.
11013 (kernel_img_LDFLAGS): Likewise.
11014 (TARGET_NO_STRIP): Likewise.
11015 (TARGET_NO_DYNAMIC_MODULES): Likewise.
11016 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
11017 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
11018 (grub-emu): New target.
11019 (GRUB_EMU): New variable.
11020 * configure.ac: Whitelist -emu as possible x86_64 architecture.
11021 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
11022 * loader/xnu.c: Likewise.
11023 * include/grub/pci.h: Likewise.
11024 * genemuinit.sh: New file.
11025 * genemuinitheader.sh: Likewise.
11026 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
11027 Support TARGET_NO_DYNAMIC_MODULES.
11028 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
11029 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
11030 * disk/loopback.c: Likewise.
11031 * font/font_cmd.c: Likewise.
11032 * partmap/acorn.c: Likewise.
11033 * partmap/amiga.c: Likewise.
11034 * partmap/apple.c: Likewise.
11035 * partmap/gpt.c: Likewise.
11036 * partmap/msdos.c: Likewise.
11037 * partmap/sun.c: Likewise.
11038 * parttool/msdospart.c: Likewise.
11039 * term/gfxterm.c: Likewise.
11040 * video/bitmap.c: Likewise.
11041 * video/readers/jpeg.c: Likewise.
11042 * video/readers/png.c: Likewise.
11043 * video/readers/tga.c: Likewise.
11044 * video/video.c: Likewise.
11045 * util/grub-emu.c (read_command_list): Removed.
11046 (main): Don't call util_init_nls.
11047 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
11048 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
11049
11050 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
11051
11052 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
11053 date.mod, datehook.mod.
11054 (datetime_mod_SOURCES): New variable.
11055 (datetime_mod_CFLAGS): Likewise.
11056 (datetime_mod_LDFLAGS): Likewise.
11057 (date_mod_SOURCES): Likewise.
11058 (date_mod_CFLAGS): Likewise.
11059 (date_mod_LDFLAGS): Likewise.
11060 (datehook_mod_SOURCES): Likewise.
11061 (datehook_mod_CFLAGS): Likewise.
11062 (datehook_mod_LDFLAGS): Likewise.
11063 * conf/sparc64-ieee1275.rmk: Likewise.
11064 * lib/ieee1275/datetime.c: New file.
11065
11066 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
11067
11068 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
11069 (ieee1275_fb_mod_SOURCES): New variable.
11070 (ieee1275_fb_mod_CFLAGS): Likewise.
11071 (ieee1275_fb_mod_LDFLAGS): Likewise.
11072 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
11073 New proto.
11074 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
11075 (HEAP_MAX_ADDR): Likewise.
11076 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
11077 type.
11078 Correct stop condition.
11079 (grub_ieee1275_devices_iterate): New function.
11080 * video/ieee1275.c: New file.
11081
11082 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
11083
11084 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
11085
11086 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
11087 as scratch.
11088 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
11089 SCRATCH_PAD_DISKBOOT as scratch.
11090 (bootit): Pass Openfirmware pointer in %o4.
11091 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
11092 of 0x200000.
11093 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
11094 with util/grub-mkrawimage.c.
11095 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
11096 * include/grub/aout.h (AOUT_MID_SUN): New definition.
11097 (grub_aout_get_type) [GRUB_UTIL]: Removed.
11098 (grub_aout_load) [GRUB_UTIL]: Likewise.
11099 * include/grub/kernel.h (grub_modules_get_end): New proto.
11100 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
11101 (SCRATCH_PAD_BOOT): New definition.
11102 (SCRATCH_PAD_DISKBOOT): Likewise.
11103 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
11104 * include/grub/sparc64/ieee1275/ieee1275.h
11105 (grub_ieee1275_original_stack): New variable
11106 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
11107 New definition
11108 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
11109 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
11110 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
11111 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
11112 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
11113 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
11114 (grub_platform_image_format_t): New type.
11115 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
11116 * kern/main.c (grub_modules_get_end)
11117 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
11118 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
11119 (codestart): Switch stacks.
11120 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
11121 variable.
11122 (grub_heap_init): Use grub_modules_get_end.
11123 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
11124 stack.
11125 * util/grub-mkrawimage.c (generate_image): Support sparc64.
11126 (main): Likewise.
11127 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
11128
11129 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
11130
11131 * util/grub-mkrescue.in: Base ISO UUID on UTC.
11132
11133 2010-03-08 Matt Kraai <kraai@ftbfs.org>
11134
11135 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
11136 bug #559005).
11137
11138 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
11139
11140 * genmoddep.awk: Output all missing symbols and not only first.
11141
11142 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11143
11144 * NEWS: Put the date of 1.98 release.
11145
11146 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11147
11148 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
11149 ft2build.h.
11150
11151 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11152
11153 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
11154 completition in the middle of string.
11155
11156 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11157
11158 * util/grub-mkrescue.in: Use mktemp with explicit template.
11159
11160 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11161
11162 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
11163
11164 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11165
11166 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
11167 right pointer.
11168
11169 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11170
11171 Fix FreeBSD compilation.
11172
11173 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
11174 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
11175
11176 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11177
11178 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
11179
11180 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11181
11182 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
11183
11184 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11185
11186 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
11187
11188 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
11189
11190 Support relative image path in theme file.
11191
11192 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
11193 (image_set_property): Handle theme_dir and relative path.
11194
11195 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11196
11197 * configure.ac: Alias amd64 to x86_64.
11198
11199 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11200
11201 * NEWS: mention multiboot on EFI.
11202
11203 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11204
11205 * kern/main.c (grub_load_modules): Handle errors from init functions of
11206 embeded modules.
11207
11208 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11209
11210 * normal/autofs.c (autoload_fs_module): Handle errors.
11211
11212 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11213
11214 Disable linux.mod on qemu-mips since it's not functional and leads
11215 to compilation failure.
11216
11217 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
11218 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
11219 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
11220 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
11221 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
11222 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
11223 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
11224 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
11225 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
11226 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
11227 Reported by: BVK Chaitanya
11228
11229 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
11230
11231 * INSTALL: Add gettext as a dependency and add qemu to a new section
11232 "Prerequisites for make-check".
11233
11234 2010-03-04 Christian Franke <franke@computer.org>
11235
11236 * util/grub-pe2elf.c: Add missing include "progname.h".
11237
11238 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11239
11240 * normal/crypto.c (read_crypto_list): Fix a typo.
11241 Reported by: Seth Goldberg.
11242
11243 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11244
11245 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
11246 Reported by: Seth Goldberg.
11247
11248 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11249
11250 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
11251 ascii.bitmaps.
11252
11253 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11254
11255 * genmk.rb: Remove terminal*.lst in make clean.
11256 Reported by: Seth Goldberg.
11257
11258 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11259
11260 * util/i386/efi/grub-install.in: Copy gettext files.
11261
11262 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
11263
11264 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
11265
11266 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
11267
11268 Wait for user entry basing on presence of output rather than on errors.
11269
11270 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
11271 (grub_install_newline_hook): Likewise.
11272 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
11273 * normal/menu.c (show_menu): Check line_counter to determine presence
11274 of output.
11275 * normal/term.c (grub_normal_line_counter): New variable.
11276 (grub_normal_get_line_counter): New function.
11277 (grub_install_newline_hook): Likewise.
11278
11279 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
11280
11281 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
11282
11283 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
11284
11285 * configure.ac: Update version to 1.98.
11286
11287 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11288
11289 * util/grub.d/10_linux.in (linux_entry): Don't default to
11290 gfxpayload=keep if Linux doesn't support video handover.
11291
11292 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
11293
11294 Don't compile video modules on yeeloong since video subsystem is part
11295 of kernel.
11296
11297 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
11298 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
11299 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
11300 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
11301 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
11302 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
11303 * include/grub/bitmap_scale.h: Likewise.
11304 * include/grub/bufio.h: Likewise.
11305 * include/grub/font.h: Likewise.
11306 * include/grub/gfxterm.h: Likewise.
11307 * include/grub/video.h: Likewise.
11308 * include/grub/vbe.h: Don't include video_fb.h.
11309 * video/i386/pc/vbe.c: Include video_fb.h.
11310 * commands/i386/pc/vbetest.c: Include video.h.
11311
11312 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
11313
11314 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
11315 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
11316 default entry if GRUB_SAVEDEFAULT=true. This allows using
11317 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
11318 saving a new default on every boot.
11319
11320 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
11321
11322 * normal/crypto.c (read_crypto_list): Fix a memory leak.
11323 * normal/term.c (read_terminal_list): Likewise.
11324 * normal/main.c (grub_normal_init_page): Likewise.
11325 (grub_normal_read_line_real): Likewise.
11326
11327 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
11328
11329 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
11330 memory leak.
11331 Reported by: Seth Goldberg.
11332
11333 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
11334
11335 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
11336 duplicate declaration of `start'.
11337
11338 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
11339
11340 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
11341 filename.
11342 Reported by: Georgy Buranov
11343
11344 2010-02-20 Carles Pina i Estany <carles@pina.cat>
11345
11346 * util/grub-mkrawimage.c (usage): Change string formatting to
11347 improve gettext.
11348
11349 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
11350
11351 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
11352 backspace keys.
11353
11354 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
11355
11356 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
11357 Reported by: Michael Suchanek.
11358
11359 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
11360
11361 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
11362 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
11363
11364 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
11365
11366 Remove any reference to non-free fonts.
11367
11368 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
11369 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
11370 uses non-free components.
11371 * font/font.c (grub_font_get_name): Remove example name.
11372 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
11373 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
11374 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
11375 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
11376
11377 2010-02-16 Georgy Buranov <gburanov@gmail.com>
11378
11379 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
11380
11381 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
11382
11383 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
11384 Double divisor.
11385 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
11386 features.
11387 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
11388
11389 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
11390
11391 * gensymlist.sh.in: Use TARGET_CC instead of CC.
11392
11393 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
11394
11395 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
11396 * docs/grub.texi (Command-line and menu entry commands): Document play
11397 command.
11398
11399 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
11400
11401 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
11402 parse arguments as inline tempo and notes. Move code for playing notes
11403 to...
11404 (play): ... new function.
11405
11406 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
11407
11408 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
11409 grub_uint16_t instead of short.
11410 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
11411 disk from little endian to cpu endianness.
11412
11413 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
11414
11415 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
11416 GRUB_TICKS_PER_SECOND instead of 120.
11417
11418 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
11419
11420 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
11421 escape sequence after \e.
11422
11423 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
11424
11425 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
11426 non-ASCII characters.
11427
11428 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
11429
11430 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
11431 set root in single quotes to prevent \, from being unescaped.
11432
11433 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
11434
11435 Prevent unknown commands from stopping menuentry execution.
11436
11437 * script/execute.c (grub_script_execute_cmdline): Print error after
11438 unknown command.
11439
11440 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
11441
11442 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
11443 Reported by: Pavel Pisa.
11444
11445 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
11446
11447 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
11448
11449 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
11450
11451 Merge grub_ieee1275_map_physical into grub_map and rename to
11452 grub_ieee1275_map
11453
11454 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
11455 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
11456 Remove.
11457 * kern/ieee1275/openfw.c (grub_map): Rename to ...
11458 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
11459 necessary.
11460 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
11461
11462 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
11463
11464 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
11465 opening and not after.
11466
11467 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
11468
11469 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
11470 constants.
11471
11472 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
11473
11474 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
11475 (alloc_phys): Use ALIGN_UP instead of align_addr.
11476
11477 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
11478
11479 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
11480
11481 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
11482
11483 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
11484
11485 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
11486
11487 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
11488 verbose dprintf.
11489
11490 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
11491
11492 Fix over-4GiB seek on sparc64.
11493
11494 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
11495 Replace pos_i and pos_lo with pos. All users updated.
11496 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
11497 New constant.
11498 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
11499 Likewise.
11500 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
11501 and pos_lo.
11502
11503 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
11504
11505 * util/grub-mkrawimage.c (main): Call set_program_name.
11506
11507 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
11508
11509 Properly align 64-bit targets.
11510
11511 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
11512 (generate_image): Use ALIGN_ADDR.
11513
11514 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
11515
11516 Properly create cross-endian images.
11517
11518 * include/grub/types.h (grub_host_to_target_addr): New macro
11519 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
11520
11521 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
11522
11523 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
11524
11525 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
11526
11527 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
11528
11529 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
11530 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
11531 (grub_linux_boot): Divide by 64K when on VESA.
11532
11533 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
11534
11535 Support GRUB_GFXPAYLOAD_LINUX.
11536
11537 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
11538 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
11539
11540 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
11541
11542 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
11543 to show messages instead of discarding them.
11544 Process errors after executing command and not before. Keep old method
11545 too as precaution.
11546
11547 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
11548
11549 * configure.ac: Check for ft2build.h.
11550
11551 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
11552
11553 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
11554
11555 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
11556
11557 * genkernsyms.sh.in: Use TARGET_CC.
11558
11559 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
11560
11561 * NEWS: Update.
11562
11563 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
11564
11565 * include/grub/multiboot2.h: Remove leftover file.
11566 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
11567 * include/grub/partition.h [GRUB_UTIL]: Likewise.
11568
11569 2010-02-07 Yves Blusseau <blusseau@zetam.org>
11570
11571 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
11572
11573 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
11574
11575 Fix warnings in grub-emu when compiling with maximum warning options.
11576
11577 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
11578 (grub_arch_modules_addr): Return 0 and not NULL.
11579 * util/misc.c (ENABLE_RELOCATABLE): New definition.
11580 (xstrdup): Use newstr instead of dup.
11581 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
11582 of disk to dsk to avoid shadowing.
11583 (find_free_slot): Fix prototype.
11584 * util/getroot.c (grub_util_is_dmraid): Make static.
11585 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
11586 Add missing prototype.
11587 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
11588
11589 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
11590
11591 * loader/i386/linux.c (grub_linux_setup_video): Handle error
11592 appropriately.
11593
11594 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
11595
11596 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
11597 code out.
11598
11599 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
11600
11601 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
11602 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
11603 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
11604 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
11605 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
11606 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
11607
11608 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
11609
11610 * include/grub/err.h (grub_err_printf): Don't export.
11611
11612 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
11613
11614 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
11615
11616 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
11617
11618 * include/grub/i18n.h (grub_gettext_dummy): Removed.
11619 * kern/misc.c (grub_gettext_dummy): Make static.
11620
11621 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
11622
11623 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
11624 by non-valid ones.
11625 * kern/term.c (grub_putchar): Likewise.
11626
11627 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
11628
11629 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
11630 buggy hook call and memory leak.
11631
11632 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
11633
11634 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
11635
11636 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
11637
11638 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
11639
11640 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
11641
11642 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
11643 modevar.
11644 Return grub_errno on allocation error.
11645
11646 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
11647
11648 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
11649
11650 2010-02-06 Yves Blusseau <blusseau@zetam.org>
11651
11652 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
11653 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
11654
11655 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
11656
11657 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
11658 non-pxe disk.
11659 (grub_pxefs_open): Likewise.
11660
11661 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
11662
11663 * util/grub.d/10_hurd.in: Add --class information to menuentries.
11664 * util/grub.d/10_kfreebsd.in: Likewise.
11665 * util/grub.d/10_linux.in: Likewise.
11666
11667 2010-02-06 Colin D Bennett <colin@gibibit.com>
11668
11669 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
11670 (gfxmenu_mod_SOURCES): New variable.
11671 (gfxmenu_mod_CFLAGS): Likewise.
11672 (gfxmenu_mod_LDFLAGS): Likewise.
11673 * include/grub/term.h (grub_term_set_current_output): Declare
11674 argument as const.
11675 * docs/gfxmenu-theme-example.txt: New file.
11676 * gfxmenu/gfxmenu.c: Likewise.
11677 * gfxmenu/gui_box.c: Likewise.
11678 * gfxmenu/gui_canvas.c: Likewise.
11679 * gfxmenu/gui_circular_progress.c: Likewise.
11680 * gfxmenu/gui_image.c: Likewise.
11681 * gfxmenu/gui_label.c: Likewise.
11682 * gfxmenu/gui_list.c: Likewise.
11683 * gfxmenu/gui_progress_bar.c: Likewise.
11684 * gfxmenu/gui_string_util.c: Likewise.
11685 * gfxmenu/gui_util.c: Likewise.
11686 * gfxmenu/icon_manager.c: Likewise.
11687 * gfxmenu/model.c: Likewise.
11688 * gfxmenu/named_colors.c: Likewise.
11689 * gfxmenu/theme_loader.c: Likewise.
11690 * gfxmenu/view.c: Likewise.
11691 * gfxmenu/widget-box.c: Likewise.
11692 * include/grub/gfxmenu_model.h: Likewise.
11693 * include/grub/gfxmenu_view.h: Likewise.
11694 * include/grub/gfxwidgets.h: Likewise.
11695 * include/grub/gui.h: Likewise.
11696 * include/grub/gui_string_util.h: Likewise.
11697 * include/grub/icon_manager.h: Likewise.
11698
11699 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
11700
11701 Agglomerate scrolling in gfxterm.
11702
11703 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
11704 (grub_virtual_screen_setup): Initialise 'total_screen'.
11705 (write_char): Split to ...
11706 (paint_char): ... this ...
11707 (write_char): ... and this.
11708 (paint_char): Handle delayed scrolling.
11709 (draw_cursor): Likewise.
11710 (scroll_up): Split to ...
11711 (real_scroll): ... this ...
11712 (scroll_up): ... and this.
11713 (real_scroll): Handle multi-line scroll and draw below-the-bottom
11714 characters.
11715 (grub_gfxterm_refresh): Call real_scroll.
11716
11717 2010-02-06 Colin D Bennett <colin@gibibit.com>
11718
11719 * include/grub/misc.h (grub_iscntrl): New inline function.
11720 (grub_isalnum): Likewise.
11721 (grub_strtol): Likewise.
11722
11723 2010-02-06 Colin D Bennett <colin@gibibit.com>
11724
11725 * normal/menu_text.c (get_entry_number): Move from here ...
11726 * normal/menu.c (get_entry_number): ... moved here.
11727 * include/grub/menu.h (grub_menu_get_default_entry_index):
11728 New prototype.
11729 * normal/menu.c (grub_menu_get_default_entry_index): New function.
11730 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
11731 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
11732 (grub_menu_viewer_should_return): Likewise.
11733 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
11734 * normal/menu_text.c (run_menu): Enable menu switching.
11735 * normal/menu_viewer.c (should_return): New variable.
11736 (menu_viewer_changed): Likewise.
11737 (grub_menu_viewer_show_menu): Handle menu viewer changes.
11738 (grub_menu_viewer_should_return): New function.
11739 (menuviewer_write_hook): Likewise.
11740 (grub_menu_viewer_init): Likewise.
11741
11742 2010-02-06 Colin D Bennet <colin@gibibit.com>
11743 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
11744
11745 Support for gfxterm in a window.
11746
11747 * include/grub/gfxterm.h: New file.
11748 * include/grub/video.h (struct grub_video_rect): New declaration.
11749 (grub_video_rect_t): Likewise.
11750 * term/gfxterm.c (struct grub_gfxterm_window): New type.
11751 (refcount): New variable.
11752 (render_target): Likewise.
11753 (window): Likewise.
11754 (repaint_callback): Likewise.
11755 (grub_virtual_screen_setup): Use 'render_target'.
11756 (init_window): New function.
11757 (grub_gfxterm_init_window): Likewise.
11758 (grub_gfxterm_init): Check reference counter.
11759 Use init_window.
11760 (destroy_window): New function.
11761 (grub_gfxterm_destroy_window): Likewise.
11762 (grub_gfxterm_fini): Check reference counter.
11763 Use destroy_window.
11764 (redraw_screen_rect): Restore viewport.
11765 Use 'render_target' and 'window'.
11766 Call 'repaint_callback'.
11767 (write_char): Use 'render_target'.
11768 (draw_cursor): Likewise.
11769 (scroll_up): Restore viewport.
11770 Use 'render_target' and 'window'.
11771 Call 'repaint_callback'.
11772 (grub_gfxterm_cls): Likewise.
11773 (grub_gfxterm_refresh): Use 'window'.
11774 (grub_gfxterm_set_repaint_callback): New function.
11775 (grub_gfxterm_background_image_cmd): Use 'window'.
11776 (grub_gfxterm_get_term): New function.
11777 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
11778
11779 2010-02-06 Colin D Bennett <colin@gibibit.com>
11780
11781 Bitmap scaling support.
11782
11783 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
11784 (bitmap_scale_mod_SOURCES): New variable.
11785 (bitmap_scale_mod_CFLAGS): Likewise.
11786 (bitmap_scale_mod_LDFLAGS): Likewise.
11787 * include/grub/bitmap_scale.h: New file.
11788 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
11789 (background_image_cmd_options): New variable.
11790 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
11791 (cmd): Rename and change type to ...
11792 (background_image_cmd_handle): ... this. All users updated.
11793 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
11794 * video/bitmap_scale.c: New file.
11795
11796 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
11797
11798 SDL support.
11799
11800 * Makefile.in (LIBSDL): New variable.
11801 (enable_grub_emu_sdl): Likewise.
11802 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
11803 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
11804 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
11805 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
11806 * util/sdl.c: New file.
11807
11808 2010-02-06 Colin D Bennett <colin@gibibit.com>
11809 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
11810
11811 Double buffering support.
11812
11813 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
11814 * include/grub/video.h: Update comment.
11815 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
11816 New type.
11817 (grub_video_fb_doublebuf_blit_init): New prototype.
11818 * term/gfxterm.c (scroll_up): Support double buffering.
11819 (grub_gfxterm_refresh): Likewise.
11820 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
11821 (grub_video_fb_doublebuf_blit_init): Likewise.
11822 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
11823 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
11824 'displayed_page', 'render_page' and 'update_screen'.
11825 (grub_video_vbe_fini): Free offscreen buffer.
11826 (doublebuf_pageflipping_commit): New function.
11827 (doublebuf_pageflipping_update_screen): Likewise.
11828 (doublebuf_pageflipping_init): Likewise.
11829 (double_buffering_init): Likewise.
11830 (grub_video_vbe_setup): Enable doublebuffering.
11831 (grub_video_vbe_swap_buffers): Implement.
11832 (grub_video_vbe_set_active_render_target): Handle double buffering.
11833 (grub_video_vbe_get_active_render_target): Likewise.
11834 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
11835 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
11836 (grub_video_vbe_enable_double_buffering): Likewise.
11837 (grub_video_vbe_swap_buffers): Use update_screen.
11838 (grub_video_set_mode): Use double buffering.
11839
11840 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
11841
11842 * maintainance/gentrigtables.py: Remove.
11843 * lib/trig.c: Likewise.
11844
11845 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
11846
11847 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
11848 `trigtables.c'.
11849 (trigtables.c): New rule.
11850 (gentrigtables): Likewise.
11851 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
11852
11853 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
11854
11855 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
11856 integer constants.
11857
11858 2010-02-06 Colin D Bennet <colin@gibibit.com>
11859
11860 Trigonometry support.
11861
11862 * include/grub/trig.h: New file.
11863 * lib/trig.c: Likewise.
11864 * maintainance/gentrigtables.py: Likewise.
11865 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
11866 (trig_mod_SOURCES): New variable.
11867 (trig_mod_CFLAGS): Likewise.
11868 (trig_mod_LDFLAGS): Likewise.
11869
11870 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
11871
11872 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
11873 disk devices.
11874
11875 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
11876
11877 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
11878 error.
11879
11880 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
11881
11882 * util/hostdisk.c (open_device): Don't use partition device when reading
11883 before the partition.
11884 (grub_util_biosdisk_read): Don't read from partition and before the
11885 partition in single operation.
11886 (grub_util_biosdisk_write): Don't write to partition and before the
11887 partition in single operation.
11888
11889 2010-02-03 Torsten Landschoff <torsten@debian.org>
11890
11891 * kern/disk.c (grub_disk_read): Fix offset computation when reading
11892 last sectors.
11893
11894 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
11895
11896 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
11897 CDROM reads.
11898 (grub_biosdisk_write): Refuse to write to CDROM.
11899
11900 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
11901
11902 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
11903
11904 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
11905
11906 * font/font.c (find_glyph): Check that bmp_idx is available before
11907 using it.
11908 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
11909 with (font == NULL).
11910
11911 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
11912
11913 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
11914
11915 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
11916
11917 * include/grub/script_sh.h (sourcecode): Add const qualifier.
11918 * util/grub-script-check.c (getline): Fix empty lines case.
11919
11920 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
11921
11922 * Makefile.in (check): Exit with fail status when one of the tests
11923 fails.
11924 * tests/example_functional_test.c (example_test): Fix reversed assert.
11925 * tests/example_unit_test.c (example_test): Likewise.
11926
11927 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
11928
11929 * util/grub.d/10_linux.in: This script does not use any of the
11930 contents of gettext.sh, only the external command `gettext', so stop
11931 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
11932 the same prefix as GRUB.)
11933 * util/grub.d/10_kfreebsd.in: Likewise.
11934
11935 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
11936
11937 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
11938 of the line.
11939
11940 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
11941
11942 * kern/disk.c (grub_disk_read): Fix offset computation when reading
11943 last sectors.
11944
11945 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
11946
11947 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
11948 having a 4KiB and not 32KiB buffer size.
11949
11950 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
11951
11952 * util/hostfs.c: Include `<errno.h>'.
11953 (grub_hostfs_read): Handle errors from fseeko() and fread().
11954
11955 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
11956
11957 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
11958 loop when using read hooks on files whose size isn't sector-aligned.
11959
11960 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
11961
11962 Remove unused parameter.
11963
11964 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
11965 (grub_iso9660_open): Remove initialization of `data->length'.
11966
11967 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
11968
11969 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
11970 memleak conditions.
11971
11972 2010-01-27 Carles Pina i Estany <carles@pina.cat>
11973
11974 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
11975 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
11976
11977 2010-01-26 Carles Pina i Estany <carles@pina.cat>
11978
11979 * util/bin2h.c (usage): Fix warning (space after backslash).
11980
11981 2010-01-26 Carles Pina i Estany <carles@pina.cat>
11982
11983 * font/font.c: Include `grub/fontformat.h.
11984 Remove font file format constants.
11985 (grub_font_load): Use the new macros.
11986 * include/grub/fontformat.h: New file.
11987 * util/grub-mkfont.c: Include `grub/fontformat.c'.
11988 (write_font_pf2): Use the new macros.
11989
11990 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
11991
11992 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
11993 does.
11994
11995 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
11996
11997 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
11998
11999 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
12000 (_start): Macroify `0x7F'.
12001
12002 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
12003 (make_install_device): Use "(pxe)" as fallback prefix when booting
12004 via PXE.
12005
12006 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
12007
12008 * configure.ac: Reset LIBS after check for libgcc symbols.
12009
12010 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
12011
12012 * util/hostdisk.c (open_device): Add trailing newline to debug
12013 message.
12014
12015 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
12016
12017 * configure.ac: Check for `limits.h'.
12018 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
12019
12020 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
12021
12022 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
12023 capitalize error strings.
12024
12025 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
12026
12027 * util/grub.d/10_hurd.in: Add a recovery mode.
12028
12029 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
12030
12031 * configure.ac: Check for libgcc symbols with -nostdlib.
12032
12033 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
12034
12035 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
12036
12037 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
12038
12039 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
12040 stack since heap may be unavailable at that point.
12041 (grub_ofconsole_gotoxy): Likewise.
12042
12043 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
12044
12045 * configure.ac: Check for _restgpr_14_x.
12046 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
12047 and _savegpr_* prototypes.
12048
12049 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
12050
12051 Use generic grub_reboot() for i386-efi.
12052
12053 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
12054 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
12055 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
12056
12057 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
12058
12059 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
12060 presence of "prefix" variable as it breaks when normal.mod is
12061 embedded.
12062
12063 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
12064
12065 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
12066 stack since heap is unavailable at that point.
12067
12068 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
12069
12070 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
12071 (grub_freebsd_bootinfo): Rewritten.
12072 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
12073
12074 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
12075
12076 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
12077
12078 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
12079
12080 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
12081 domain now.
12082
12083 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
12084
12085 * util/misc.c (make_system_path_relative_to_its_root): Change the work
12086 around for handling "/" to the correct fix. Fix a memory leak. Use
12087 xstrdup instead of strdup.
12088
12089 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
12090
12091 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
12092
12093 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
12094
12095 Optimise glyph lookup by Basic Multilingual Plane lookup array.
12096
12097 * font/font.c (struct grub_font): New member 'bmp_idx'.
12098 (font_init): Initialise 'bmp_idx'.
12099 (load_font_index): Fill 'bmp_idx'.
12100 (find_glyph): Make inline. Use bmp_idx for BMP characters.
12101
12102 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
12103
12104 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
12105 unnecessary calls.
12106
12107 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
12108
12109 Move context handling out of the kernel.
12110
12111 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
12112 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
12113 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
12114 * conf/i386-efi.rmk: Likewise.
12115 * conf/i386-ieee1275.rmk: Likewise.
12116 * conf/i386-pc.rmk: Likewise.
12117 * conf/powerpc-ieee1275.rmk: Likewise.
12118 * conf/sparc64-ieee1275.rmk: Likewise.
12119 * conf/x86_64-efi.rmk: Likewise.
12120 * include/grub/env.h: Include grub/menu.h.
12121 (grub_env_var_type): Removed.
12122 (grub_env_var): Replaced field 'type' with 'global'.
12123 (grub_env_find): New prototype.
12124 (grub_env_context_open): Remove EXPORT_FUNC.
12125 (grub_env_context_close): Likewise.
12126 (grub_env_export): Likewise.
12127 (grub_env_set_data_slot): Removed.
12128 (grub_env_get_data_slot): Likewise.
12129 (grub_env_unset_data_slot): Likewise.
12130 (grub_env_unset_menu): New prototype.
12131 (grub_env_set_menu): Likewise.
12132 (grub_env_get_menu): Likewise.
12133 * include/grub/env_private.h: New file.
12134 * include/grub/normal.h (grub_context_init): New prototype.
12135 (grub_context_fini): Likewise.
12136 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
12137 * normal/context.c (grub_cmd_export): ... to here.
12138 * kern/env.c: Include env_private.h.
12139 (HASHSZ): Moved to include/grub/env_private.h.
12140 (grub_env_context): Likewise.
12141 (grub_env_sorted_var): Likewise.
12142 (current_context): Renamed from this ...
12143 (grub_current_context): ...to this. 'static' removed. All users updated.
12144 (grub_env_find): Removed 'static'.
12145 (grub_env_context_open): Moved to normal/context.c.
12146 (grub_env_context_close): Likewise.
12147 (grub_env_export): Likewise.
12148 (mangle_data_slot_name): Removed.
12149 (grub_env_set_data_slot): Likewise.
12150 (grub_env_get_data_slot): Likewise.
12151 (grub_env_unset_data_slot): Likewise.
12152 * kern/main.c (grub_set_root_dev): Don't export root.
12153 It will be done later.
12154 (grub_main): Don't export prefix.
12155 It will be done later.
12156 * normal/context.c: New file.
12157 * normal/main.c (free_menu): Use grub_env_unset_menu.
12158 (grub_normal_add_menu_entry): Use grub_env_get_menu.
12159 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
12160 (GRUB_MOD_INIT(normal)): Call grub_context_init.
12161 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
12162
12163 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
12164
12165 setpci support.
12166
12167 * commands/setpci.c: New file.
12168 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
12169 (setpci_mod_SOURCES): New variable.
12170 (setpci_mod_CFLAGS): Likewise.
12171 (setpci_mod_LDFLAGS): Likewise.
12172
12173 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
12174
12175 Byte-addressable PCI configuration space.
12176
12177 * bus/pci.c (grub_pci_make_address): Use byte address instead of
12178 dword address.
12179 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
12180 GRUB_PCI_REG_CACHELINE.
12181 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
12182 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
12183 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
12184 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
12185 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
12186 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
12187 grub_pci_make_address.
12188 (lock_rom_area): Likewise.
12189 * commands/lspci.c (grub_lspci_iter): Use macroses
12190 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
12191 of grub_pci_make_address.
12192 * disk/ata.c (grub_ata_pciinit): Likewise.
12193 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
12194 (GRUB_PCI_REG_VENDOR): Likewise.
12195 (GRUB_PCI_REG_DEVICE): Likewise.
12196 (GRUB_PCI_REG_COMMAND): Likewise.
12197 (GRUB_PCI_REG_STATUS): Likewise.
12198 (GRUB_PCI_REG_REVISION): Likewise.
12199 (GRUB_PCI_REG_CLASS): Likewise.
12200 (GRUB_PCI_REG_CACHELINE): Likewise.
12201 (GRUB_PCI_REG_LAT_TIMER): Likewise.
12202 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
12203 (GRUB_PCI_REG_BIST): Likewise.
12204 (GRUB_PCI_REG_ADDRESSES): Likewise.
12205 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
12206 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
12207 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
12208 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
12209 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
12210 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
12211 (GRUB_PCI_REG_CIS_POINTER): Likewise.
12212 (GRUB_PCI_REG_SUBVENDOR): Likewise.
12213 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
12214 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
12215 (GRUB_PCI_REG_CAP_POINTER): Likewise.
12216 (GRUB_PCI_REG_IRQ_LINE): Likewise.
12217 (GRUB_PCI_REG_IRQ_PIN): Likewise.
12218 (GRUB_PCI_REG_MIN_GNT): Likewise.
12219 (GRUB_PCI_REG_MAX_LAT): Likewise.
12220 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
12221 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
12222 * video/efi_uga.c (find_framebuf): Likewise.
12223 * video/sm712.c (grub_video_sm712_setup): Likewise.
12224 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
12225 space.
12226
12227 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
12228
12229 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
12230 can be reliably determined to be supported.
12231
12232 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
12233
12234 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
12235 that VESA is supported.
12236 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
12237 supported.
12238
12239 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
12240
12241 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
12242
12243 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
12244
12245 * util/misc.c (make_system_path_relative_to_its_root): Work around
12246 special-casing of "/", as previous incarnation of this routine did.
12247
12248 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
12249
12250 Fix any-emu compilation.
12251
12252 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
12253 * grub_bin2h_SOURCES: New variable.
12254
12255 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
12256
12257 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
12258
12259 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
12260
12261 * util/grub.d/00_header.in: Fix handling of locale_dir.
12262
12263 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
12264
12265 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
12266 as possible unifont location (Gentoo).
12267 Reported by: Alexander Brüning
12268
12269 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
12270
12271 Don't try to generate lists for kernel.img.
12272
12273 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
12274 (pkglib_MODULES): Remove kernel.img.
12275 (kernel_img_EXPORTS): Removed.
12276 (kernel_img_RELOCATABLE): New variable.
12277 * conf/x86_64-efi.rmk: Likewise.
12278 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
12279
12280 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
12281
12282 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
12283 grub_xasprintf or grub_snprintf.
12284 (grub_vsprintf): Likewise.
12285 (grub_snprintf): New proto.
12286 (grub_vsnprintf): Likewise.
12287 (grub_xasprintf): Likewise.
12288 (grub_xvasprintf): Likewise.
12289 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
12290 (grub_sprintf): Removed.
12291 (grub_vsnprintf): New function.
12292 (grub_snprintf): Likewise.
12293 (grub_xvasprintf): Likewise.
12294 (grub_xasprintf): Likewise.
12295 (grub_vsprintf): Renamed to ...
12296 (grub_vsnprintf_real): ...this. New argument max_len.
12297
12298 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
12299
12300 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
12301 fix grub-script-check warning.
12302
12303 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
12304
12305 * include/grub/font.h (grub_font_load): Fix prototype.
12306
12307 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
12308
12309 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
12310
12311 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
12312
12313 * include/grub/x86_64/at_keyboard.h: New file.
12314
12315 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
12316
12317 * loader/mips/linux.c: Include missing grub/i18n.h.
12318
12319 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
12320
12321 * normal/menu.c (notify_execution_failure): Clarify error message.
12322
12323 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
12324
12325 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
12326 return value (and revert all return statements). Update users.
12327
12328 2010-01-20 Dan Merillat <debian@dan.merillat.org>
12329
12330 * kern/device.c (grub_device_iterate): Allocate new part_ent
12331 structure based on sizeof (*p) rather than sizeof (p->next), to
12332 account for structure padding.
12333
12334 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
12335 disk is NULL, which might happen for LVM physical volumes with no
12336 LVM signature.
12337
12338 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
12339
12340 * loader/mips/linux.c (grub_cmd_initrd)
12341 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
12342
12343 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
12344
12345 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
12346 (grub_video_video_init, grub_video_bitmap_init)
12347 (grub_font_manager_init, grub_term_gfxterm_init)
12348 (grub_at_keyboard_init): New extern declarations.
12349 (grub_machine_init): Initialize gfxterm and at_keyboard.
12350
12351 * kern/main.c (grub_main): Revert grub_printf delay kludge.
12352
12353 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
12354 `gfxterm.mod' into core image.
12355
12356 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
12357 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
12358 (kernel_img_FORMAT): Copy to ...
12359
12360 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
12361 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
12362 (kernel_img_FORMAT): ... here, and ...
12363
12364 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
12365 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
12366 (kernel_img_FORMAT): ... here.
12367
12368 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
12369 and input (at_keyboard) terminals in kernel.
12370 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
12371
12372 (pkglib_MODULES): Remove `pci.mod'.
12373 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
12374 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
12375 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
12376 (at_keyboard_mod_LDFLAGS): Remove variables.
12377
12378 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
12379
12380 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
12381
12382 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
12383
12384 * include/grub/mips/libgcc.h: Only export symbols for functions
12385 that libgcc provides.
12386
12387 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
12388
12389 MIPS support.
12390
12391 * bus/bonito.c: New file.
12392 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
12393 GRUB_PCI_NUM_DEVICES.
12394 * term/i386/pc/serial.c: Move to ...
12395 * term/serial.c: ... here. All users updated.
12396 * util/i386/pc/grub-mkimage.c: Move to ...
12397 * util/grub-mkrawimage.c: ... here. All users updated.
12398 * term/i386/pc/at_keyboard.c: Move to ...
12399 * term/at_keyboard.c: ... here. All users updated.
12400 * conf/mips-qemu-mips.rmk: New file.
12401 * conf/mips-yeeloong.rmk: Likewise.
12402 * conf/mips.rmk: Likewise.
12403 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
12404 mipsel-qemu-mips.
12405 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
12406 to port addresses.
12407 (grub_ata_pciinit): Support CS5536.
12408 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
12409 * font/font_cmd.c (loadfont_command): Open file before passing it to
12410 grub_font_load.
12411 (pseudo_file_read): New function.
12412 (pseudo_file_close): Likewise.
12413 (pseudo_fs): New structure.
12414 (load_font_module): New function.
12415 (GRUB_MOD_INIT(font_manager)): Load embedded font.
12416 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
12417 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
12418 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
12419 * include/grub/i386/at_keyboard.h: Split into ...
12420 * include/grub/at_keyboard.h: ... this ...
12421 * include/grub/i386/at_keyboard.h: ... and this.
12422 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
12423 New prototype.
12424 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
12425 updated.
12426 (grub_elf64_size): Likewise.
12427 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
12428 filename.
12429 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
12430 * include/grub/i386/coreboot/serial.h: Rewritten.
12431 * include/grub/i386/ieee1275/serial.h: Include
12432 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
12433 * include/grub/i386/pc/serial.h: Moved from here ...
12434 * include/grub/serial.h: ... to here. All users updated.
12435 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
12436 (GRUB_PCI_NUM_BUS): Likewise.
12437 (GRUB_PCI_NUM_DEVICES): Likewise.
12438 (grub_pci_device_map_range): Add missing volatile keyword.
12439 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
12440 * include/grub/mips/at_keyboard.h: New file.
12441 * include/grub/mips/cache.h: Likewise.
12442 * include/grub/mips/io.h: Likewise.
12443 * include/grub/mips/kernel.h: Likewise.
12444 * include/grub/mips/libgcc.h: Likewise.
12445 * include/grub/mips/pci.h: Likewise.
12446 * include/grub/mips/qemu-mips/boot.h: Likewise.
12447 * include/grub/mips/qemu-mips/kernel.h: Likewise.
12448 * include/grub/mips/qemu-mips/loader.h: Likewise.
12449 * include/grub/mips/qemu-mips/memory.h: Likewise.
12450 * include/grub/mips/qemu-mips/serial.h: Likewise.
12451 * include/grub/mips/qemu-mips/time.h: Likewise.
12452 * include/grub/mips/relocator.h: Likewise.
12453 * include/grub/mips/time.h: Likewise.
12454 * include/grub/mips/types.h: Likewise.
12455 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
12456 * include/grub/mips/yeeloong/boot.h: Likewise.
12457 * include/grub/mips/yeeloong/kernel.h: Likewise.
12458 * include/grub/mips/yeeloong/loader.h: Likewise.
12459 * include/grub/mips/yeeloong/memory.h: Likewise.
12460 * include/grub/mips/yeeloong/pci.h: Likewise.
12461 * include/grub/mips/yeeloong/serial.h: Likewise.
12462 * include/grub/mips/yeeloong/time.h: Likewise.
12463 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
12464 * kern/elf.c (grub_elf32_size): New parameter. All users
12465 updated.
12466 (grub_elf64_size): Likewise.
12467 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
12468 Load modules before saying "Welcome to GRUB!".
12469 Call grub_refresh after saying "Welcome to GRUB!".
12470 * kern/mips/cache.S: New file.
12471 * kern/mips/cache_flush.S: Likewise.
12472 * kern/mips/dl.c: Likewise.
12473 * kern/mips/init.c: Likewise.
12474 * kern/mips/qemu-mips/init.c: Likewise.
12475 * kern/mips/startup.S: Likewise.
12476 * kern/mips/yeeloong/init.c: Likewise.
12477 * kern/term.c (grub_putcode): Handle NULL terminal.
12478 (grub_getcharwidth): Likewise.
12479 (grub_getkey): Likewise.
12480 (grub_checkkey): Likewise.
12481 (grub_getkeystatus): Likewise.
12482 (grub_getxy): Likewise.
12483 (grub_getwh): Likewise.
12484 (grub_gotoxy): Likewise.
12485 (grub_cls): Likewise.
12486 (grub_setcolorstate): Likewise.
12487 (grub_setcolor): Likewise.
12488 (grub_getcolor): Likewise.
12489 (grub_refresh): Likewise.
12490 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
12491 (write_jump): Add hatch nop.
12492 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
12493 * lib/mips/setjmp.S: New file.
12494 * loader/mips/linux.c: Likewise.
12495 * term/i386/pc/at_keyboard.c: Move from here ...
12496 * term/at_keyboard.c: ... to here.
12497 * term/i386/pc/serial.c: Moved from here ...
12498 * term/serial.c: ... to here. All users updated.
12499 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
12500 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
12501 (serial_translate_key_sequence): Avoid deadlock.
12502 (grub_serial_getkey): Handle backspace.
12503 (grub_serial_putchar): Fix newline handling.
12504 * util/i386/pc/grub-mkimage.c: Move from here ...
12505 * util/grub-mkrawimage.c: ... to here. All users updated.
12506 (generate_image): New parameters 'font_path' and 'format'.
12507 Support embedding font.
12508 Use grub_host_to_target* instead of grub_cpu_to_le*.
12509 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
12510 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
12511 (options): New option "--font".
12512 (usage): Likewise.
12513 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
12514 (main): Handle "--font".
12515 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
12516 (grub_virtual_screen_setup): Set bg_color_display.
12517 (redraw_screen_rect): Use bg_color_display instead of incorrect
12518 bg_color.
12519 (grub_gfxterm_cls): Likewise.
12520 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
12521 Support embedding config file.
12522 (add_segments): Likewise.
12523 (options): New option "--config".
12524 (main): Handle "--config".
12525 * video/sm712.c: New file.
12526
12527 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
12528
12529 Fix parallel builds.
12530
12531 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
12532 font.c depend on ascii.h).
12533
12534 2010-01-12 Carles Pina i Estany <carles@pina.cat>
12535
12536 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
12537
12538 2010-01-11 Carles Pina i Estany <carles@pina.cat>
12539
12540 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
12541 By default: disabled.
12542 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
12543 parameter.
12544
12545 2010-01-10 Carles Pina i Estany <carles@pina.cat>
12546
12547 * font/font.c: Update copyright years.
12548 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
12549
12550 2010-01-10 Carles Pina i Estany <carles@pina.cat>
12551
12552 * font/font.c: Include `ascii.h'.
12553 (ASCII_BITMAP_SIZE): New macro.
12554 (ascii_font_glyph): Define.
12555 (ascii_glyph_lookup): New function.
12556 (grub_font_get_string_width): Change comment. If glyph not found, use
12557 ascii_glyph_lookup.
12558 (grub_font_get_glyph_with_fallback): If glyph not available returns
12559 ascii_glyph_lookup.
12560 * util/grub-mkfont.c (file_formats): New enum.
12561 (options): Add `ascii-bitmaps' new option.
12562 (usage): Add `asii-bitmaps' new option.
12563 (write_font_ascii_bitmap): New function.
12564 (write_font): Rename to ...
12565 (write_font_p2): ... this. Remove print_glyphs call.
12566 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
12567 used. Call print_glyphs.
12568 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
12569
12570 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
12571
12572 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
12573 (grub_bin2h_SOURCES): New variable.
12574 * util/bin2h.c: New file.
12575
12576 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
12577
12578 * include/multiboot.h: Resynced with spec.
12579 * include/multiboot2.h: Likewise.
12580 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
12581 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
12582
12583 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
12584
12585 * include/grub/term.h (grub_term_register_input,
12586 grub_term_register_output): Check return of terminal init()
12587 routines, and abort if errors are raised.
12588
12589 * commands/terminal.c: Update copyright year.
12590
12591 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
12592
12593 * commands/terminal.c (grub_cmd_terminal_input)
12594 (grub_cmd_terminal_output): Check return of terminal init()
12595 routines, and abort if errors are raised.
12596
12597 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
12598
12599 * include/grub/i386/bsd.h: Fix include pathes.
12600
12601 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
12602
12603 Add missing *BSD copyright headers.
12604
12605 * include/grub/aout.h: Add BSD licence.
12606 * include/grub/i386/bsd.h: Parts under different licences moved to ...
12607 * include/grub/i386/freebsd_linker.h: ... here,
12608 * include/grub/i386/freebsd_reboot.h: ... here,
12609 * include/grub/i386/netbsd_bootinfo.h: ... here,
12610 * include/grub/i386/netbsd_reboot.h: ... here,
12611 * include/grub/i386/openbsd_bootarg.h: ... here,
12612 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
12613 licence to each file.
12614
12615 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
12616
12617 * acinclude.m4: Remove `nop' assembly instruction; it's not
12618 implemented by all architectures.
12619
12620 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
12621
12622 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
12623 ELILO. This is no longer necessary.
12624
12625 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
12626
12627 Added new tool, grub-scrit-check to verify grub.cfg syntax.
12628
12629 * util/grub-script-check.c: grub-script-check tool.
12630 * conf/common.rmk: Make rules for grub-script-check.
12631
12632 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
12633
12634 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
12635 spotting it back in 2008. Shame on me for forgetting he did.
12636
12637 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
12638
12639 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
12640
12641 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
12642 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
12643 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
12644 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
12645 (GRUB_VIDEO_TYPE_EFI): Rename to ...
12646 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
12647
12648 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
12649
12650 * include/grub/test.h: Add license header.
12651 * tests/example_functional_test.c: Likewise.
12652 * tests/example_unit_test.c: Likewise.
12653 * tests/lib/functional_test.c: Likewise.
12654 * tests/lib/test.c: Likewise.
12655 * tests/lib/unit_test.c: Likewise.
12656
12657 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
12658
12659 Use flag-based instead of hook-based video mode selection and "auto"
12660 keyword.
12661
12662 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
12663 (grub_video_set_mode): Changed prototype. All users updated.
12664 (grub_video_check_mode_flag): New inline function.
12665 * video/video.c (parse_modespec): New function.
12666 (grub_video_set_mode): Parse flags and keywords.
12667
12668 2010-01-17 Carles Pina i Estany <carles@pina.cat>
12669
12670 * util/misc.c (grub_util_info): Fix the order of the parameters in a
12671 fprintf call.
12672
12673 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
12674
12675 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
12676
12677 2010-01-16 Carles Pina i Estany <carles@pina.cat>
12678
12679 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
12680 string.
12681 * util/grub-emu.c (usage): Likewise.
12682 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
12683 * util/i386/efi/grub-mkimage.c (usage): Likewise.
12684 * util/i386/pc/grub-mkimage.c (usage): Likewise.
12685 * util/i386/pc/grub-setup.c (usage): Likewise.
12686
12687 2010-01-16 Carles Pina i Estany <carles@pina.cat>
12688
12689 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
12690 the message.
12691 (grub_util_info): Likewise.
12692 (grub_util_error): Likewise.
12693 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
12694 and/or new lines in `grub_util_warna', `grub_util_info',
12695 `grub_util_error' calls.
12696 * util/getroot.c: Likewise.
12697 * util/grub-editenv.c: Likewise.
12698 * util/grub-emu.c: Likewise.
12699 * util/grub-fstest.c: Likewise.
12700 * util/grub-mkdevicemap.c: Likewise.
12701 * util/grub-mkfont.c: Likewise.
12702 * util/grub-mkpasswd-pbkdf2.c: Likewise.
12703 * util/grub-mkrelpath.c: Likewise.
12704 * util/grub-pe2elf.c: Likewise.
12705 * util/grub-probe.c: Likewise.
12706 * util/hostdisk.c: Likewise.
12707 * util/i386/efi/grub-mkimage.c: Likewise.
12708 * util/i386/pc/grub-mkimage.c: Likewise.
12709 * util/i386/pc/grub-setup.c: Likewise.
12710 * util/ieee1275/ofpath.c: Likewise.
12711 * util/mkisofs/eltorito.c: Likewise.
12712 * util/mkisofs/rock.c: Likewise.
12713 * util/mkisofs/write.c: Likewise.
12714 * util/raid.c: Likewise.
12715 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
12716 * util/sparc64/ieee1275/grub-setup.c: Likewise.
12717
12718 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
12719
12720 Enable multiboot on non-pc.
12721
12722 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
12723 multiboot.mod and multiboot2.mod to ...
12724 * conf/i386.rmk (pkglib_MODULES): ... here.
12725 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
12726 Moved to ...
12727 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
12728 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
12729 Moved to ...
12730 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
12731 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
12732 Moved to ...
12733 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
12734 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
12735 Moved to ...
12736 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
12737 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
12738 relocator.mod.
12739 (ata_mod_SOURCES): Removed.
12740 (ata_mod_CFLAGS): Likewise.
12741 (ata_mod_LDFLAGS): Likewise.
12742 (relocator_mod_SOURCES): Removed.
12743 (relocator_mod_CFLAGS): Likewise.
12744 (relocator_mod_ASFLAGS): Likewise.
12745 (relocator_mod_LDFLAGS): Likewise.
12746 Include i386.mk.
12747 * include/grub/x86_64/multiboot.h: New file.
12748 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
12749 Terminate EFI.
12750
12751 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
12752
12753 Video multiboot support.
12754
12755 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
12756 New prototype.
12757 * include/multiboot.h: Resynced with multiboot specification.
12758 * include/multiboot2.h: Likewise.
12759 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
12760 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
12761 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
12762 (HAS_VGA_TEXT): Likewise.
12763 (accepts_video): New variable.
12764 (grub_multiboot_set_accepts_video): New function.
12765 (grub_multiboot_get_mbi_size): Account for video structures.
12766 (set_video_mode): New function.
12767 (retrieve_video_parameters): Likewise.
12768 (grub_multiboot_make_mbi): Fill video fields.
12769
12770 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
12771
12772 Video driver ids.
12773
12774 * include/grub/video.h (grub_video_driver_id): New type.
12775 (grub_video_adapter): New member 'id'. All users updated.
12776 (grub_video_get_driver_id): New proto.
12777 * video/video.c (grub_video_get_driver_id): New function.
12778
12779 2010-01-14 Carles Pina i Estany <carles@pina.cat>
12780
12781 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
12782 `var=val'.
12783
12784 2010-01-14 Carles Pina i Estany <carles@pina.cat>
12785
12786 * normal/cmdline.c (print_completion): Gettextizze.
12787
12788 2001-01-14 Carles Pina i Estany <carles@pina.cat>
12789
12790 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
12791
12792 2010-01-14 Carles Pina i Estany <carles@pina.cat>
12793
12794 * gettext/gettext.c (grub_gettext_translate): Push and pop
12795 grub_errno.
12796 (grub_gettext_delete_list): Change comment style.
12797 * kern/err.c (grub_error): Gettextizze.
12798 (grub_fatal): Gettextizze.
12799
12800 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
12801
12802 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
12803 (grub_linux16_real_boot): ... this.
12804 * kern/i386/loader.S: Likewise.
12805 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
12806 (grub_linux16_boot): New function. Switches to text mode and calls
12807 grub_linux16_real_boot().
12808
12809 * loader/i386/bsd.c: Include `<grub/video.h>'.
12810 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
12811 text mode before calling grub_unix_real_boot().
12812
12813 * loader/i386/multiboot.c: Include `<grub/video.h>'.
12814 (grub_multiboot_boot): Switch to text mode before calling
12815 grub_relocator32_boot().
12816
12817 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
12818 (grub_chainloader_boot): Switch to text mode before calling
12819 grub_chainloader_real_boot().
12820
12821 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
12822 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
12823
12824 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
12825 non-empty value.
12826
12827 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
12828 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
12829
12830 * util/grub.d/00_header.in: Define a "savedefault" function for use
12831 in menu entries.
12832 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
12833
12834 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
12835 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
12836
12837 * util/grub-mkconfig_lib.in (save_default_entry): Only set
12838 saved_entry if boot_once is unset.
12839 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
12840 previous saved entry (i.e. grub-reboot).
12841
12842 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
12843
12844 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
12845
12846 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
12847
12848 * util/grub.d/00_header.in: Use `set var=val' rather than plain
12849 `var=val'.
12850 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
12851
12852 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
12853
12854 * util/grub-reboot.in: Fix --version output.
12855 * util/grub-set-default.in: Likewise.
12856
12857 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
12858
12859 * util/grub.d/00_header.in: Silently ignore zero-sized environment
12860 blocks.
12861
12862 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
12863
12864 * util/grub.d/00_header.in: Quote the value assigned to `default',
12865 in case it contains spaces.
12866
12867 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
12868
12869 * util/grub.d/30_os-prober.in: Fix merge error that moved a
12870 `save_default_entry' call from the macosx case to the linux case.
12871
12872 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
12873 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
12874
12875 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
12876 in `chosen' environment variable.
12877 * normal/menu_text.c (get_entry_number): Check if the variable
12878 matches the title of a menu entry.
12879 (run_menu): Pass menu to get_entry_number.
12880
12881 * util/grub-reboot.in: New file.
12882 * util/grub-set-default.in: New file.
12883 * conf/common.rmk (grub-reboot): New utility.
12884 (grub-set-default): New utility.
12885
12886 * util/grub-mkconfig_lib.in (save_default_entry): New function.
12887 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
12888 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
12889 move it to `saved_entry' for the next boot. Load environment on
12890 initialisation.
12891 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
12892 * util/grub.d/10_hurd.in: Likewise.
12893 * util/grub.d/10_linux.in (linux_entry): Likewise.
12894 * util/grub.d/10_windows.in: Likewise.
12895 * util/grub.d/30_os-prober.in: Likewise.
12896
12897 * util/grub-install.in: Create environment block.
12898 * util/i386/efi/grub-install.in: Likewise.
12899 * util/ieee1275/grub-install.in: Likewise.
12900 * util/sparc64/ieee1275/grub-install.in: Likewise.
12901
12902 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
12903
12904 Unit testing framework for GRUB.
12905
12906 * Makefile.in: Test framework build rules for 'make check'.
12907 * conf/tests.rmk: Build rules for individual tests and framework.
12908
12909 * include/grub/test.h: Header file for whitebox tests.
12910 * tests/lib/functional_test.c: Framework support for whitebox
12911 functional tests.
12912 * tests/lib/test.c: Common whitebox testing code for unit and
12913 functional tests.
12914 * tests/lib/unit_test.c: Framework support for whitebox unit
12915 tests.
12916
12917 * tests/util/grub-shell-tester.in: Support utility for grub-script
12918 tests.
12919 * tests/util/grub-shell.in: Utility to execute grub-script
12920 commands in a Qemu instance.
12921
12922 * tests/example_functional_test.c: Example whitebox functional
12923 test.
12924 * tests/example_grub_script_test.in: Example grub-script test.
12925 * tests/example_scripted_test.in: Example scripted test.
12926 * tests/example_unit_test.c: Example whitebox unit test.
12927
12928 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
12929
12930 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
12931 Add loader/i386/multiboot_mbi.c.
12932 (multiboot2_mod_SOURCES): Likewise.
12933 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
12934 (multiboot2_mod_SOURCES): Likewise.
12935 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
12936 (grub_multiboot_make_mbi): Likewise.
12937 (grub_multiboot_free_mbi): Likewise.
12938 (grub_multiboot_init_mbi): Likewise.
12939 (grub_multiboot_add_module): Likewise.
12940 (grub_multiboot_set_bootdev): Likewise.
12941 * loader/i386/multiboot.c (mbi): Removed.
12942 (mbi_dest): Likewise.
12943 (alloc_mbi): New variable.
12944 (grub_multiboot_payload_size): Removed. All users updated.
12945 (grub_multiboot_pure_size): New variable.
12946 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
12947 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
12948 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
12949 (grub_fill_multiboot_mmap): Likewise.
12950 (grub_multiboot_get_bootdev): Likewise.
12951 (grub_multiboot): Use multiboot_mbi functions.
12952 * loader/i386/multiboot_mbi.c: New file.
12953
12954 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
12955
12956 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
12957 it would result in module crash.
12958
12959 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
12960
12961 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
12962 (grub_ofconsole_getwh): Split to ...
12963 (grub_ofconsole_getwh): ... this.
12964 (grub_ofconsole_dimensions): ...and this.
12965 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
12966
12967 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
12968
12969 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
12970
12971 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
12972
12973 * loader/i386/pc/multiboot2.c: Removed stalled file.
12974
12975 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
12976
12977 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
12978 Reported by: Grégoire Sutre
12979
12980 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
12981
12982 * util/misc.c (canonicalize_file_name): New function.
12983 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
12984 instead of realpath().
12985
12986 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
12987
12988 * util/grub-install.in (usage): Clarify meaning of --root-directory,
12989 and make it clearer that it's optional. Based on confusion
12990 witnessed on IRC.
12991
12992 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
12993
12994 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
12995 in premature implicit newline.
12996
12997 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
12998
12999 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
13000 which resulted in garbled command line at the end of screen.
13001
13002 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
13003
13004 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
13005 initialization with similar approach as with other Linux loaders.
13006
13007 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
13008
13009 Fix i386-ieee1275 build.
13010
13011 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
13012 and grub_term_height() for video_{width,height} initialization.
13013
13014 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
13015
13016 Fix grub-emu build.
13017
13018 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
13019
13020 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
13021 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
13022
13023 Support for multiple terminals.
13024
13025 * Makefile.in (pkglib_DATA): terminal.lst.
13026 (terminal.lst): New target.
13027 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
13028 (GRUB_MOD_INIT(handler)): Likewise.
13029 (GRUB_MOD_FINI(handler)): Likewise.
13030 * commands/help.c (grub_cmd_help): Handle multiple terminals.
13031 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
13032 * commands/sleep.c (do_print): Use grub_term_restore_pos.
13033 (grub_cmd_sleep): Use grub_term_save_pos.
13034 * commands/terminal.c: New file.
13035 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
13036 commands/terminal.c and lib/charset.c.
13037 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
13038 (pkglib_MODULES): Add terminal.mod.
13039 (terminal_mod_SOURCES): New variable.
13040 (terminal_mod_CFLAGS): Likewise.
13041 (terminal_mod_LDFLAGS): Likewise.
13042 * genhandlerlist.sh: Don't handle terminals.
13043 * genmk.rb: Generate terminal-*.lst.
13044 * genterminallist.sh: New file.
13045 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
13046 (grub_is_valid_utf8): Likewise.
13047 (grub_utf8_to_ucs4_alloc): Likewise.
13048 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
13049 (grub_menu_register_viewer): Changed argument.
13050 (grub_menu_try_text): New proto.
13051 (grub_gfxmenu_try_hook): New declaration.
13052 * include/grub/normal.h (grub_normal_exit_level): New declaration.
13053 (grub_menu_init_page): Additional argument term.
13054 (grub_normal_init_page): Likewise.
13055 (grub_cmdline_get): Arguments simplified.
13056 (grub_utf8_to_ucs4_alloc): Removed.
13057 (grub_print_ucs4): Additional argument term.
13058 (grub_getstringwidth): Likewise.
13059 (grub_print_message_indented): Likewise.
13060 (grub_menu_text_register_instances): New proto.
13061 (grub_show_menu): Likewise.
13062 (read_terminal_list): Likewise.
13063 (grub_set_more): Likewise.
13064 * include/grub/parser.h: Include handler.h.
13065 * include/grub/reader.h: Rewritten.
13066 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
13067 (GRUB_TERM_WIDTH): Changed to function.
13068 (GRUB_TERM_HEIGHT): Likewise.
13069 (GRUB_TERM_BORDER_WIDTH): Likewise.
13070 (GRUB_TERM_BORDER_HEIGHT): Likewise.
13071 (GRUB_TERM_NUM_ENTRIES): Likewise.
13072 (GRUB_TERM_ENTRY_WIDTH): Likewise.
13073 (GRUB_TERM_CURSOR_X): Likewise.
13074 (grub_term_input_class): Likewise.
13075 (grub_term_output_class): Likewise.
13076 (grub_term_outputs_disabled): New declaration.
13077 (grub_term_inputs_disabled): Likewise.
13078 (grub_term_outputs): Likewise.
13079 (grub_term_inputs): Likewise.
13080 (grub_term_register_input): Rewritten.
13081 (grub_term_register_output): Likewise.
13082 (grub_term_unregister_input): Likewise.
13083 (grub_term_unregister_output): Likewise.
13084 (FOR_ACTIVE_TERM_INPUTS): New macro.
13085 (FOR_DISABLED_TERM_INPUTS): Likewise.
13086 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
13087 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
13088 * include/grub/terminfo.h: Add oterm argument to all protypes.
13089 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
13090 Use grub_rescue_run.
13091 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
13092 All users updated.
13093 * kern/reader.c: Removed. All users updated.
13094 * kern/rescue_reader.c (grub_rescue_init): Removed.
13095 (grub_rescue_reader): Likewise.
13096 (grub_register_rescue_reader): Likewise.
13097 (grub_rescue_run): New function based on kern/reader.c.
13098 * kern/term.c: Adapted for multiterm.
13099 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
13100 (grub_is_valid_utf8): Likewise.
13101 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
13102 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
13103 right terminal.
13104 * loader/i386/linux.c (grub_linux_boot): Likewise.
13105 * normal/auth.c (grub_username_get): New function.
13106 (grub_auth_check_authentication): Use grub_username_get.
13107 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
13108 * normal/color.c: Adapt for multiterm.
13109 * normal/main.c (read_config_file): Don't use grub_reader_loop.
13110 (grub_normal_init_page): Additional argument term.
13111 (read_lists): Call read_terminal_lists.
13112 (grub_enter_normal_mode): Call grub_cmdline_run.
13113 Handle grub_normal_exit_level.
13114 (grub_cmd_normal): Make reentrant.
13115 (grub_cmd_normal_exit): New function.
13116 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
13117 * normal/menu.c: Adapt for multiterm.
13118 * normal/menu_entry.c: Likewise.
13119 * normal/menu_text.c: Likewise.
13120 * normal/menu_viewer.c: Removed. All users updated.
13121 * normal/term.c: New file.
13122 * util/console.c: Change order of includes to workaround a bug in
13123 ncurses headers.
13124 * term/terminfo.c: New argument oterm on all exported functions.
13125 All users updated.
13126 * util/grub-editenv.c (grub_term_input_class): Removed.
13127 (grub_term_output_class): Likewise.
13128
13129 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
13130
13131 Make loader output a bit more user-friendly.
13132
13133 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
13134 is being loaded. Likewise for the Hurd.
13135
13136 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
13137 that kernel of FreeBSD ${version} is being loaded.
13138
13139 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
13140 grub_dprintf().
13141 (grub_cmd_initrd): Likewise.
13142 * util/grub.d/10_linux.in (linux_entry): Print message indicating
13143 that Linux ${version} is being loaded. Likewise for initrd.
13144
13145 2010-01-09 Carles Pina i Estany <carles@pina.cat>
13146
13147 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
13148
13149 2010-01-08 Carles Pina i Estany <carles@pina.cat>
13150
13151 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
13152 (GRUB_MOD_INIT): Gettextizze.
13153 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
13154 (GRUB_MOD_INIT): Gettextizze.
13155 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
13156 (grub_cmd_linux): Capitalise Linux.
13157 (GRUB_MOD_INIT): Gettextizze.
13158 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
13159 (grub_cmd_linux): Capitalise Linux.
13160 (GRUB_MOD_INIT): Gettextizze.
13161 * loader/i386/linux.c: Include `<grub/i18n.h>'.
13162 (grub_cmd_linux): Capitalise Linux.
13163 (GRUB_MOD_INIT): Gettextizze.
13164 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
13165 (GRUB_MOD_INIT): Gettextizze.
13166 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
13167 (grub_cmd_linux): Capitalise Linux.
13168 (GRUB_MOD_INIT): Gettextizze.
13169 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
13170 (grub_cpu_xnu_init): Gettextizze.
13171 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
13172 (GRUB_MOD_INIT): Gettextizze.
13173 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
13174 (GRUB_MOD_INIT): Gettextizze.
13175 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
13176 (grub_linux_load64): Capitalise Linux.
13177 (GRUB_MOD_INIT): Gettextizze.
13178 * loader/xnu.c: Include `<grub/i18n.h>'.
13179 (GRUB_MOD_INIT): Gettextizze.
13180 * po/POTFILES: Add `loader/efi/appleloader.c',
13181 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
13182 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
13183 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
13184 `loader/i386/xnu.c', `loader/multiboot_loader.c',
13185 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
13186 and `loader/xnu.c'.
13187
13188 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
13189
13190 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
13191
13192 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
13193
13194 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
13195 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
13196 * util/mkisofs/mkisofs.c (main): Readjust --version output.
13197
13198 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
13199
13200 Reset Multiboot 2 support. New loader implements the draft in
13201 /branches/multiboot2 and shares as much code as possible with the
13202 production Multiboot 1 implementation.
13203
13204 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
13205 * loader/multiboot2.c: Likewise.
13206 * loader/i386/multiboot_helper.S: Likewise.
13207 * include/multiboot2.h: Replace with latest version from the draft
13208 in /branches/multiboot2.
13209
13210 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
13211 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
13212 and `loader/multiboot2.c'.
13213 (pkglib_MODULES): Add `multiboot2.mod'.
13214 (multiboot2_mod_SOURCES): New variable.
13215 (multiboot2_mod_LDFLAGS): Likewise.
13216 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
13217
13218 * conf/i386-pc.rmk: Likewise.
13219
13220 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
13221 (multiboot_mod_SOURCES): Remove variable.
13222 (multiboot_mod_LDFLAGS): Likewise.
13223 (multiboot_mod_CFLAGS): Likewise.
13224
13225 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
13226 `<multiboot2.h>' instead of `<multiboot.h>'.
13227 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
13228 (MULTIBOOT_HEADER_MAGIC): New macros.
13229
13230 * loader/multiboot_loader.c (module_version_status): Remove variable.
13231 (find_multi_boot2_header): Remove function.
13232 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
13233 logic. Always check for the Multiboot version we're compiling for.
13234 (grub_cmd_module_loader): Likewise.
13235 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
13236 command instead of `multiboot'.
13237
13238 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
13239
13240 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
13241 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
13242 all users.
13243
13244 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
13245 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
13246
13247 Fix breakage introduced with previous commit.
13248
13249 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
13250 commands.
13251 * normal/handler.c (read_handler_list): Revert part of previous commit
13252 affecting this file.
13253 * normal/main.c (read_lists): Move read_handler_list() call back to ...
13254 (grub_normal_execute): ... here.
13255
13256 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
13257
13258 Merge prefix-redefinition-fix branch.
13259
13260 * normal/autofs.c (read_fs_list): Make function capable of being
13261 run multiple times, gracefuly replacing the previous data
13262 structures.
13263 * normal/dyncmd.c (read_command_list): Likewise.
13264 * normal/handler.c (read_handler_list): Likewise.
13265 * normal/main.c (read_lists): New function. Calls all the
13266 list reading functions.
13267 (grub_normal_execute): Use read_lists() instead of calling all
13268 list reading functions explicitly. Register read_lists() as a
13269 variable hook attached to ${prefix}.
13270
13271 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
13272
13273 Merge crypto branch.
13274
13275 * Makefile.in (pkglib_DATA): Add crypto.lst.
13276 (crypto.lst): New target.
13277 * commands/hashsum.c: New file.
13278 * commands/password.c (check_password): Use grub_crypto_memcmp.
13279 * commands/password_pbkdf2.c: New file.
13280 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
13281 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
13282 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
13283 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
13284 -I$(srcdir)/lib/libgcrypt_wrap.
13285 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
13286 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
13287 password_pbkdf2.mod.
13288 (crypto_mod_SOURCES): New variable.
13289 (crypto_mod_CFLAGS): Likewise.
13290 (crypto_mod_LDFLAGS): Likewise.
13291 (hashsum_mod_SOURCES): New variable.
13292 (hashsum_mod_CFLAGS): Likewise.
13293 (hashsum_mod_LDFLAGS): Likewise.
13294 (pbkdf2_mod_SOURCES): New variable.
13295 (pbkdf2_mod_CFLAGS): Likewise.
13296 (pbkdf2_mod_LDFLAGS): Likewise.
13297 (password_pbkdf2_mod_SOURCES): New variable.
13298 (password_pbkdf2_mod_CFLAGS): Likewise.
13299 (password_pbkdf2_mod_LDFLAGS): Likewise.
13300 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
13301 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
13302 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
13303 Include conf/gcry.rmk.
13304 * include/grub/auth.h: Rewritten.
13305 * include/grub/crypto.h: New file.
13306 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
13307 * include/grub/normal.h (read_crypto_list): New prototype.
13308 * lib/crypto.c: New file.
13309 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
13310 * lib/pbkdf2.c: Likewise.
13311 * normal/auth.c (grub_auth_strcmp): Removed.
13312 (grub_iswordseparator): Likewise.
13313 (grub_auth_strword): Likewise.
13314 (is_authenticated): Use grub_strword.
13315 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
13316 and grub_strword. Pass entered password to authentication callback.
13317 * normal/crypto.c: New file.
13318 * normal/main.c: Call read_crypto_list.
13319 * util/grub-mkpasswd-pbkdf2.c: New file.
13320 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
13321
13322 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
13323
13324 Fix descent and ascent calculation.
13325
13326 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
13327 (options): New option "asce".
13328 (usage): Likewise.
13329 (add_char): Ignore invalid glyphs for descent calculation.
13330 Calculate ascent from actual content.
13331 (print_glyphs): Use 'asce'.
13332 (write_font): Likewise. Allow ascent override.
13333 (main): Handle "asce" option.
13334
13335 2010-01-06 Carles Pina i Estany <carles@pina.cat>
13336
13337 * kern/err.c: Include `<grub/i18n.h>'.
13338 (grub_print_error): Add full stop. Gettextizze.
13339 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
13340 (grub_bsd_load_elf): Capitalise ELF.
13341 (grub_cmd_freebsd_loadenv): Add `s' in error string.
13342 (grub_cmd_freebsd_module): Likewise.
13343 (grub_cmd_freebsd_module_elf): Likewise.
13344 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
13345
13346 2010-01-06 Carles Pina i Estany <carles@pina.cat>
13347
13348 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
13349 * commands/search_file.c (HELP_MESSAGE): New macro.
13350 * commands/search_label.c (HELP_MESSAGE): Likewise.
13351 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
13352 * po/POTFILES: Add `commands/search_file.c',
13353 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
13354 `commands/search.c'.
13355
13356 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
13357
13358 * config.rpath: Update from Gnulib.
13359
13360 2010-01-05 Yves Blusseau <blusseau@zetam.org>
13361
13362 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
13363
13364 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
13365
13366 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
13367
13368 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
13369
13370 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
13371 arguments to fread so that we get a return value in bytes, rather
13372 than something that will normally be rounded down to 0.
13373 Adjust error handling to avoid producing garbage when size_t is not
13374 the same size as long long.
13375
13376 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
13377
13378 * util/mkisofs/write.c (padblock_write): Check return value of
13379 fread.
13380
13381 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
13382
13383 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
13384 floppy images now.
13385
13386 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
13387
13388 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
13389
13390 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
13391 instead of manual alignment.
13392 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
13393 verbose). Avoid attempts to read past end of the device
13394 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
13395 but GRUB_DISK_CACHE_SIZE may exceed that).
13396
13397 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
13398
13399 * commands/crc.c (grub_cmd_crc): Abort on read errors.
13400 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
13401 it to upper layer.
13402
13403 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
13404
13405 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
13406 New constant.
13407 (grub_efi_piwg_device_path): New structure
13408 (grub_efi_piwg_device_path_t): New type.
13409 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
13410 (devpath_1): Transform to a structure. All users updated.
13411 (devpath_2): Likewise.
13412 (devpath_3): Likewise.
13413 (devpath_4): Likewise.
13414 (devpath_5): Likewise.
13415
13416 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
13417
13418 * loader/efi/appleloader.c: Restored. Update all users.
13419
13420 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
13421
13422 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
13423
13424 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
13425 (struct boot_blocklist): Move from here ...
13426 * include/grub/i386/pc/boot.h [ASM_FILE]
13427 (struct grub_boot_blocklist): ... to here. Update all users.
13428 (setup): Only initialize `start' member of `first_block'
13429 structure. Add assert() calls to verify the other members.
13430
13431 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
13432 (generate_image): Fix broken blocklist length initialization.
13433 Add assert() call to verify blocklist `segment' field.
13434
13435 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
13436
13437 * loader/efi/appleloader.c: Remove. Update all users.
13438
13439 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
13440
13441 * boot/i386/pc/boot.S: Update copyright year.
13442 * boot/i386/pc/cdboot.S: Likewise.
13443 * boot/i386/pc/diskboot.S: Likewise.
13444 * boot/i386/pc/lnxboot.S: Likewise.
13445 * boot/i386/pc/pxeboot.S: Likewise.
13446 * bus/pci.c: Likewise.
13447 * commands/cmp.c: Likewise.
13448 * commands/help.c: Likewise.
13449 * commands/hexdump.c: Likewise.
13450 * commands/i386/pc/halt.c: Likewise.
13451 * commands/i386/pc/play.c: Likewise.
13452 * commands/i386/pc/vbeinfo.c: Likewise.
13453 * commands/ls.c: Likewise.
13454 * commands/test.c: Likewise.
13455 * disk/dmraid_nvidia.c: Likewise.
13456 * disk/i386/pc/biosdisk.c: Likewise.
13457 * disk/ieee1275/nand.c: Likewise.
13458 * disk/ieee1275/ofdisk.c: Likewise.
13459 * disk/lvm.c: Likewise.
13460 * disk/raid.c: Likewise.
13461 * disk/raid6_recover.c: Likewise.
13462 * disk/scsi.c: Likewise.
13463 * fs/affs.c: Likewise.
13464 * fs/cpio.c: Likewise.
13465 * fs/ext2.c: Likewise.
13466 * fs/hfs.c: Likewise.
13467 * fs/iso9660.c: Likewise.
13468 * fs/ntfs.c: Likewise.
13469 * fs/sfs.c: Likewise.
13470 * fs/udf.c: Likewise.
13471 * fs/ufs.c: Likewise.
13472 * fs/xfs.c: Likewise.
13473 * gencmdlist.sh: Likewise.
13474 * genmk.rb: Likewise.
13475 * include/grub/disk.h: Likewise.
13476 * include/grub/efi/api.h: Likewise.
13477 * include/grub/efi/efi.h: Likewise.
13478 * include/grub/efi/pe32.h: Likewise.
13479 * include/grub/elf.h: Likewise.
13480 * include/grub/fs.h: Likewise.
13481 * include/grub/i386/at_keyboard.h: Likewise.
13482 * include/grub/i386/pc/memory.h: Likewise.
13483 * include/grub/i386/pc/vbe.h: Likewise.
13484 * include/grub/i386/pci.h: Likewise.
13485 * include/grub/i386/tsc.h: Likewise.
13486 * include/grub/ieee1275/ieee1275.h: Likewise.
13487 * include/grub/ntfs.h: Likewise.
13488 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
13489 * include/grub/sparc64/libgcc.h: Likewise.
13490 * include/grub/symbol.h: Likewise.
13491 * include/grub/types.h: Likewise.
13492 * include/multiboot2.h: Likewise.
13493 * io/gzio.c: Likewise.
13494 * kern/device.c: Likewise.
13495 * kern/disk.c: Likewise.
13496 * kern/efi/efi.c: Likewise.
13497 * kern/efi/mm.c: Likewise.
13498 * kern/elf.c: Likewise.
13499 * kern/file.c: Likewise.
13500 * kern/i386/dl.c: Likewise.
13501 * kern/i386/pc/init.c: Likewise.
13502 * kern/i386/pc/startup.S: Likewise.
13503 * kern/ieee1275/ieee1275.c: Likewise.
13504 * kern/ieee1275/init.c: Likewise.
13505 * kern/main.c: Likewise.
13506 * kern/mm.c: Likewise.
13507 * kern/powerpc/dl.c: Likewise.
13508 * kern/sparc64/dl.c: Likewise.
13509 * kern/x86_64/dl.c: Likewise.
13510 * lib/hexdump.c: Likewise.
13511 * loader/efi/appleloader.c: Likewise.
13512 * loader/i386/ieee1275/linux.c: Likewise.
13513 * loader/i386/pc/chainloader.c: Likewise.
13514 * loader/i386/pc/linux.c: Likewise.
13515 * loader/i386/pc/multiboot2.c: Likewise.
13516 * loader/ieee1275/multiboot2.c: Likewise.
13517 * loader/multiboot2.c: Likewise.
13518 * loader/multiboot_loader.c: Likewise.
13519 * loader/powerpc/ieee1275/linux.c: Likewise.
13520 * normal/completion.c: Likewise.
13521 * normal/menu_entry.c: Likewise.
13522 * partmap/apple.c: Likewise.
13523 * util/grub.d/10_hurd.in: Likewise.
13524 * util/hostfs.c: Likewise.
13525 * video/readers/png.c: Likewise.
13526
13527 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
13528
13529 * include/grub/misc.h (GNUC_PREREQ): New macro.
13530 (ATTRIBUTE_ERROR): New macro.
13531 * include/grub/list.h (grub_bad_type_cast_real): Use
13532 ATTRIBUTE_ERROR.
13533
13534 2010-01-03 Carles Pina i Estany <carles@pina.cat>
13535
13536 * normal/menu_text.c (print_message): Change messages.
13537
13538 2010-01-03 Carles Pina i Estany <carles@pina.cat>
13539
13540 * normal/menu_entry.c (store_completion): Gettextizze.
13541
13542 2010-01-03 Carles Pina i Estany <carles@pina.cat>
13543
13544 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
13545
13546 2010-01-03 Carles Pina i Estany <carles@pina.cat>
13547
13548 * po/POTFILES: Sort correctly.
13549
13550 2010-01-03 Carles Pina i Estany <carles@pina.cat>
13551
13552 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
13553 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
13554 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
13555 full stop.
13556 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
13557 summary. Gettextizze the strings.
13558 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
13559 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
13560 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
13561 full stop.
13562 (GRUB_MOD_INIT): Remove command name from summary.
13563 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
13564 summary.
13565 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
13566 * term/i386/pc/serial.c (options): Add full stops.
13567 (GRUB_MOD_INIT): Remove command name from the summary.
13568
13569 2010-01-03 Carles Pina i Estany <carles@pina.cat>
13570
13571 * commands/acpi.c: Gettextizze help strings and/or options. Include
13572 `grub/i18n.h' if needed.
13573 * commands/blocklist.c: Likewise.
13574 * commands/boot.c: Likewise.
13575 * commands/cat.c: Likewise.
13576 * commands/cmp.c: Likewise.
13577 * commands/configfile.c: Likewise.
13578 * commands/crc.c: Likewise.
13579 * commands/date.c: Likewise.
13580 * commands/echo.c: Likewise.
13581 * commands/efi/fixvideo.c: Likewise.
13582 * commands/efi/loadbios.c: Likewise.
13583 * commands/gptsync.c: Likewise.
13584 * commands/halt.c: Likewise.
13585 * commands/handler.c: Likewise.
13586 * commands/hdparm.c: Likewise.
13587 * commands/hexdump.c: Likewise.
13588 * commands/i386/cpuid.c: Likewise.
13589 * commands/i386/pc/drivemap.c: Likewise.
13590 * commands/i386/pc/halt.c: Likewise.
13591 * commands/i386/pc/pxecmd.c: Likewise.
13592 * commands/i386/pc/vbeinfo.c: Likewise.
13593 * commands/i386/pc/vbetest.c: Likewise.
13594 * commands/ieee1275/suspend.c: Likewise.
13595 * commands/keystatus.c: Likewise.
13596 * commands/loadenv.c: Likewise.
13597 * commands/ls.c: Likewise.
13598 * commands/lsmmap.c: Likewise.
13599 * commands/lspci.c: Likewise.
13600 * commands/memrw.c: Likewise.
13601 * commands/minicmd.c: Likewise.
13602 * commands/parttool.c: Likewise.
13603 * commands/password.c: Likewise.
13604 * commands/probe.c: Likewise.
13605 * commands/read.c: Likewise.
13606 * commands/reboot.c: Likewise.
13607 * commands/search.c: Likewise.
13608 * commands/sleep.c: Likewise.
13609 * commands/test.c: Likewise.
13610 * commands/true.c: Likewise.
13611 * commands/usbtest.c: Likewise.
13612 * commands/videotest.c: Likewise.
13613 * commands/xnu_uuid.c: Likewise.
13614 * disk/loopback.c: Likewise.
13615 * hello/hello.c: Likewise.
13616 * loader/i386/bsd.c: Likewise.
13617 * term/i386/pc/serial.c: Likewise.
13618 * po/POTFILES: Add new files.
13619
13620 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
13621
13622 * term/i386/pc/at_keyboard.c
13623 (keyboard_controller_wait_untill_ready): Rename to ...
13624 (keyboard_controller_wait_until_ready): ... this. Update all users.
13625
13626 2010-01-01 Carles Pina i Estany <carles@pina.cat>
13627
13628 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
13629 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
13630 string using string width.
13631 * normal/menu_text.c (grub_print_message_indented): Use
13632 grub_print_spaces and not print_spaces.
13633 (print_timeout): Likewise.
13634 (print_spaces): Move to...
13635 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
13636
13637 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
13638
13639 Import from Gnulib.
13640
13641 * gnulib/getdelim.c: New file.
13642 * gnulib/getline.c: Likewise.
13643
13644 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
13645
13646 * include/grub/list.h (grub_assert_fail): Removed.
13647 (grub_bad_type_cast_real): New function.
13648 (grub_bad_type_cast): New macro.
13649 (GRUB_AS_LIST): Use grub_bad_type_cast.
13650 (GRUB_AS_LIST_P): Likewise.
13651 (GRUB_AS_NAMED_LIST): Likewise.
13652 (GRUB_AS_NAMED_LIST_P): Likewise.
13653 (GRUB_AS_PRIO_LIST): Likewise.
13654 (GRUB_AS_PRIO_LIST_P): Likewise.
13655 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
13656
13657 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
13658
13659 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
13660 Fix syntax error.
13661
13662 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
13663
13664 * configure.ac: Check for TARGET_CFLAGS initialization before we
13665 initialize it ourselves (sigh).
13666 Move a few modifications to TARGET_CFLAGS to be unconditional
13667 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
13668 eh_frame)
13669
13670 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
13671 * term/i386/pc/at_keyboard.c
13672 (keyboard_controller_wait_untill_ready): Likewise.
13673 (keyboard_controller_led): Rename `led_status' paramter to avoid
13674 name conflict.
13675
13676 2009-12-28 Carles Pina i Estany <carles@pina.cat>
13677
13678 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
13679 quotes.
13680
13681 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
13682
13683 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
13684
13685 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
13686
13687 * normal/menu_text.c (grub_print_message_indented): Prevent
13688 past-the-end-of-array dereference.
13689
13690 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
13691
13692 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
13693 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
13694
13695 2009-12-27 Carles Pina i Estany <carles@pina.cat>
13696
13697 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
13698 * normal/main.c (grub_normal_read_line): Remove a space from the
13699 default prompt.
13700
13701 2009-12-27 Carles Pina i Estany <carles@pina.cat>
13702
13703 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
13704 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
13705 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
13706 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
13707 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
13708 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
13709 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
13710
13711 2009-12-26 Carles Pina i Estany <carles@pina.cat>
13712
13713 * video/readers/jpeg.c (cmd): Declare.
13714 (grub_cmd_jpegtest): Use `grub_command_t' type.
13715 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
13716 Assign to `cmd'.
13717 (GRUB_MOD_FINI): Use `cmd' to unregister.
13718 * video/readers/png.c (cmd): Declare.
13719 (grub_cmd_pngtest): Use `grub_command_t' type.
13720 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
13721 Assign to `cmd'.
13722 (GRUB_MOD_FINI): Use `cmd' to unregister.
13723 * video/readers/tga.c (cmd): Declare.
13724 (grub_cmd_tgatest): Use `grub_command_t' type.
13725 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
13726 Assign to `cmd'.
13727 (GRUB_MOD_FINI): Use `cmd' to unregister.
13728
13729 2009-12-26 Carles Pina i Estany <carles@pina.cat>
13730
13731 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
13732 stops.
13733 * kern/corecmd.c (grub_register_core_commands): Likewise.
13734 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
13735 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
13736 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
13737 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
13738 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
13739 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
13740 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
13741 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
13742 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
13743 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
13744 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
13745 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
13746 * normal/handler.c (insert_handler): Likewise.
13747 * normal/main.c (GRUB_MOD_INIT): Likewise.
13748 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
13749
13750 2009-12-26 Carles Pina i Estany <carles@pina.cat>
13751
13752 * commands/help.c (grub_cmd_help): Print the command name before the
13753 summary.
13754 (GRUB_MOD_INIT): Remove command name from the summary.
13755 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
13756 string as summary.
13757 * lib/arg.c (find_long): Print the command name before the summary.
13758 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
13759 summary.
13760 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
13761 * commands/cat.c (GRUB_MOD_INIT): Likewise.
13762 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
13763 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
13764 * commands/crc.c (GRUB_MOD_INIT): Likewise.
13765 * commands/date.c (GRUB_MOD_INIT): Likewise.
13766 * commands/echo.c (GRUB_MOD_INIT): Likewise.
13767 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
13768 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
13769 * commands/handler.c (GRUB_MOD_INIT): Likewise.
13770 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
13771 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
13772 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
13773 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
13774 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
13775 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
13776 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
13777 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
13778 * commands/ls.c (GRUB_MOD_INIT): Likewise.
13779 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
13780 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
13781 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
13782 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
13783 * commands/password.c (GRUB_MOD_INIT): Likewise.
13784 * commands/probe.c (GRUB_MOD_INIT): Likewise.
13785 * commands/read.c (GRUB_MOD_INIT): Likewise.
13786 * commands/search.c (GRUB_MOD_INIT): Likewise.
13787 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
13788 * commands/test.c (GRUB_MOD_INIT): Likewise.
13789 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
13790 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
13791 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
13792 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
13793 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
13794 * lib/arg.c (GRUB_MOD_INIT): Likewise.
13795 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
13796 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
13797 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
13798 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
13799 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
13800 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
13801 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
13802 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
13803
13804 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
13805
13806 Use search command for preliminar UUID search.
13807
13808 * commands/search.c: Split into ...
13809 * commands/search_wrap.c: ...this
13810 * commands/search.c: ...and this.
13811 * commands/search_file.c: New file.
13812 * commands/search_label.c: New file.
13813 * commands/search_uuid.c: New file.
13814 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
13815 Add commands/search_wrap.c, commands/search_file.c,
13816 commands/search_label.c and commands/search_uuid.c.
13817 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
13818 (search_mod_SOURCES): Set to commands/search_wrap.c.
13819 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
13820 search_label.mod.
13821 (search_fs_file_mod_SOURCES): New variable.
13822 (search_fs_file_mod_CFLAGS): Likewise.
13823 (search_fs_file_mod_LDFLAGS): Likewise.
13824 (search_label_mod_SOURCES): Likewise.
13825 (search_label_mod_CFLAGS): Likewise.
13826 (search_label_mod_LDFLAGS): Likewise.
13827 (search_fs_uuid_mod_SOURCES): New variable.
13828 (search_fs_uuid_mod_CFLAGS): Likewise.
13829 (search_fs_uuid_mod_LDFLAGS): Likewise.
13830 (fs_file_mod_SOURCES): Removed.
13831 (fs_file_mod_CFLAGS): Likewise.
13832 (fs_file_mod_LDFLAGS): Likewise.
13833 (fs_uuid_mod_SOURCES): Removed.
13834 (fs_uuid_mod_CFLAGS): Likewise.
13835 (fs_uuid_mod_LDFLAGS): Likewise.
13836 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
13837 Set to util/grub-install.in.
13838 * disk/fs_file.c: Removed.
13839 * disk/fs_uuid.c: Likewise.
13840 * include/grub/search.h: New file.
13841 * util/grub-install.in: Handle sparc64.
13842 Create and use load.cfg.
13843 * util/sparc64/ieee1275/grub-install.in: Removed.
13844
13845 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
13846
13847 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
13848 Ignore return status if CF is cleared.
13849 (grub_biosdisk_get_diskinfo_standard): Likewise.
13850
13851 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
13852
13853 * term/i386/pc/at_keyboard.c
13854 (keyboard_controller_wait_untill_ready): New function.
13855 (grub_keyboard_controller_write, grub_keyboard_controller_read)
13856 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
13857 for keyboard polling, rather than duplicate the same loop. This
13858 saves a few bytes in code size.
13859
13860 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
13861
13862 Support for (pxe[:server[:gateway]]) syntax and
13863 use environment variable for PXE.
13864
13865 * commands/i386/pc/pxecmd.c (options): Removed.
13866 (print_ip): Removed.
13867 (grub_cmd_pxe): Removed
13868 (grub_cmd_pxe_unload): New function.
13869 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
13870 (grub_pxe_your_ip): Made static.
13871 (grub_pxe_default_server_ip): Likewise.
13872 (grub_pxe_default_gateway_ip): Likewise.
13873 (grub_pxe_blksize): Likewise.
13874 (parse_ip): New function.
13875 (grub_pxe_open): Support server and gateway specification.
13876 (grub_pxe_close): Free disk->data.
13877 (grub_pxefs_open): Use disk->data.
13878 (grub_pxefs_read): Likewise.
13879 (grub_env_write_readonly): New function.
13880 (set_mac_env): Likewise.
13881 (set_env_limn_ro): Likewise.
13882 (parse_dhcp_vendor): Likewise.
13883 (grub_pxe_detect): Set the environment variables.
13884 (set_ip_env): New function.
13885 (write_ip_env): Likewise.
13886 (grub_env_write_pxe_default_server): Likewise.
13887 (grub_env_write_pxe_default_gateway): Likewise.
13888 (grub_env_write_pxe_blocksize): Likewise.
13889 (GRUB_MOD_INIT(pxe)): Set environment variables.
13890 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
13891 (grub_pxe_mac_addr_t): ... this. All users updated.
13892 (grub_pxe_your_ip): Removed.
13893 (grub_pxe_server_ip): Likewise.
13894 (grub_pxe_gateway_ip): Likewise.
13895 (grub_pxe_blksize): Likewise.
13896
13897 2009-12-25 Carles Pina i Estany <carles@pina.cat>
13898
13899 * commands/help.c: Include `<grub/i18n.h>'.
13900 (grub_cmd_help): Gettextizze.
13901 (GRUB_MOD_INIT): Likewise.
13902 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
13903 (GRUB_MOD_INIT): Gettextizze.
13904 * commands/search.c: Include `<grub/i18n.h>'.
13905 (options): Gettextizze.
13906 (GRUB_MOD_INIT): Gettextizze.
13907 * lib/arg.c: Include `<grub/i18n.h>'.
13908 (help_options): Gettextizze.
13909 (find_long): Likewise.
13910 (grub_arg_show_help): Likewise.
13911 * normal/dyncmd.c: Include `<grub/i18n.h>'.
13912 (read_command_list): Gettextizze.
13913 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
13914 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
13915
13916 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
13917
13918 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
13919 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
13920 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
13921 (led_status): New variable.
13922 (keyboard_controller_led): New function.
13923 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
13924 update led status for caps lock, num lock and scroll lock.
13925
13926 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
13927
13928 * util/hostdisk.c (open_device): Fix a comment.
13929
13930 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
13931
13932 * util/grub-install.in (host_os): New variable.
13933 * util/i386/efi/grub-install.in (host_os): Likewise.
13934
13935 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
13936
13937 * util/mkisofs/write.c (padblock_write): Abort when given an
13938 excedingly large embed image, instead of silently truncating it.
13939
13940 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
13941
13942 * include/multiboot.h: Indentation fixes.
13943
13944 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
13945
13946 * include/multiboot.h (struct multiboot_aout_symbol_table)
13947 (struct multiboot_elf_section_header_table): New structure
13948 declarations (stolen from GRUB Legacy).
13949 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
13950 table information.
13951
13952 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
13953 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
13954 type aliases.
13955
13956 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
13957
13958 * include/multiboot.h: Make comments src2texi-friendly.
13959
13960 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
13961
13962 For consistency with [multiboot]/docs/boot.S.
13963
13964 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
13965 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
13966 (MULTIBOOT_MAGIC2): Rename from this ...
13967 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
13968
13969 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
13970
13971 * include/multiboot.h: Remove `<grub/types.h>'.
13972 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
13973 types. Update all users.
13974
13975 2009-12-25 Carles Pina i Estany <carles@pina.cat>
13976
13977 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
13978 `couldn't' and `can not' by `cannot'.
13979 * commands/i386/pc/drivemap.c: Likewise.
13980 * disk/ata.c: Likewise.
13981 * disk/ieee1275/nand.c: Likewise.
13982 * fs/affs.c: Likewise.
13983 * fs/fat.c: Likewise.
13984 * fs/hfs.c: Likewise.
13985 * fs/hfsplus.c: Likewise.
13986 * fs/iso9660.c: Likewise.
13987 * fs/jfs.c: Likewise.
13988 * fs/minix.c: Likewise.
13989 * fs/reiserfs.c: Likewise.
13990 * fs/sfs.c: Likewise.
13991 * fs/udf.c: Likewise.
13992 * fs/ufs.c: Likewise.
13993 * fs/xfs.c: Likewise.
13994 * loader/powerpc/ieee1275/linux.c: Likewise.
13995 * loader/sparc64/ieee1275/linux.c: Likewise.
13996 * util/grub-probe.c: Likewise.
13997 * util/misc.c: Likewise.
13998
13999 2009-12-24 Carles Pina i Estany <carles@pina.cat>
14000
14001 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
14002 grub_errno calls.
14003 * commands/acpi.c: Likewise.
14004 * commands/blocklist.c: Likewise.
14005 * commands/efi/loadbios.c: Likewise.
14006 * commands/i386/pc/drivemap.c: Likewise.
14007 * commands/loadenv.c: Likewise.
14008 * commands/memrw.c: Likewise.
14009 * commands/password.c: Likewise.
14010 * commands/videotest.c: Likewise.
14011 * disk/ata.c: Likewise.
14012 * disk/ata_pthru.c: Likewise.
14013 * disk/dmraid_nvidia.c: Likewise.
14014 * disk/ieee1275/nand.c: Likewise.
14015 * disk/ieee1275/ofdisk.c: Likewise.
14016 * disk/loopback.c: Likewise.
14017 * disk/lvm.c: Likewise.
14018 * disk/mdraid_linux.c: Likewise.
14019 * disk/raid.c: Likewise.
14020 * disk/raid6_recover.c: Likewise.
14021 * disk/scsi.c: Likewise.
14022 * efiemu/main.c: Likewise.
14023 * efiemu/mm.c: Likewise.
14024 * efiemu/pnvram.c: Likewise.
14025 * efiemu/symbols.c: Likewise.
14026 * font/font.c: Likewise.
14027 * fs/cpio.c: Likewise.
14028 * fs/hfsplus.c: Likewise.
14029 * fs/iso9660.c: Likewise.
14030 * fs/jfs.c: Likewise.
14031 * fs/minix.c: Likewise.
14032 * fs/ntfs.c: Likewise.
14033 * fs/ntfscomp.c: Likewise.
14034 * fs/reiserfs.c: Likewise.
14035 * fs/ufs.c: Likewise.
14036 * fs/xfs.c: Likewise.
14037 * gettext/gettext.c: Likewise.
14038 * include/grub/auth.h: Likewise.
14039 * kern/elf.c: Likewise.
14040 * kern/file.c: Likewise.
14041 * kern/ieee1275/init.c: Likewise.
14042 * kern/ieee1275/mmap.c: Likewise.
14043 * kern/ieee1275/openfw.c: Likewise.
14044 * kern/powerpc/dl.c: Likewise.
14045 * kern/sparc64/dl.c: Likewise.
14046 * lib/arg.c: Likewise.
14047 * loader/i386/bsd.c: Likewise.
14048 * loader/i386/bsdXX.c: Likewise.
14049 * loader/i386/efi/linux.c: Likewise.
14050 * loader/i386/efi/xnu.c: Likewise.
14051 * loader/i386/ieee1275/linux.c: Likewise.
14052 * loader/i386/linux.c: Likewise.
14053 * loader/i386/multiboot.c: Likewise.
14054 * loader/i386/pc/linux.c: Likewise.
14055 * loader/i386/pc/multiboot2.c: Likewise.
14056 * loader/i386/xnu.c: Likewise.
14057 * loader/ieee1275/multiboot2.c: Likewise.
14058 * loader/macho.c: Likewise.
14059 * loader/machoXX.c: Likewise.
14060 * loader/multiboot2.c: Likewise.
14061 * loader/multiboot_loader.c: Likewise.
14062 * loader/powerpc/ieee1275/linux.c: Likewise.
14063 * loader/sparc64/ieee1275/linux.c: Likewise.
14064 * loader/xnu.c: Likewise.
14065 * loader/xnu_resume.c: Likewise.
14066 * mmap/i386/pc/mmap.c: Likewise.
14067 * normal/menu_viewer.c: Likewise.
14068 * partmap/acorn.c: Likewise.
14069 * partmap/amiga.c: Likewise.
14070 * partmap/apple.c: Likewise.
14071 * script/lexer.c: Likewise.
14072 * term/gfxterm.c: Likewise.
14073 * term/i386/pc/serial.c: Likewise.
14074 * term/i386/pc/vga.c: Likewise.
14075 * term/ieee1275/ofconsole.c: Likewise.
14076 * term/terminfo.c: Likewise.
14077 * video/bitmap.c: Likewise.
14078 * video/efi_gop.c: Likewise.
14079 * video/efi_uga.c: Likewise.
14080 * video/fb/video_fb.c: Likewise.
14081 * video/i386/pc/vbe.c: Likewise.
14082 * video/readers/tga.c: Likewise.
14083 * video/video.c: Likewise.
14084
14085 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
14086
14087 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
14088 * commands/lspci.c: Likewise.
14089 * commands/probe.c: Likewise.
14090 * commands/xnu_uuid.c: Likewise.
14091 * conf/i386-coreboot.rmk: Likewise.
14092 * conf/i386-efi.rmk: Likewise.
14093 * conf/i386-ieee1275.rmk: Likewise.
14094 * conf/i386-pc.rmk: Likewise.
14095 * conf/powerpc-ieee1275.rmk: Likewise.
14096 * conf/sparc64-ieee1275.rmk: Likewise.
14097 * conf/x86_64-efi.rmk: Likewise.
14098 * fs/i386/pc/pxe.c: Likewise.
14099 * gettext/gettext.c: Likewise.
14100 * include/grub/efi/graphics_output.h: Likewise.
14101 * include/grub/i386/pc/memory.h: Likewise.
14102 * kern/env.c: Likewise.
14103 * kern/i386/qemu/startup.S: Likewise.
14104 * lib/i386/pc/biosnum.c: Likewise.
14105 * lib/i386/relocator.c: Likewise.
14106 * lib/i386/relocator_asm.S: Likewise.
14107 * lib/relocator.c: Likewise.
14108 * loader/i386/bsd.c: Likewise.
14109 * loader/i386/multiboot.c: Likewise.
14110 * loader/i386/pc/chainloader.c: Likewise.
14111 * loader/i386/xnu.c: Likewise.
14112 * loader/xnu.c: Likewise.
14113 * normal/main.c: Likewise.
14114 * normal/menu_text.c: Likewise.
14115 * util/getroot.c: Likewise.
14116 * util/grub-mkconfig_lib.in: Likewise.
14117 * util/grub.d/00_header.in: Likewise.
14118 * util/i386/pc/grub-mkimage.c: Likewise.
14119 * util/mkisofs/eltorito.c: Likewise.
14120 * util/mkisofs/exclude.h: Likewise.
14121 * util/mkisofs/hash.c: Likewise.
14122 * util/mkisofs/iso9660.h: Likewise.
14123 * util/mkisofs/joliet.c: Likewise.
14124 * util/mkisofs/mkisofs.c: Likewise.
14125 * util/mkisofs/mkisofs.h: Likewise.
14126 * util/mkisofs/multi.c: Likewise.
14127 * util/mkisofs/name.c: Likewise.
14128 * util/mkisofs/rock.c: Likewise.
14129 * util/mkisofs/tree.c: Likewise.
14130 * util/mkisofs/write.c: Likewise.
14131 * video/efi_gop.c: Likewise.
14132
14133 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
14134
14135 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
14136 size counting.
14137
14138 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
14139
14140 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
14141 * genmk.rb (class SCRIPT): Modify the target file instead of source.
14142
14143 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
14144
14145 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
14146 (GRUB_MOD_INIT(memrw)): Update help line.
14147
14148 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
14149
14150 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
14151 Use grub_extcmd_t. All users updated.
14152 (options): New variable.
14153 (grub_cmd_read): Restructure for readability. Support "-v" option.
14154 (grub_cmd_write): Restructure for readability.
14155
14156 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
14157
14158 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
14159
14160 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
14161
14162 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
14163 with the actual contents of the correspondending make variable.
14164 * util/grub-mkrescue.in (pkglib_DATA): New variable.
14165 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
14166 specifying `*.lst' and `efiemu??.o'
14167
14168 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
14169
14170 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
14171 after function name.
14172 Noticed by Rene Engelhard <rene@debian.org>.
14173
14174 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
14175
14176 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
14177 (options): New variable.
14178 (iospace): Likewise.
14179 (grub_lspci_iter): List IO spaces if "-i" was given.
14180 (grub_cmd_lspci): Parse options.
14181 (GRUB_MOD_INIT(lspci)): Use extcmd.
14182 (GRUB_MOD_FINI(lspci)): Likewise.
14183
14184 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
14185
14186 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
14187 `function' keyword.
14188 Patch by Tony Mancill <tmancill@debian.org>.
14189
14190 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
14191
14192 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
14193 (grub_uhci_portstatus): Likewise.
14194 (grub_uhci_portstatus): Add necessary delay.
14195 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
14196
14197 2009-12-21 Carles Pina i Estany <carles@pina.cat>
14198
14199 * commands/acpi.c (options): Fix capitalizations and/or full stops.
14200 (GRUB_MOD_INIT): Likewise.
14201 * commands/boot.c (GRUB_MOD_INIT): Likewise.
14202 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
14203 * commands/echo.c (options): Fix capitalizations and/or full stops.
14204 * commands/efi/loadbios.c (enable_rom_area): Likewise.
14205 (enable_rom_area): Likewise.
14206 (GRUB_MOD_INIT): Likewise.
14207 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
14208 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
14209 * commands/handler.c (GRUB_MOD_INIT): Likewise.
14210 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
14211 * commands/hexdump.c (options): Likewise.
14212 * commands/i386/cpuid.c (options): Likewise.
14213 (GRUB_MOD_INIT): Likewise.
14214 * commands/i386/pc/drivemap.c (options): Likewise.
14215 (GRUB_MOD_INIT): Likewise.
14216 * commands/i386/pc/halt (options): Likewise.
14217 (GRUB_MOD_INIT): Likewise.
14218 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
14219 * commands/i386/pc/pxecmd.c (options): Likewise.
14220 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
14221 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
14222 * commands/keystatus.c (options): Likewise.
14223 (GRUB_MOD_INIT): Likewise.
14224 * commands/loadenv.c (options): Likewise.
14225 * commands/ls.c (options): Likewise.
14226 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
14227 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
14228 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
14229 * commands/parttool.c (helpmsg): Likewise.
14230 * commands/probe.c (options): Likewise.
14231 * commands/read.c (GRUB_MOD_INIT): Likewise.
14232 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
14233 * commands/search.c (options): Likewise.
14234 * commands/sleep.c (options): Likewise.
14235 * commands/test.c (GRUB_MOD_INIT): Likewise.
14236 * commands/true.c (GRUB_MOD_INIT): Likewise.
14237 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
14238 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
14239 * lib/arg.c (help_options): Likewise.
14240 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
14241 `$(XGETTEXT)'.
14242 * po/POTFILES: Add `commands/loadenv.c'.
14243
14244 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
14245
14246 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
14247 instead of specifying them explicit.
14248
14249 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
14250
14251 * NEWS: Add grub-probe support for GNU/Hurd.
14252
14253 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
14254
14255 * NEWS: gettext was added after 1.97.
14256
14257 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
14258
14259 * util/mkisofs/msdos_partition.h: New file (based on
14260 include/grub/msdos_partition.h).
14261 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
14262 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
14263 (ld_options, main): Recognize --protective-msdos-label.
14264 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
14265 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
14266 (padblock_write): If `use_protective_msdos_label' is set, patch a
14267 protective DOS-style label in the output image.
14268
14269 * util/grub-mkrescue.in: Use --protective-msdos-label.
14270
14271 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
14272
14273 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
14274 boot.
14275
14276 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
14277
14278 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
14279 variables.
14280 (ld_options, main): Recognize `--embedded-boot'.
14281 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
14282 declarations.
14283 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
14284 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
14285 (padblock_write): Likewise. Rewrite to support embedded boot image.
14286
14287 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
14288 for BIOS-based disk boot instead of only ElTorito.
14289
14290 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
14291
14292 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
14293 build (not needed for bootstrap).
14294
14295 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
14296
14297 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
14298 from i386-pc build (not needed for bootstrap).
14299 Rewrite a pair of strings.
14300
14301 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
14302
14303 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
14304
14305 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
14306
14307 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
14308
14309 2009-12-21 Andreas Born <futur.andy@googlemail.com>
14310
14311 * kern/env.c (grub_env_context_open): Mark exported variable for
14312 reexport.
14313
14314 2009-12-21 Andreas Born <futur.andy@googlemail.com>
14315
14316 * kern/env.c (grub_env_export): Create nonexistent variables before
14317 exporting.
14318
14319 2009-12-20 Carles Pina i Estany <carles@pina.cat>
14320
14321 * include/grub/auth.h: Include `<grub/i18n.h>'.
14322 (GRUB_GET_PASSWORD): Gettextizze string.
14323 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
14324 menu_text.c.
14325 (grub_utf8_to_ucs4_alloc): Fix indentation.
14326 (grub_print_ucs4): Likewise.
14327 (grub_getstringwidth): Likewise.
14328 (print_message_indented): New declaration.
14329 * normal/auth.c: Include `<grub/i18n.h>'.
14330 (grub_auth_check_authentication): Gettexttize string.
14331 * normal/cmdline.c: Include `<grub/i18n.h>'.
14332 (grub_cmdline_get): Gettextizze.
14333 * normal/color.c: Include `<grub/i18n.h>'.
14334 (grub_parse_color_name_pair): Gettexttize strings.
14335 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
14336 string (use `print_message_indented').
14337 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
14338 `include/grub/normal.h'.
14339 (print_message_indented): Renamed to ...
14340 (grub_print_message_indented): ... this. Remove `static' qualifer (now
14341 used in normal/main.c).
14342 (print_message): Use `grub_print_message_indented' instead of
14343 `print_message_indented'.
14344 (print_timeout): Likewise.
14345 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
14346 (grub_normal_print_device_info): Gettexttize strings.
14347 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
14348
14349 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
14350
14351 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
14352 of arguments. Return number of tokens and not arguments. All users
14353 updated.
14354
14355 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
14356
14357 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
14358 non-MSDOS paritions.
14359
14360 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
14361
14362 * include/grub/types.h (UNUSED): Removed since it conflicts with
14363 NetBSD headers. All users changed to direct __attribute__ ((unused)).
14364 Reported by Grégoire Sutre.
14365
14366 2009-12-19 Carles Pina i Estany <carles@pina.cat>
14367
14368 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
14369 (grub_print_ucs4_alloc): Likewise.
14370 (grub_getstringwidth): Likewise.
14371 * normal/main.c (grub_normal_init_page): Gettextize version string.
14372 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
14373 (getstringwidth): Renamed to ...
14374 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
14375 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
14376 (grub_print_ucs4): Remove `static' qualifer (now used in
14377 normal/main.c).
14378 * po/POTFILES: Add normal/main.c.
14379
14380 2009-12-19 Carles Pina i Estany <carles@pina.cat>
14381
14382 * normal/menu_text.c (STANDARD_MARGIN): New macro.
14383 (print_message_indented): Add `margin_left' and `margin_right'
14384 parameters.
14385 (print_message): Update `print_message_indented' calls. Adds '\n' to the
14386 strings.
14387 (print_timeout): Use `print_message_indented' to print the message.
14388 Deletes `second_stage' parameter.
14389 (run_menu): Update `print_timeout' calls.
14390
14391 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
14392
14393 Fix console palette on OpenFirmware.
14394
14395 * term/ieee1275/ofconsole.c (MAX): Removed.
14396 (colors): Redone based on VGA palette.
14397 (grub_ofconsole_setcolor): Discard brightness bit since only 8
14398 colors are supported.
14399 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
14400
14401 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
14402
14403 Fix potential EfiEmu double prepare.
14404
14405 * efiemu/main.c (prepared): New variable
14406 (grub_efiemu_unload): Set prepare to '0'.
14407 (grub_efiemu_prepare): Return if already prepared. Set prepared.
14408
14409 set_virtual_address_map support.
14410
14411 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
14412 prototype.
14413 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
14414 prototype.
14415 (grub_efiemu_crc32): Likewise.
14416 (grub_efiemu_crc64): Likewise.
14417 (grub_efiemu_set_virtual_address_map): Likewise.
14418 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
14419 New definition.
14420 (grub_autoefi_set_virtual_address_map): Likewise.
14421 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
14422 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
14423 Restructure flow to accomodate it.
14424 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
14425 (grub_efiemu_crc): Recompute CRC32.
14426 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
14427 (efiemu_ptv_relocated): ... this. Made global. All users updated.
14428 * efiemu/symbols.c (relocated_handle): New variable.
14429 (grub_efiemu_free_syms): Free relocated_handle.
14430 (grub_efiemu_alloc_syms): Allocate relocated_handle.
14431 (grub_efiemu_write_sym_markers): New function.
14432 (grub_efiemu_set_virtual_address_map): Likewise.
14433
14434 Newer XNU parameters.
14435
14436 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
14437 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
14438 (grub_xnu_fill_devicetree): New prototype.
14439 (grub_xnu_heap_real_start): New variable.
14440 * loader/xnu.c (get_name_ptr): New function.
14441 (grub_xnu_load_driver): Fill namelen and name.
14442
14443 64-bit xnu support.
14444
14445 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
14446 and 'loader/macho64.c'.
14447 * conf/i386-pc.rmk: Likewise.
14448 * conf/x86_64-efi.rmk: Likewise.
14449 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
14450 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
14451 * include/grub/macho.h (grub_macho_segment64): New structure.
14452 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
14453 (grub_macho_size32): ... to this.
14454 (grub_macho32_get_entry_point): Renamed from ...
14455 (grub_macho_get_entry_point32): ... to this.
14456 (grub_macho_contains_macho64): New prototype.
14457 (grub_macho_size64): Likewise.
14458 (grub_macho_get_entry_point64): Likewise.
14459 (grub_macho32_load): Renamed from ...
14460 (grub_macho_load32): ... to this.
14461 (grub_macho32_filesize): Renamed from ...
14462 (grub_macho_filesize32): ... to this.
14463 (grub_macho32_readfile): Renamed from ...
14464 (grub_macho_readfile32): ... to this.
14465 (grub_macho_filesize64): New prototype.
14466 (grub_macho_readfile64): Likewise.
14467 (grub_macho_parse32): Likewise.
14468 (grub_macho_parse64): Likewise.
14469 * loader/macho.c: Split into ...
14470 * loader/machoXX.c: ... and this. Replace 32 with XX.
14471 * loader/macho32.c: New file.
14472 * loader/macho64.c: Likewise.
14473 * loader/xnu.c (grub_xnu_is_64bit): New variable.
14474 (grub_cmd_xnu_kernel): Make 32-bit only.
14475 (grub_cmd_xnu_kernel64): New function.
14476 (grub_xnu_load_driver): Support Mach-O 64.
14477 (grub_cmd_xnu_mkext): Likewise.
14478 * util/grub.d/30_os-prober.in (osx_entry): New function.
14479 Generate entries for 64-bit boot too.
14480
14481 Eliminate ad-hoc tree format in XNU and EfiEmu.
14482
14483 * efiemu/main.c (grub_efiemu_prepare): Update comment.
14484 * efiemu/pnvram.c: Rewritten to use environment variables.
14485 All users updated.
14486
14487 Inline utf16_to_utf8.
14488
14489 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
14490 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
14491 All users updated.
14492 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
14493
14494 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
14495 * commands/usbtest.c (grub_usb_get_string): ... move here.
14496 (usb_print_str): Fix error handling.
14497 * include/grub/usb.h (grub_usb_get_string): Remove.
14498
14499 UTF-8 to UTF-16 transformation.
14500
14501 * conf/common.rmk (pkglib_MODULES): Add charset.mod
14502 (charset_mod_SOURCES): New variable.
14503 (charset_mod_CFLAGS): Likewise.
14504 (charset_mod_LDFLAGS): Likewise.
14505 * include/grub/utf.h: New file.
14506 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
14507
14508 Support for device properties.
14509
14510 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
14511 (grub_xnu_devprop_device_header): Likewise.
14512 (grub_xnu_devprop_device_descriptor): Likewise.
14513 (grub_xnu_devprop_add_device): New prototype.
14514 (grub_xnu_devprop_remove_device): Likewise.
14515 (grub_xnu_devprop_remove_property): Likewise.
14516 (grub_xnu_devprop_add_property_utf8): Likewise.
14517 (grub_xnu_devprop_add_property_utf16): Likewise.
14518 (grub_cpu_xnu_init): Likewise.
14519 (grub_cpu_xnu_fini): Likewise.
14520 (grub_cpu_xnu_unload): Likewise.
14521 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
14522 (property_descriptor): Likewise.
14523 (devices): New variable.
14524 (grub_xnu_devprop_remove_property): New function.
14525 (grub_xnu_devprop_add_device): Likewise.
14526 (grub_xnu_devprop_remove_device): Likewise.
14527 (grub_xnu_devprop_add_property): Likewise.
14528 (grub_xnu_devprop_add_property_utf8): Likewise.
14529 (grub_xnu_devprop_add_property_utf16): Likewise.
14530 (hextoval): Likewise.
14531 (grub_cpu_xnu_fill_devprop): Likewise.
14532 (grub_cmd_devprop_load): Likewise.
14533 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
14534 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
14535 (cmd_devprop_load): New variable.
14536 (grub_cpu_xnu_init): New function.
14537 (grub_cpu_xnu_fini): Likewise.
14538 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
14539 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
14540 (grub_cmd_xnu_devtree): Likewise.
14541 (hextoval): New function.
14542 (unescape): Likewise.
14543 (grub_xnu_fill_devicetree): Likewise.
14544
14545 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
14546 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
14547
14548 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
14549
14550 Workaround for broken ATI VBE.
14551
14552 * video/i386/pc/vbe.c (last_set_mode): New variable.
14553 (grub_vbe_set_video_mode): Set 'last_set_mode'.
14554 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
14555 (grub_video_vbe_setup): Don't check for reserved flag.
14556
14557 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
14558
14559 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
14560 the `find' command.
14561
14562 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
14563
14564 UUID support for HFS.
14565
14566 * fs/hfs.c (grub_hfs_uuid): New function.
14567 (grub_hfs_fs): New value .uuid.
14568 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
14569
14570 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
14571
14572 Fix a segfault with parsing unknown long options.
14573
14574 * util/grub-mkrelpath.c (options): Zero terminate it.
14575
14576 2009-12-13 Carles Pina i Estany <carles@pina.cat>
14577
14578 * include/grub/misc.h (grub_puts): New declaration.
14579 (grub_puts_): Likewise.
14580 * kern/misc.c (grub_puts): New definition.
14581 (grub_puts_): Likewise.
14582
14583 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
14584
14585 * util/grub-probe.c (probe): Improve error message.
14586
14587 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
14588
14589 * loader/i386/multiboot_elfxx.c
14590 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
14591 initialization.
14592
14593 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14594
14595 Relocator framework
14596
14597 * loader/i386/xnu_helper.S: Removed. All users updated.
14598 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
14599 (relocator_mod_SOURCES): New variable.
14600 (relocator_mod_CFLAGS): Likewise.
14601 (relocator_mod_LDFLAGS): Likewise.
14602 (relocator_mod_ASFLAGS): Likewise.
14603 * conf/x86_64.rmk: Likewise.
14604 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
14605 (grub_multiboot_payload_entry_offset): Likewise.
14606 (grub_multiboot_forward_relocator): Likewise.
14607 (grub_multiboot_forward_relocator_end): Likewise.
14608 (grub_multiboot_backward_relocator): Likewise.
14609 (grub_multiboot_backward_relocator_end): Likewise.
14610 (grub_multiboot_payload_eip): New variable.
14611 (grub_multiboot_payload_orig): Likewise.
14612 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
14613 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
14614 * include/grub/i386/memory.h
14615 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
14616 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
14617 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
14618 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
14619 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
14620 * include/grub/i386/relocator.h: New file.
14621 * include/grub/x86_64/relocator.h: Likewise.
14622 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
14623 (XNU_RELOCATOR): New macro.
14624 (grub_xnu_launcher_start): Remove.
14625 (grub_xnu_launcher_end): Likewise.
14626 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
14627 (grub_xnu_heap_real_start): Remove.
14628 (grub_xnu_heap_start): Change to void *. All users updated.
14629 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
14630 * lib/i386/relocator.c: New file.
14631 * lib/i386/relocator_asm.S: Likewise.
14632 * lib/i386/relocator_backward.S: Likewise.
14633 * lib/mips/relocator.c: Likewise.
14634 * lib/mips/relocator_asm.S: Likewise.
14635 * lib/relocator.c: Likewise.
14636 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
14637 (entry): Removed.
14638 (playground): Likewise.
14639 (grub_multiboot_payload_orig): New variable.
14640 (grub_multiboot_payload_dest): Likewise.
14641 (grub_multiboot_payload_size): Likewise.
14642 (grub_multiboot_payload_eip): Likewise.
14643 (grub_multiboot_payload_esp): Likewise.
14644 (grub_multiboot_boot): Use grub_relocator32_boot.
14645 (grub_multiboot_unload): Free relocators.
14646 (grub_multiboot): Setup stack. Use relocators.
14647 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
14648 (grub_multiboot_load_elfXX): Use relocators.
14649 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
14650 (grub_multiboot_payload_size): Likewise.
14651 (grub_multiboot_payload_dest): Likewise.
14652 (grub_multiboot_payload_entry_offset): Likewise.
14653 (grub_multiboot_forward_relocator): Likewise.
14654 (grub_multiboot_backward_relocator): Likewise.
14655 (grub_multiboot_real_boot): Likewise.
14656 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
14657 (grub_xnu_entry_point): Likewise.
14658 (grub_xnu_arg1): Likewise.
14659 (grub_xnu_stack): Likewise.
14660 (grub_xnu_launch): Removed.
14661 (grub_xnu_boot_resume): New function.
14662 (grub_xnu_boot): Use relocators.
14663 * loader/i386/xnu_helper.S: Removed.
14664 * loader/xnu.c (grub_xnu_heap_start): New variable.
14665 (grub_xnu_heap_size): Likewise.
14666 (grub_xnu_heap_malloc): Use relocators.
14667 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
14668
14669 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14670
14671 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
14672 anything.
14673
14674 2009-12-13 Carles Pina i Estany <carles@pina.cat>
14675
14676 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
14677 GRUB_ERR_NONE before calling grub_env_set.
14678
14679 2009-12-12 Robert Millan <rmh@aybabtu.com>
14680
14681 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
14682 * genmk.rb (video): New variable.
14683 (CLEANFILES, VIDEOFILES): Add #{video}.
14684 (#{video}): New target rule.
14685 * genvideolist.sh: New file.
14686 * Makefile.in (pkglib_DATA): Add video.lst.
14687 (video.lst): New target rule.
14688 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
14689 `video.lst'.
14690 * util/grub.d/30_os-prober.in: Replace `vbe' with
14691 ${GRUB_VIDEO_BACKEND}.
14692
14693 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
14694
14695 * THANKS: Add David Miller.
14696
14697 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
14698
14699 libpciaccess support.
14700
14701 * Makefile.in (LIBPCIACCESS): New variable.
14702 (enable_grub_emu_pci): Likewise.
14703 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
14704 util/pci.c and commands/lspci.c.
14705 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
14706 * configure.ac (grub-emu-pci): New option.
14707 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
14708 (grub_pci_device_unmap_range): Likewise.
14709 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
14710 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
14711 (grub_pci_address_t) [!GRUB_UTIL]: New type.
14712 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
14713 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
14714 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
14715 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
14716 * include/grub/pciutils.h: New file.
14717 * util/pci.c: Likewise.
14718
14719 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
14720
14721 * util/misc.c: Don't include <errno.h> twice.
14722
14723 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
14724
14725 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
14726 name in an error message.
14727 (grub_biosdisk_rw): Likewise.
14728
14729 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
14730
14731 Eliminate NTFS 4Gib barrier.
14732
14733 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
14734 (read_run_data): Likewise.
14735 (grub_ntfs_read_run_list): Likewise.
14736 (grub_ntfs_read_block): Likewise.
14737 (grub_ntfs_iterate_dir): Likewise.
14738 (read_mft): Likewise.
14739 (read_data): Likewise.
14740 Use COM_LOG_LEN.
14741 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
14742 to avoid 64-bit division
14743 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
14744 (grub_ntfs_rlst): Use grub_disk_addr_t.
14745
14746 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
14747
14748 Eliminate grub-fstest 4Gib barrier.
14749
14750 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
14751 (read_file): Fix error reporting.
14752
14753 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
14754
14755 Eliminate hexdump 4Gib barrier.
14756
14757 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
14758 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
14759
14760 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
14761
14762 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
14763 Fixes amarsh bug.
14764
14765 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
14766
14767 Remove miscellaneous files in distclean target.
14768
14769 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
14770
14771 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
14772
14773 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
14774 if they're already set. This resolves the conflict between my
14775 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
14776 fixing the --grub-probe option again.
14777 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
14778 change on 2009-10-06, so that we now once again source
14779 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
14780
14781 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
14782
14783 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
14784 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
14785 `util/devicemap.c'.
14786
14787 2009-12-08 Carles Pina i Estany <carles@pina.cat>
14788
14789 * include/grub/misc.h (grub_printf_): New declaration.
14790 * kern/misc.c (grub_printf_): New definition.
14791 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
14792 instead of `grub_printf' and `_'.
14793 * normal/menu_entry.c (store_completion): Likewise.
14794 (run): Likewise.
14795 (grub_menu_entry_run): Likewise.
14796 * normal/menu_text.c (grub_wait_after_message): Likewise.
14797 (notify_booting): Likewise.
14798 (notify_fallback): Likewise.
14799 (notify_execution_failure): Likewise.
14800
14801 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
14802
14803 * configure.ac: Check for vasprintf.
14804 * util/misc.c (asprintf): Move allocation from here ...
14805 (vasprintf): ... to here. New function.
14806 (xasprintf): New function.
14807 * include/grub/util/misc.h (vasprintf, xasprintf): Add
14808 prototypes.
14809 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
14810 * util/grub-mkfont.c (write_font): Likewise.
14811 * util/grub-probe.c (probe): Likewise.
14812 * util/hostdisk.c (make_device_name): Likewise.
14813
14814 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
14815
14816 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
14817 anything even prefixed with 'cdrom' as a cdrom.
14818
14819 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
14820
14821 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
14822 mount points.
14823
14824 2009-12-05 Carles Pina i Estany <carles@pina.cat>
14825
14826 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
14827 grub_gettext_msg_list.
14828 (grub_gettext_gettranslation_from_position): Return const char *
14829 and not char *.
14830 (grub_gettext_translate): Add the translated strings into a list,
14831 returns from the list if existing there.
14832 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
14833 (grub_gettext_delete_list): Delete the list.
14834 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
14835 lang environment variable is changed.
14836 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
14837
14838 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
14839
14840 Rename kernel.mod to kernel.img.
14841
14842 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
14843 (kernel_mod_EXPORTS): Rename to ...
14844 (kernel_img_EXPORTS): ... this.
14845 (kernel_mod_SOURCES): Rename to ...
14846 (kernel_img_SOURCES): ... this.
14847 (kernel_mod_HEADERS): Rename to ...
14848 (kernel_img_HEADERS): ... this. All users updated.
14849 (kernel_mod_CFLAGS): Rename to ...
14850 (kernel_img_CFLAGS): ... this.
14851 (kernel_mod_ASFLAGS): Rename to ...
14852 (kernel_img_ASFLAGS): ... this.
14853 (kernel_mod_LDFLAGS): Rename to ...
14854 (kernel_img_LDFLAGS): ... this.
14855 * conf/x86_64-efi.rmk: Likewise.
14856 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
14857 (read_kernel_image): ... this. All users updated.
14858 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
14859
14860 2009-12-05 Carles Pina i Estany <carles@pina.cat>
14861
14862 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
14863 (print_spaces): New function.
14864 (grub_print_ucs4): New function.
14865 (getstringwidth): New function.
14866 (print_message_indented): New function.
14867 (print_message): Gettexttize strings using print_message_indented.
14868 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
14869 width.
14870 (get_entry_number): Gettextize and uses dynamic terminal width.
14871 (notify_booting, notify_fallback, notify_execution_failure):
14872 Gettextize.
14873 * normal/menu_entry.c (store_completion): Cleanup the gettextized
14874 string.
14875 (run): Likewise.
14876 (grub_menu_entry_run): Likewise.
14877 * PO/POTFILES: Add normal/menu_entry.c.
14878
14879 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
14880
14881 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
14882
14883 2009-12-05 Carles Pina i Estany <carles@pina.cat>
14884
14885 * util/grub-install.in: Install gettext .mo files.
14886 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
14887
14888 2009-12-05 Carles Pina i Estany <carles@pina.cat>
14889
14890 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
14891 grub_dprintf.
14892
14893 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
14894
14895 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
14896 non-firmware-dependant one in realmode.S takes precedence.
14897
14898 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
14899
14900 * commands/halt.c: Replace misc arch-specific headers with
14901 `<grub/misc.h>'.
14902 * commands/reboot.c: Likewise.
14903 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
14904 `<grub/misc.h>'.
14905 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
14906 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
14907 (kernel_img_SOURCES): ... to here.
14908
14909 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
14910 * include/grub/i386/pc/init.h: Likewise.
14911 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
14912 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
14913
14914 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
14915
14916 * include/grub/i386/halt.h: Remove.
14917 * include/grub/i386/reboot.h: Likewise.
14918
14919 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
14920
14921 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
14922
14923 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
14924 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
14925 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
14926 "progname.h"
14927 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
14928 * util/sparc64/ieee1275/grub-setup.c: Likewise.
14929 (usage): Add missing comma in printf.
14930
14931 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
14932
14933 Use the same reboot approach on i386 coreboot and qemu as we do on
14934 BIOS.
14935
14936 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
14937 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
14938 * kern/i386/reboot.c: Remove.
14939 * include/grub/i386/reboot.h (grub_reboot): Export function.
14940 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
14941 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
14942 0xf000:0xfff0 instead of 0xffff:0x0000.
14943 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
14944 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
14945
14946 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
14947
14948 Fix $srcdir != $objdir build.
14949
14950 * Makefile.in (po/%.po): Rewrite as ...
14951 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
14952
14953 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
14954
14955 Fix GNU/Hurd grub-install crash.
14956 * util/grub-probe.c (probe): Try to access `path' only when it is not
14957 NULL.
14958
14959 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
14960
14961 Correct module naming.
14962
14963 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
14964 (GRUB_MOD_INIT(efi_uga)): ... to this
14965 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
14966 (GRUB_MOD_FINI(efi_uga)): ... to this
14967 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
14968 (GRUB_MOD_INIT(efi_gop)): ... to this
14969 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
14970 (GRUB_MOD_FINI(efi_gop)): ... to this
14971
14972 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
14973
14974 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
14975 translatable.
14976 (usage): Translate `arg' strings using gettext().
14977 Thanks to Jordi Mallach for the suggestion.
14978
14979 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
14980
14981 GOP support. Based on patch from Bean
14982 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
14983
14984 * video/efi_gop.c: New file.
14985 * include/grub/efi/graphics_output.h: Likewise.
14986 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
14987 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
14988 variables.
14989 * conf/x86_64-efi.rmk: Likewise.
14990
14991 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
14992
14993 Rename efi_fb to efi_uga.
14994
14995 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
14996 'efi_uga.mod'.
14997 (efi_fb_mod_SOURCES): Rename this ...
14998 (efi_uga_mod_SOURCES): ... to this.
14999 (efi_fb_mod_CFLAGS): Rename this ...
15000 (efi_uga_mod_CFLAGS): ... to this.
15001 (efi_fb_mod_LDFLAGS): Rename this ...
15002 (efi_uga_mod_LDFLAGS): ... to this.
15003 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
15004 'efi_uga.mod'.
15005 (efi_fb_mod_SOURCES): Rename this ...
15006 (efi_uga_mod_SOURCES): ... to this.
15007 (efi_fb_mod_CFLAGS): Rename this ...
15008 (efi_uga_mod_CFLAGS): ... to this.
15009 (efi_fb_mod_LDFLAGS): Rename this ...
15010 (efi_uga_mod_LDFLAGS): ... to this.
15011 * video/efi_fb.c: Move this ...
15012 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
15013
15014 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
15015
15016 * po/README: New file. Explain our PO file workflow.
15017
15018 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
15019
15020 * po/ChangeLog: Remove. Move relevant entries back to ...
15021 * ChangeLog: ... here.
15022 * po/ca.po: Remove (now handled by TLP).
15023 * po/id.po: Likewise.
15024 * po/zh_CN.po: Likewise.
15025 * Makefile.in (LINGUAS): Initialize in a way that supports
15026 empty set.
15027
15028 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
15029
15030 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
15031 reliing on po/LINGUAS.
15032 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
15033 (po/%.po): ... this.
15034
15035 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
15036
15037 * util/i386/efi/grub-mkimage.c: Include "progname.h".
15038 (main): Use `program_name' instead of nonexistent `progname'.
15039
15040 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
15041
15042 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
15043 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
15044
15045 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
15046
15047 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
15048 commit.
15049 * conf/i386-efi.rmk: Likewise.
15050 * conf/i386-ieee1275.rmk: Likewise.
15051 * conf/powerpc-ieee1275.rmk: Likewise.
15052 * conf/sparc64-ieee1275.rmk: Likewise.
15053 * conf/x86_64-efi.rmk: Likewise.
15054
15055 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
15056
15057 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
15058
15059 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
15060
15061 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
15062
15063 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
15064
15065 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
15066 (grub_mkdevicemap_SOURCES): New variable.
15067 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
15068 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
15069 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
15070 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
15071 (grub_mkdevicemap_SOURCES): Remove.
15072 * conf/i386-efi.rmk: Likewise.
15073 * conf/i386-ieee1275.rmk: Likewise.
15074 * conf/i386-pc.rmk: Likewise.
15075 * conf/powerpc-ieee1275.rmk: Likewise.
15076 * conf/sparc64-ieee1275.rmk: Likewise.
15077 * conf/x86_64-efi.rmk: Likewise.
15078 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
15079 (usage): Fix strings to use `program_name'.
15080 (main): Initialize gettext.
15081 * util/grub-editenv.c: Likewise.
15082 * util/grub-emu.c: Likewise.
15083 * util/grub-fstest.c: Likewise.
15084 * util/grub-mkdevicemap.c: Likewise.
15085 * util/grub-mkfont.c: Likewise.
15086 * util/grub-mkrelpath.c: Likewise.
15087 * util/grub-pe2elf.c: Likewise.
15088 * util/grub-probe.c: Likewise.
15089 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
15090 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
15091 * util/sparc64/ieee1275/grub-setup.c: Likewise.
15092
15093 * util/misc.c: Include `"progname.h"'.
15094 (progname): Remove variable.
15095 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
15096
15097 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
15098
15099 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
15100 printf and print a newline after the menuentry header line.
15101 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
15102
15103 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
15104
15105 autoconf >= 2.60 support $(localedir).
15106
15107 * INSTALL: Note that autoconf 2.60 is required.
15108 * configure.ac (AC_PREREQ): Bump to 2.60.
15109 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
15110 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
15111
15112 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
15113
15114 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
15115 aclocal is run.
15116
15117 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
15118
15119 * normal/main.c (grub_normal_read_line): Fix off-by-one
15120 buffer overflow.
15121
15122 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
15123
15124 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
15125 "parser.grub" in grub_command_execute() call.
15126
15127 2009-11-24 Carles Pina i Estany <carles@pina.cat>
15128
15129 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
15130 * conf/i386-efi.rmk: Likewise.
15131 * conf/i386-ieee1275.rmk: Likewise.
15132 * conf/i386-pc.rmk: Likewise.
15133 * conf/powerpc-ieee1275.rmk: Likewise.
15134 * conf/sparc64-ieee1275.rmk: Likewise.
15135 * conf/x86_64-efi.rmk: Likewise.
15136 * gettext/gettex.c: Include <grub/i18n.h>.
15137 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
15138 here ...
15139 * include/grub/i18n.h: ... to here
15140 * include/grub/i18n.h: ... to here.
15141 * kern/misc.c: Include <grub/i18n.h>
15142 (grub_gettext_dummy): Move above user.
15143
15144 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
15145
15146 * util/Makefile.in (install-local): Convert a `for' into a normal
15147 shell expansion.
15148
15149 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
15150
15151 * autogen.sh: Add automake call.
15152 * config.guess: Remove.
15153 * config.sub: Likewise.
15154 * install-sh: Likewise.
15155
15156 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
15157
15158 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
15159
15160 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
15161
15162 * util/Makefile.in (install-local): Convert a make `$(foreach)'
15163 function to a normal shell `for'.
15164
15165 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
15166
15167 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
15168
15169 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
15170
15171 * util/grub-mkrelpath.c: New file.
15172 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
15173 (grub_mkrelpath_SOURCES): New variable.
15174 * include/grub/util/misc.h: New function prototype.
15175 * util/misc.c (make_system_path_relative_to_its_root): New function.
15176
15177 * util/grub-mkconfig_lib.in (bindir): New variable.
15178 (grub_mkrelpath): Likewise.
15179 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
15180
15181 * util/probe.c (probe): Make the file path relative to its root.
15182 Change a info message to use the GRUB path. Enable again the
15183 check if we can read the file with GRUB facilities.
15184
15185 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
15186 to its root.
15187
15188 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
15189
15190 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
15191 platform.
15192
15193 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
15194
15195 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
15196 strncmp().
15197
15198 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
15199
15200 * util/getroot.c (grub_util_is_dmraid): New function.
15201 (grub_util_get_dev_abstraction): Treat dmraid and multipath
15202 devices as normal ones, not as LVM.
15203
15204 2009-11-23 Carles Pina i Estany <carles@pina.cat>
15205
15206 * conf/common.rmk: Add grub-gettext_lib target and updates
15207 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
15208 LDFLAGS.
15209 * gettext/gettext.c: New file. (Reads mo files).
15210 * include/grub/file.h (grub_file_pread): New prototype.
15211 * include/grub/i18n.h (_): New prototype.
15212 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
15213 prototypes.
15214 * kern/misc.c (grub_gettext_dummy): New function.
15215 * normal/menu_text.c: Include <grub/i18n.h>.
15216 * normal/menu_text.c (print_timeout): Gettexttize string.
15217 * normal/menu_text.c (print_message): Gettexttize string.
15218 * po/POTFILES: Add `normal/menu_text.c'.
15219 * po/ca.po: Add new translations.
15220 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
15221 gettext module and defines locale_dir and lang in grub.cfg.
15222 * NEWS: Add gettext support.
15223
15224 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
15225
15226 * util/hostdisk.c: Include `<grub/i18n.h>'.
15227 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
15228 (make_device_name): Rewrite using asprintf.
15229 (convert_system_partition_to_system_disk): Replace 0 with NULL.
15230 (find_system_device): If a device is not found, generate one just
15231 by reusing the OS path name.
15232 (read_device_map): Make it permissible for device.map not to exist.
15233
15234 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
15235
15236 * script/sh/execute.c: Move from here ...
15237 * script/execute.c: ... to here. Update all users.
15238 * script/sh/function.c: Move from here ...
15239 * script/function.c: ... to here. Update all users.
15240 * script/sh/lexer.c: Move from here ...
15241 * script/lexer.c: ... to here. Update all users.
15242 * script/sh/main.c: Move from here ...
15243 * script/main.c: ... to here. Update all users.
15244 * script/sh/parser.y: Move from here ...
15245 * script/parser.y: ... to here. Update all users.
15246 * script/sh/script.c: Move from here ...
15247 * script/script.c: ... to here. Update all users.
15248
15249 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
15250
15251 * configure.ac: Detect all `emu' platforms. Define
15252 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
15253 --enable-grub-emu logic. Disable include/grub/machine
15254 symlink on `emu' platforms.
15255
15256 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
15257 * gensymlist.sh.in: Likewise.
15258
15259 * include/grub/i386/coreboot/machine.h: Remove file.
15260 * include/grub/i386/efi/machine.h: Likewise.
15261 * include/grub/i386/ieee1275/machine.h: Likewise.
15262 * include/grub/i386/pc/machine.h: Likewise.
15263 * include/grub/i386/qemu/machine.h: Likewise.
15264 * include/grub/powerpc/ieee1275/machine.h: Likewise.
15265 * include/grub/sparc64/ieee1275/machine.h: Likewise.
15266 * include/grub/x86_64/efi/machine.h: Likewise.
15267
15268 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
15269 * commands/halt.c: Likewise.
15270 * commands/reboot.c: Likewise.
15271 * include/grub/autoefi.h: Likewise.
15272 * include/grub/i386/at_keyboard.h: Likewise.
15273 * include/grub/i386/kernel.h: Likewise.
15274 * include/grub/i386/loader.h: Likewise.
15275 * include/grub/i386/pc/memory.h: Likewise.
15276 * kern/dl.c: Likewise.
15277 * kern/i386/coreboot/init.c: Likewise.
15278 * loader/i386/bsd.c: Likewise.
15279 * loader/i386/linux.c: Likewise.
15280 * loader/multiboot_loader.c: Likewise.
15281 * term/i386/pc/serial.c: Likewise.
15282 * term/usb_keyboard.c: Likewise.
15283
15284 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
15285 `<grub/machine/machine.h>'
15286 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
15287 * util/misc.c: Remove `<grub/machine/machine.h>' and
15288 `<grub/machine/time.h>'.
15289
15290 * Makefile.in (enable_grub_emu): Remove variable.
15291 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
15292
15293 * conf/any-emu.rmk: New file.
15294 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
15295 (grub_emu_init.c): Move from here ...
15296 * conf/any-emu.rmk: ... to here.
15297
15298 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
15299 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
15300 * conf/any-emu.rmk: ... to here.
15301
15302 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
15303
15304 * include/grub/parser.h (grub_parser_register): Document need
15305 of `name' parameter.
15306 * normal/main.c (grub_normal_read_line): Simplify prompt string.
15307 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
15308 "sh" to "grub".
15309
15310 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
15311
15312 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
15313 `$(XGETTEXT)'.
15314 * include/grub/i18n.h (N_): New macro.
15315 * util/mkisofs/mkisofs.h: Likewise.
15316 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
15317 around N_().
15318 (usage): Use gettext() to translate help strings when printing them.
15319
15320 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
15321
15322 Based on patch from Bean
15323 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
15324
15325 * video/efi_fb.c: New file.
15326 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
15327 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
15328 variables.
15329 * conf/x86_64-efi.rmk: Likewise.
15330
15331 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
15332
15333 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
15334 * util/i386/pc/grub-setup.c: Likewise.
15335
15336 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
15337
15338 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
15339 <hurd/fs.h>
15340 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
15341 file_get_storage_info to implement grub_guess_root_device.
15342
15343 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
15344
15345 * Makefile.in (target): Use make's builtin $(shell) function
15346 instead of calling directly $(SHELL) to create the locale directories,
15347 inside the $(foreach) function.
15348
15349 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
15350
15351 * util/grub-mkrescue.in: Print an error and usage if output option
15352 has not been given.
15353
15354 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
15355
15356 Patch from Loïc Minier <loic.minier@ubuntu.com>.
15357 * util/grub.d/30_os-prober.in: Cope with Linux entries where
15358 root and /boot are on different devices.
15359
15360 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
15361
15362 Fix build for srcdir != objdir.
15363
15364 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
15365 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
15366 $(srcdir).
15367 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
15368 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
15369 reference for input.
15370
15371 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
15372
15373 * util/grub-mkrescue.in: Use source directory direcly (without copiing
15374 or hardlinking it). Remove -J option, Joliet is not compatible with
15375 multiple source directories.
15376
15377 2009-11-21 Carles Pina i Estany <carles@pina.cat>
15378 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
15379
15380 * util/grub-mkrescue.in: Recognize `--override-directory' option.
15381 (process_input_dir): New function. Process an arbitrary input
15382 directory.
15383 Misc adjustments to support both "override mode" and system-wide mode.
15384
15385 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
15386
15387 * configure.ac (UNIFONT_BDF): Rename to ...
15388 (FONT_SOURCE): ... this. Update all users.
15389
15390 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
15391
15392 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
15393 to the list of unifont files to look for.
15394
15395 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
15396
15397 Patch from Joe Auricchio <jauricchio@gmail.com>
15398 * commands/minicmd.c (grub_mini_cmd_clear): New function.
15399 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
15400 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
15401
15402 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
15403
15404 * Makefile.in (install-local): Add a missing backslash.
15405
15406 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
15407
15408 * include/grub/x86_64/io.h: New file.
15409
15410 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
15411
15412 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
15413 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
15414 Include `"progname.h"'.
15415 (main): Initialize gettext.
15416 * util/i386/pc/grub-setup.c: Gettexttize.
15417 * util/i386/pc/grub-mkimage.c: Likewise.
15418
15419 * Makefile.in (po/*.po): Redefine as ...
15420 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
15421
15422 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
15423
15424 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
15425
15426 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
15427 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
15428 (program_name): Remove.
15429 (main): Initialize gettext support.
15430 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
15431 Include `<libintl.h>'.
15432 (_): New macro.
15433
15434 * util/mkisofs/eltorito.c: Gettexttize.
15435 * util/mkisofs/joliet.c: Likewise.
15436 * util/mkisofs/mkisofs.c: Likewise.
15437 * util/mkisofs/multi.c: Likewise.
15438 * util/mkisofs/rock.c: Likewise.
15439 * util/mkisofs/tree.c: Likewise.
15440 * util/mkisofs/write.c: Likewise.
15441
15442 * po/POTFILES: Update with new files.
15443
15444 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
15445
15446 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
15447 * util/mkisofs/iso9660.h: Likewise.
15448 * util/mkisofs/joliet.c: Likewise.
15449 * util/mkisofs/mkisofs.c: Likewise.
15450 * util/mkisofs/mkisofs.h: Likewise.
15451 * util/mkisofs/rock.c: Likewise.
15452 * util/mkisofs/tree.c: Likewise.
15453 * util/mkisofs/write.c: Likewise.
15454
15455 * util/mkisofs/eltorito.c (rcsid): Remove.
15456 * util/mkisofs/hash.c: Likewise.
15457 * util/mkisofs/joliet.c: Likewise.
15458 * util/mkisofs/name.c: Likewise.
15459 * util/mkisofs/rock.c: Likewise.
15460 * util/mkisofs/tree.c: Likewise.
15461 * util/mkisofs/write.c: Likewise.
15462
15463 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
15464
15465 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
15466 instead of static allocation.
15467 * util/mkisofs/match.h: Likewise.
15468
15469 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
15470
15471 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
15472 and `util/grub.d/10_linux.in'.
15473 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
15474 translatable Shell files.
15475
15476 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
15477
15478 * Makefile.in ($(srcdir)/aclocal.m4): New target.
15479
15480 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
15481
15482 * INSTALL: Document Automake is needed for bootstrap.
15483 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
15484 * util/grub.d/10_kfreebsd.in (bindir): New variable.
15485 Add gettext initialization.
15486 (kfreebsd_entry): Make menuentry output translatable.
15487
15488 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
15489
15490 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
15491 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
15492 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
15493 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
15494 (LINGUAS): Auto-generate using `po/LINGUAS'.
15495 * po/LINGUAS: New file.
15496
15497 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
15498
15499 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
15500 other things).
15501 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
15502 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
15503 bindtextdomain() calls for gettext initialization.
15504
15505 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
15506
15507 * gnulib/progname.c: New file (imported from Gnulib).
15508 * gnulib/progname.h: Likewise.
15509 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
15510 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
15511 (usage): Replace `progname' with `program_name'.
15512 (main): Use set_program_name() for program name initialization.
15513
15514 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
15515
15516 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
15517 from here ...
15518 * Makefile.in (CPPFLAGS): ... to here.
15519
15520 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
15521
15522 * aclocal.m4: Move from here ...
15523 * acinclude.m4: ... to here.
15524 * autogen.sh: Add call to `aclocal'.
15525 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
15526
15527 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
15528
15529 * Makefile.in (CLEANFILES): Add `po/*.mo'.
15530 (LINGUAS): New variable.
15531 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
15532 (install-local): Install MO files.
15533 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
15534 * include/grub/i18n.h: New file.
15535 * po/POTFILES: New file.
15536 * po/ca.po: New file.
15537 * util/grub.d/10_linux.in (bindir): New variable.
15538 Add gettext initialization.
15539 (linux_entry): Make menuentry output translatable.
15540 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
15541 (usage): Make --help output translatable.
15542 (main): Initialize gettext.
15543
15544 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
15545
15546 * import_gcry.py: New file (written by Vladimir with minor
15547 adjustments).
15548 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
15549 ciphers.
15550 * INSTALL: Document that Python is required for bootstrap.
15551
15552 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
15553
15554 Import ciphers from libgcrypt 1.4.4.
15555
15556 * lib/libgcrypt/cipher/ChangeLog
15557 * lib/libgcrypt/cipher/ac.c
15558 * lib/libgcrypt/cipher/arcfour.c
15559 * lib/libgcrypt/cipher/bithelp.h
15560 * lib/libgcrypt/cipher/blowfish.c
15561 * lib/libgcrypt/cipher/camellia-glue.c
15562 * lib/libgcrypt/cipher/camellia.c
15563 * lib/libgcrypt/cipher/camellia.h
15564 * lib/libgcrypt/cipher/cast5.c
15565 * lib/libgcrypt/cipher/cipher.c
15566 * lib/libgcrypt/cipher/crc.c
15567 * lib/libgcrypt/cipher/des.c
15568 * lib/libgcrypt/cipher/dsa.c
15569 * lib/libgcrypt/cipher/ecc.c
15570 * lib/libgcrypt/cipher/elgamal.c
15571 * lib/libgcrypt/cipher/hash-common.c
15572 * lib/libgcrypt/cipher/hash-common.h
15573 * lib/libgcrypt/cipher/hmac-tests.c
15574 * lib/libgcrypt/cipher/md.c
15575 * lib/libgcrypt/cipher/md4.c
15576 * lib/libgcrypt/cipher/md5.c
15577 * lib/libgcrypt/cipher/primegen.c
15578 * lib/libgcrypt/cipher/pubkey.c
15579 * lib/libgcrypt/cipher/rfc2268.c
15580 * lib/libgcrypt/cipher/rijndael-tables.h
15581 * lib/libgcrypt/cipher/rijndael.c
15582 * lib/libgcrypt/cipher/rmd.h
15583 * lib/libgcrypt/cipher/rmd160.c
15584 * lib/libgcrypt/cipher/rsa.c
15585 * lib/libgcrypt/cipher/seed.c
15586 * lib/libgcrypt/cipher/serpent.c
15587 * lib/libgcrypt/cipher/sha1.c
15588 * lib/libgcrypt/cipher/sha256.c
15589 * lib/libgcrypt/cipher/sha512.c
15590 * lib/libgcrypt/cipher/tiger.c
15591 * lib/libgcrypt/cipher/twofish.c
15592 * lib/libgcrypt/cipher/whirlpool.c
15593
15594 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
15595
15596 Fix build for systems without error().
15597
15598 * gnulib/error.c: New file (imported from Gnulib).
15599 * gnulib/error.h: Likewise.
15600 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
15601 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
15602 (this variable is now used by error()).
15603
15604 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
15605
15606 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
15607 instead of relying that char is signed.
15608
15609 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
15610
15611 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
15612 blocksize different from specified.
15613 (grub_pxefs_read): Likewise.
15614
15615 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
15616
15617 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
15618
15619 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
15620 (grub_ata_readwrite): Likewise. Update 2 format strings.
15621 (grub_atapi_read): Likewise.
15622
15623 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
15624 * conf/i386.rmk (pkglib_MODULES): ... to here ...
15625 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
15626 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
15627 (ata_mod_LDFLAGS): Move from here ...
15628 * conf/i386.rmk: ... to here ...
15629 * conf/x86_64-efi.rmk: ... and here.
15630 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
15631 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
15632
15633 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
15634
15635 Relicense multiboot.h, with RMS' blessing.
15636
15637 * include/multiboot.h: Change to X11 license.
15638
15639 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
15640
15641 Support --version in grub-mkisofs.
15642
15643 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
15644 (OPTION_VERSION): New macro.
15645 (ld_options): Recognize --version.
15646 (usage): Move `program_name' from here ...
15647 (program_name): ... to here. Add `static' qualifier.
15648 (main): Recognize `OPTION_VERSION'.
15649
15650 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
15651
15652 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
15653 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
15654
15655 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
15656
15657 Fix help2man generation for mkisofs.
15658
15659 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
15660 (usage): Send output to stdout (rather than stderr).
15661
15662 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
15663
15664 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
15665 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
15666 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
15667 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
15668 (bin_SCRIPTS): Add `grub-mkfloppy'.
15669 (grub_mkfloppy_SOURCES): New variable.
15670
15671 * util/grub-mkrescue.in: New file.
15672 * util/i386/pc/grub-mkfloppy.in: New file.
15673
15674 * util/i386/coreboot/grub-mkrescue.in: Remove.
15675 * util/i386/pc/grub-mkrescue.in: Remove.
15676
15677 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
15678
15679 * include/grub/multiboot.h (struct grub_multiboot_header): Move
15680 from here ...
15681 * include/multiboot.h (struct multiboot_header): ... to here. Update
15682 all users.
15683 * include/grub/multiboot.h (struct grub_multiboot_info): Move
15684 from here ...
15685 * include/multiboot.h (struct multiboot_info): ... to here. Update
15686 all users.
15687 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
15688 from here ...
15689 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
15690 Update all users.
15691 * include/grub/multiboot.h (struct grub_mod_list): Move
15692 from here ...
15693 * include/multiboot.h (struct multiboot_mod_list): ... to here.
15694 Update all users.
15695
15696 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
15697
15698 * include/multiboot2.h (multiboot_word): Rename from this ...
15699 (multiboot2_word): ... to this. Update all users.
15700 (multiboot_header): Rename from this ...
15701 (multiboot2_header): ... to this. Update all users.
15702 (multiboot_tag_header): Rename from this ...
15703 (multiboot2_tag_header): ... to this. Update all users.
15704 (multiboot_tag_start): Rename from this ...
15705 (multiboot2_tag_start): ... to this. Update all users.
15706 (multiboot_tag_name): Rename from this ...
15707 (multiboot2_tag_name): ... to this. Update all users.
15708 (multiboot_tag_module): Rename from this ...
15709 (multiboot2_tag_module): ... to this. Update all users.
15710 (multiboot_tag_memory): Rename from this ...
15711 (multiboot2_tag_memory): ... to this. Update all users.
15712 (multiboot_tag_unused): Rename from this ...
15713 (multiboot2_tag_unused): ... to this. Update all users.
15714 (multiboot_tag_end): Rename from this ...
15715 (multiboot2_tag_end): ... to this. Update all users.
15716
15717 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
15718
15719 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
15720 this platform we should support Multiboot1 first.
15721
15722 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
15723 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
15724 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
15725
15726 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
15727
15728 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
15729 of write calls (converting them to fwrite() if they aren't already).
15730 (get_torito_desc): Likewise.
15731 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
15732
15733 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
15734
15735 * util/i386/pc/grub-install.in: Move from here ...
15736 * util/grub-install.in: ... to here. Update all users.
15737
15738 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
15739
15740 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
15741
15742 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
15743
15744 Support for El Torito without floppy emulation.
15745
15746 * util/mkisofs/eltorito.c: Include `<errno.h>'.
15747 (init_boot_catalog): Improve error handling.
15748 (get_torito_desc): Don't use floppy emulation unless requested by
15749 user. Patch boot information table when requested via
15750 `-boot-info-table'.
15751 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
15752 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
15753 (use_boot_info_table): New variables.
15754 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
15755 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
15756 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
15757 `--eltorito-emul-floppy'.
15758 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
15759 and `OPTION_ELTORITO_EMUL_FLOPPY'.
15760 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
15761 (use_boot_info_table, get_731): New prototypes.
15762 * util/mkisofs/write.c (get_731): New function.
15763
15764 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
15765
15766 Fix the generation of the man page.
15767
15768 * util/pc/i386/grub-install.in: Source
15769 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
15770
15771 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
15772
15773 Large file support for grub-mkisofs.
15774
15775 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
15776 * util/mkisofs/mkisofs.c (next_extent, last_extent)
15777 (session_start): Upgrade type to `uint64_t'. Update all users.
15778 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
15779 (struct directory_entry): Upgrade type of `starting_block' and
15780 `size' to `uint64_t'. Update all users.
15781 (struct deferred): Remove unused structure.
15782 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
15783 Update all users.
15784 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
15785 file is larger than `UINT32_MAX'.
15786 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
15787 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
15788 return value.
15789 (struct deferred_write): Upgrade type of `extent' and `size' to
15790 `uint64_t'. Update all users.
15791 (last_extent_written): Upgrade type to `uint64_t'. Update all
15792 users.
15793 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
15794 Update all users. Upgrade type of `remain' to `int64_t' and
15795 `use' to `size_t'. Use error() to handle fread() errors.
15796 (write_files): Rely on write_one_file() rather than calling
15797 xfwrite() directly.
15798
15799 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
15800
15801 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
15802
15803 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
15804
15805 * util/mkisofs/fnmatch.c: Remove.
15806 * util/mkisofs/getopt1.c: Likewise.
15807 * util/mkisofs/getopt.c: Likewise.
15808 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
15809 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
15810 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
15811 `gnulib/getopt1.c' and `gnulib/getopt.c'.
15812 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
15813
15814 * configure.ac: Detect `mingw32msvc' host_os.
15815 Check for lstat(), getuid() and getgid().
15816
15817 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
15818 instances of `u_char' with `uint8_t'.
15819
15820 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
15821 [!HAVE_GETUID] (getuid): New function (stub).
15822 [!HAVE_GETGID] (getgid): Likewise.
15823 [!HAVE_LSTAT] (lstat): Likewise.
15824 [!S_IROTH] (S_IROTH): New macro (dummy).
15825 [!S_IRGRP] (S_IRGRP): Likewise.
15826
15827 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
15828
15829 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
15830 conditional expression).
15831
15832 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
15833
15834 Import from Gnulib.
15835
15836 * gnulib/fnmatch.c: New file.
15837 * gnulib/fnmatch.h: Likewise.
15838 * gnulib/fnmatch_loop.c: Likewise.
15839 * gnulib/getopt.c: Likewise.
15840 * gnulib/getopt.h: Likewise.
15841 * gnulib/getopt1.c: Likewise.
15842 * gnulib/getopt_int.h: Likewise.
15843 * gnulib/gettext.h: Likewise.
15844
15845 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
15846
15847 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
15848 * normal/handler.c (read_handler_list): Likewise.
15849
15850 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
15851
15852 Misc cleanup.
15853
15854 * kern/command.c (grub_register_command_prio): Use
15855 grub_zalloc() instead of explicitly zeroing data.
15856 * kern/list.c: Include `<grub/mm.h>'.
15857 (grub_named_list_find): Replace `0' with `NULL'.
15858 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
15859 (fs_module_list): Change type to `grub_named_list_t'. Update all
15860 users.
15861 * normal/dyncmd.c (read_command_list): Add space between function
15862 call and parenthesis.
15863 * normal/handler.c (read_handler_list): Likewise.
15864
15865 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
15866
15867 * normal/auth.c (punishment_delay): Moved from here ...
15868 (grub_auth_strcmp): ... to here (inside function).
15869
15870 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
15871
15872 * include/grub/list.h (struct grub_named_list): Remove `const'
15873 qualifier from `name'.
15874 (struct grub_prio_list): Likewise.
15875
15876 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
15877
15878 * normal/auth.c: Include `<grub/time.h>'.
15879 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
15880
15881 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
15882
15883 * normal/auth.c (punishment_delay): New variable.
15884 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
15885 (grub_auth_check_authentication): Punish failed login attempts with
15886 an incremental (2^N) delay.
15887
15888 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
15889
15890 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
15891 path with $(srcdir).
15892
15893 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
15894
15895 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
15896
15897 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
15898
15899 * util/i386/coreboot/grub-mkrescue.in: New file.
15900 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
15901 variables.
15902
15903 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
15904 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
15905 * configure.ac: Add header and function checks to satisfy grub-mkisofs
15906 requirements.
15907 * util/mkisofs/defaults.h: New file.
15908 * util/mkisofs/eltorito.c: Likewise.
15909 * util/mkisofs/exclude.h: Likewise.
15910 * util/mkisofs/fnmatch.c: Likewise.
15911 * util/mkisofs/getopt.c: Likewise.
15912 * util/mkisofs/getopt1.c: Likewise.
15913 * util/mkisofs/hash.c: Likewise.
15914 * util/mkisofs/include/fctldefs.h: Likewise.
15915 * util/mkisofs/include/mconfig.h: Likewise.
15916 * util/mkisofs/include/prototyp.h: Likewise.
15917 * util/mkisofs/include/statdefs.h: Likewise.
15918 * util/mkisofs/iso9660.h: Likewise.
15919 * util/mkisofs/joliet.c: Likewise.
15920 * util/mkisofs/match.c: Likewise.
15921 * util/mkisofs/match.h: Likewise.
15922 * util/mkisofs/mkisofs.c: Likewise.
15923 * util/mkisofs/mkisofs.h: Likewise.
15924 * util/mkisofs/multi.c: Likewise.
15925 * util/mkisofs/name.c: Likewise.
15926 * util/mkisofs/rock.c: Likewise.
15927 * util/mkisofs/tree.c: Likewise.
15928 * util/mkisofs/write.c: Likewise.
15929
15930 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
15931
15932 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
15933 being insecure.
15934
15935 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
15936
15937 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
15938 `grub-mkimage' (and use $0 when possible).
15939
15940 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
15941
15942 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
15943 error message for excessively large memory map.
15944
15945 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
15946
15947 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
15948 executable bit.
15949
15950 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
15951
15952 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
15953 message for coreboot users.
15954
15955 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
15956
15957 Fix build with GNU gold.
15958
15959 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
15960 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
15961 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
15962 link addresses.
15963 * aclocal.m4: Likewise.
15964
15965 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
15966
15967 * configure.ac (AC_PREREQ): Bump to 2.59d.
15968 * INSTALL: Make it more clear when Autoconf and Ruby are
15969 needed and when to run `./autogen.sh'.
15970
15971 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
15972
15973 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
15974 OSes.
15975
15976 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
15977
15978 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
15979
15980 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
15981
15982 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
15983 giving it to GNU Mach.
15984
15985 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
15986
15987 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
15988 GNU partition number to get internal GRUB partition number.
15989
15990 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
15991
15992 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
15993 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
15994
15995 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
15996
15997 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
15998 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
15999 case.
16000
16001 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
16002
16003 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
16004
16005 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
16006
16007 Fix build problem.
16008
16009 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
16010 `-isystem=$(srcdir)/include'.
16011
16012 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
16013
16014 * util/i386/pc/grub-install.in: Remove hint that device.map should be
16015 checked (grub-install doesn't currently rely on it).
16016
16017 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
16018
16019 Revert SVN r2660.
16020
16021 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
16022 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
16023 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
16024 * conf/i386-ieee1275.rmk: Likewise.
16025 * conf/i386-pc.rmk: Likewise.
16026 * conf/powerpc-ieee1275.rmk: Likewise.
16027 * conf/sparc64-ieee1275.rmk: Likewise.
16028 * conf/x86_64-efi.rmk: Likewise.
16029
16030 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
16031
16032 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
16033
16034 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
16035
16036 * include/grub/misc.h: Stop checking for APPLE_CC.
16037
16038 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
16039
16040 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
16041 doesn't cause an infinite call loop.
16042
16043 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
16044
16045 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
16046 strings.
16047
16048 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
16049
16050 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
16051 variable.
16052 * Makefile.in: Likewise.
16053
16054 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
16055
16056 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
16057
16058 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
16059
16060 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
16061
16062 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
16063
16064 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
16065
16066 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
16067
16068 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
16069 from here ...
16070 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
16071
16072 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
16073
16074 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
16075 in $(MAKEINFO) invocation. This makes it clear in output that
16076 errors are being ignored.
16077
16078 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
16079
16080 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
16081 from here ...
16082 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
16083 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
16084 * conf/i386-ieee1275.rmk: Likewise.
16085 * conf/i386-pc.rmk: Likewise.
16086 * conf/powerpc-ieee1275.rmk: Likewise.
16087 * conf/sparc64-ieee1275.rmk: Likewise.
16088 * conf/x86_64-efi.rmk: Likewise.
16089
16090 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
16091
16092 * util/grub-editenv.c (main): If only a command is given, use
16093 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
16094 (usage): FILENAME is now optional and has a default.
16095
16096 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
16097
16098 Improve grub-mkconfig performance when there are several menu
16099 entries on a single filesystem.
16100
16101 * util/grub.d/10_linux.in (linux_entry): Cache the output of
16102 prepare_grub_to_access_device.
16103 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
16104 * util/grub.d/30_os-prober.in: Likewise.
16105
16106 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
16107
16108 * util/grub.d/10_freebsd.in: Remove.
16109 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
16110 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
16111
16112 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
16113
16114 * docs/grub.cfg: Fix example usage of *BSD loaders.
16115
16116 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
16117
16118 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
16119 grub_util_error() call.
16120
16121 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
16122
16123 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
16124 `reserved_first_sector' member.
16125 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
16126 `reserved_first_sector' to 1.
16127 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
16128 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
16129 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
16130 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
16131 filesystems which begin at first sector.
16132 (options): New option --skip-fs-probe.
16133 (main): Handle --skip-fs-probe and pass it to setup().
16134
16135 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
16136
16137 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
16138 (memset): Fix function prototype.
16139
16140 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
16141 2009-10-25 Vasily Averin <vvs@parallels.com>
16142
16143 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
16144 `dirent.direntlen == 0'.
16145
16146 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
16147
16148 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
16149 `cpio'.
16150 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
16151
16152 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
16153
16154 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
16155 `__trampoline_setup' and `__ucmpdi2'.
16156 * include/grub/powerpc/libgcc.h: Only export symbols for functions
16157 that libgcc provides.
16158
16159 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
16160
16161 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
16162 * include/grub/sparc64/libgcc.h (memset): Likewise.
16163 * include/grub/misc.h (memset, memcmp): New function prototypes.
16164
16165 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
16166
16167 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
16168 `cpio'.
16169 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
16170
16171 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
16172
16173 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
16174 * docs/grub.cfg: Compensate for recent change in multiboot
16175 loader (since 2009-08-14 it won't pass filename to payload).
16176 * util/grub.d/10_hurd.in: Likewise.
16177
16178 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
16179
16180 * config.guess: Update to latest version from config git
16181 repository.
16182 * config.sub: Likewise.
16183
16184 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
16185
16186 Fix build on sparc64.
16187
16188 * configure.ac: Perform checks for libgcc symbols before
16189 adding `-nostdlib' to LDFLAGS.
16190
16191 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
16192
16193 Let user specify OpenBSD root device.
16194
16195 * loader/i386/bsd.c (openbsd_root): New variable.
16196 (openbsd_opts): New option 'root'.
16197 (OPENBSD_ROOT_ARG): New macro.
16198 (grub_openbsd_boot): Use 'openbsd_root'.
16199 (grub_cmd_openbsd): Fill 'openbsd_root'.
16200
16201 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
16202
16203 * NEWS: Misc adjustments.
16204
16205 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
16206
16207 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
16208
16209 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
16210
16211 * configure.ac: Bump version to 1.97.
16212
16213 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
16214
16215 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
16216 -mno-3dnow on x86 architectures. Some toolchains enable these
16217 features by default, but they rely on registers that aren't enabled
16218 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
16219
16220 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
16221
16222 Make entry text a bit more readable.
16223
16224 * util/grub.d/10_linux.in: Add `with' before `Linux'.
16225
16226 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
16227
16228 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
16229
16230 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
16231
16232 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
16233 operations.
16234
16235 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
16236
16237 * configure.ac: Add missing dollar.
16238
16239 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
16240
16241 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
16242
16243 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
16244 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
16245 exports.
16246 * include/grub/sparc64/libgcc.h: Likewise. Use
16247 preprocessor conditionals.
16248
16249 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
16250
16251 * conf/common.rmk (grub-dumpbios): Remove rule.
16252 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
16253 * util/grub-dumpbios.in: Remove file.
16254
16255 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
16256
16257 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
16258 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
16259
16260 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
16261 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
16262 users.
16263
16264 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
16265 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
16266 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
16267 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
16268 users.
16269
16270 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
16271
16272 * term/tparm.c: Switch to GPLv3.
16273
16274 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
16275
16276 * include/grub/i386/cpuid.h: Add header protection.
16277
16278 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
16279
16280 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
16281
16282 * include/grub/i386/cpuid.h: New file.
16283 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
16284 (has_longmode): Rename to ...
16285 (grub_cpuid_has_longmode): ... this. Update all users. Remove
16286 `static' attribute.
16287 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
16288 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
16289 on a CPU that doesn't implement AMD64 instruction set.
16290
16291 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
16292
16293 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
16294 that version.texi is rebuilt on version number changes.
16295
16296 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
16297
16298 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
16299 Fixes bug #27602.
16300
16301 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
16302
16303 * util/i386/pc/grub-install.in: Source
16304 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
16305 that the --grub-probe option will work.
16306 * util/sparc64/ieee1275/grub-install.in: Likewise.
16307
16308 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
16309
16310 * configure.ac: Bump version to 1.97~beta4.
16311
16312 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
16313
16314 Resync grub-mkdevicemap in x86_64-efi.
16315
16316 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
16317 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
16318 `util/devicemap.c'.
16319
16320 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
16321
16322 * util/grub-editenv.c (create_envblk_file): Write new block with a
16323 .new suffix and then rename it into place, to ensure atomic
16324 creation.
16325
16326 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
16327
16328 Do not automatically install headers.
16329
16330 * Makefile.in (include_DATA): Remove. Update all users.
16331
16332 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
16333
16334 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
16335 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
16336
16337 * util/osdetect.lua: Remove.
16338 * script/lua/lauxlib.c: Likewise.
16339 * script/lua/ldebug.c: Likewise.
16340 * script/lua/grub_main.c: Likewise.
16341 * script/lua/lauxlib.h: Likewise.
16342 * script/lua/ldebug.h: Likewise.
16343 * script/lua/ltablib.c: Likewise.
16344 * script/lua/liolib.c: Likewise.
16345 * script/lua/lstrlib.c: Likewise.
16346 * script/lua/lualib.h: Likewise.
16347 * script/lua/ldo.c: Likewise.
16348 * script/lua/ldump.c: Likewise.
16349 * script/lua/ldo.h: Likewise.
16350 * script/lua/loslib.c: Likewise.
16351 * script/lua/lundump.c: Likewise.
16352 * script/lua/grub_lib.c: Likewise.
16353 * script/lua/ldblib.c: Likewise.
16354 * script/lua/lundump.h: Likewise.
16355 * script/lua/lmem.c: Likewise.
16356 * script/lua/grub_lib.h: Likewise.
16357 * script/lua/lmathlib.c: Likewise.
16358 * script/lua/lstate.c: Likewise.
16359 * script/lua/ltm.c: Likewise.
16360 * script/lua/lvm.c: Likewise.
16361 * script/lua/lmem.h: Likewise.
16362 * script/lua/lstate.h: Likewise.
16363 * script/lua/ltm.h: Likewise.
16364 * script/lua/ltable.c: Likewise.
16365 * script/lua/lvm.h: Likewise.
16366 * script/lua/llex.c: Likewise.
16367 * script/lua/lgc.c: Likewise.
16368 * script/lua/grub_lua.h: Likewise.
16369 * script/lua/loadlib.c: Likewise.
16370 * script/lua/lfunc.c: Likewise.
16371 * script/lua/lopcodes.c: Likewise.
16372 * script/lua/lparser.c: Likewise.
16373 * script/lua/ltable.h: Likewise.
16374 * script/lua/llex.h: Likewise.
16375 * script/lua/lgc.h: Likewise.
16376 * script/lua/lfunc.h: Likewise.
16377 * script/lua/lbaselib.c: Likewise.
16378 * script/lua/lopcodes.h: Likewise.
16379 * script/lua/lparser.h: Likewise.
16380 * script/lua/lzio.c: Likewise.
16381 * script/lua/linit.c: Likewise.
16382 * script/lua/lobject.c: Likewise.
16383 * script/lua/llimits.h: Likewise.
16384 * script/lua/lstring.c: Likewise.
16385 * script/lua/lzio.h: Likewise.
16386 * script/lua/lapi.c: Likewise.
16387 * script/lua/lcode.c: Likewise.
16388 * script/lua/lua.h: Likewise.
16389 * script/lua/lobject.h: Likewise.
16390 * script/lua/lstring.h: Likewise.
16391 * script/lua/lapi.h: Likewise.
16392 * script/lua/lcode.h: Likewise.
16393 * script/lua/luaconf.h: Likewise.
16394
16395 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
16396
16397 * docs/grub.texi (Command-line and menu entry commands): Document
16398 date and echo commands.
16399
16400 2009-09-24 Pavel Roskin <proski@gnu.org>
16401
16402 * include/grub/kernel.h (struct grub_module_header): Remove
16403 `grub_module_header_types'. Make `type' unsigned. Make `size'
16404 32-bit on all platforms.
16405 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
16406 8-bit field. Use grub_host_to_target32() for `size'.
16407 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
16408 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
16409 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
16410
16411 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
16412
16413 Fix "lost keypress" bug in at_keyboard.
16414
16415 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
16416 Checks for readyness of input buffer (without flushing it).
16417 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
16418 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
16419
16420 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
16421
16422 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
16423 size check within GRUB_MACHINE_PCBIOS section.
16424
16425 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
16426
16427 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
16428 return value.
16429 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
16430 KEYBOARD_ISREADY check.
16431 (grub_at_keyboard_checkkey): Rename to ...
16432 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
16433 Remove gratuitous cast.
16434
16435 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
16436
16437 * configure.ac: Call AC_PROG_MKDIR_P.
16438 * Makefile.in (docs/stamp-vti): Create docs directory. Create
16439 version.texi in $(builddir) rather than $(srcdir).
16440 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
16441 to makeinfo's @include search path.
16442
16443 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
16444
16445 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
16446
16447 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
16448
16449 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
16450 for `*.dpkg-new'.
16451
16452 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
16453
16454 Build info documentation. Some code borrowed from Automake.
16455
16456 * configure.ac: Check for makeinfo.
16457 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
16458 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
16459 docs/version.texi.
16460 (MOSTLYCLEANFILES): Add vti.tmp.
16461 (docs/version.texi, docs/stamp-vti): Update automatically.
16462 (docs/grub.info): Build info documentation. Use --force and ignore
16463 errors for now.
16464 (all-local): Add $(INFOS).
16465 (install-local): Install info files.
16466 (uninstall): Uninstall info files.
16467 * docs/version.texi: Remove from revision control. This file is
16468 automatically generated on build now.
16469 * gendistlist.sh: Add `*.info'.
16470
16471 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
16472
16473 * kern/term.c: Fix indentation.
16474
16475 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
16476
16477 * util/hostdisk.c: Fix a comment.
16478
16479 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
16480
16481 Fix regression introduced in r2539.
16482
16483 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
16484 to 0xA1.
16485
16486 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
16487
16488 * util/grub.d/30_os-prober.in: Don't throw away stderr from
16489 os-prober. Under normal operation, it does not print anything to
16490 stderr; if it does, we need to debug it, and throwing away stderr
16491 makes that excessively difficult.
16492
16493 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
16494
16495 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
16496
16497 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
16498
16499 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
16500 AC_LANG_PROGRAM from autoconf.
16501 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
16502 prototypes (fixes warning).
16503
16504 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
16505 `--disable-werror' was used.
16506
16507 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
16508
16509 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
16510 uninitialized `lastaddr'.
16511
16512 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16513
16514 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
16515
16516 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
16517
16518 * commands/test.c (get_fileinfo): Return immediately if
16519 grub_fs_probe fails.
16520
16521 2009-09-14 José Martínez <xosemp@gmail.com>
16522
16523 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
16524
16525 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
16526
16527 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
16528 output.
16529
16530 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
16531
16532 * configure.ac: Remove --enable-grub-pe2elf. Only build
16533 grub-pe2elf when needed by the build system itself.
16534 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
16535
16536 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
16537
16538 * configure.ac: Bump version to 1.97~beta3.
16539 * docs/version.texi: Likewise.
16540
16541 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
16542
16543 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
16544 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
16545 from here ...
16546 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
16547 (grub_linux_setup_video): ... to here (with some adjustments).
16548
16549 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
16550
16551 Fix memory corruption issue (spotted by Colin Watson).
16552
16553 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
16554 causing returned size to be stored in an incorrect memory location.
16555 Fix use of uninitialized value when storing the returned size.
16556
16557 2009-09-12 Yves Blusseau <blusseau@zetam.org>
16558
16559 Change clean rules to properly remove files
16560
16561 * genmk.rb: add new clean rules
16562 * Makefile.in (clean): add the new targets
16563 (mostlyclean): likewise
16564
16565 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
16566
16567 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
16568 to grub_uint64_t.
16569 * fs/ntfs.c (init_file): Understand 64-bit sizes for
16570 non-resident files.
16571
16572 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
16573
16574 * configure.ac: Don't look for help2man when cross-compiling. Fixes
16575 part of bug #27349.
16576
16577 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
16578
16579 * util/grub-mkconfig.in: Make the created config mode 400 and
16580 print a warning if it fails.
16581
16582 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
16583
16584 * util/grub.d/40_custom.in: Ask user to type custom entries below
16585 comment, rather than below 'exec tail' line.
16586
16587 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
16588
16589 * util/grub.d/40_custom.in: Make sure that the explanatory text is
16590 visible in grub.cfg.
16591
16592 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
16593
16594 * util/grub.d/40_custom.in: Make it a little clearer how to use this
16595 file.
16596
16597 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
16598
16599 * docs/grub.cfg: Add an example menu entry for memtest86+.
16600
16601 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
16602
16603 * config.guess: Update to latest version from config git.
16604 * config.sub: Likewise.
16605
16606 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
16607
16608 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
16609 unknown-command case. Fixes bug #27320.
16610
16611 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
16612
16613 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
16614 `help' if the command exists.
16615
16616 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
16617
16618 * INSTALL: Require GCC 4.1.3 or later.
16619
16620 2009-09-06 Yves Blusseau <blusseau@zetam.org>
16621
16622 * Makefile.in (RMKFILES): add i386-qemu.rmk
16623 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
16624 $(srcdir)/stamp-h.in
16625
16626 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
16627
16628 * util/grub-probe.c (probe): Comment out buggy codepath, which
16629 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
16630 should be re-enabled after 1.97.
16631
16632 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
16633
16634 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
16635 find searches for.
16636
16637 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
16638
16639 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
16640 unnecessary calls to grub_error.
16641
16642 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
16643
16644 * NEWS: Mention `keystatus' and Unicode fonts.
16645
16646 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
16647
16648 * configure.ac: Bump version to 1.97~beta2.
16649 * docs/version.texi: Likewise.
16650
16651 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
16652
16653 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
16654 containing unwind information in some cases where it previously did
16655 not. Use -fno-dwarf2-cfi-asm if available to restore the old
16656 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
16657 discussion.
16658
16659 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
16660
16661 Embedding loadenv module into grub-emu
16662
16663 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
16664 commands/loadenv.c
16665 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
16666 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
16667 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
16668 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
16669 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
16670 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
16671
16672 2009-09-03 Magnus Granberg <zorry@ume.nu>
16673
16674 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
16675 include -fPIE in the default specs.
16676 * configure.ac: Check if pie_possible is yes and add -fno-PIE
16677 to TARGET_CFLAGS.
16678
16679 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
16680
16681 * INSTALL: Note that GNU Bison 2.3 or later is required.
16682
16683 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
16684
16685 * kern/i386/pc/startup.S: Fix typo.
16686
16687 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
16688
16689 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
16690 according to GCS.
16691
16692 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
16693
16694 * docs/grub.texi (Naming convention): Describe one-based partition
16695 numbering.
16696 (Device syntax): Likewise.
16697 (File name syntax): Likewise.
16698 (Block list syntax): Likewise.
16699 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
16700 menu.lst.
16701 (File name syntax): Likewise.
16702 (Command-line and menu entry commands): Document acpi, blocklist,
16703 crc, export, insmod, keystatus, ls, set, and unset commands.
16704
16705 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
16706
16707 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
16708 to avoid implying that only one of --shift, --ctrl, or --alt may be
16709 used.
16710
16711 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
16712
16713 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
16714 rather than comparing against S_IFREG, which will almost never work.
16715
16716 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
16717
16718 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
16719 (write_blocklists): Likewise.
16720
16721 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
16722
16723 * script/lua/grub_lua.h (fputs): Supply a format string as the first
16724 argument to grub_printf.
16725
16726 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
16727
16728 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
16729 non GNU test.
16730
16731 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
16732
16733 * kern/file.c (grub_file_read): Spelling fix
16734
16735 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
16736
16737 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
16738 loading of headers in some cases.
16739
16740 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
16741
16742 * configure.ac: Bump version to 1.97~beta1.
16743 * docs/version.texi: Likewise.
16744
16745 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
16746
16747 * include/grub/i386/xnu.h: Add license header.
16748 include grub/err.h explicitly.
16749
16750 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
16751
16752 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
16753 to `ufs' in the vfs.root.mountfrom kernel parameter.
16754
16755 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
16756
16757 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
16758
16759 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
16760 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
16761
16762 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
16763 `ARRAY_SIZE' macro.
16764
16765 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
16766
16767 * kern/file.c (grub_file_read): Check offset.
16768 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
16769 * fs/jfs.c (grub_jfs_read_file): Likewise.
16770 * fs/ntfs.c (grub_ntfs_read): Likewise.
16771 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
16772 * fs/minix.c (grub_minix_read_file): Correct offset check.
16773 * fs/ufs.c (grub_ufs_read_file): Likewise.
16774
16775 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
16776
16777 * term/i386/pc/console.c (bios_data_area): Cast
16778 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
16779
16780 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
16781
16782 1-bit optimised blitters.
16783
16784 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
16785 prototype.
16786 (grub_video_fbblit_replace_24bit_1bit): Likewise.
16787 (grub_video_fbblit_replace_16bit_1bit): Likewise.
16788 (grub_video_fbblit_replace_8bit_1bit): Likewise.
16789 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
16790 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
16791 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
16792 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
16793 function.
16794 (grub_video_fbblit_replace_24bit_1bit): Likewise.
16795 (grub_video_fbblit_replace_16bit_1bit): Likewise.
16796 (grub_video_fbblit_replace_8bit_1bit): Likewise.
16797 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
16798 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
16799 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
16800 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
16801 when possible.
16802 * video/video.c (grub_video_get_blit_format): Return
16803 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
16804
16805 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
16806
16807 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
16808 the first argument to grub_printf.
16809
16810 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
16811 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
16812
16813 Add `getkeystatus' terminal method. Add a new `keystatus' command
16814 to query it.
16815
16816 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
16817 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
16818 modifier key bitmasks.
16819 (struct grub_term_input): Add `getkeystatus' member.
16820 (grub_getkeystatus): Add prototype.
16821 * kern/term.c (grub_getkeystatus): New function.
16822
16823 * include/grub/i386/pc/memory.h
16824 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
16825 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
16826 Data Area layout.
16827 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
16828 (grub_console_term_input): Set `getkeystatus' member.
16829 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
16830 constants.
16831 (grub_usb_keyboard_getreport): Likewise.
16832 (grub_usb_keyboard_checkkey): Likewise.
16833 (grub_usb_keyboard_getkeystatus): New function.
16834 (grub_usb_keyboard_term): Set `getkeystatus' member.
16835
16836 * commands/keystatus.c: New file.
16837 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
16838 (keystatus_mod_SOURCES): New variable.
16839 (keystatus_mod_CFLAGS): Likewise.
16840 (keystatus_mod_LDFLAGS): Likewise.
16841 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
16842 commands/keystatus.c.
16843 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
16844 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16845 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
16846 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16847 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16848 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
16849
16850 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
16851
16852 Split befs.mod and afs.mod into *_be.mod and *.mod
16853
16854 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
16855 (grub_fstest_SOURCES): Likewise.
16856 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
16857 (afs_be_mod_SOURCES): New variable.
16858 (afs_be_mod_CFLAGS): Likewise.
16859 (afs_be_mod_LDFLAGS): Likewise.
16860 (befs_be_mod_SOURCES): Likewise.
16861 (befs_be_mod_CFLAGS): Likewise.
16862 (befs_be_mod_LDFLAGS): Likewise.
16863 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
16864 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
16865 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16866 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
16867 (grub_emu_SOURCES): Likewise.
16868 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16869 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16870 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
16871 * fs/afs_be.c: New file.
16872 * fs/befs_be.c: New file.
16873 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
16874 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
16875 (U16): Replaced with ...
16876 (grub_afs_to_cpu16): ...this. All users updated.
16877 (U32): Replaced with ...
16878 (grub_afs_to_cpu32): ...this. All users updated.
16879 (U64): Replaced with ...
16880 (grub_afs_to_cpu64): ...this. All users updated.
16881 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
16882 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
16883 (grub_afs_validate_sblock): Check only one endianness.
16884 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
16885 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
16886 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
16887 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
16888 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
16889 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
16890 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
16891 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
16892
16893 2009-08-26 Bean <bean123ch@gmail.com>
16894
16895 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
16896 64-bit number.
16897 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
16898 (grub_xfs_inode_block): Change return type to grub_uint64_t.
16899 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
16900
16901 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
16902
16903 NetBSD memory map support.
16904
16905 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
16906 (grub_netbsd_btinfo_mmap_header): New structure.
16907 (grub_netbsd_btinfo_mmap_entry): Likewise.
16908 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
16909
16910 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
16911
16912 Enable bsd.mod on coreboot.
16913
16914 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
16915 (bsd_mod_SOURCES): New variable.
16916 (bsd_mod_CFLAGS): Likewise.
16917 (bsd_mod_LDFLAGS): Likewise.
16918 (bsd_mod_ASFLAGS): Likewise.
16919 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
16920 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
16921
16922 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
16923
16924 Cleanup NetBSD root support.
16925
16926 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
16927 grub_bsd_get_device.
16928 Fix typo.
16929
16930 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
16931
16932 * util/grub.d/00_header.in: Move check for the video backend of
16933 gfxterm from here ...
16934 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
16935 a suitable video backend.
16936
16937 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
16938
16939 Fix breakage in grub-setup.
16940
16941 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
16942 "msdos_partition_map".
16943
16944 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
16945
16946 Fix breakage in normal/auth.c.
16947
16948 * normal/auth.c (grub_iswordseparator): New function.
16949
16950 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
16951
16952 Authentication support.
16953
16954 * commands/password.c: New file.
16955 * conf/common.rmk (pkglib_MODULES): Add password.mod.
16956 (password_mod_SOURCES): New variable.
16957 (password_mod_CFLAGS): Likewise.
16958 (password_mod_LDFLAGS): Likewise.
16959 (normal_mod_SOURCES): Add normal/auth.c.
16960 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
16961 normal/auth.c.
16962 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
16963 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16964 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
16965 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16966 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16967 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
16968 * include/grub/auth.h: New file.
16969 * include/grub/err.h (grub_err_t): New enum value
16970 GRUB_ERR_ACCESS_DENIED.
16971 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
16972 'users'.
16973 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
16974 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
16975 users updated.
16976 * normal/auth.c: New file.
16977 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
16978 (grub_cmdline_run): Don't allow to go to command line without
16979 authentication.
16980 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
16981 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
16982 menuentry without superuser rights.
16983 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
16984 user isn't a superuser.
16985
16986 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
16987
16988 Save space by inlining misc.c functions.
16989
16990 * kern/misc.c (grub_iswordseparator): Made static.
16991 * kern/misc.c (grub_strcat): Moved from here ...
16992 * include/grub/misc.h (grub_strcat): ... here. Inlined.
16993 * kern/misc.c (grub_strncat): Moved from here ...
16994 * include/grub/misc.h (grub_strncat): ... here. Inlined.
16995 * kern/misc.c (grub_strcasecmp): Moved from here ...
16996 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
16997 * kern/misc.c (grub_strncasecmp): Moved from here ...
16998 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
16999 * kern/misc.c (grub_isalpha): Moved from here ...
17000 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
17001 * kern/misc.c (grub_isdigit): Moved from here ...
17002 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
17003 * kern/misc.c (grub_isgraph): Moved from here ...
17004 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
17005 * kern/misc.c (grub_tolower): Moved from here ...
17006 * include/grub/misc.h (grub_tolower): ... here. Inlined.
17007
17008 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
17009
17010 * script/sh/function.c (grub_script_function_find): Cut error message
17011 not to flood terminal.
17012 * script/sh/lexer.c (grub_script_yylex): Remove command line length
17013 limit.
17014 * script/sh/script.c (grub_script_arg_add): Duplicate string.
17015
17016 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
17017
17018 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
17019 `report' grub_uint8_t *.
17020 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
17021 Use a 50-millisecond timeout rather than just repeating
17022 grub_usb_keyboard_getreport 50 times.
17023 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
17024
17025 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
17026
17027 Rename *_partition_map to part_*
17028
17029 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
17030 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
17031 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
17032 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
17033 All users updated.
17034 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
17035 All users updated.
17036 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
17037 * util/grub-probe.c (probe_partmap): Don't transform partition name
17038 to get module name.
17039
17040 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
17041
17042 Fix OpenBSD and NetBSD support.
17043
17044 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
17045 memory address conflict.
17046 (OPENBSD_MMAP_ACPI): New definition.
17047 (OPENBSD_MMAP_NVS): Likewise.
17048 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
17049 and OPENBSD_MMAP_NVS.
17050 Add memory map terminator
17051 Explicit cast when calling grub_unix_real_boot.
17052 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
17053
17054 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
17055
17056 Let user specify NetBSD root device.
17057
17058 * loader/i386/bsd.c (netbsd_root): New variable.
17059 (netbsd_opts): New option 'root'.
17060 (NETBSD_ROOT_ARG): New macro.
17061 (grub_netbsd_boot): Use 'netbsd_root'.
17062 (grub_bsd_unload): Free 'netbsd_root'.
17063 (grub_cmd_netbsd): Fill 'netbsd_root'.
17064
17065 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
17066
17067 Support for 64-bit NetBSD.
17068
17069 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
17070 point when booting non-FreeBSD.
17071
17072 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
17073
17074 Support --no-smp and --no-acpi for NetBSD.
17075
17076 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
17077 (NETBSD_AB_NOACPI): Likewise.
17078 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
17079 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
17080
17081 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
17082
17083 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
17084 errors.
17085 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
17086 errors. Call grub_error when needed.
17087
17088 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
17089
17090 * commands/search.c (search_fs): Try searching without autoload first.
17091 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
17092 filesystem module explicitly for faster booting.
17093
17094 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
17095
17096 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
17097
17098 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
17099
17100 * util/grub.d/30_os-prober.in: Disable os-prober if
17101 `GRUB_DISABLE_OS_PROBER' was set to true.
17102
17103 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
17104
17105 * partmap/pc.c: Rename to ...
17106 * partmap/msdos.c: ... this. Update all users.
17107 (grub_pc_partition_map): Rename to ...
17108 (grub_msdos_partition_map): ... this. Update all users.
17109
17110 * parttool/pcpart.c: Rename to ...
17111 * parttool/msdospart.c: ... this. Update all users.
17112
17113 * include/grub/pc_partition.h: Rename to ...
17114 * include/grub/msdos_partition.h: ... this. Update all users.
17115 (grub_pc_partition_bsd_entry): Rename to ...
17116 (grub_msdos_partition_bsd_entry): ... this. Update all users.
17117 (grub_pc_partition_disk_label): Rename to ...
17118 (grub_msdos_partition_disk_label): ... this. Update all users.
17119 (grub_pc_partition_entry): Rename to ...
17120 (grub_msdos_partition_entry): ... this. Update all users.
17121 (grub_pc_partition_mbr): Rename to ...
17122 (grub_msdos_partition_mbr): ... this. Update all users.
17123 (grub_pc_partition): Rename to ...
17124 (grub_msdos_partition): ... this. Update all users.
17125 (grub_pc_partition_is_empty): Rename to ...
17126 (grub_msdos_partition_is_empty): ... this. Update all users.
17127 (grub_pc_partition_is_extended): Rename to ...
17128 (grub_msdos_partition_is_extended): ... this. Update all users.
17129 (grub_pc_partition_is_bsd): Rename to ...
17130 (grub_msdos_partition_is_bsd): ... this. Update all users.
17131
17132 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
17133 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
17134 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
17135 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
17136 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
17137 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
17138 (gpt_mod_LDFLAGS): Rename to ...
17139 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
17140 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
17141 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
17142 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
17143 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
17144 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
17145 (part_gpt_mod_LDFLAGS): ... this.
17146 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
17147 `pcpart.mod' to `msdospart.mod'.
17148 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
17149 to ...
17150 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
17151 (msdospart_mod_LDFLAGS): ... this.
17152
17153 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
17154
17155 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
17156 (openbsd_opts): Likewise.
17157 (netbsd_opts): Likewise.
17158 (freebsd_flags): Added 0 terminator.
17159 (openbsd_flags): Likewise.
17160 (netbsd_flags): Likewise.
17161 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
17162 (grub_cmd_freebsd): Transformed into extended command.
17163 (grub_cmd_openbsd): Likewise.
17164 (grub_cmd_netbsd): Likewise.
17165 (cmd_freebsd): Changed type to grub_extcmd_t.
17166 (cmd_openbsd): Likewise.
17167 (cmd_netbsd): Likewise.
17168 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
17169 grub_cmd_openbsd as extended commands.
17170 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
17171 cmd_netbsd and cmd_openbsd
17172
17173 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
17174
17175 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
17176
17177 2009-08-21 Pavel Roskin <proski@gnu.org>
17178
17179 * Makefile.in (install-local): When checking if a file is in the
17180 build directory, use "test -e" to detect symlinks.
17181
17182 * Makefile.in (install-local): Remove all files in
17183 $(DESTDIR)$(pkglibdir) before installing new files there.
17184
17185 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
17186
17187 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
17188 grub-mkelfimage.
17189
17190 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
17191
17192 * util/grub-mkconfig.in: Don't use gfxterm by default if not
17193 explicitly specified by the user.
17194
17195 2009-08-18 Pavel Roskin <proski@gnu.org>
17196
17197 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
17198 grub_uint8_t pointer for data.
17199 * include/grub/fbutil.h (struct grub_video_fbblit_info):
17200 Likewise.
17201 * video/fb/fbutil.c: Remove unnecessary casts.
17202
17203 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
17204
17205 VBE cleanup.
17206
17207 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
17208 (grub_vbe_set_video_mode): Save active mode info
17209 only after setting the mode.
17210 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
17211 second argument.
17212
17213 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
17214
17215 Rename variables for clarity.
17216
17217 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
17218 (active_vbe_mode_info): ... this. All users updated.
17219 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
17220 All users updated.
17221 (initial_mode): Rename to ...
17222 (initial_vbe_mode): ... this. All users updated.
17223 (mode_in_use): Rename to ..
17224 (vbe_mode_in_use): ... this. All users updated.
17225 (mode_list): Rename to ..
17226 (vbe_mode_list): ... this. All users updated.
17227 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
17228 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
17229 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
17230 'mode_list_size' to 'vbe_mode_list_size'.
17231 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
17232 'best_mode_info' to 'best_vbe_mode_info' and
17233 'best_mode' to 'best_vbe_mode'
17234
17235 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
17236
17237 Remove duplicate grub_video_fb_get_video_ptr.
17238
17239 * include/grub/fbutil.h (get_data_ptr): Rename to ...
17240 (grub_video_fb_get_video_ptr): ... this.
17241 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
17242 * video/fb/fbutil.c: Add comment about addressing.
17243 (get_data_ptr): Rename to ...
17244 (grub_video_fb_get_video_ptr): ... this. All users updated.
17245 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
17246
17247 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
17248
17249 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
17250 grub_dprintf() that was just added.
17251
17252 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
17253
17254 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
17255 (DEFAULT_VIDEO_MODE): Remove macros.
17256 (grub_linux_boot): Remove assumption that Linux has FB support,
17257 and use "text" as default video mode.
17258
17259 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
17260
17261 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
17262 grub_dprintf.
17263 * fs/fat.c (grub_fat_read_data): Likewise.
17264
17265 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
17266
17267 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
17268 payload.
17269 (grub_module): Likewise.
17270
17271 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
17272
17273 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
17274 mbi->cmdline but free playground.
17275
17276 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
17277
17278 Handle group offset on UFS1.
17279
17280 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
17281 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
17282
17283 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
17284
17285 Split ufs.mod into ufs1.mod and ufs2.mod.
17286
17287 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
17288 (grub_fstest_SOURCES): Likewise.
17289 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
17290 (ufs_mod_SOURCES): Remove.
17291 (ufs_mod_CFLAGS): Likewise.
17292 (ufs_mod_LDFLAGS): Likewise.
17293 (ufs1_mod_SOURCES): New variable.
17294 (ufs1_mod_CFLAGS): Likewise.
17295 (ufs1_mod_LDFLAGS): Likewise.
17296 (ufs2_mod_SOURCES): New variable.
17297 (ufs2_mod_CFLAGS): Likewise.
17298 (ufs2_mod_LDFLAGS): Likewise.
17299 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
17300 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
17301 Likewise.
17302 (grub_emu_SOURCES): Likewise.
17303 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17304 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
17305 (grub_setup_SOURCES): Likewise.
17306 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17307 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
17308 (grub_setup_SOURCES): Likewise.
17309 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
17310 Likewise.
17311 * fs/ufs2.c: New file.
17312 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
17313
17314 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
17315
17316 Framebuffer split.
17317
17318 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
17319 subsystem at the end.
17320 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
17321 (video_fb_mod_SOURCES): New variable.
17322 (video_fb_mod_CFLAGS): Likewise.
17323 (video_fb_mod_LDFLAGS): Likewise.
17324 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
17325 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
17326 * video/i386/pc/vbeblit.c: Moved from here ...
17327 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
17328 * video/i386/pc/vbefill.c: Moved from here ...
17329 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
17330 * video/i386/pc/vbeutil.c: Moved from here ...
17331 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
17332 * include/grub/i386/pc/vbeblit.h: Moved from here ...
17333 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
17334 * include/grub/i386/pc/vbefill.h: Moved from here ...
17335 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
17336 * include/grub/i386/pc/vbeutil.h: Moved from here ...
17337 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
17338 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
17339 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
17340 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
17341 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
17342 (grub_video_adapter): Added 'get_info_and_fini'.
17343 (grub_video_get_info_and_fini): New prototype.
17344 (grub_video_set_mode): make modestring const char *.
17345 * loader/i386/linux.c (grub_linux_setup_video): Use
17346 grub_video_get_info_and_fini.
17347 (grub_linux_boot): Move modesetting just before booting.
17348 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
17349 grub_video_get_info_and_fini.
17350 * video/i386/pc/vbe.c: Moved framebuffer part ...
17351 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
17352 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
17353 grub_video_fbstd_colors and grub_video_fb_set_palette.
17354 (grub_video_vbe_init): Clear 'framebuffer' variable and use
17355 grub_video_fb_init.
17356 (grub_video_vbe_fini): Use grub_video_fb_fini.
17357 (grub_video_vbe_setup): Use framebuffer.render_target instead of
17358 render_target and use grub_video_fb_set_active_render_target and
17359 grub_video_fb_set_palette.
17360 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
17361 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
17362 (grub_video_vbe_adapter): Use framebuffer.
17363 * video/video.c (grub_video_get_info_and_fini): New function.
17364 (grub_video_set_mode): Make modestring const char *.
17365 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
17366 values are already initialised.
17367
17368 2009-08-14 Pavel Roskin <proski@gnu.org>
17369
17370 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
17371 ABS and APPLE_CC.
17372 * boot/i386/pc/diskboot.S: Likewise.
17373 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
17374 sectors allow compilation on MacOSX.
17375 * conf/i386-pc.rmk: Enable unconditional compilation of
17376 lnxboot.img.
17377
17378 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
17379
17380 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
17381 * util/grub.d/00_header.in: Enter interruptible sleep if
17382 GRUB_HIDDEN_TIMEOUT is set.
17383
17384 2009-08-13 Yves Blusseau <blusseau@zetam.org>
17385
17386 * include/grub/symbol.h: Add the LOCAL macro.
17387 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
17388 starting with "L_".
17389
17390 2009-08-13 Pavel Roskin <proski@gnu.org>
17391
17392 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
17393 any modern compilers we support.
17394
17395 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
17396 Use local labels starting with "L_" so that Apple assembler
17397 knows they are local.
17398
17399 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
17400
17401 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
17402 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
17403 (bsd_kernel_types): ... this enum.
17404
17405 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
17406 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
17407 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
17408
17409 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
17410 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
17411 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
17412 messages.
17413
17414 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
17415
17416 * util/grub-dumpdevtree: Moved from here ...
17417 * util/i386/efi/grub-dumpdevtree: ... to here.
17418 (hexify): New function. Converts a string to its hex version.
17419 Generate hex versions of "efi" and "device-properties" by calling
17420 hexify() on the ASCII strings rather than by hardcoding numbers.
17421
17422 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
17423
17424 * fs/jfs.c: Update copyright year.
17425
17426 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
17427
17428 * util/grub.d/00_header.in: Fix a comment.
17429 * util/grub.d/10_linux.in: Likewise.
17430 * util/grub.d/10_windows.in: Likewise.
17431 * util/grub.d/10_hurd.in: Likewise.
17432
17433 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
17434
17435 * util/grub-mkconfig.in: Allow the user to specify the used font
17436 with GRUB_FONT.
17437
17438 2009-08-08 Pavel Roskin <proski@gnu.org>
17439
17440 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
17441 available, xfs.mod needs it now.
17442
17443 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
17444 the "g" modifier in sed when the intention is to strip something
17445 once. This fixes comparison of kernels with multiple dashes.
17446
17447 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
17448 on it. Add missing space before closing bracket. Fix
17449 misleading formatting.
17450
17451 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
17452
17453 * docs/grub.texi: Major overhaul. Remove all sections that are
17454 specific to GRUB Legacy, or mostly composed of Legacy-specific
17455 information.
17456
17457 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
17458
17459 * docs/version.texi: New file. Provides version information for
17460 grub.texi.
17461
17462 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
17463
17464 * docs/grub.texi: Update CVS information to SVN.
17465 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
17466
17467 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
17468
17469 * util/grub-mkconfig.in: Remove a wrong `fi'.
17470
17471 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
17472
17473 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
17474 (grub_jfs_uuid): New function.
17475 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
17476
17477 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
17478
17479 * util/grub-mkconfig_lib.in (font_path): Move the functionality
17480 of it to ...
17481 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
17482 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
17483
17484 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
17485
17486 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
17487 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
17488 Update all users.
17489
17490 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
17491 not just "vmlinu[zx]".
17492 Moved from here ...
17493 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
17494 all users.
17495
17496 * util/grub.d/10_linux.in (find_latest): Moved from here ...
17497 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
17498 all users.
17499
17500 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
17501
17502 * util/grub.d/10_freebsd.in: Use an absolute device path for
17503 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
17504
17505 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
17506
17507 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
17508 handling of multiple abstraction modules.
17509
17510 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
17511
17512 Fix a bug resulting in black screen when loading Linux using a
17513 packed video mode.
17514
17515 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
17516 function.
17517
17518 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
17519 (grub_vbe_bios_getset_dac_palette_width): New function.
17520 (grub_vbe_bios_get_dac_palette_width)
17521 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
17522 grub_vbe_bios_getset_dac_palette_width()).
17523
17524 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
17525 check for return status.
17526 (grub_vbe_get_video_mode_info): When getting information for a packed
17527 mode (<= 8 bpp), obtain DAC palette width using
17528 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
17529 {red,green,blue}_mark_size.
17530
17531 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
17532
17533 * commands/search.c (options): Fix help output to match actual code.
17534
17535 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
17536
17537 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
17538 of homegrown code.
17539
17540 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
17541
17542 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
17543 on XFS or ReiserFS.
17544
17545 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
17546
17547 Support Apple partition map with sector size different from 512 bytes.
17548
17549 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
17550 (apple_partition_map_iterate): Respect 'aheader.blocksize'
17551 and 'apart.partmap_size'.
17552
17553 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
17554 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
17555
17556 Fix cpuid command.
17557
17558 * commands/i386/cpuid.c (options): New variable.
17559 (grub_cmd_cpuid): Return real error.
17560 (GRUB_MOD_INIT(cpuid)): Declare options.
17561
17562 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
17563
17564 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
17565 valid.
17566
17567 2009-07-31 Bean <bean123ch@gmail.com>
17568
17569 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
17570 log2_inode.
17571 (grub_fshelp_node): Move inode field to the end.
17572 (grub_xfs_data): Remove inode field.
17573 (grub_xfs_inode_block): Calculate inode size using sblock.
17574 (grub_xfs_inode_offset): Likewise.
17575 (grub_xfs_read_inode): Calculate inode size using sblock.
17576 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
17577 (grub_xfs_iterate_dir): Calculate inode size using sblock.
17578 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
17579 to match inode size.
17580 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
17581 not accessible when data is null.
17582 (grub_xfs_open): Likewise.
17583
17584 2009-07-31 Bean <bean123ch@gmail.com>
17585
17586 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
17587 Don't change pv->disk if it's already set.
17588
17589 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
17590 (grub_raid_register): ... here.
17591 (grub_raid_rescan): Removed.
17592
17593 * include/grub/raid.h (grub_raid_rescan): Removed.
17594
17595 * util/grub-fstest.c: Remove include file <grub/raid.h>.
17596 (fstest): Replace grub_raid_rescan with module fini function followed
17597 by init function.
17598
17599 * util/grub-probe.c: Add include file <grub/raid.h>.
17600 (probe_raid_level): New function.
17601 (probe): Detect abstraction by walking the disk device, support two
17602 level of abstraction (LVM on RAID) when detecting partition map.
17603
17604 2009-07-31 Pavel Roskin <proski@gnu.org>
17605
17606 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
17607 to grub_zalloc(), it was erroneous.
17608 Reported by Bean <bean123ch@gmail.com>
17609
17610 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
17611
17612 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
17613 embedding zone, not only the first one.
17614
17615 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
17616
17617 * term/gfxterm.c (clear_char): New function.
17618 (grub_virtual_screen_setup): Use clear_char.
17619 (scroll_up): Likewise.
17620 (grub_virtual_screen_cls): Likewise.
17621
17622 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
17623
17624 * util/deviceiter.c (get_acceleraid_disk_name): New static
17625 function.
17626 (grub_util_iterate_devices): Handle Accelraid devices.
17627 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
17628
17629 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
17630
17631 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
17632 separator for the suggested gfxpayload string (';' collides with the
17633 parser and needs escaping).
17634
17635 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
17636
17637 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
17638 Clear direction flag before jumping to OS.
17639 (grub_multiboot2_real_boot): Likewise.
17640
17641 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
17642
17643 * util/i386/pc/grub-install: Fix parsing of --disk-module
17644 option.
17645
17646 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
17647
17648 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
17649 when embedding.
17650
17651 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
17652
17653 * util/grub-mkconfig.in (package_version): New variable.
17654 Use it do display the version.
17655
17656 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
17657
17658 * kern/file.c (grub_file_open): Revert to previous check with
17659 grub_errno.
17660
17661 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
17662
17663 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
17664 from help line. It's out of sync with code.
17665
17666 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
17667
17668 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
17669 entries on failed boot.
17670
17671 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
17672
17673 * kern/file.c (grub_file_open): Fix an error check.
17674
17675 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
17676
17677 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
17678 partition map couldn't be identified.
17679
17680 2009-07-23 Pavel Roskin <proski@gnu.org>
17681
17682 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
17683 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
17684 case of little endian words becomes just an optimization.
17685 Respect const modifier.
17686 (md5_final): Use code that doesn't depend on endianness.
17687
17688 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
17689 to avoid loss of upper bits if align is unsigned and shorter
17690 than addr.
17691
17692 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
17693
17694 UUID support for UFS
17695
17696 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
17697 (grub_ufs_uuid): New function.
17698 (grub_ufs_fs): add .uuid
17699
17700 2009-07-21 Pavel Roskin <proski@gnu.org>
17701
17702 * kern/dl.c (grub_dl_check_header): Make static.
17703
17704 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
17705
17706 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
17707 add drivemap for Vista. It breaks Windows 7.
17708
17709 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
17710
17711 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
17712 128 bytes
17713
17714 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
17715
17716 Add BFS support
17717
17718 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
17719 (grub_fstest_SOURCES): Likewise.
17720 (pkglib_MODULES): Add befs.mod.
17721 (befs_mod_SOURCES): New variable.
17722 (befs_mod_CFLAGS): Likewise.
17723 (befs_mod_LDFLAGS): Likewise.
17724 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
17725 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
17726 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17727 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
17728 (grub_setup_SOURCES): Likewise.
17729 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17730 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17731 (grub_setup_SOURCES): Likewise.
17732 * fs/befs.c: New file.
17733 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
17734 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
17735 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
17736 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
17737 (B_KEY_INDEX_ALIGN): New declaration.
17738 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
17739 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
17740 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
17741 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
17742 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
17743 (grub_afs_mount) [MODE_BFS]: Likewise.
17744 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
17745 (grub_afs_fs): Use GRUB_AFS_FSNAME
17746 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
17747 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
17748 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
17749 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
17750
17751 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
17752
17753 * util/getroot.c (find_root_device): Add support for MacOSX.
17754 * util/hostdisk.c: Likewise.
17755
17756 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
17757
17758 * font/font.c (find_glyph): Check whether a font is present to avoid
17759 segmentation fault.
17760
17761 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
17762
17763 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
17764
17765 2009-07-20 Pavel Roskin <proski@gnu.org>
17766
17767 * configure.ac: Trim excessively wordy excuses.
17768
17769 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
17770
17771 Add symlink, mtime and label support to AtheFS.
17772
17773 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
17774 (grub_afs_iterate_dir): Handle symlinks.
17775 (grub_afs_open): Use grub_afs_read_symlink.
17776 (grub_afs_dir): Likewise.
17777 Pass mtime.
17778 (grub_afs_label): New function.
17779 (grub_afs_fs): Add grub_afs_label.
17780 (grub_afs_read_symlink): New function.
17781
17782 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
17783
17784 Fix AtheFS support.
17785
17786 * fs/afs.c: Fix comments style.
17787 (grub_afs_blockrun): Declare as packed.
17788 (grub_afs_datastream): Likewise.
17789 (grub_afs_bnode): Likewise.
17790 (grub_afs_btree): Likewise.
17791 (grub_afs_sblock): Likewise.
17792 Declare `name' as char.
17793 (grub_afs_inode): Declare as packed.
17794 Change void *vnode to grub_uint32_t unused.
17795 (grub_afs_iterate_dir): Check that key_size is positive.
17796 (grub_afs_mount): Don't read superblock twice.
17797 (grub_afs_dir): Don't free node in case of error,
17798 grub_fshelp_find_file already handles this.
17799 (grub_afs_open): Likewise.
17800
17801 2009-07-19 Pavel Roskin <proski@gnu.org>
17802
17803 * Makefile.in: Remove LIBLZO and enable_lzo.
17804 * conf/i386-pc.rmk: Remove lzo support.
17805 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
17806 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
17807 support.
17808 * kern/i386/pc/lzo1x.S: Remove.
17809 * kern/i386/pc/startup.S: Remove lzo support.
17810 * util/i386/pc/grub-mkimage.c: Likewise.
17811
17812 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
17813
17814 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
17815 * fs/xfs.c (grub_xfs_dir): Likewise.
17816 * fs/afs.c (grub_afs_dir): Likewise.
17817 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
17818 (grub_iso9660_open): Likewise.
17819 * fs/jfs.c (grub_jfs_open): Likewise.
17820 * fs/ext2.c (grub_ext2_dir): Likewise.
17821 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
17822 * script/sh/lexer.c (grub_script_yylex): Likewise.
17823
17824 2009-07-16 Pavel Roskin <proski@gnu.org>
17825
17826 * configure.ac: Never add "-c" to CFLAGS.
17827
17828 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
17829
17830 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
17831 grub_cv_cc_efiemu should be used.
17832
17833 * configure.ac: Typo fixes.
17834
17835 * kern/mm.c (grub_zalloc): New function.
17836 (grub_debug_zalloc): Likewise.
17837 * include/grub/mm.h: Declare grub_zalloc() and
17838 grub_debug_zalloc().
17839 * util/misc.c (grub_zalloc): New function.
17840 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
17841 instead of grub_malloc(), remove unneeded initializations.
17842 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
17843 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
17844 * commands/parttool.c (grub_cmd_parttool): Likewise.
17845 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
17846 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
17847 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
17848 * disk/usbms.c (grub_usbms_finddevs): Likewise.
17849 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
17850 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
17851 (grub_cmd_efiemu_pnvram): Likewise.
17852 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
17853 * fs/iso9660.c (grub_iso9660_mount): Likewise.
17854 (grub_iso9660_iterate_dir): Likewise.
17855 * fs/jfs.c (grub_jfs_opendir): Likewise.
17856 * fs/ntfs.c (list_file): Likewise.
17857 (grub_ntfs_mount): Likewise.
17858 * kern/disk.c (grub_disk_open): Likewise.
17859 * kern/dl.c (grub_dl_load_core): Likewise.
17860 * kern/elf.c (grub_elf_file): Likewise.
17861 * kern/env.c (grub_env_context_open): Likewise.
17862 (grub_env_set): Likewise.
17863 (grub_env_set_data_slot): Likewise.
17864 * kern/file.c (grub_file_open): Likewise.
17865 * kern/fs.c (grub_fs_blocklist_open): Likewise.
17866 * loader/i386/multiboot.c (grub_module): Likewise.
17867 * loader/xnu.c (grub_xnu_create_key): Likewise.
17868 (grub_xnu_create_value): Likewise.
17869 * normal/main.c (grub_normal_add_menu_entry): Likewise.
17870 (read_config_file): Likewise.
17871 * normal/menu_entry.c (make_screen): Likewise.
17872 * partmap/sun.c (sun_partition_map_iterate): Likewise.
17873 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
17874 * script/sh/script.c (grub_script_parse): Likewise.
17875 * video/bitmap.c (grub_video_bitmap_create): Likewise.
17876 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
17877 * video/readers/png.c (grub_png_output_byte): Likewise.
17878 (grub_video_reader_png): Likewise.
17879
17880 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
17881
17882 Enable all targets that can be built by default
17883
17884 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
17885 grub-mkfont and grub-fstest if they can be built
17886
17887 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
17888
17889 Fix hang and segmentation fault in grub-emu-usb
17890
17891 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
17892 * util/usb.c (grub_libusb_devices): likewise
17893 (grub_libusb_init): rename to ...
17894 (GRUB_MOD_INIT (libusb)):...this
17895 (grub_libusb_fini): rename to ..
17896 (GRUB_MOD_FINI (libusb)):...this
17897 * disk/usbms.c (grub_usbms_transfer): fix retry logic
17898 * include/grub/disk.h (grub_raid_init): removed, it's useless
17899 (grub_raid_fini): likewise
17900 (grub_lvm_init): likewise
17901 (grub_lvm_fini): likewise
17902 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
17903 by grub_init_all
17904
17905 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
17906
17907 Fix libusb
17908
17909 * Makefile.in (LIBUSB): new macro
17910 * genmk.rb (Utility/print_tail): new method
17911 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
17912 (top level): call util.print_tail at the end.
17913
17914 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
17915
17916 Make FreeBSD accept zpool.cache
17917
17918 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
17919 type is /boot/zfs/zpool.cache
17920
17921 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
17922
17923 Fix 64-bit efiemu
17924
17925 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
17926 correct wrong typedef
17927 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
17928
17929 2009-07-15 Pavel Roskin <proski@gnu.org>
17930
17931 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
17932 * kern/disk.c (struct grub_disk_cache): Likewise.
17933
17934 * commands/probe.c (options): Typo fix.
17935
17936 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
17937 Increase to 0x5a to accommodate FAT32. Adjust other offsets
17938 accordingly.
17939 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
17940
17941 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
17942 the end of "Error" to make the message more readable.
17943
17944 * boot/i386/pc/boot.S (kernel_segment): Remove.
17945 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
17946 for destination.
17947
17948 * boot/i386/pc/boot.S (boot_version): Remove.
17949 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
17950 Remove.
17951
17952 * include/grub/i386/pc/boot.h: Sort all offsets.
17953 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
17954 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
17955 * boot/i386/pc/boot.S: Assert location of every offset listed in
17956 include/grub/i386/pc/boot.h.
17957
17958 2009-07-13 Pavel Roskin <proski@gnu.org>
17959
17960 * include/grub/i386/coreboot/machine.h: Rename
17961 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
17962 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
17963 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
17964
17965 * kern/dl.c: Force native word size to suppress warnings when
17966 compiling grub-emu.
17967
17968 * kern/device.c (grub_device_iterate): Change struct part_ent to
17969 hold the name, not a pointer to it. Use one grub_malloc() per
17970 partition, not two. Free partition_name if grub_malloc() fails.
17971 Set ents to NULL only before grub_partition_iterate() is called.
17972
17973 2009-07-11 Bean <bean123ch@gmail.com>
17974
17975 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
17976 childname.
17977
17978 2009-07-10 Bean <bean123ch@gmail.com>
17979 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
17980
17981 * kern/ieee1275/openfw.c (grub_children_iterate)
17982 (grub_devalias_iterate): Fix size evaluation for property or path
17983 strings, which was broken since r2132.
17984
17985 2009-07-07 Pavel Roskin <proski@gnu.org>
17986
17987 * commands/search.c (search_file): Merge into ...
17988 (search_fs): ... this. Accept search type as argument.
17989 (grub_cmd_search): Pass search type to search_fs().
17990
17991 * include/grub/util/console.h: New file.
17992 * util/console.c: Use it instead of grub/machine/console.h.
17993 * util/grub-emu.c: Likewise.
17994
17995 * lib/arg.c (find_long_option): Remove.
17996 (find_long): Add `len' argument, make `s' const char *.
17997 (grub_arg_parse): Parse long options in place, not in a
17998 temporary buffer.
17999
18000 2009-07-06 Pavel Roskin <proski@gnu.org>
18001
18002 * commands/search.c (search_fs): Fix potential NULL pointer
18003 dereference.
18004
18005 * commands/search.c (search_fs): Replace QUID macro with quid_fn
18006 function pointer.
18007
18008 2009-07-06 Daniel Mierswa <impulze@impulze.org>
18009
18010 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
18011 comparison.
18012
18013 2009-07-05 Pavel Roskin <proski@gnu.org>
18014
18015 * include/grub/i386/linux.h (struct linux_kernel_params):
18016 Restore padding3, it's still needed.
18017
18018 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
18019 FreeBSD.
18020 * util/osdetect.lua: Likewise.
18021
18022 2009-07-05 Bean <bean123ch@gmail.com>
18023
18024 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
18025
18026 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
18027 (grub_lua_getenv): Likewise.
18028 (grub_lua_setenv): Likewise.
18029 (save_errno): New function.
18030 (push_result): Likewise.
18031 (grub_lua_enum_device): Likewise.
18032 (grub_lua_enum_file): Likewise.
18033 (grub_lua_file_open): Likewise.
18034 (grub_lua_file_close): Likewise.
18035 (grub_lua_file_seek): Likewise.
18036 (grub_lua_file_read): Likewise.
18037 (grub_lua_file_getline): Likewise.
18038 (grub_lua_file_getsize): Likewise.
18039 (grub_lua_file_getpos): Likewise.
18040 (grub_lua_file_eof): Likewise.
18041 (grub_lua_file_exist): Likewise.
18042 (grub_lua_add_menu): Likewise.
18043
18044 * script/lua/grub_lua.h (isupper): New inline function.
18045 (islower): Likewise.
18046 (ispunct): Likewise.
18047 (isxdigit): Likewise.
18048 (strcspn): Change to normal function.
18049 (strpbkr): New function declaration.
18050 (memchr): Likewise.
18051
18052 * script/lua/grub_main.c (scan_str): New function.
18053 (strcspn): Likewise.
18054 (strpbrk): Likewise.
18055 (memchr): Likewise.
18056
18057 * script/lua/linit.c (lualibs): Enable the string library.
18058
18059 * util/osdetect.lua: New file.
18060
18061 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
18062
18063 * include/grub/i386/linux.h (struct linux_kernel_params): Add
18064 `capabilities' member.
18065
18066 2009-07-02 Pavel Roskin <proski@gnu.org>
18067
18068 * genparttoollist.sh: Add missing newline at the end.
18069
18070 2009-07-01 Pavel Roskin <proski@gnu.org>
18071
18072 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
18073
18074 * util/hostdisk.c (open_device): Remove `const' from
18075 `sysctl_size', as sysctlbyname() can change it (in this case it
18076 doesn't actually happen).
18077
18078 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
18079 using signed long int constants.
18080
18081 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
18082 constant to avoid a warning on FreeBSD.
18083
18084 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
18085 where it's needed.
18086
18087 * Makefile.in: Install include/grub/machine symlink.
18088
18089 * Makefile.in: When installing symlinks, use "cp -fR", which
18090 works on FreeBSD and MacOSX.
18091 From Yves Blusseau <cl7m42e02@sneakemail.com>
18092
18093 * kern/dl.c (grub_dl_resolve_symbol): Make static.
18094 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
18095
18096 * util/misc.c: Move grub_reboot() and grub_halt() ...
18097 * util/grub-emu.c: ... here. Make main_env static.
18098 * include/grub/util/misc.h: Remove main_env.
18099
18100 * kern/mm.c: Use correct format to print size_t.
18101
18102 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
18103 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
18104 * kern/powerpc/dl.c: Likewise.
18105 * kern/sparc64/dl.c: Likewise.
18106 * kern/x86_64/dl.c: Likewise.
18107
18108 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
18109
18110 Fix grub-emu build on sparc64-ieee1275.
18111
18112 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
18113 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
18114
18115 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
18116
18117 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
18118 (grub_reboot, grub_halt): New functions.
18119
18120 * util/i386/pc/misc.c: Delete. Update all users.
18121 * util/sparc64/ieee1275/misc.c: Likewise.
18122 * util/powerpc/ieee1275/misc.c: Likewise.
18123
18124 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
18125
18126 * conf/i386.rmk (setjmp_mod_SOURCES)
18127 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
18128 * conf/common.rmk (setjmp_mod_SOURCES)
18129 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
18130 to use $(target_cpu).
18131 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
18132 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
18133 * conf/powerpc-ieee1275.rmk: Likewise.
18134 * conf/sparc64-ieee1275.rmk: Likewise.
18135
18136 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
18137 $(target_cpu) for kern/$(target_cpu)/dl.c.
18138 * conf/i386-efi.rmk: Likewise.
18139 * conf/i386-ieee1275.rmk: Likewise.
18140 * conf/x86_64-efi.rmk: Likewise.
18141 * conf/i386-coreboot.rmk: Likewise.
18142 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
18143 $(target_cpu) for kern/$(target_cpu)/dl.c and for
18144 kern/$(target_cpu)/cache.S.
18145 * conf/sparc64-ieee1275.rmk: Likewise.
18146
18147 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
18148
18149 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
18150 type to `grub_uint8_t', and adjust `padding9' accordingly.
18151
18152 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
18153
18154 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
18155
18156 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
18157 assembly in final jump, using register constraints.
18158
18159 (grub_linux_boot): For text mode, initialize `have_vga' using
18160 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
18161
18162 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
18163 right before the final jump.
18164
18165 Set `video_mode' to 0x3.
18166
18167 Document initialization of `video_page', `video_mode' and
18168 `video_ega_bx'.
18169
18170 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
18171
18172 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
18173 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
18174 and set GRUB_LINUX_FLAG_QUIET appropriately.
18175
18176 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
18177
18178 Fix build on Debian / sparc.
18179
18180 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
18181
18182 2009-06-28 Pavel Roskin <proski@gnu.org>
18183
18184 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
18185 fix a warning.
18186
18187 * util/grub.d/10_linux.in: Match SUSE style initrd names.
18188
18189 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
18190
18191 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
18192 `err'.
18193
18194 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
18195
18196 Revert r2338.
18197
18198 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
18199 file can't be opened. grub_file_open() is already supposed to set
18200 grub_errno / grub_errmsg appropriately.
18201 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
18202
18203 2009-06-27 Pavel Roskin <proski@gnu.org>
18204 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
18205
18206 * include/grub/dl.h: Include grub/elf.h.
18207 (struct grub_dl): Add symtab field.
18208 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
18209 GRUB_MODULES_MACHINE_READONLY.
18210 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
18211 of the header for read-only modules.
18212 (grub_dl_unload): Free mod->symtab for read-only modules.
18213 * kern/i386/dl.c: Use mod->symtab.
18214 * kern/powerpc/dl.c: Likewise.
18215 * kern/sparc64/dl.c: Likewise.
18216 * kern/x86_64/dl.c: Likewise.
18217
18218 * conf/i386-qemu.rmk: New file.
18219 * kern/i386/qemu/startup.S: Likewise.
18220 * kern/i386/qemu/mmap.c: Likewise.
18221 * boot/i386/qemu/boot.S: Likewise.
18222 * include/grub/i386/qemu/time.h: Likewise.
18223 * include/grub/i386/qemu/serial.h: Likewise.
18224 * include/grub/i386/qemu/kernel.h: Likewise.
18225 * include/grub/i386/qemu/console.h: Likewise.
18226 * include/grub/i386/qemu/boot.h: Likewise.
18227 * include/grub/i386/qemu/init.h: Likewise.
18228 * include/grub/i386/qemu/machine.h: Likewise.
18229 * include/grub/i386/qemu/loader.h: Likewise.
18230 * include/grub/i386/qemu/memory.h: Likewise.
18231
18232 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
18233 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
18234 [qemu] (pkglib_IMAGES): Add `boot.img'.
18235 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
18236 [qemu] (boot_img_FORMAT): New variables.
18237 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
18238 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
18239 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
18240 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
18241 [qemu] (kernel_img_FORMAT): New variables.
18242
18243 * configure.ac: Recognise `i386-qemu'.
18244
18245 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
18246 (for no compression).
18247 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
18248 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
18249 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
18250 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
18251 ifdefs).
18252
18253 2009-06-27 Pavel Roskin <proski@gnu.org>
18254
18255 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
18256 read.
18257 * efiemu/prepare32.c: Likewise.
18258 * efiemu/prepare64.c: Likewise.
18259
18260 2009-06-26 Pavel Roskin <proski@gnu.org>
18261
18262 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
18263 * include/grub/elf.h: Define symbols without "32" or "64" based
18264 on GRUB_TARGET_WORDSIZE.
18265 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
18266 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
18267 ELF definitions.
18268 * efiemu/loadcore64.c: Likewise.
18269 * loader/i386/bsd32.c: Likewise.
18270 * loader/i386/bsd64.c: Likewise.
18271 * kern/dl.c: Remove own ELF definitions.
18272 * util/i386/efi/grub-mkimage.c: Likewise.
18273
18274 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
18275
18276 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
18277 segment 0x0 unconditionally, because the reference generated by
18278 GAS is an absolute address.
18279
18280 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
18281
18282 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
18283 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
18284
18285 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
18286
18287 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
18288 indexes. Check for -f explicitly.
18289 (search_file): Improve error message.
18290 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
18291
18292 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
18293
18294 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
18295 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
18296
18297 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
18298
18299 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
18300 * conf/i386-ieee1275.rmk: Likewise.
18301 * conf/i386-coreboot.rmk: Likewise.
18302
18303 * kern/i386/pc/startup.S (grub_stop): Remove function.
18304 * kern/i386/ieee1275/startup.S: Likewise.
18305 * kern/i386/coreboot/startup.S: Likewise.
18306 * kern/i386/misc.S (grub_stop): New function.
18307
18308 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
18309
18310 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
18311 * kern/i386/realmode.S (real_to_prot): ... to here.
18312
18313 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
18314
18315 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
18316 with `kernel.img'.
18317 (kernel_elf_SOURCES): Rename to ...
18318 (kernel_img_SOURCES): ... this.
18319 (kernel_elf_HEADERS): Rename to ...
18320 (kernel_img_HEADERS): ... this. Update all users.
18321 (kernel_elf_ASFLAGS): Rename to ...
18322 (kernel_img_ASFLAGS): ... this.
18323 (kernel_elf_CFLAGS): Rename to ...
18324 (kernel_img_CFLAGS): ... this.
18325 (kernel_elf_LDFLAGS): Rename to ...
18326 (kernel_img_LDFLAGS): ... this.
18327 * conf/i386-coreboot.rmk: Likewise.
18328 * conf/powerpc-ieee1275.rmk: Likewise.
18329
18330 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
18331 with "kernel.img".
18332
18333 2009-06-21 Pavel Roskin <proski@gnu.org>
18334
18335 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
18336 to match nested functions.
18337 * loader/sparc64/ieee1275/linux.c: Likewise.
18338
18339 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
18340
18341 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
18342
18343 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
18344 all i386 platforms.
18345
18346 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
18347
18348 Fix asm file handling on ELF, and remove workarounds.
18349
18350 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
18351 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
18352 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
18353 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
18354
18355 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
18356
18357 Load BSD ELF modules
18358
18359 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
18360 and loader/i386/bsd64.c
18361 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
18362 (FREEBSD_MODTYPE_ELF_MODULE): New definition
18363 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
18364 (grub_freebsd_load_elfmodule32): New declaration
18365 (grub_freebsd_load_elfmoduleobj64): Likewise
18366 (grub_freebsd_load_elf_meta32): Likewise
18367 (grub_freebsd_load_elf_meta64): Likewise
18368 (grub_freebsd_add_meta): Likewise
18369 (grub_freebsd_add_meta_module): Likewise
18370 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
18371 (grub_freebsd_add_meta_module): Likewise and move module-specific
18372 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
18373 (grub_cmd_freebsd): Add elf-kernel specific parts
18374 based on grub_freebsd_add_meta_module
18375 (grub_cmd_freebsd_module): Add type parsing moved from
18376 grub_freebsd_add_meta_module
18377 (grub_cmd_freebsd_module_elf): New function
18378 (cmd_freebsd_module_elf): New variable
18379 (GRUB_MOD_INIT): Register freebsd_module_elf
18380 * loader/i386/bsd32.c: New file
18381 * loader/i386/bsd64.c: Likewise
18382 * loader/i386/bsdXX.c: Likewise
18383 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
18384 (grub_elf64_load): Likewise
18385 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
18386 All users updated
18387 (grub_elf64_load_hook_t): Likewise
18388
18389 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
18390
18391 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
18392 variable.
18393 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
18394 don't write a menu entry for recovery mode.
18395
18396 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
18397
18398 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
18399 after it's no longer needed.
18400
18401 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
18402
18403 * include/grub/i386/loader.h (grub_linux_prot_size)
18404 (grub_linux_tmp_addr, grub_linux_real_addr)
18405 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
18406 GRUB_MACHINE_PCBIOS.
18407 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
18408 common grub_util_info() call to ...
18409 (generate_image): ... here.
18410 Fix use of uninitialized memory, comparison of signed with
18411 unsigned integers and memory leak.
18412 Remove bogus module address message.
18413
18414 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
18415
18416 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
18417 grub_raid_register
18418 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
18419
18420 2009-06-19 Pavel Roskin <proski@gnu.org>
18421
18422 * configure.ac: Remove stray AC_MSG_CHECKING.
18423
18424 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
18425
18426 * disk/scsi.c (grub_scsi_open): use continue instead of big if
18427
18428 2009-06-18 Pavel Roskin <proski@gnu.org>
18429
18430 * conf/common.rmk: Add fs_file.mod.
18431 * disk/fs_file.c: New file.
18432 * include/grub/disk.h (enum grub_disk_dev_id): Add
18433 GRUB_DISK_DEVICE_FILE_ID.
18434
18435 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
18436
18437 Fix build with Apple's toolchain. Part 2
18438
18439 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
18440 a fake start
18441
18442 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
18443
18444 Fix build with Apple's toolchain. Part 1
18445
18446 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
18447 for long calls
18448 * configure.ac: remove a leftover AC_MSG_RESULT
18449 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
18450 Apple's toolchain
18451
18452 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
18453
18454 Fix warnings
18455
18456 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
18457 (decomp_block): initialize ch
18458 use grub_memcpy instead of memcpy
18459
18460 2009-06-17 Pavel Roskin <proski@gnu.org>
18461
18462 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
18463 version, use declarations needed to use vga_text as the startup
18464 console.
18465
18466 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
18467 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
18468 the kernel.
18469 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
18470 and grub_at_keyboard_fini(), it's done on module load and
18471 unload.
18472
18473 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
18474
18475 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
18476 file can't be found.
18477 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
18478
18479 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
18480
18481 Fix newline handling
18482
18483 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
18484 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
18485 (grub_script_yylex): don't segfault on unterminated script
18486 newline terminates command and variable
18487
18488 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
18489
18490 avoid double grub_adjust_range call. Bug reported by David Simner
18491
18492 * kern/disk.c (grub_disk_write): change to raw disk access before
18493 calling disk_read
18494
18495 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
18496
18497 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
18498 spaces, for the benefit of help2man.
18499 * util/i386/efi/grub-mkimage.c (usage): Likewise.
18500
18501 2009-06-16 Pavel Roskin <proski@gnu.org>
18502
18503 * kern/i386/halt.c: Include grub/machine/init.h.
18504 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
18505
18506 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
18507
18508 * util/grub.d/30_os-prober.in: Use ${root} in the generated
18509 drivemap menuentry.
18510
18511 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
18512
18513 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
18514 `echo' command.
18515
18516 2009-06-16 Pavel Roskin <proski@gnu.org>
18517
18518 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
18519 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
18520 save %dx, we only need %dl and we never change it.
18521 * boot/i386/pc/cdboot.S: Don't set the root drive.
18522 * boot/i386/pc/pxeboot.S: Likewise.
18523 * include/grub/i386/pc/boot.h: Remove
18524 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
18525 GRUB_BOOT_MACHINE_DRIVE_CHECK.
18526 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
18527 * kern/i386/pc/init.c (make_install_device): Remove references
18528 to grub_root_drive.
18529 * kern/i386/pc/startup.S: Likewise.
18530 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
18531
18532 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
18533
18534 xnu_uuid command
18535
18536 * commands/xnu_uuid.c: new file
18537 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
18538 (xnu_uuid_mod_SOURCES): new variable
18539 (xnu_uuid_mod_CFLAGS): likewise
18540 (xnu_uuid_mod_LDFLAGS): likewise
18541 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
18542 * conf/i386-ieee1275.rmk: likewise
18543 * conf/i386-pc.rmk: likewise
18544 * conf/powerpc-ieee1275.rmk: likewise
18545 * conf/sparc64-ieee1275.rmk: likewise
18546 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
18547
18548 2009-06-16 Pavel Roskin <proski@gnu.org>
18549
18550 * configure.ac: Avoid '==' in test command, it's not portable.
18551
18552 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
18553
18554 Probe command
18555
18556 * commands/probe.c: new file
18557 * conf/common.rmk (pkglib_MODULES): add probe.mod
18558 (probe_mod_SOURCES): new variable
18559 (probe_mod_CFLAGS): likewise
18560 (probe_mod_LDFLAGS): likewise
18561 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
18562 * conf/i386-ieee1275.rmk: likewise
18563 * conf/i386-pc.rmk: likewise
18564 * conf/powerpc-ieee1275.rmk: likewise
18565 * conf/sparc64-ieee1275.rmk: likewise
18566
18567 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
18568
18569 Fix handling of string like \"hello\" and "a
18570 b"
18571
18572 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
18573 (grub_script_yylex): fix parsing of quoting, escaping and newline
18574
18575 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
18576
18577 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
18578 handling
18579
18580 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
18581
18582 * util/grub-mkconfig.in: Fix parsing of --output option.
18583
18584 2009-06-12 Pavel Roskin <proski@gnu.org>
18585
18586 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
18587 genmk.rb don't need to be generated or installed.
18588
18589 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
18590
18591 * commands/i386/pc/drivemap_int13h.S: add more comments
18592
18593 2009-06-11 Pavel Roskin <proski@gnu.org>
18594
18595 * Makefile.in (uninstall): Uninstall manuals.
18596
18597 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
18598 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
18599 and update-grub_lib in two places.
18600 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
18601
18602 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
18603 a compiler warning.
18604
18605 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
18606 `entry_lo' to fix variable shadowing.
18607
18608 2009-06-11 Christian Franke <franke@computer.org>
18609
18610 * kern/misc.c (__enable_execute_stack): Add missing return type
18611 to prevent gcc warning.
18612
18613 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
18614
18615 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
18616
18617 2009-06-11 Pavel Roskin <proski@gnu.org>
18618
18619 * Makefile.in: Don't rely on any scripts being executable.
18620 Always use $(SHELL) to run shell scripts.
18621
18622 * configure.ac: Always define ___main if using -nostdlib. This
18623 fixes tests on Cygwin.
18624
18625 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
18626
18627 UDF fix
18628
18629 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
18630 is in bytes and not in blocks
18631
18632 2009-06-11 Pavel Roskin <proski@gnu.org>
18633
18634 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
18635 warning.
18636
18637 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
18638
18639 * util/grub.d/30_os-prober.in: Fix a comment. Source
18640 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
18641 to set the root device. Place drivemap command in the generated
18642 chain entry.
18643
18644 2009-06-11 Pavel Roskin <proski@gnu.org>
18645
18646 * configure.ac: Remove host_m32. Issues with 64-bit utilities
18647 have long been resolved.
18648
18649 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
18650
18651 * util/grub.d/10_linux.in: Capitalise "Linux".
18652
18653 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
18654
18655 2009-06-11 Pavel Roskin <proski@gnu.org>
18656
18657 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
18658 fix a gcc warning and ensure that the function won't ever exit.
18659
18660 * kern/i386/ieee1275/init.c: Add missing prototype for
18661 grub_stop_floppy().
18662
18663 * loader/ieee1275/multiboot2.c [__i386__]: Include
18664 grub/cpu/multiboot.h.
18665
18666 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
18667 casts to short - they are not portable and cause warnings. Fix
18668 use of uninitialized values in input_buf. Use ARRAY_SIZE.
18669
18670 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
18671
18672 Drivemap fixes
18673
18674 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
18675 new function
18676 (grub_get_root_biosnumber_saved): new variable
18677 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
18678 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
18679 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
18680 %dx after the call if necessary
18681 * conf/common.rmk (pkglib_MODULES): remove boot.mod
18682 (boot_mod_SOURCES): remove
18683 (boot_mod_CFLAGS): remove
18684 (boot_mod_LDFLAGS): remove
18685 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
18686 (boot_mod_SOURCES): new variable
18687 (boot_mod_CFLAGS): likewise
18688 (boot_mod_LDFLAGS): likewise
18689 * conf/i386-efi.rmk: likewise
18690 * conf/i386-ieee1275.rmk: likewise
18691 * conf/i386-pc.rmk: likewise
18692 * conf/powerpc-ieee1275.rmk: likewise
18693 * conf/sparc64-ieee1275.rmk: likewise
18694 * conf/x86_64-efi.rmk: likewise
18695 * include/grub/i386/pc/biosnum.h: new file
18696 * lib/i386/pc/biosnum.c: likewise
18697 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
18698 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
18699 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
18700
18701 2009-06-10 Pavel Roskin <proski@gnu.org>
18702
18703 * io/gzio.c (test_header): Don't reuse one buffer for all data.
18704 Use separate variables. Read only the file size at the end, but
18705 not the checksum that we don't use.
18706
18707 * kern/file.c (grub_file_read): Use void pointer for the buffer.
18708 Adjust all callers.
18709
18710 * kern/ieee1275/openfw.c: Remove libc includes.
18711 * kern/ieee1275/cmain.c: Likewise.
18712 * include/grub/ieee1275/ieee1275.h: Likewise.
18713
18714 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
18715 compiler warnings.
18716
18717 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
18718
18719 * Makefile.in: Remove all trailing whitespace.
18720 * conf/i386-pc.rmk: Likewise.
18721 * conf/powerpc-ieee1275.rmk: Likewise.
18722 * conf/sparc64-ieee1275.rmk: Likewise.
18723 * docs/grub.texi: Likewise.
18724 * docs/texinfo.tex: Likewise.
18725 * disk/fs_uuid.c: Likewise.
18726 * disk/lvm.c: Likewise.
18727 * disk/scsi.c: Likewise.
18728 * disk/ata.c: Likewise.
18729 * disk/ieee1275/ofdisk.c: Likewise.
18730 * disk/i386/pc/biosdisk.c: Likewise.
18731 * disk/host.c: Likewise.
18732 * disk/raid.c: Likewise.
18733 * disk/efi/efidisk.c: Likewise.
18734 * disk/usbms.c: Likewise.
18735 * disk/memdisk.c: Likewise.
18736 * disk/loopback.c: Likewise.
18737 * kern/powerpc/dl.c: Likewise.
18738 * kern/device.c: Likewise.
18739 * kern/dl.c: Likewise.
18740 * kern/sparc64/dl.c: Likewise.
18741 * kern/ieee1275/ieee1275.c: Likewise.
18742 * kern/term.c: Likewise.
18743 * kern/fs.c: Likewise.
18744 * kern/i386/dl.c: Likewise.
18745 * kern/i386/pc/startup.S: Likewise.
18746 * kern/i386/pc/init.c: Likewise.
18747 * kern/i386/pc/mmap.c: Likewise.
18748 * kern/i386/pc/lzo1x.S: Likewise.
18749 * kern/i386/ieee1275/init.c: Likewise.
18750 * kern/i386/realmode.S: Likewise.
18751 * kern/i386/tsc.c: Likewise.
18752 * kern/partition.c: Likewise.
18753 * kern/corecmd.c: Likewise.
18754 * kern/file.c: Likewise.
18755 * kern/efi/efi.c: Likewise.
18756 * kern/efi/init.c: Likewise.
18757 * kern/efi/mm.c: Likewise.
18758 * kern/main.c: Likewise.
18759 * kern/err.c: Likewise.
18760 * kern/env.c: Likewise.
18761 * kern/disk.c: Likewise.
18762 * kern/generic/millisleep.c: Likewise.
18763 * kern/generic/rtc_get_time_ms.c: Likewise.
18764 * kern/misc.c: Likewise.
18765 * kern/parser.c: Likewise.
18766 * genmk.rb: Likewise.
18767 * configure.ac: Likewise.
18768 * boot/i386/pc/diskboot.S: Likewise.
18769 * boot/i386/pc/pxeboot.S: Likewise.
18770 * boot/i386/pc/boot.S: Likewise.
18771 * boot/i386/pc/lnxboot.S: Likewise.
18772 * boot/i386/pc/cdboot.S: Likewise.
18773 * parttool/pcpart.c: Likewise.
18774 * video/readers/tga.c: Likewise.
18775 * video/video.c: Likewise.
18776 * video/bitmap.c: Likewise.
18777 * lib/envblk.c: Likewise.
18778 * lib/i386/setjmp.S: Likewise.
18779 * fs/xfs.c: Likewise.
18780 * fs/afs.c: Likewise.
18781 * fs/fat.c: Likewise.
18782 * fs/ntfs.c: Likewise.
18783 * fs/udf.c: Likewise.
18784 * fs/affs.c: Likewise.
18785 * fs/iso9660.c: Likewise.
18786 * fs/hfs.c: Likewise.
18787 * fs/fshelp.c: Likewise.
18788 * fs/ext2.c: Likewise.
18789 * fs/jfs.c: Likewise.
18790 * fs/reiserfs.c: Likewise.
18791 * fs/hfsplus.c: Likewise.
18792 * fs/minix.c: Likewise.
18793 * fs/cpio.c: Likewise.
18794 * fs/sfs.c: Likewise.
18795 * fs/ufs.c: Likewise.
18796 * efiemu/prepare.c: Likewise.
18797 * efiemu/loadcore_common.c: Likewise.
18798 * efiemu/runtime/efiemu.sh: Likewise.
18799 * efiemu/runtime/efiemu.S: Likewise.
18800 * efiemu/runtime/efiemu.c: Likewise.
18801 * efiemu/pnvram.c: Likewise.
18802 * efiemu/main.c: Likewise.
18803 * efiemu/i386/pc/cfgtables.c: Likewise.
18804 * efiemu/i386/loadcore64.c: Likewise.
18805 * efiemu/i386/loadcore32.c: Likewise.
18806 * efiemu/loadcore.c: Likewise.
18807 * efiemu/symbols.c: Likewise.
18808 * efiemu/mm.c: Likewise.
18809 * include/grub/autoefi.h: Likewise.
18810 * include/grub/datetime.h: Likewise.
18811 * include/grub/term.h: Likewise.
18812 * include/grub/hfs.h: Likewise.
18813 * include/grub/lvm.h: Likewise.
18814 * include/grub/i386/tsc.h: Likewise.
18815 * include/grub/i386/linux.h: Likewise.
18816 * include/grub/i386/xnu.h: Likewise.
18817 * include/grub/i386/efiemu.h: Likewise.
18818 * include/grub/i386/pc/biosdisk.h: Likewise.
18819 * include/grub/i386/pc/memory.h: Likewise.
18820 * include/grub/i386/pc/vbe.h: Likewise.
18821 * include/grub/parttool.h: Likewise.
18822 * include/grub/video.h: Likewise.
18823 * include/grub/memory.h: Likewise.
18824 * include/grub/fs.h: Likewise.
18825 * include/grub/partition.h: Likewise.
18826 * include/grub/xnu.h: Likewise.
18827 * include/grub/efi/api.h: Likewise.
18828 * include/grub/efi/pe32.h: Likewise.
18829 * include/grub/efi/memory.h: Likewise.
18830 * include/grub/multiboot.h: Likewise.
18831 * include/grub/usbdesc.h: Likewise.
18832 * include/grub/multiboot2.h: Likewise.
18833 * include/grub/acpi.h: Likewise.
18834 * include/grub/efiemu/efiemu.h: Likewise.
18835 * include/grub/disk.h: Likewise.
18836 * include/grub/ieee1275/ieee1275.h: Likewise.
18837 * include/grub/net.h: Likewise.
18838 * include/grub/machoload.h: Likewise.
18839 * include/grub/macho.h: Likewise.
18840 * include/multiboot.h: Likewise.
18841 * genmoddep.awk: Likewise.
18842 * normal/main.c: Likewise.
18843 * normal/menu_entry.c: Likewise.
18844 * normal/menu_viewer.c: Likewise.
18845 * normal/completion.c: Likewise.
18846 * normal/cmdline.c: Likewise.
18847 * normal/misc.c: Likewise.
18848 * normal/datetime.c: Likewise.
18849 * bus/usb/usbtrans.c: Likewise.
18850 * bus/usb/ohci.c: Likewise.
18851 * bus/usb/uhci.c: Likewise.
18852 * bus/usb/usb.c: Likewise.
18853 * mmap/efi/mmap.c: Likewise.
18854 * mmap/i386/pc/mmap_helper.S: Likewise.
18855 * mmap/i386/pc/mmap.c: Likewise.
18856 * mmap/i386/mmap.c: Likewise.
18857 * mmap/i386/uppermem.c: Likewise.
18858 * mmap/mmap.c: Likewise.
18859 * commands/acpi.c: Likewise.
18860 * commands/echo.c: Likewise.
18861 * commands/blocklist.c: Likewise.
18862 * commands/loadenv.c: Likewise.
18863 * commands/usbtest.c: Likewise.
18864 * commands/boot.c: Likewise.
18865 * commands/parttool.c: Likewise.
18866 * commands/search.c: Likewise.
18867 * commands/cat.c: Likewise.
18868 * commands/i386/pc/play.c: Likewise.
18869 * commands/i386/pc/drivemap.c: Likewise.
18870 * commands/i386/pc/vbeinfo.c: Likewise.
18871 * commands/i386/pc/acpi.c: Likewise.
18872 * commands/i386/pc/vbetest.c: Likewise.
18873 * commands/ls.c: Likewise.
18874 * commands/cmp.c: Likewise.
18875 * commands/test.c: Likewise.
18876 * commands/efi/acpi.c: Likewise.
18877 * commands/gptsync.c: Likewise.
18878 * commands/help.c: Likewise.
18879 * partmap/amiga.c: Likewise.
18880 * partmap/apple.c: Likewise.
18881 * partmap/acorn.c: Likewise.
18882 * partmap/pc.c: Likewise.
18883 * partmap/sun.c: Likewise.
18884 * partmap/gpt.c: Likewise.
18885 * script/sh/lexer.c: Likewise.
18886 * script/sh/function.c: Likewise.
18887 * font/font.c: Likewise.
18888 * font/font_cmd.c: Likewise.
18889 * loader/powerpc/ieee1275/linux.c: Likewise.
18890 * loader/efi/chainloader.c: Likewise.
18891 * loader/multiboot_loader.c: Likewise.
18892 * loader/macho.c: Likewise.
18893 * loader/i386/multiboot.c: Likewise.
18894 * loader/i386/linux.c: Likewise.
18895 * loader/i386/pc/linux.c: Likewise.
18896 * loader/i386/pc/multiboot2.c: Likewise.
18897 * loader/i386/pc/chainloader.c: Likewise.
18898 * loader/i386/pc/xnu.c: Likewise.
18899 * loader/i386/bsd_trampoline.S: Likewise.
18900 * loader/i386/efi/linux.c: Likewise.
18901 * loader/i386/multiboot_elfxx.c: Likewise.
18902 * loader/i386/bsd_helper.S: Likewise.
18903 * loader/i386/bsd.c: Likewise.
18904 * loader/i386/linux_trampoline.S: Likewise.
18905 * loader/i386/xnu_helper.S: Likewise.
18906 * loader/i386/xnu.c: Likewise.
18907 * loader/i386/bsd_pagetable.c: Likewise.
18908 * loader/i386/multiboot_helper.S: Likewise.
18909 * loader/xnu.c: Likewise.
18910 * loader/xnu_resume.c: Likewise.
18911 * io/gzio.c: Likewise.
18912 * term/efi/console.c: Likewise.
18913 * term/terminfo.c: Likewise.
18914 * term/ieee1275/ofconsole.c: Likewise.
18915 * term/i386/pc/serial.c: Likewise.
18916 * term/i386/pc/vesafb.c: Likewise.
18917 * term/i386/pc/vga.c: Likewise.
18918 * term/usb_keyboard.c: Likewise.
18919 * term/gfxterm.c: Likewise.
18920 * aclocal.m4: Likewise.
18921 * util/lvm.c: Likewise.
18922 * util/grub.d/30_os-prober.in: Likewise.
18923 * util/grub.d/10_hurd.in: Likewise.
18924 * util/console.c: Likewise.
18925 * util/grub-macho2img.c: Likewise.
18926 * util/grub-probe.c: Likewise.
18927 * util/hostfs.c: Likewise.
18928 * util/i386/pc/grub-mkimage.c: Likewise.
18929 * util/i386/pc/grub-setup.c: Likewise.
18930 * util/i386/efi/grub-mkimage.c: Likewise.
18931 * util/grub-mkconfig.in: Likewise.
18932 * util/raid.c: Likewise.
18933 * util/resolve.c: Likewise.
18934 * util/grub-mkdevicemap.c: Likewise.
18935 * util/grub-emu.c: Likewise.
18936 * util/getroot.c: Likewise.
18937 * util/hostdisk.c: Likewise.
18938 * util/usb.c: Likewise.
18939 * util/grub-editenv.c: Likewise.
18940 * util/misc.c: Likewise.
18941
18942 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
18943
18944 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
18945 `genparttoollist.sh'.
18946 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
18947 Add `*.sh' to the list find searches for and change `mdate.sh'
18948 to `mdate-sh'.
18949
18950 2009-06-10 Pavel Roskin <proski@gnu.org>
18951
18952 * include/grub/multiboot2.h: Provide compatibility defines for
18953 multiboot2.h.
18954 * include/multiboot2.h: Include stdint.h only if needed, using
18955 angle brackets.
18956 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
18957 grub/multiboot2.h.
18958 * loader/ieee1275/multiboot2.c: Likewise.
18959 * loader/multiboot2.c: Likewise.
18960 * loader/multiboot_loader.c: Likewise.
18961
18962 * configure.ac: Use -nostdlib when probing for the target. It
18963 should not be required to have libc for the target.
18964
18965 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
18966 they fail without libc headers for the target.
18967 * include/grub/powerpc/libgcc.h: Use weak attribute for all
18968 exports.
18969 * include/grub/sparc64/libgcc.h: Likewise. Don't use
18970 preprocessor conditionals.
18971
18972 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
18973 build system doesn't need to be aware of the tar.c internals.
18974
18975 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
18976
18977 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
18978
18979 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
18980
18981 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
18982 disk limit to 26 for IDE, Virtio, Xen and SCSI.
18983
18984 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
18985
18986 * util/i386/pc/grub-install.in: Change the error message if UUIDs
18987 aren't available if ata.mod gets used.
18988
18989 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
18990
18991 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
18992 initialising controller.
18993 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
18994
18995 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
18996
18997 * util/i386/pc/grub-install.in: Add a parameter --disk-module
18998 to choose between ata and biosdisk module on i386-pc.
18999
19000 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
19001
19002 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
19003 Subclass and Programming Interface fields in terms of the 3 byte
19004 Class Code register.
19005 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
19006
19007 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
19008 interface is OHCI. Add grub_dprintf for symmetry with
19009 bus/usb/uhci.c.
19010 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
19011 interface is UHCI. Add interf variable for programming
19012 interface. Print interface with class/subclass.
19013
19014 * bus/usb/ohci.c: Set interf with correct field.
19015
19016 * bus/usb/uhci.c: Remove unneeded doubled lines.
19017 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
19018 Remove whitespace inside comment.
19019
19020 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
19021
19022 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
19023 as fallback an equivalent option without depth.
19024
19025 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
19026
19027 Not fail if unable to retrieve C/H/S on LBA disks
19028
19029 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
19030 if unable to retrieve C/H/S on LBA disks
19031
19032 2009-06-08 Pavel Roskin <proski@gnu.org>
19033
19034 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
19035 about aliasing.
19036
19037 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
19038
19039 * Makefile.in (uninstall): Remove all $lib_DATA files.
19040
19041 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
19042
19043 Bugfix: install on partitionless device
19044
19045 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
19046 is a whole disk
19047
19048 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
19049
19050 * Makefile.in (uninstall): Remove all $include_DATA files.
19051
19052 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
19053
19054 * commands/true.c: New file. Implement the true and false commands.
19055 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
19056 (true_mod_SOURCES): New variable.
19057 (true_mod_CFLAGS): Likewise.
19058 (true_mod_LDFLAGS): Likewise.
19059
19060 2009-06-05 Colin D Bennett <colin@gibibit.com>
19061
19062 Optimized font character lookup using binary search instead of linear
19063 search. Fonts now are required to have the character index ordered by
19064 code point.
19065
19066 * font/font.c (load_font_index): Verify that fonts have ordered
19067 character indices.
19068 (find_glyph): Use binary search instead of linear search to find a
19069 character in a font.
19070
19071 2009-06-05 Michael Scherer <misc@mandriva.org>
19072
19073 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
19074 uses case sensitive btree.
19075 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
19076 only for case insensitive filesystems.
19077
19078 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
19079
19080 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
19081 * conf/common.rmk (search_mod_CFLAGS): likewise
19082
19083 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19084
19085 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
19086 compensate a compiler bug
19087
19088 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19089
19090 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
19091 instead of '\b'
19092
19093 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19094
19095 Definitions for creating asm symbols with Apple's CC
19096
19097 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
19098 [APPLE_CC] (VARIABLE): likewise
19099
19100 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19101
19102 Disable lnxboot.img when compiled
19103 with Apple's CC
19104
19105 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
19106 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
19107 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
19108 [! APPLE_CC] (CODE_LENG): skip
19109 [! APPLE_CC] (setup_sects): likewise
19110 [! APPLE_CC]: skip filling
19111
19112 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19113
19114 Address in trampolines based on 32-bit registers when compiled
19115 with Apple's CC
19116
19117 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
19118 for addresses
19119 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
19120
19121 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19122
19123 Avoid aliases when compiling with Apple's CC for PCBIOS machine
19124
19125 * kern/misc.c [APPLE_CC] (memcpy): new function
19126 [APPLE_CC] (memmove): likewise
19127 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
19128 (memcpy): define alias conditionally on !APPLE_CC
19129 (memset): likewise
19130 (abort): likewise
19131 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
19132 APPLE_CC are defined
19133 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
19134 (grub_assert_fail): make prototype conditional
19135
19136 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19137
19138 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
19139
19140 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
19141 grub-macho2img
19142 (CLEANFILES): add grub-macho2img
19143 (grub_macho2img_SOURCES): new variable
19144 * kern/i386/pc/startup.S (bss_start): new variable
19145 (bss_end): likewise
19146 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
19147 * util/grub-macho2img.c: new file
19148
19149 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19150
19151 Use objconv when compiling with Apple's CC
19152
19153 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
19154 (efiemu64.o): likewise
19155 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
19156 when compiling with Apple's CC
19157 (efiemu64_s.o): likewise
19158 * configure.ac: check for objconv when compiling with Apple's CC
19159 * genmk.rb: use objconv for modules when compiled with Apple's CC
19160
19161 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19162
19163 Define segment as well as section when compiling with
19164 Apple's CC
19165
19166 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
19167 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
19168 (efiemu_convert_pointer): likewise
19169 (efiemu_set_virtual_address_map): likewise
19170 (efiemu_convert_pointer): likewise
19171 (efiemu_getcrc32): likewise
19172 (init_crc32_table): likewise
19173 (reflect): likewise
19174 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
19175 (GRUB_MOD_DEP): likewise
19176
19177 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19178
19179 Allow a compilation without -mcmodel=large
19180
19181 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
19182 when compiled without -mcmodel=large
19183 (filter_memory_map): remove memory post 4 GiB when compiled
19184 without -mcmodel=large
19185 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
19186 TARGET_CFLAGS when -mcmodel=large isn't supported
19187
19188 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19189
19190 Remove nested functions in efiemu core
19191
19192 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
19193
19194 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19195
19196 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
19197
19198 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
19199 temporary storage
19200 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
19201 using Apple's CC
19202 (grub_cpu_is_tsc_supported): likewise
19203 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
19204
19205 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19206
19207 Absolute addressing through constant with Apple's cc
19208
19209 * kern/i386/pc/startup.S: Define necessary constants
19210 and address through it when using ABS with Apple's CC
19211 * boot/i386/pc/diskboot.S: likewise
19212 * boot/i386/pc/boot.S: likewise
19213 * boot/i386/pc/lnxboot.S: likewise
19214 * boot/i386/pc/cdboot.S: likewise
19215 * mmap/i386/pc/mmap_helper.S: likewise
19216 * commands/i386/pc/drivemap_int13h.S: likewise
19217
19218 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19219
19220 Check if compiler is apple cc
19221
19222 * Makefile.in (ASFLAGS): new variable
19223 (TARGET_ASFLAGS): likewise
19224 (TARGET_MODULE_FORMAT): likewise
19225 (TARGET_APPLE_CC): likewise
19226 (OBJCONV): likewise
19227 (TARGET_IMG_CFLAGS): likewise
19228 (TARGET_CPPFLAGS): add includedir
19229 * configure.ac: call grub_apple_cc and grub_apple_target_cc
19230 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
19231 Check for linker script only if compiler isn't Apple's CC
19232 (TARGET_MODULE_FORMAT): set
19233 (TARGET_APPLE_CC): likewise
19234 (TARGET_ASFLAGS): likewise
19235 (ASFLAGS): likewise
19236 Check for objcopy only if compiler isn't Apple's CC
19237 Check for BSS symbol only if compiler isn't Apple's CC
19238 * genmk.rb: adapt nm options if we use Apple's utils
19239 * aclocal.m4 (grub_apple_cc): new test
19240 (grub_apple_target_cc): likewise
19241
19242 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19243
19244 Simplify sed expressions and improve awk
19245
19246 * Makefile.in (install-local): simplify sed expression
19247 * gencmdlist.sh: likewise
19248 * genmoddep.awk: avoid adding module as a dependency of itself
19249
19250 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19251
19252 Add missing start symbols
19253
19254 * boot/i386/pc/boot.S: add start
19255 * boot/i386/pc/pxeboot.S: likewise
19256
19257 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19258
19259 Fix wrong assumptions with grub-mkimage on EFI
19260
19261 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
19262 (relocate_addresses): consider both r_addend and value at offset
19263 (make_mods_section): zerofill modinfo and header
19264 (convert_elf): write prefix here
19265
19266 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19267
19268 Use .asciz instead of .string
19269
19270 * i386/pc/diskboot.S: use .asciz instead of .string
19271 * i386/pc/boot.S: likewise
19272 * include/grub/dl.h (GRUB_MOD_DEP): likewise
19273 (GRUB_MOD_NAME): likewise
19274
19275 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19276
19277 gfxpayload support
19278
19279 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
19280 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
19281 (grub_video_setup): remove
19282 (grub_video_set_mode): new prototype
19283 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
19284 (vid_mode): remove
19285 (linux_vesafb_res): compile only on PCBIOS
19286 (grub_linux_boot): support gfxpayload
19287 * loader/i386/pc/xnu.c (video_hook): new function
19288 (grub_xnu_set_video): support gfxpayload
19289 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
19290 (DEFAULT_VIDEO_HEIGHT): likewise
19291 (DEFAULT_VIDEO_FLAGS): likewise
19292 (DEFAULT_VIDEO_MODE): new definition
19293 (video_hook): new function
19294 (grub_gfxterm_init): use grub_video_set_mode
19295 * util/grub.d/30_os-prober.in: remove explicit modesetting before
19296 loading xnu
19297 * video/video.c (grub_video_setup): removed
19298 (grub_video_set_mode): new function based on grub_gfxterm_init and
19299 grub_video_setup
19300
19301 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19302
19303 Avoid calling biosdisk in drivemap
19304
19305 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
19306 (revparse_biosdisk): likewise
19307 (list_mappings): derive name from id directly
19308 (grub_cmd_drivemap): use tryparse_diskstring
19309
19310 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19311
19312 Script fixes
19313
19314 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
19315 (grub_lexer_param): add tokenonhold
19316 (grub_script_create_cmdline): remove cmdline. All callers updated
19317 (grub_script_function_create): make functionname
19318 grub_script_arg. All callers updated
19319 (grub_script_execute_argument_to_string): new prototype
19320 * kern/parser.c (state_transitions): reorder
19321 (grub_parser_cmdline_state): fix a bug and make more compact
19322 * script/sh/execute.c (grub_script_execute_argument_to_string):
19323 make global
19324 (grub_script_execute_cmdline): use new format
19325 * script/sh/function.c (grub_script_function_create): make functionname
19326 grub_script_arg. All callers updated
19327 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
19328 (grub_script_yylex): remove
19329 (grub_script_yylex2): renamed to ...
19330 (grub_script_yylex): ...renamed
19331 parse the expressions like a${b}c
19332 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
19333 (GRUB_PARSER_TOKEN_VAR): remove
19334 (GRUB_PARSER_TOKEN_NAME): likewise
19335 ("if"): declare as typeless
19336 ("while"): likewise
19337 ("function"): likewise
19338 ("else"): likewise
19339 ("then"): likewise
19340 ("fi"): likewise
19341 (text): remove
19342 (argument): likewise
19343 (script): accept empty scripts and make exit on error
19344 (arguments): use GRUB_PARSER_TOKEN_ARG
19345 (function): likewise
19346 (command): move error handling to script
19347 (menuentry): move grub_script_lexer_ref before
19348 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
19349 argument. All callers updated
19350
19351 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
19352
19353 Prevent GRUB from probing floppies during boot.
19354
19355 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
19356 * commands/search.c (options): Add --no-floppy.
19357 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
19358 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
19359 --no-floppy when searching for UUIDs.
19360
19361 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
19362
19363 Simplify the code duplication in commands/search.c.
19364
19365 * commands/search.c (search_label, search_fs_uuid): Merge into ...
19366 (search_fs): ... this. Update all users.
19367
19368 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
19369
19370 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
19371
19372 2009-05-28 Pavel Roskin <proski@gnu.org>
19373
19374 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
19375 Remove the original symlink explicitly.
19376
19377 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
19378 just one slash. That's how grub_fshelp_find_file() does it.
19379
19380 2009-05-26 Pavel Roskin <proski@gnu.org>
19381
19382 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
19383 to `str'.
19384
19385 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
19386 possibly unused.
19387
19388 2009-05-25 Christian Franke <franke@computer.org>
19389
19390 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
19391 register.
19392 (grub_atapi_identify): Add wait after drive select.
19393 (grub_ata_identify): Do more strict status register check before
19394 calling grub_atapi_identify (). Suppress error message if status
19395 register is 0x00 after command failure. Add status register
19396 check after PIO read to avoid bogus identify due to stuck DRQ.
19397 Thanks to Pavel Roskin for testing.
19398 (grub_device_initialize): Remove unsafe status register check.
19399 Thanks to 'phcoder' for problem report and patch.
19400 Prevent sign extension in debug message.
19401
19402 2009-05-23 Colin D Bennett <colin@gibibit.com>
19403
19404 Cleaned up `include/grub/normal.h'. Grouped prototypes by
19405 definition file, and functions defined in `normal/menu.c' have had
19406 their prototypes moved to `include/grub/menu.h' for consistency.
19407
19408 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
19409 from normal.h.
19410 (grub_menu_get_entry): Likewise.
19411 (grub_menu_get_timeout): Likewise.
19412 (grub_menu_set_timeout): Likewise.
19413 (grub_menu_execute_entry): Likewise.
19414 (grub_menu_execute_with_fallback): Likewise.
19415 (grub_menu_entry_run): Likewise.
19416
19417 * include/grub/normal.h: Re-ordered and grouped function
19418 prototypes by file that the function is defined in.
19419 (grub_menu_execute_callback): Removed; moved to menu.h.
19420 (grub_menu_get_entry): Likewise.
19421 (grub_menu_get_timeout): Likewise.
19422 (grub_menu_set_timeout): Likewise.
19423 (grub_menu_execute_entry): Likewise.
19424 (grub_menu_execute_with_fallback): Likewise.
19425 (grub_menu_entry_run): Likewise.
19426 (grub_menu_addentry): Renamed from this ...
19427 (grub_normal_add_menu_entry): ... to this.
19428
19429 * normal/main.c (grub_menu_addentry): Renamed from this ...
19430 (grub_normal_add_menu_entry): ... to this.
19431
19432 * script/sh/execute.c (grub_script_execute_menuentry): Update
19433 reference to renamed grub_menu_addentry function.
19434
19435 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
19436
19437 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
19438
19439 2009-05-22 Pavel Roskin <proski@gnu.org>
19440
19441 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
19442 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
19443 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
19444 compiling for the i386 targets, but not for the utilities.
19445
19446 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
19447 to grub_uint8_t.
19448 (grub_root_drive): Likewise.
19449 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
19450 remove alignment.
19451 (grub_root_drive): Change size to byte.
19452 (grub_start_addr): Remove.
19453 (grub_end_addr): Likewise.
19454 (grub_apm_bios_info): Likewise.
19455
19456 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
19457
19458 * normal/i386: Remove.
19459 * normal/powerpc: Likewise.
19460 * normal/sparc64: Likewise.
19461 * normal/x86_64: Likewise.
19462
19463 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
19464
19465 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
19466 * loader/i386/linux_trampoline.S: Fix indentation
19467 * loader/i386/xnu_helper.S: Likewise
19468
19469 2009-05-18 Colin D Bennett <colin@gibibit.com>
19470
19471 Display error messages when parsing a Lua statement fails.
19472 Previously, executing a syntactically invalid statement like
19473 ")foo" or "bar;" would silently fail.
19474
19475 * script/lua/grub_main.c (handle_lua_error): New function.
19476 (grub_lua_parse_line): Improved reporting of Lua parser and
19477 execution errors.
19478
19479 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19480
19481 Remove -Werror which causes build to fail on some systems
19482
19483 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
19484 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
19485 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
19486
19487 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19488
19489 trampoline for linux on 64-bit platform
19490
19491 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
19492 loader/i386/efi/linux_trampoline.S
19493 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
19494 declaration
19495 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
19496 here
19497 * loader/i386/linux_trampoline.S: moved here
19498 * loader/i386/efi/linux.c (allocate_pages): reserve space for
19499 trampoline
19500 (jumpvector): removed
19501 (grub_linux_trampoline_start): new declaration
19502 (grub_linux_trampoline_end): likewise
19503 (grub_linux_boot): use trampoline when on 64-bit platform
19504 * loader/i386/linux.c: likewise
19505
19506 2009-05-16 Pavel Roskin <proski@gnu.org>
19507
19508 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
19509 const to avoid a warning.
19510 (grub_lua_setenv): Likewise.
19511 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
19512 lmsg to fix a warning.
19513
19514 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
19515
19516 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
19517 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
19518 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
19519 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
19520 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
19521 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
19522 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
19523 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
19524
19525 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
19526
19527 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
19528
19529 2009-05-16 Bean <bean123ch@gmail.com>
19530
19531 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
19532 (lua_mod_SOURCES): New variable.
19533 (lua_mod_CFLAGS): Likewise.
19534 (lua_mod_LDFLAGS): Likewise.
19535
19536 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
19537 (setjmp_mod_SOURCES): New variable.
19538 (setjmp_mod_CFLAGS): Likewise.
19539 (setjmp_LDFLAGS): Likewise.
19540
19541 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
19542 (setjmp_mod_SOURCES): New variable.
19543 (setjmp_mod_CFLAGS): Likewise.
19544 (setjmp_LDFLAGS): Likewise.
19545
19546 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
19547 (setjmp_mod_SOURCES): New variable.
19548 (setjmp_mod_CFLAGS): Likewise.
19549 (setjmp_LDFLAGS): Likewise.
19550
19551 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
19552 (setjmp_mod_SOURCES): New variable.
19553 (setjmp_mod_CFLAGS): Likewise.
19554 (setjmp_LDFLAGS): Likewise.
19555
19556 * normal/i386/setjmp.S: Moved from here ...
19557 * lib/i386/setjmp.S: ... Moved here
19558 * normal/x86_64/setjmp.S: Moved from here ...
19559 * lib/x86_64/setjmp.S: ... Moved here
19560 * normal/powerpc/setjmp.S: Moved from here ...
19561 * lib/powerpc/setjmp.S: ... Moved here
19562 * normal/sparc64/setjmp.S: Moved from here ...
19563 * lib/sparc64/setjmp.S: ... Moved here
19564
19565 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
19566 returns_twice in mingw.
19567
19568 * script/lua/grub_lib.c: New file.
19569 * script/lua/grub_lib.h: Likewise.
19570 * script/lua/grub_lua.h: Likewise.
19571 * script/lua/grub_main.c: Likewise.
19572 * script/lua/lapi.c: Likewise.
19573 * script/lua/lapi.h: Likewise.
19574 * script/lua/lauxlib.c: Likewise.
19575 * script/lua/lauxlib.h: Likewise.
19576 * script/lua/lbaselib.c: Likewise.
19577 * script/lua/lcode.c: Likewise.
19578 * script/lua/lcode.h: Likewise.
19579 * script/lua/ldblib.c: Likewise.
19580 * script/lua/ldebug.c: Likewise.
19581 * script/lua/ldebug.h: Likewise.
19582 * script/lua/ldo.c: Likewise.
19583 * script/lua/ldo.h: Likewise.
19584 * script/lua/ldump.c: Likewise.
19585 * script/lua/lfunc.c: Likewise.
19586 * script/lua/lfunc.h: Likewise.
19587 * script/lua/lgc.c: Likewise.
19588 * script/lua/lgc.h: Likewise.
19589 * script/lua/linit.c: Likewise.
19590 * script/lua/liolib.c: Likewise.
19591 * script/lua/llex.c: Likewise.
19592 * script/lua/llex.h: Likewise.
19593 * script/lua/llimits.h: Likewise.
19594 * script/lua/lmathlib.c: Likewise.
19595 * script/lua/lmem.c: Likewise.
19596 * script/lua/lmem.h: Likewise.
19597 * script/lua/loadlib.c: Likewise.
19598 * script/lua/lobject.c: Likewise.
19599 * script/lua/lobject.h: Likewise.
19600 * script/lua/lopcodes.c: Likewise.
19601 * script/lua/lopcodes.h: Likewise.
19602 * script/lua/loslib.c: Likewise.
19603 * script/lua/lparser.c: Likewise.
19604 * script/lua/lparser.h: Likewise.
19605 * script/lua/lstate.c: Likewise.
19606 * script/lua/lstate.h: Likewise.
19607 * script/lua/lstring.c: Likewise.
19608 * script/lua/lstring.h: Likewise.
19609 * script/lua/lstrlib.c: Likewise.
19610 * script/lua/ltable.c: Likewise.
19611 * script/lua/ltable.h: Likewise.
19612 * script/lua/ltablib.c: Likewise.
19613 * script/lua/ltm.c: Likewise.
19614 * script/lua/ltm.h: Likewise.
19615 * script/lua/lua.h: Likewise.
19616 * script/lua/luaconf.h: Likewise.
19617 * script/lua/lualib.h: Likewise.
19618 * script/lua/lundump.c: Likewise.
19619 * script/lua/lundump.h: Likewise.
19620 * script/lua/lvm.c: Likewise.
19621 * script/lua/lvm.h: Likewise.
19622 * script/lua/lzio.c: Likewise.
19623 * script/lua/lzio.h: Likewise.
19624
19625 2009-05-16 Bean <bean123ch@gmail.com>
19626
19627 * include/grub/kernel.h (grub_module_header_types): Add type
19628 OBJ_TYPE_CONFIG.
19629
19630 * kern/main.c (grub_load_config): New function.
19631 (grub_main): Call grub_load_config to read boot config.
19632
19633 * grub-mkimage (generate_image): New parameter config_path.
19634 (options): New option --config.
19635 (main): Parse --config option, and pass it to generate_image.
19636
19637 2009-05-14 Christian Franke <franke@computer.org>
19638
19639 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
19640 This fixes build on Cygwin.
19641
19642 2009-05-14 Pavel Roskin <proski@gnu.org>
19643
19644 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
19645 jump. This saves two bytes, so the typical case of 2 swapped
19646 drives would fit 32 bytes.
19647
19648 2009-05-13 Pavel Roskin <proski@gnu.org>
19649
19650 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
19651 grub_uint32_t to avoid a warning.
19652
19653 * loader/i386/linux.c (allocate_pages): When assigning
19654 real_mode_mem, cast through grub_size_t to fix a warning. The
19655 code already makes sure that the value would fit a pointer.
19656 (grub_linux_setup_video): Cast render_target->data to
19657 grub_size_t to fix a warning.
19658
19659 2009-05-13 Javier Martín <lordhabbit@gmail.com>
19660
19661 * commands/i386/pc/drivemap.c: New file - implement drivemap
19662 command.
19663 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
19664 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
19665
19666 2009-05-13 Pavel Roskin <proski@gnu.org>
19667
19668 * util/i386/pc/grub-setup.c (setup): Remove unused variable
19669 embedding_area_exists.
19670
19671 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
19672
19673 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
19674 it easier to understand / work with.
19675 Improve warning messages for cases where there's no embedding area,
19676 or when it is too small (or core.img too large).
19677
19678 2009-05-13 Pavel Roskin <proski@gnu.org>
19679
19680 * loader/i386/pc/multiboot2.c: Add necessary includes for
19681 grub_multiboot2_real_boot().
19682
19683 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
19684 PX record is always little-endian. We only need the lower 2
19685 bytes of the mode.
19686
19687 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
19688 facilitate code reuse.
19689 (grub_cpio_mount): Use "struct head", not a char buffer. This
19690 fixes a warning reported by gcc 4.4.
19691
19692 * kernel/disk.c (grub_disk_read): Use void pointer for the
19693 buffer.
19694 (grub_disk_write): Use const void pointer for the buffer.
19695 Adjust all callers. Remove unnecessary casts.
19696
19697 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
19698
19699 * util/i386/pc/grub-install.in: Update copyright year.
19700
19701 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
19702
19703 gptsync
19704
19705 * commands/gptsync.c: new file
19706 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
19707 (gptsync_mod_SOURCES): new variable
19708 (gptsync_mod_CFLAGS): likewise
19709 (gptsync_mod_LDFLAGS): likewise
19710 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
19711 new definition
19712 (GRUB_PC_PARTITION_TYPE_HFS): likewise
19713 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
19714 * conf/i386-ieee1275.rmk: likewise
19715 * conf/i386-pc.rmk: likewise
19716 * conf/powerpc-ieee1275.rmk: likewise
19717
19718 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
19719
19720 Fixed grub-emu
19721
19722 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
19723 (grub_dl_ref): likewise
19724
19725 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
19726
19727 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
19728 split in two functions (one for msdos and one for gpt).
19729
19730 2009-05-08 Pavel Roskin <proski@gnu.org>
19731
19732 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
19733 not modified.
19734
19735 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
19736 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
19737 Initialize them with -1. Add sanity check for bad1. Eliminate
19738 nerr variable.
19739
19740 2009-05-08 David S. Miller <davem@davemloft.net>
19741
19742 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
19743
19744 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
19745
19746 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
19747 existence.
19748
19749 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
19750
19751 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
19752 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
19753
19754 2009-05-05 David S. Miller <davem@davemloft.net>
19755
19756 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
19757
19758 2009-05-05 Pavel Roskin <proski@gnu.org>
19759
19760 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
19761 of grub_dl_ref() and grub_dl_unref().
19762 * commands/parttool.c: Remove preprocessor conditionals around
19763 grub_dl_ref() and grub_dl_unref().
19764 * fs/affs.c: Likewise.
19765 * fs/afs.c: Likewise.
19766 * fs/cpio.c: Likewise.
19767 * fs/ext2.c: Likewise.
19768 * fs/fat.c: Likewise.
19769 * fs/hfs.c: Likewise.
19770 * fs/hfsplus.c: Likewise.
19771 * fs/iso9660.c: Likewise.
19772 * fs/jfs.c: Likewise.
19773 * fs/minix.c: Likewise.
19774 * fs/ntfs.c: Likewise.
19775 * fs/reiserfs.c: Likewise.
19776 * fs/sfs.c: Likewise.
19777 * fs/udf.c: Likewise.
19778 * fs/ufs.c: Likewise.
19779 * fs/xfs.c: Likewise.
19780 * include/grub/dl.h: Likewise.
19781 * loader/xnu.c: Likewise.
19782
19783 2009-05-04 Pavel Roskin <proski@gnu.org>
19784
19785 * commands/acpi.c: Remove unused variable my_mod.
19786 * partmap/amiga.c: Likewise.
19787 * partmap/apple.c: Likewise.
19788 * partmap/gpt.c: Likewise.
19789 * partmap/pc.c: Likewise.
19790 * partmap/sun.c: Likewise.
19791 * term/gfxterm.c: Likewise.
19792 * term/i386/pc/vesafb.c: Likewise.
19793 * term/i386/pc/vga.c: Likewise.
19794
19795 2009-05-04 David S. Miller <davem@davemloft.net>
19796
19797 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
19798 pointer args to grub_ieee1275_get_property().
19799
19800 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
19801
19802 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
19803 devices, and do not traverse down under controller nodes.
19804
19805 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
19806 (grub_ofdisk_open): Use it to un-escape "," characters.
19807 * kern/disk.c (find_part_sep): New.
19808 (grub_disk_open): Use it to find the first non-escaped ','
19809 character in the disk name.
19810 * util/ieee1275/devicemap.c (escape_of_path): New.
19811 (grub_util_emit_devicemap_entry): Use it.
19812 * util/sparc64/ieee1275/grub-install.in: Update script to
19813 strip partition specifiers properly by not triggering on
19814 '\' escaped ',' characters.
19815
19816 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
19817
19818 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
19819 to 0x300.
19820 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
19821 resolutions.
19822 (linux_vesafb_modes): Add a lot of additional modes to the list (based
19823 on documentation from Wikipedia).
19824
19825 2009-05-04 Pavel Roskin <proski@gnu.org>
19826
19827 * disk/ata.c: Spelling fixes.
19828 * disk/raid.c: Likewise.
19829 * disk/usbms.c: Likewise.
19830 * disk/dmraid_nvidia.c: Likewise.
19831 * kern/ieee1275/openfw.c: Likewise.
19832 * kern/ieee1275/init.c: Likewise.
19833 * kern/ieee1275/cmain.c: Likewise.
19834 * boot/i386/pc/cdboot.S: Likewise.
19835 * video/readers/png.c: Likewise.
19836 * video/i386/pc/vbe.c: Likewise.
19837 * fs/udf.c: Likewise.
19838 * fs/hfs.c: Likewise.
19839 * fs/reiserfs.c: Likewise.
19840 * efiemu/runtime/efiemu.c: Likewise.
19841 * efiemu/main.c: Likewise.
19842 * efiemu/mm.c: Likewise.
19843 * include/grub/elf.h: Likewise.
19844 * include/grub/xnu.h: Likewise.
19845 * include/grub/usbdesc.h: Likewise.
19846 * include/grub/usb.h: Likewise.
19847 * include/grub/script_sh.h: Likewise.
19848 * include/grub/lib/LzmaEnc.h: Likewise.
19849 * include/grub/efiemu/efiemu.h: Likewise.
19850 * include/grub/command.h: Likewise.
19851 * normal/menu.c: Likewise.
19852 * normal/main.c: Likewise.
19853 * normal/datetime.c: Likewise.
19854 * bus/usb/uhci.c: Likewise.
19855 * mmap/i386/uppermem.c: Likewise.
19856 * mmap/mmap.c: Likewise.
19857 * commands/acpi.c: Likewise.
19858 * commands/test.c: Likewise.
19859 * partmap/apple.c: Likewise.
19860 * font/font.c: Likewise.
19861 * loader/sparc64/ieee1275/linux.c: Likewise.
19862 * loader/macho.c: Likewise.
19863 * loader/i386/bsd_trampoline.S: Likewise.
19864 * loader/i386/bsd.c: Likewise.
19865 * loader/xnu.c: Likewise.
19866 * term/i386/pc/vesafb.c: Likewise.
19867 * term/usb_keyboard.c: Likewise.
19868 * util/resolve.c: Likewise.
19869 * util/getroot.c: Likewise.
19870
19871 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
19872
19873 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
19874
19875 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
19876
19877 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
19878 build error.
19879
19880 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
19881
19882 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
19883 parameter only available on BIOS.
19884
19885 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
19886
19887 Removed wrong semicolon in declaration
19888
19889 * grub/misc.h (grub_dprintf): remove semicolon
19890
19891 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
19892
19893 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
19894 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
19895 is done by grub_cmd_linux() now).
19896 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
19897 restore video to text mode.
19898 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
19899 indicates lack of "vga=" parameter. "vga=0" is mapped to
19900 `GRUB_LINUX_VID_MODE_NORMAL'.
19901
19902 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
19903
19904 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
19905 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
19906 and `normal/script.c'. Add `kern/rescue_reader.c',
19907 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
19908 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
19909 `grub_script.tab.c'.
19910
19911 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19912 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
19913 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19914 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
19915 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19916
19917 * Makefile.in: Remove duplicated 2008 in Copyright line.
19918
19919 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
19920
19921 * util/misc.c (grub_util_warn): New function. Emits a warning
19922 unconditionally.
19923 * include/grub/util/misc.h (grub_util_warn): New declaration.
19924
19925 * util/i386/pc/grub-install.in: Understand --force and pass it down
19926 to grub-setup.
19927
19928 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
19929 down to setup().
19930 (setup): Improve error messages and add warnings when requested to
19931 install in odd layouts. Refuse to install using blocklists unless
19932 --force was set.
19933
19934 2009-05-04 martin f. krafft <madduck@madduck.net>
19935
19936 * disk/raid.c (grub_raid_scan_device): Improve debug message.
19937
19938 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
19939
19940 Updated copyright year
19941
19942 * fs/hfsplus.c: updated copyright year
19943
19944 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
19945
19946 HFS+ UUID
19947
19948 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
19949 in the space previously used by unused3
19950 (grub_hfsplus_uuid): new function
19951 (grub_hfsplus_fs): added uuid field
19952
19953 2009-05-03 Pavel Roskin <proski@gnu.org>
19954
19955 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
19956 suppress warnings. It's no longer needed.
19957 * disk/host.c: Likewise.
19958 * disk/ata_pthru.c: Likewise.
19959 * disk/loopback.c: Likewise.
19960 * hook/datehook.c: Likewise.
19961 * parttool/pcpart.c: Likewise.
19962 * fs/i386/pc/pxe.c: Likewise.
19963 * fs/ntfscomp.c: Likewise.
19964 * efiemu/main.c: Likewise.
19965 * mmap/mmap.c: Likewise.
19966 * commands/crc.c: Likewise.
19967 * commands/hexdump.c: Likewise.
19968 * commands/hdparm.c: Likewise.
19969 * commands/acpi.c: Likewise.
19970 * commands/echo.c: Likewise.
19971 * commands/minicmd.c: Likewise.
19972 * commands/blocklist.c: Likewise.
19973 * commands/memrw.c: Likewise.
19974 * commands/loadenv.c: Likewise.
19975 * commands/usbtest.c: Likewise.
19976 * commands/lsmmap.c: Likewise.
19977 * commands/boot.c: Likewise.
19978 * commands/parttool.c: Likewise.
19979 * commands/configfile.c: Likewise.
19980 * commands/search.c: Likewise.
19981 * commands/ieee1275/suspend.c: Likewise.
19982 * commands/cat.c: Likewise.
19983 * commands/i386/pc/pxecmd.c: Likewise.
19984 * commands/i386/pc/play.c: Likewise.
19985 * commands/i386/pc/halt.c: Likewise.
19986 * commands/i386/pc/vbeinfo.c: Likewise.
19987 * commands/i386/pc/vbetest.c: Likewise.
19988 * commands/lspci.c: Likewise.
19989 * commands/date.c: Likewise.
19990 * commands/handler.c: Likewise.
19991 * commands/ls.c: Likewise.
19992 * commands/test.c: Likewise.
19993 * commands/cmp.c: Likewise.
19994 * commands/efi/loadbios.c: Likewise.
19995 * commands/efi/fixvideo.c: Likewise.
19996 * commands/halt.c: Likewise.
19997 * commands/help.c: Likewise.
19998 * commands/reboot.c: Likewise.
19999 * hello/hello.c: Likewise.
20000 * script/sh/main.c: Likewise.
20001 * loader/xnu.c: Likewise.
20002 * term/terminfo.c: Likewise.
20003 * term/i386/pc/serial.c: Likewise.
20004 * term/usb_keyboard.c: Likewise.
20005
20006 2009-05-03 David S. Miller <davem@davemloft.net>
20007
20008 * normal/menu.c: Include grub/parser.h
20009
20010 2009-05-03 Pavel Roskin <proski@gnu.org>
20011
20012 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
20013 not char*.
20014 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
20015 Suggested by Javier Martín <lordhabbit@gmail.com>
20016
20017 * util/i386/pc/grub-mkrescue.in: Allow for the case when
20018 efiemu??.o doesn't exist.
20019 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
20020 copying.
20021
20022 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
20023
20024 FreeBSD 64-bit support
20025
20026 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
20027 and loader/i386/bsd_trampoline.S
20028 (bsd_mod_ASFLAGS): new variable
20029 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
20030 (FREEBSD_MODTYPE_KERNEL64): likewise
20031 (grub_bsd64_trampoline_start): likewise
20032 (grub_bsd64_trampoline_end): likewise
20033 (grub_bsd64_trampoline_selfjump): likewise
20034 (grub_bsd64_trampoline_gdt): likewise
20035 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
20036 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
20037 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
20038 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
20039 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
20040 of "attrib" member
20041 * loader/i386/bsd_pagetable.c: new file
20042 * loader/i386/bsd_trampoline.S: likewise
20043 * loader/i386/bsd.c (ALIGN_QWORD): new macro
20044 (ALIGN_VAR): likewise
20045 (entry_hi): new variable
20046 (kern_end_mdofs): likewise
20047 (is_64bit): likewise
20048 (grub_freebsd_add_meta): use ALIGN_VAR
20049 (grub_e820_mmap): new declaration
20050 (grub_freebsd_add_mmap): new function
20051 (grub_freebsd_add_meta_module): support 64 bit kernels
20052 (grub_freebsd_list_modules): use ALIGN_VAR
20053 (gdt_descriptor): new declaration
20054 (grub_freebsd_boot): support 64 bit kernels
20055 (grub_bsd_elf64_hook): new function
20056 (grub_bsd_load_elf): support elf64
20057
20058 2009-05-03 Bean <bean123ch@gmail.com>
20059
20060 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
20061 after we get the result of if statement.
20062
20063 2009-05-03 Bean <bean123ch@gmail.com>
20064
20065 * Makefile.in (enable_efiemu): New variable.
20066
20067 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
20068 set.
20069 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
20070 path.
20071 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
20072 path, add -mno-red-zone option.
20073 (efiemu64_s.o): Likewise.
20074 (efiemu64.o): Use macro $^ for source file.
20075
20076 * configure.ac (--enable-efiemu): New option.
20077
20078 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
20079
20080 xnu support
20081
20082 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
20083 (pkglib_MODULES): add xnu.mod
20084 (xnu_mod_SOURCES): new variable
20085 (xnu_mod_CFLAGS): likewise
20086 (xnu_mod_LDFLAGS): likewise
20087 (xnu_mod_ASFLAGS): likewise
20088 * conf/i386-pc.rmk: likewise
20089 * conf/x86_64-efi.rmk: likewise
20090 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
20091 new declaration
20092 * include/grub/i386/macho.h: new file
20093 * include/grub/i386/xnu.h: likewise
20094 * include/grub/macho.h: likewise
20095 * include/grub/machoload.h: likewise
20096 * include/grub/x86_64/macho.h: likewise
20097 * include/grub/x86_64/xnu.h: likewise
20098 * include/grub/xnu.h: likewise
20099 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
20100 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
20101 * loader/i386/efi/xnu.c: new file
20102 * loader/i386/pc/xnu.c: likewise
20103 * loader/i386/xnu.c: likewise
20104 * loader/i386/xnu_helper.S: likewise
20105 * loader/macho.c: likewise
20106 * loader/xnu.c: likewise
20107 * loader/xnu_resume.c: likewise
20108 * util/grub-dumpdevtree: likewise
20109 * include/grub/i386/pit.h: include grub/err.h
20110 (grub_pit_wait): export
20111 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
20112
20113 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
20114
20115 Efiemu
20116
20117 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
20118 _linux_efi, linux_efi.
20119 new files in grub-emu
20120 new targets efiemu32.o and efiemu64.o
20121 * loader/linux_normal_efiemu.c: likewise
20122 * loader/i386/efi/linux.c: added preliminary efiemu support
20123 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
20124 files to copy
20125 * include/grub/autoefi.h: new file
20126 * include/grub/i386/efiemu.h: likewise
20127 * include/grub/i386/pc/efiemu.h: likewise
20128 * include/grub/efi/api.h: add LL suffix when necessary
20129 new definitions relating to tables
20130 * include/grub/efiemu/efiemu.h: new file
20131 * include/grub/efiemu/runtime.h: likewise
20132 * efiemu/prepare.c: likewise
20133 * efiemu/loadcore_common.c: likewise
20134 * efiemu/loadcore64.c: likewise
20135 * efiemu/runtime/efiemu.sh: likewise
20136 * efiemu/runtime/efiemu.S: likewise
20137 * efiemu/runtime/efiemu.c: likewise
20138 * efiemu/runtime/config.h: likewise
20139 * efiemu/prepare32.c: likewise
20140 * efiemu/main.c: likewise
20141 * efiemu/modules/pnvram.c: likewise
20142 * efiemu/modules/i386: likewise
20143 * efiemu/modules/i386/pc: likewise
20144 * efiemu/modules/acpi.c: likewise
20145 * efiemu/i386/pc/cfgtables.c: likewise
20146 * efiemu/i386/loadcore64.c: likewise
20147 * efiemu/i386/loadcore32.c: likewise
20148 * efiemu/prepare64.c: likewise
20149 * efiemu/loadcore.c: likewise
20150 * efiemu/symbols.c: likewise
20151 * efiemu/mm.c: likewise
20152 * efiemu/loadcore32.c: likewise
20153
20154 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
20155
20156 ACPI spoofing
20157
20158 * commands/acpi.c: new file
20159 * commands/i386/pc/acpi.c: likewise
20160 * commands/efi/acpi.c: likewise
20161 * include/grub/acpi.h: likewise
20162 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
20163 (acpi_mod_SOURCES): new variable
20164 (acpi_mod_CFLAGS): likewise
20165 (acpi_mod_LDFLAGS): likewise
20166 * conf/i386-efi.rmk: likewise
20167 * conf/x86_64-efi.rmk: likewise
20168
20169 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
20170
20171 Missing part from mmap patch
20172
20173 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
20174 (grub_mmap_unregister)
20175 (grub_mmap_free_and_unregister): use grub_mmap_register
20176
20177 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
20178
20179 Mmap services
20180
20181 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
20182 * loader/i386/linux.c (find_mmap_size): likewise
20183 (allocate_pages): likewise
20184 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
20185 (grub_fill_multiboot_mmap): likewise
20186 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
20187 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
20188 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
20189 (OPENBSD_MMAP_RESERVED): likewise
20190 * include/grub/i386/pc/memory.h: include grub/memory.h
20191 (grub_lower_mem): removed
20192 (grub_upper_mem): likewise
20193 (GRUB_MACHINE_MEMORY_ACPI): new definition
20194 (GRUB_MACHINE_MEMORY_NVS): likewise
20195 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
20196 (GRUB_MACHINE_MEMORY_HOLE): likewise
20197 (grub_machine_mmap_register): likewise
20198 (grub_machine_mmap_unregister): likewise
20199 (grub_machine_get_upper): likewise
20200 (grub_machine_get_lower): likewise
20201 (grub_machine_get_post64): likewise
20202 * include/grub/i386/efi/memory.h: new file
20203 * include/grub/x86_64/efi/memory.h: likewise
20204 * include/grub/efi/memory.h: likewise
20205 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
20206 (mmap_mod_SOURCES): new variable
20207 (mmap_mod_LDFLAGS): likewise
20208 (mmap_mod_ASFLAGS): likewise
20209 * conf/i386-coreboot.rmk: likewise
20210 * conf/i386-ieee1275.rmk: likewise
20211 * conf/i386-efi.rmk: likewise
20212 * conf/x86_64-efi.rmk: likewise
20213 * include/grub/types.h (UINT_TO_PTR): new macro
20214 (PTR_TO_UINT32): likewise
20215 (PTR_TO_UINT64): likewise
20216 * include/grub/memory.h: new file
20217 * mmap/i386/pc/mmap.c: likewise
20218 * mmap/i386/pc/mmap_helper.S: likewise
20219 * mmap/i386/uppermem.c: likewise
20220 * mmap/mmap.c: likewise
20221 * mmap/efi/mmap.c: likewise
20222 * kern/i386/coreboot/init.c (grub_machine_init): don't use
20223 grub_upper_mem
20224 * kern/i386/pc/init.c (grub_lower_mem): removed variable
20225 (grub_upper_mem): likewise
20226 (grub_machine_init): don't use grub_upper_mem,
20227 make grub_lower_mem local
20228 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
20229 grub_mmap_iterate and grub_mmap_get_upper
20230 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
20231
20232 2009-05-02 Bean <bean123ch@gmail.com>
20233
20234 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
20235 script/sh/parser.y.
20236 (pkglib_MODULES): Add normal.mod and sh.mod.
20237 (normal_SOURCES): New variable.
20238 (normal_mod_CFLAGS): Likewise.
20239 (normal_mod_LDFLAGS): Likewise.
20240 (sh_mod_SOURCES): Likewise.
20241 (sh_mod_CFLAGS): Likewise.
20242 (sh_mod_LDFLAGS): Likewise.
20243
20244 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
20245 script/sh/lexer.c_DEPENDENCIES.
20246 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
20247 kern/rescue_reader.c and kern/rescue_parser.c.
20248 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
20249 (grub_emu_SOURCES): Change source files.
20250 (pkglib_MODULES): Remove normal.mod.
20251 (normal_SOURCES): Removed.
20252 (normal_mod_CFLAGS): Likewise.
20253 (normal_mod_LDFLAGS): Likewise.
20254 * conf/i386-coreboot.rmk: Likewise.
20255 * conf/i386-efi.rmk: Likewise.
20256 * conf/i386-ieee1276.rmk: Likewise.
20257 * conf/powerpc-ieee1275.rmk: Likewise.
20258 * conf/sparc64-ieee1275.rmk: Likewise.
20259 * conf/x86_64-efi.rmk: Likewise.
20260
20261 * include/grub/command.h (grub_command_execute): New inline function.
20262
20263 * include/grub/menu.h (grub_menu_entry): Removed commands field.
20264
20265 * include/grub/normal.h: Remove <grub/setjmp.h>.
20266 (grub_fs_module_list): Moved to normal/autofs.c.
20267 (grub_exit_env): Removed.
20268 (grub_command_execute): Likewise.
20269 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
20270 parameter script.
20271 (read_command_list): New function declaration.
20272 (read_fs_list): Likewise.
20273
20274 * include/parser.h: Include <grub/reader.h>.
20275 (grub_parser_split_cmdline): Change type of getline parameter.
20276 (grub_parser): New structure.
20277 (grub_parser_class): New variable.
20278 (grub_parser_execute): New function declaration.
20279 (grub_register_rescue_parser): Likewise.
20280 (grub_parser_register): New inline function.
20281 (grub_parser_unregister): Likewise.
20282 (grub_parser_get_current): Likewise.
20283 (grub_parser_set_current): Likewise.
20284
20285 * include/grub/reader.h: New file.
20286 * kern/reader.c: Likewise.
20287 * kern/rescue_parser.c: Likewise.
20288 * kern/rescue_reader.c: Likewise.
20289 * normal/autofs.c: Likewise.
20290 * normal/dyncmd.c: Likewise.
20291
20292 * include/grub/rescue.h: Removed.
20293 * normal/command.h: Likewise.
20294
20295 * include/grub/script.h: Moved to ...
20296 * include/grub/script_sh.h: ... Moved here.
20297 * normal/execute.c: Moved to ...
20298 * script/sh/execute.c: ... Moved here.
20299 * normal/function.c: Moved to ...
20300 * script/sh/function.c: ... Moved here.
20301 * normal/lexer.c: Moved to ...
20302 * script/sh/lexer.c: ... Moved here.
20303 * normal/parser.y: Moved to ...
20304 * script/sh/parser.y: ... Moved here.
20305 * normal/script.c: Moved to ...
20306 * script/sh/script.c: ... Moved here.
20307
20308 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
20309 <grub/reader.h>.
20310 (grub_exit_env): Removed.
20311 (fs_module_list): Moved to normal/autofs.c.
20312 (grub_file_getline): Don't handle comment here.
20313 (free_menu): Skip removed field entry->commands.
20314 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
20315 script parameter.
20316 (read_config_file): Removed nested parameter, change getline function.
20317 (grub_enter_normal_mode): Removed.
20318 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
20319 (read_command_list): Likewise.
20320 (autoload_fs_module): Moved to normal/autofs.c.
20321 (read_fs_list): Likewise.
20322 (reader_nested): New variable.
20323 (grub_normal_execute): Run parser.sh to switch to sh parser.
20324 (grub_cmd_rescue): Removed.
20325 (cmd_normal): Removed.
20326 (grub_cmd_normal): Unregister itself at the beginning. Don't register
20327 rescue command.
20328 (grub_cmdline_run): New function.
20329 (grub_normal_reader_init): Likewise.
20330 (grub_normal_read_line): Likewise.
20331 (grub_env_write_pager): Likewise.
20332 (cmdline): New variable.
20333 (grub_normal_reader): Likewise.
20334 (GRUB_MOD_INIT): Register normal reader and set as current, register
20335 pager hook, register normal command with grub_register_command_prio,
20336 so that it won't show up in command.lst.
20337 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
20338 grub_fs_autoload_hook.
20339
20340 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
20341 (grub_menu_execute_entry): Replace grub_script_execute with
20342 grub_parser_execute, change parameter to grub_command_execute.
20343
20344 * normal/menu_text.c: Remove <grub/script.h>.
20345
20346 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
20347 and <grub/parser.h>.
20348 (run): Change editor_getline to use new parser interface. Change
20349 parameter to grub_command_execute.
20350
20351 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
20352 <grub/reader.h> and <grub/parser.h>.
20353 (grub_load_normal_mode): Execute normal command.
20354 (grub_main): Call grub_register_core_commands,
20355 grub_register_rescue_parser and grub_register_rescue_reader, use
20356 grub_reader_loop to enter input loop.
20357
20358 * kern/parser.c (grub_parser_split_cmdline): Change type of
20359 getline parameter.
20360 (grub_parser_class): New variable.
20361 (grub_parser_execute): New function.
20362
20363 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
20364 * loader/multiboot2.c: Likewise.
20365 * loader/sparc64/ieee1275/linux.c: Likewise.
20366
20367 * util/grub-emu.c (read_command_list): New dummy function.
20368
20369 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
20370
20371 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
20372 count to 16 for CCISS and IDA.
20373
20374 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
20375
20376 * normal/menu_text.c (grub_wait_after_message): Print a newline
20377 after waiting for user input.
20378
20379 * loader/i386/linux.c: Include `<grub/normal.h>'.
20380 (grub_cmd_linux): Improve the error message about `ask' mode, by
20381 waiting for user input so it's not missed (we can do this, since
20382 user requested interaction).
20383
20384 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
20385
20386 Added missing lst to grub-mkrescue
20387
20388 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
20389 and ${input_dir}/parttool.lst
20390
20391 2009-04-30 David S. Miller <davem@davemloft.net>
20392
20393 * util/hostdisk.c (device_is_wholedisk): New function.
20394 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
20395 zero only if device_is_wholedisk() returns true.
20396
20397 * util/hostdisk.c (convert_system_partition_to_system_disk):
20398 Handle virtual disk devices named /dev/vdiskX as found on sparc
20399 and powerpc.
20400
20401 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
20402 lettered partition specifier is found, convert to numbered.
20403
20404 2009-04-29 David S. Miller <davem@davemloft.net>
20405
20406 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
20407 * include/grub/sparc64/ieee1275/memory.h: Likewise.
20408
20409 * normal/command.c: Add missing newline at end of file.
20410
20411 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
20412 warnings.
20413 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
20414 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
20415 grub_ofdisk_read): Likewise, and deal similarly with the fact that
20416 ihandles have a 32-bit type but need to be stored in a "void *".
20417
20418 2009-04-28 Pavel Roskin <proski@gnu.org>
20419
20420 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
20421 not disk. Adjust all dependencies.
20422 (grub_fs_uuid_close): Use grub_device_close(), not
20423 grub_disk_close().
20424
20425 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
20426 parent's partition, don't copy it by reference, as it gets freed
20427 on close.
20428
20429 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
20430
20431 Preboot hooks support
20432
20433 * commands/boot.c (struct grub_preboot_t): new declaration
20434 (preboots_head): new variable
20435 (preboots_tail): likewise
20436 (grub_loader_register_preboot_hook): new function
20437 (grub_loader_unregister_preboot_hook): likewise
20438 (grub_loader_set): launch preboot hooks
20439 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
20440 (grub_loader_register_preboot_hook): new declaration
20441 (grub_loader_unregister_preboot_hook): likewise
20442
20443 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
20444
20445 Warning fix
20446
20447 * disk/scsi.c (grub_scsi_open): added missing cast when
20448 calling grub_dprintf
20449
20450 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
20451
20452 Bug and warning fixes
20453
20454 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
20455 declaration
20456 * commands/test.c (test_parse): fixed bug with file tests and corrected
20457 declaration of find_file
20458
20459 2009-04-26 Pavel Roskin <proski@gnu.org>
20460
20461 * Makefile.in: Don't install empty manual pages if help2man is
20462 missing. Use help2man option for output, not shell redirection.
20463
20464 2009-04-26 David S. Miller <davem@davemloft.net>
20465
20466 * util/grub-mkdevicemap.c (make_device_map): Add missing
20467 NESTED_FUNC_ATTR to process_device().
20468
20469 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20470
20471 Test command
20472
20473 * commands/test.c: rewritten to use bash-like test
20474
20475 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20476
20477 Parttool autoloading and improvements
20478
20479 * Makefile.in (pkglib_DATA): add parttool.lst
20480 (parttool.lst): new target
20481 * genmk.rb: generate parttool-*
20482 (CLEANFILES): add #{parttool}
20483 (PARTTOOLFILES): new variable
20484 * genparttoollist.sh: new file
20485 * parttool/pcpart.c (grub_pcpart_boot): more feedback
20486 (grub_pcpart_type): likewise
20487 * commands/parttool.c (helpmsg): new variable
20488 (grub_cmd_parttool): output help if not enough arguments are supplied
20489 autoload modules
20490 (GRUB_MOD_INIT(parttool)): use helpmsg
20491
20492 2009-04-24 David S. Miller <davem@davemloft.net>
20493
20494 Avoiding opening same device multiple times in device iterator.
20495
20496 * kern/device.c: (grub_device_iterate): Define struct part_ent,
20497 and use it to build a list of partitions in iterate_disk() and
20498 iterate_partition().
20499
20500 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
20501 on disk->data.
20502
20503 * disk/ieee1275/nand.c (grub_nand_iterate): Return
20504 grub_devalias_iterate() result instead of unconditional 0.
20505 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
20506 Also, capture hook return value, either directly or via
20507 grub_children_iterate(), and propagate to caller.
20508 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
20509 grub_children_iterate): Return value is now 'int' instead of
20510 'grub_err_t'.
20511 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
20512 like a proper iterator, stopping when hooks return non-zero.
20513 (grub_devalias_iterate): Likewise.
20514
20515 2009-04-23 David S. Miller <davem@davemloft.net>
20516
20517 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
20518
20519 2009-04-22 David S. Miller <davem@davemloft.net>
20520
20521 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
20522 is larger than address_cells, use that value for address_cells too.
20523
20524 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
20525 IEEE1275_MAX_PATH_LEN): Define.
20526 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
20527 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
20528 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
20529 'devtype'. Explicitly NULL terminate devalias expansion.
20530
20531 * util/sparc64/ieee1275/misc.c: New file.
20532 * util/sparc64/ieee1275/grub-setup.c: New file.
20533 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
20534 * util/sparc64/ieee1275/grub-mkimage.c: New file.
20535 * util/sparc64/ieee1275/grub-install.in: New file.
20536 * util/ieee1275/ofpath.c: New file.
20537 * util/ieee1275/devicemap.c: New file.
20538 * util/devicemap.c: New file.
20539 * util/deviceiter.c: New file.
20540 * kern/sparc64/ieee1275/init.c: New file.
20541 * include/grub/util/ofpath.h: New file.
20542 * include/grub/util/deviceiter.h: New file.
20543 * util/grub-mkdevicemap.c: Include deviceiter.h.
20544 Implement using grub_util_emit_devicemap_entry and
20545 grub_util_iterate_devices.
20546 * conf/i386-corebook.rmk: Build util/deviceiter.c and
20547 util/devicemap.c into grub-mkdevicemap
20548 * conf/i386-efi.rmk: Likewise.
20549 * conf/i386-ieee1275.rmk: Likewise.
20550 * conf/i386-pc.rmk: Likewise.
20551 * conf/powerpc-ieee1275.rmk: Likewise.
20552 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
20553 images and installation utilities. Build kernel as image
20554 instead of as elf binary. Use common rules as much as possible.
20555
20556 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20557
20558 Correct GPT definition
20559
20560 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
20561 of "attrib" member
20562
20563 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
20564
20565 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
20566
20567 2009-04-19 David S. Miller <davem@davemloft.net>
20568
20569 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
20570 (grub_rescue_cmd_linux): Rename to...
20571 (grub_cmd_linux): and fix prototype.
20572 (grub_rescue_cmd_initrd): Rename to...
20573 (grub_cmd_initrd): and fix prototype.
20574 (cmd_linux, cmd_initrd): New.
20575 (GRUB_MOD_INIT(linux)): Use grub_register_command().
20576 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
20577
20578 2009-04-17 Pavel Roskin <proski@gnu.org>
20579
20580 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
20581 format.
20582 (grub_ohci_transfer): Likewise.
20583
20584 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
20585
20586 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
20587 return without a value. Fix inconsistent indentation.
20588
20589 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
20590 match struct grub_fs.
20591
20592 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
20593 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
20594 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
20595 * commands/lspci.c (grub_lspci_iter): Likewise.
20596
20597 2009-04-16 Bean <bean123ch@gmail.com>
20598
20599 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
20600 value.
20601
20602 2009-04-15 Pavel Roskin <proski@gnu.org>
20603
20604 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
20605 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
20606 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
20607 definitions.
20608
20609 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
20610
20611 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
20612 that no multiple data or metadata areas are supported and `Unknown
20613 metadata header'.
20614
20615 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
20616
20617 Move loader out of the kernel
20618
20619 * kern/loader.c: moved to ...
20620 * commands/boot.c: ... moved here
20621 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
20622 * commands/boot.c (grub_cmd_boot): moved here. All users updated
20623 * include/grub/kernel.h (grub_machine_fini): export
20624 * include/grub/loader.h (grub_loader_is_loaded): update declaration
20625 (grub_loader_set): likewise
20626 (grub_loader_unset): likewise
20627 (grub_loader_boot): likewise
20628 * conf/common.rmk: new module boot.mod
20629 (pkglib_MODULES): add boot.mod
20630 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
20631 (grub_emu_SOURCES): likewise
20632 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
20633 (grub_emu_SOURCES): likewise
20634 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
20635 (grub_emu_SOURCES): likewise
20636 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
20637 (grub_emu_SOURCES): likewise
20638 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
20639 (grub_emu_SOURCES): likewise
20640 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
20641 (grub_emu_SOURCES): likewise
20642 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
20643 (grub_emu_SOURCES): likewise
20644
20645 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
20646
20647 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
20648
20649 * kern/misc.c (grub_itoa): Removed function
20650 (grub_ltoa): likewise
20651 (grub_vsprintf): use grub_lltoa
20652
20653 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
20654
20655 Restore grub-emu
20656
20657 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
20658 * conf/i386-coreboot.rmk: likewise
20659 * conf/i386-ieee1275.rmk: likewise
20660 * conf/powerpc-ieee1275.rmk: likewise
20661
20662 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
20663
20664 * INSTALL: Add that `./autogen.sh' needs to be run before
20665 `./configure.'.
20666
20667 2009-04-14 Bean <bean123ch@gmail.com>
20668
20669 * Makefile.in (pkglib_DATA): Add handler.lst.
20670 (handler.lst): New rule.
20671
20672 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
20673 * conf/i386-coreboot.rmk: Likewise.
20674 * conf/i386-ieee1275.rmk: Likewise.
20675 * conf/i386-efi.rmk: Likewise.
20676 * conf/x86_64-efi.rmk: Likewise.
20677 * conf/powerpc-ieee1275.rmk: Likewise.
20678 * conf/sparc64-ieee1275.rmk: Likewise.
20679
20680 * genhandlerlist.sh: New file.
20681
20682 * genmk.rb: Add rules to generate handler.lst.
20683
20684 * include/grub/normal.h (grub_file_getline): New function definition.
20685 (read_handler_list): Likewise.
20686 (free_handler_list): Likewise.
20687
20688 * include/grub/term.h (grub_term_register_input): Add name parameter
20689 for auto generation of handler.lst.
20690 (grub_term_register_output): Likewise.
20691
20692 * normal/handler.c: New file.
20693
20694 * normal/main.c (get_line): Renamed to grub_file_getline.
20695 (read_config_file): Use the newly renamed grub_file_getline.
20696 (read_command_list): Likewise.
20697 (read_fs_list): Likewise.
20698 (grub_normal_execute): Call read_handler_list to parse handler.lst.
20699 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
20700
20701 * term/efi/console.c (grub_console_init): Add name parameter for auto
20702 generation of handler.lst.
20703 * term/gfxterm.c: Likewise.
20704 * term/i386/pc/at_keyboard.c: Likewise.
20705 * term/i386/pc/console.c: Likewise.
20706 * term/i386/pc/serial.c: Likewise.
20707 * term/i386/pc/vesafb.c: Likewise.
20708 * term/i386/pc/vga.c: Likewise.
20709 * term/i386/pc/vga_text.c: Likewise.
20710 * term/ieee1275/ofconsole.c: Likewise.
20711 * term/usb_keyboard.c: Likewise.
20712
20713 2009-04-14 Bean <bean123ch@gmail.com>
20714
20715 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
20716 properly with null character.
20717
20718 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
20719
20720 * configure: Remove.
20721 * config.h.in: Likewise.
20722 * stamp-h.in: Likewise.
20723 * DISTLIST: Likewise.
20724 * conf/common.mk: Likewise.
20725 * conf/i386-coreboot.mk: Likewise.
20726 * conf/i386-efi.mk: Likewise.
20727 * conf/i386-ieee1275.mk: Likewise.
20728 * conf/i386.mk: Likewise.
20729 * conf/i386-pc.mk: Likewise.
20730 * conf/powerpc-ieee1275.mk: Likewise.
20731 * conf/sparc64-ieee1275.mk: Likewise.
20732 * conf/x86_64-efi.mk: Likewise.
20733
20734 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
20735 develop on GRUB.
20736
20737 2009-04-14 John Stanley <jpsinthemix@verizon.net>
20738 David S. Miller <davem@davemloft.net>
20739
20740 * util/hostdisk.c (make_device_name): Fix buffer length
20741 calculations.
20742
20743 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
20744
20745 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
20746 <sys/param.h> and <sys/sysctl.h>.
20747 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
20748 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
20749 opening the device and reset them afterwards.
20750
20751 2009-04-13 Pavel Roskin <proski@gnu.org>
20752
20753 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
20754 Reported by John Stanley <jpsinthemix@verizon.net>
20755
20756 2009-04-13 Robert Millan <rmh@aybabtu.com>
20757
20758 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
20759 that name for menuentries when appropriate.
20760
20761 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
20762
20763 * util/grub.d/10_freebsd.in: Add a missing `fi'.
20764
20765 2009-04-13 Robert Millan <rmh@aybabtu.com>
20766
20767 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
20768 to Linux, simply abort telling the user it's no longer supported.
20769
20770 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
20771
20772 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
20773 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
20774 `freebsd_loadenv' only when devices.hints exist.
20775
20776 2009-04-13 Pavel Roskin <proski@gnu.org>
20777
20778 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
20779
20780 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
20781
20782 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
20783 partition number.
20784 (grub_drive): Likewise.
20785
20786 2009-04-13 David S. Miller <davem@davemloft.net>
20787
20788 * kern/sparc64/ieee1275/ieee1275.c: New file.
20789 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
20790 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
20791 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
20792 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
20793 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
20794 grub_ieee1275_alloc_physmem): Declare new exported functions.
20795
20796 * include/grub/sparc64/ieee1275/loader.h: New file.
20797 * include/grub/sparc64/ieee1275/memory.h: Likewise.
20798 * include/grub/sparc64/kernel.h: Likewise.
20799 * loader/sparc64/ieee1275/linux.c: Likewise.
20800
20801 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
20802 (grub_fstest_SOURCES): Likewise.
20803
20804 * util/hostdisk.c (make_device_name): Do not make any assumptions
20805 about the length of drive names.
20806
20807 * kern/dl.c (grub_dl_load_file): Close file immediately when
20808 we are done using it.
20809
20810 2009-04-12 David S. Miller <davem@davemloft.net>
20811
20812 * kern/misc.c (grub_ltoa): Fix cast when handling negative
20813 values. Noticed by Pavel Roskin.
20814
20815 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
20816 target compiler.
20817
20818 * genmk.rb: Add more flexible image type specification, also
20819 pass --strip-unneeded to objcopy.
20820 * conf/i386-pc.rmk: Use *_FORMAT.
20821 * conf/i386-pc.mk: Rebuilt.
20822
20823 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
20824 (OFDISK_HASH_SZ): Define.
20825 (ofdisk_hash): New hash table.
20826 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
20827 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
20828 instead of device phandle which is not unique.
20829
20830 * kern/sparc64/ieee1275/init.c: Delete, replace with...
20831 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
20832 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
20833 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
20834 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
20835 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
20836 GRUB_KERNEL_MACHINE_DATA_END): Define.
20837 (grub_kernel_image_size, grub_total_module_size): Declare.
20838
20839 2009-04-12 Pavel Roskin <proski@gnu.org>
20840
20841 * configure.ac: Change the logic when we check for target tools.
20842 Do it when the target is specified and it's different from the
20843 specified value of the host.
20844
20845 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
20846
20847 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
20848 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
20849 GNU/kFreeBSD. Check if a device is a character device. Use
20850 DIOCGMEDIASIZE to get the size.
20851 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
20852 support for GNU/kFreeBSD.
20853 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
20854 is a character device instead of a block device. Add support for
20855 FreeBSD device names.
20856
20857 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
20858 is a character device instead of a block device.
20859
20860 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
20861 is a character device instead of a block device.
20862
20863 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
20864
20865 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
20866 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
20867 FreeBSD. Check if a device is a character device. Use
20868 DIOCGMEDIASIZE to get the size.
20869 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
20870 support for FreeBSD.
20871 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
20872 is a character device instead of a block device. Add support for
20873 FreeBSD device names.
20874
20875 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
20876 a character device instead of a block device.
20877 (grub_util_check_char_device): New function.
20878
20879 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
20880 a character device instead of a block device.
20881
20882 * include/grub/util/getroot.h (grub_util_check_char_device): New
20883 prototype.
20884
20885 2009-04-11 David S. Miller <davem@davemloft.net>
20886
20887 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
20888 static libgcc.
20889 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
20890 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
20891 function, if present.
20892 (__bswapdi2): Likewise.
20893
20894 * include/grub/sparc64/ieee1275/boot.h: New file.
20895 * boot/sparc64/ieee1275/boot.S: Likewise.
20896 * boot/sparc64/ieee1275/diskboot.S: Likewise.
20897
20898 * kern/misc.c (grub_ltoa): New function.
20899 (grub_vsprintf): Use it to format 'long' integers.
20900
20901 2009-04-10 David S. Miller <davem@davemloft.net>
20902
20903 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
20904 slots are of type grub_ieee1275_cell_t.
20905 (grub_nand_read): Likewise.
20906 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
20907 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
20908 macros are used to compare values in arg/ret block of the call.
20909 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
20910 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
20911 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
20912 grub_ieee1275_instance_to_path, grub_ieee1275_write,
20913 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
20914 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
20915 grub_ieee1275_close, grub_ieee1275_set_property,
20916 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
20917 grub_ieee1275_cell_t.
20918 * kern/ieee1275/openfw.c (grub_map): Likewise.
20919 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
20920 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
20921
20922 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
20923 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
20924 (grub_devalias_iterate): Likewise.
20925
20926 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20927
20928 UFS improvements
20929
20930 * fs/ufs.c (INODE_NBLOCKS): new definition
20931 (struct grub_ufs_dirent): added fields for non-BSD dirents
20932 (grub_ufs_get_file_block): fixed double indirect handling
20933 (grub_ufs_lookup_symlink): use more robust way to determine whether
20934 symlink is inline
20935 (grub_ufs_find_file): support for non-BSD dirents
20936 (grub_ufs_dir): support for non-BSD dirents
20937
20938 2009-04-10 Bean <bean123ch@gnail.com>
20939
20940 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
20941 attribute, otherwise the size would be wrong for i386 platform.
20942
20943 * include/grub/pci.h (grub_pci_read_word): New inline function.
20944 (grub_pci_read_byte): Likewise.
20945 (grub_pci_write): Likewise.
20946 (grub_pci_write_word): Likewise.
20947 (grub_pci_write_byte): Likewise.
20948
20949 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
20950
20951 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
20952 (find_framebuf): Scan pci to locate the frame buffer address.
20953
20954 * commands/efi/fixvideo.c: New file.
20955
20956 * commands/efi/loadbios.c: Likewise.
20957
20958 * commands/memrw.c: Likewise.
20959
20960 * util/grub-dumpbios.in: Likewise.
20961
20962 * conf/common.rmk (grub-dumpbios): New utility.
20963 (pkglib_MODULES): New module memrw.mod.
20964 (memrw_mod_SOURCE): New macro.
20965 (memrw_mod_CFLAGS): Likewise.
20966 (memrw_mod_LDFLAGS): Likewise.
20967
20968 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
20969 fixvideo.mod.
20970 (loadbios_mod_SOURCE): New macro.
20971 (loadbios_mod_CFLAGS): Likewise.
20972 (loadbios_mod_LDFLAGS): Likewise.
20973 (fixvideo_mod_SOURCE): Likewise.
20974 (fixvideo_mod_CFLAGS): Likewise.
20975 (fixvideo_mod_LDFLAGS): Likewise.
20976
20977 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
20978 fixvideo.mod.
20979 (loadbios_mod_SOURCE): New macro.
20980 (loadbios_mod_CFLAGS): Likewise.
20981 (loadbios_mod_LDFLAGS): Likewise.
20982 (fixvideo_mod_SOURCE): Likewise.
20983 (fixvideo_mod_CFLAGS): Likewise.
20984 (fixvideo_mod_LDFLAGS): Likewise.
20985
20986 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
20987
20988 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
20989
20990 2009-04-07 David S. Miller <davem@davemloft.net>
20991
20992 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
20993 support for R_SPARC_OLO10 relocations. Fix compile warning for
20994 R_SPARC_WDISP30 case.
20995 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
20996
20997 2009-04-06 Pavel Roskin <proski@gnu.org>
20998
20999 * include/grub/misc.h (ARRAY_SIZE): New macro.
21000 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
21001 New macro.
21002 * loader/i386/linux.c (allocate_pages): Use free_pages().
21003 (grub_linux_unload): Don't use free_pages().
21004 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
21005 wrong index. Treat all other modes as text modes.
21006 (grub_cmd_linux): Initialize vid_mode unconditionally to
21007 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
21008
21009 * commands/help.c (print_command_help): Use cmd->prio, not
21010 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
21011
21012 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
21013
21014 Parttool
21015
21016 * parttool/pcpart.c: new file
21017 * commands/parttool.c: likewise
21018 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
21019 (parttool_mod_SOURCES): new variable
21020 (parttool_mod_CFLAGS): likewise
21021 (parttool_mod_LDFLAGS): likewise
21022 (pcpart_mod_SOURCES): likewise
21023 (pcpart_mod_CFLAGS): likewise
21024 (pcpart_mod_LDFLAGS): likewise
21025 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
21026 and parttool/pcpart.c
21027 * conf/i386-efi.rmk: likewise
21028 * conf/i386-ieee1275.rmk: likewise
21029 * conf/i386-pc.rmk: likewise
21030 * conf/powerpc-ieee1275.rmk: likewise
21031 * conf/sparc64-ieee1275.rmk: likewise
21032 * conf/x86_64-ieee1275.rmk: likewise
21033
21034 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
21035
21036 Support for mtime and further expandability of dir command
21037
21038 * include/grub/lib/datetime.h: moved to ...
21039 * include/grub/datetime.h: ... moved here and added
21040 declaration of grub_unixtime2datetime. All users updated
21041 * include/grub/fs.h: new syntax for dir and mtime functions in
21042 struct grub_fs
21043 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
21044 and GRUB_FSHELP_FLAGS_MASK
21045 * commands/ls.c (grub_ls_list_files): Write mtime in long format
21046 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
21047 (grub_ext2_mtime): new function
21048 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
21049 (grub_hfsplus_mtime): new function
21050 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
21051 (GRUB_UFS_ATTR_FILE): likewise
21052 (GRUB_UFS_ATTR_LNK): likewise
21053 (struct grub_ufs_sblock): new fields mtime
21054 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
21055 all users updated
21056 (grub_ufs_dir): mtime support
21057 (grub_ufs_mtime): new function
21058 * fs/affs.c (grub_affs_dir): use new dir syntax
21059 * fs/afs.c (grub_afs_dir): likewise
21060 * fs/cpio.c (grub_cpio_dir): likewise
21061 * fs/fat.c (grub_fat_find_dir): likewise
21062 * fs/hfs.c (grub_hfs_dir): likewise
21063 * fs/iso9660.c (grub_iso9660_dir): likewise
21064 * fs/jfs.c (grub_jfs_dir): likewise
21065 * fs/minix.c (grub_minix_dir): likewise
21066 * fs/ntfs.c (grub_ntfs_dir): likewise
21067 * fs/reiserfs.c (grub_reiserfs_dir): likewise
21068 * fs/sfs.c (grub_sfs_dir): likewise
21069 * fs/xfs.c (grub_xfs_dir): likewise
21070 * util/hostfs.c (grub_hostfs_dir): likewise
21071 * lib/datetime.c: moved to ...
21072 * normal/datetime.c: ... moved here
21073 (grub_unixtime2datetime): new function
21074 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
21075 * normal/completion.c (iterate_dir): use new dir syntax
21076 * normal/misc.c (grub_normal_print_device_info): tell the
21077 last modification time of a volume
21078 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
21079 * conf/common.rmk: added lib/datetime.c to ls.mod
21080 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
21081 (normal_mod_SOURCES): likewise
21082 (datetime_mod_SOURCES): Removed lib/datetime.c
21083 * conf/i386-efi.rmk: likewise
21084 * conf/i386-ieee1275.rmk: likewise
21085 * conf/i386-pc.rmk: likewise
21086 * conf/powerpc-ieee1275.rmk: likewise
21087 * conf/sparc64-ieee1275.rmk: likewise
21088 * conf/x86_64-efi.rmk: likewise
21089
21090 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
21091
21092 Trim trailing spaces in FAT label and support mtools-like labels
21093
21094 * fs/fat.c (grub_fat_iterate_dir): New function based
21095 on grub_fat_find_dir
21096 (grub_fat_find_dir): use grub_fat_iterate_dir
21097 (grub_fat_label): likewise
21098
21099 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
21100
21101 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
21102 and command.h
21103 remove extraneous kernel_elf_HEADERS
21104
21105 2009-04-04 Bean <bean123ch@gnail.com>
21106
21107 * include/grub/util/misc.h: Add dummy function fsync for mingw.
21108
21109 * util/misc.c: Likewise.
21110
21111 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
21112
21113 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
21114 instead of grub_printf.
21115
21116 2009-04-03 Robert Millan <rmh@aybabtu.com>
21117
21118 * loader/i386/linux.c (grub_linux_setup_video): Fill
21119 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
21120 values from `mode info' structure instead of hardcoded
21121 values.
21122
21123 2009-04-01 Pavel Roskin <proski@gnu.org>
21124
21125 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
21126 unused now.
21127 * genmk.rb: Likewise.
21128 * configure.ac: Likewise.
21129
21130 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
21131
21132 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
21133 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
21134
21135 2009-04-01 David S. Miller <davem@davemloft.net>
21136
21137 * normal/sparc64/setjmp.S: Fix setjmp implementation.
21138 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
21139 (grub_setjmp): Mark with 'returns_twice' attribute.
21140 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
21141 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
21142 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
21143
21144 2009-04-01 Robert Millan <rmh@aybabtu.com>
21145
21146 Reapply fix from 2008-07-28 which was accidentally reverted; also
21147 perform the same fix to a similar check in same function.
21148
21149 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
21150 with the same number are found, just use issue a warning with
21151 grub_dprintf(), as this error has been reported to be non-fatal.
21152
21153 2009-03-31 Pavel Roskin <proski@gnu.org>
21154
21155 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
21156 for cross-compilation.
21157
21158 2009-03-30 Robert Millan <rmh@aybabtu.com>
21159
21160 Fix i386-ieee1275 build.
21161
21162 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
21163 Remove declaration.
21164
21165 2009-03-30 Pavel Roskin <proski@gnu.org>
21166
21167 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
21168 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
21169 zero-terminated, rely only on the strlen value. Fix comparison
21170 of strings differing in length.
21171
21172 2009-03-30 Robert Millan <rmh@aybabtu.com>
21173
21174 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
21175 checking for abi version. Improve error messages on BIOS to notify
21176 user about `linux16' command.
21177
21178 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
21179
21180 Leak fixes
21181
21182 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
21183 in case of collision
21184 * disk/scsi.c (grub_scsi_open): free scsi in case of error
21185
21186 2009-03-29 Robert Millan <rmh@aybabtu.com>
21187
21188 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
21189 set `vid_mode' accordingly.
21190 (grub_linux_boot): Process `vid_mode' and set video mode.
21191
21192 2009-03-29 Robert Millan <rmh@aybabtu.com>
21193
21194 * util/grub.d/10_linux.in (linux_entry): New function.
21195 Factorize generation of Linux boot entries.
21196
21197 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
21198
21199 Make the format of Environment Block plain text. The boot loader
21200 part is not tested well yet.
21201
21202 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
21203 (buffer): Removed.
21204 (envblk): Likewise.
21205 (usage): Remove "info" and "clear". Add "unset". Update the
21206 description of "set", as this does not delete variables any
21207 longer.
21208 (create_envblk_file): Complete rewrite.
21209 (open_envblk_file): Likewise.
21210 (cmd_info): Removed.
21211 (cmd_list): Likewise.
21212 (cmd_set): Likewise.
21213 (cmd_clear): Likewise.
21214 (list_variables): New function.
21215 (write_envblk): Likewise.
21216 (set_variables): Likewise.
21217 (unset_variables): Likewise.
21218 (main): Complete rewrite.
21219
21220 * commands/loadenv.c (buffer): Removed.
21221 (envblk): Likewise.
21222 (open_envblk_file): New function.
21223 (read_envblk_file): Complete rewrite.
21224 (grub_cmd_load_env): Likewise.
21225 (grub_cmd_list_env): Likewise.
21226 (struct blocklist): New struct.
21227 (free_blocklists): New function.
21228 (check_blocklists): Likewise.
21229 (write_blocklists): Likewise.
21230 (grub_cmd_save_env): Complete rewrite.
21231
21232 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
21233 a plain text signature.
21234 (GRUB_ENVBLK_MAXLEN): Removed.
21235 (struct grub_envblk): Complete rewrite.
21236 (grub_envblk_find): Removed.
21237 (grub_envblk_insert): Likewise.
21238 (grub_envblk_open): New prototype.
21239 (grub_envblk_set): Likewise.
21240 (grub_envblk_delete): Put const to VALUE.
21241 (grub_envblk_iterate): Put const to NAME and VALUE.
21242 (grub_envblk_close): New prototype.
21243 (grub_envblk_buffer): New inline function.
21244 (grub_envblk_size): Likewise.
21245
21246 * lib/envblk.c: Include grub/mm.h.
21247 (grub_env_find): Removed.
21248 (grub_envblk_open): New function.
21249 (grub_envblk_close): Likewise.
21250 (escaped_value_len): Likewise.
21251 (find_next_line): Likewise.
21252 (grub_envblk_insert): Removed.
21253 (grub_envblk_set): New function.
21254 (grub_envblk_delete): Complete rewrite.
21255 (grub_envblk_iterate): Likewise.
21256
21257 2009-03-28 Robert Millan <rmh@aybabtu.com>
21258
21259 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
21260 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
21261 variables. Use 16-bit loader.
21262 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
21263 loader.
21264 * kern/i386/loader.S (grub_linux_boot): Rename to ...
21265 (grub_linux16_boot): ... this. Update all users.
21266 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
21267 (grub_linux_boot): ... this. Update all users.
21268
21269 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
21270 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
21271 commands to `linux16' and `initrd16'.
21272 (GRUB_MOD_FINI(linux)): Rename to ...
21273 (GRUB_MOD_FINI(linux16)): ... this.
21274
21275 2009-03-24 Pavel Roskin <proski@gnu.org>
21276
21277 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
21278 not just for compilation.
21279
21280 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
21281
21282 Move multiboot helper out of kernel
21283
21284 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
21285 `loader/i386/multiboot_helper.S'.
21286 * conf/i386-coreboot.rmk: Likewise
21287 * conf/i386-ieee1275.rmk: Likewise
21288
21289 * kern/i386/loader.S: Move multiboot helpers from here...
21290 * loader/i386/multiboot_helper.S: ...moved here
21291 * include/grub/i386/loader.h: Move declarations of multiboot
21292 helpers from here...
21293 * include/grub/i386/multiboot.h: ...moved here
21294 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
21295
21296 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
21297
21298 * kern/env.c (grub_env_context_open): Added an argument to specify
21299 whether a new context inherits exported variables from current
21300 one. This is useful when making a sandbox to interpret a config
21301 file.
21302 All callers updated.
21303
21304 * include/grub/env.h (grub_env_context_open): Updated the prototype.
21305
21306 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
21307
21308 * kern/env.c (grub_env_context_close): Fix memory leaks.
21309
21310 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
21311
21312 * normal/main.c (grub_normal_execute): Added an argument
21313 BATCH to specify if an interactive interface should be provided
21314 after reading a config file.
21315 All callers updated.
21316 (read_command_list): Prevent being executed twice.
21317 (read_fs_list): Likewise.
21318
21319 * include/grub/normal.h (grub_normal_execute): Updated the
21320 prototype.
21321
21322 2009-03-22 Pavel Roskin <proski@gno.org>
21323
21324 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
21325 _start.
21326 * kern/i386/pc/startup.S: Likewise.
21327 * kern/i386/efi/startup.S: Likewise.
21328 * kern/i386/ieee1275/startup.S: Likewise.
21329 * kern/i386/coreboot/startup.S: Likewise.
21330 * kern/x86_64/efi/startup.S: Likewise.
21331
21332 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
21333 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
21334 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
21335
21336 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
21337
21338 Bugfixes in multiboot for bugs uncovered by solaris kernel.
21339
21340 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
21341 limit detection.
21342 Use vaddr of correct segment for entry_point.
21343
21344 2009-03-21 Bean <bean123ch@gmail.com>
21345
21346 * commands/blocklist.c: Add include file <grub/command.h>, remove
21347 <grub/normal.h> and <grub/arg.h>.
21348 (grub_cmd_blocklist): Use the new command interface.
21349 (GRUB_MOD_INIT): Likewise.
21350 (GRUB_MOD_FINI): Likewise.
21351 * commands/boot.c: Likewise.
21352 * commands/cat.c: Likewise.
21353 * commands/cmp.c: Likewise.
21354 * commands/configfile.c: Likewise.
21355 * commands/crc.c: Likewise.
21356 * commands/echo.c: Likewise.
21357 * commands/halt.c: Likewise.
21358 * commands/handler.c: Likewise.
21359 * commands/hdparm.c: Likewise.
21360 * commands/help.c: Likewise.
21361 * commands/hexdump.c: Likewise.
21362 * commands/loadenv.c: Likewise.
21363 * commands/ls.c: Likewise.
21364 * commands/lsmmap.c: Likewise.
21365 * commands/lspci.c: Likewise.
21366 * commands/loadenv.c: Likewise.
21367 * commands/read.c: Likewise.
21368 * commands/reboot.c: Likewise.
21369 * commands/search.c: Likewise.
21370 * commands/sleep.c: Likewise.
21371 * commands/test.c: Likewise.
21372 * commands/usbtest.c: Likewise.
21373 * commands/videotest.c: Likewise.
21374 * commands/i386/cpuid.c: Likewise.
21375 * commands/i386/pc/halt.c: Likewise.
21376 * commands/i386/pc/play.c: Likewise.
21377 * commands/i386/pc/pxecmd.c: Likewise.
21378 * commands/i386/pc/vbeinfo.c: Likewise.
21379 * commands/i386/pc/vbetest.c: Likewise.
21380 * commands/ieee1275/suspend.c: Likewise.
21381 * disk/loopback.c: Likewise.
21382 * font/font_cmd.c: Likewise.
21383 * hello/hello.c: Likewise.
21384 * loader/efi/appleloader.c: Likewise.
21385 * loader/efi/chainloader.c: Likewise.
21386 * loader/i386/bsd.c: Likewise.
21387 * loader/i386/efi/linux.c: Likewise.
21388 * loader/i386/ieee1275/linux.c: Likewise.
21389 * loader/i386/linux.c: Likewise.
21390 * loader/i386/pc/chainloader.c: Likewise.
21391 * loader/i386/pc/linux.c: Likewise.
21392 * loader/powerpc/ieee1275/linux.c: Likewise.
21393 * loader/multiboot_loader.c: Likewise.
21394 * term/gfxterm.c: Likewise.
21395 * term/i386/pc/serial.c: Likewise.
21396 * term/terminfo.c: Likewise.
21397
21398 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
21399 * term/i386/pc/vga.c: Likewise.
21400 * video/readers/jpeg.c: Likewise.
21401 * video/readers/png.c: Likewise.
21402 * video/readers/tga.c: Likewise.
21403
21404 * util/grub-fstest (cmd_loopback): Removed.
21405 (cmd_blocklist): Likewise.
21406 (cmd_ls): Likewise.
21407 (grub_register_command): Likewise.
21408 (grub_unregister_command): Likewise.
21409 (execute_command): Use grub_command_find to locate command and execute
21410 it.
21411
21412 * include/grub/efi/chainloader.h: Removed.
21413 * loader/efi/chainloader_normal.c: Likewise.
21414 * loader/i386/bsd_normal.c: Likewise.
21415 * loader/i386/pc/chainloader_normal.c: Likewise.
21416 * loader/i386/pc/multiboot_normal.c: Likewise.
21417 * loader/linux_normal.c: Likewise.
21418 * loader/multiboot_loader_normal.c: Likewise.
21419 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
21420
21421 * gencmdlist.sh: Scan new registration command grub_register_extcmd
21422 and grub_register_command_p1.
21423
21424 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
21425 kern/command.c, lib/arg.c and commands/extcmd.c.
21426 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
21427 (minicmd_mod_SOURCES): New variable.
21428 (minicmd_mod_CFLAGS): Likewise.
21429 (minicmd_mod_LDFLAGS): Likewise.
21430 (extcmd_mod_SOURCES): Likewise.
21431 (extcmd_mod_CFLAGS): Likewise.
21432 (extcmd_mod_LDFLAGS): Likewise.
21433 (boot_mod_SOURCES): Removed.
21434 (boot_mod_CFLAGS): Likewise.
21435 (boot_mod_LDFLAGS): Likewise.
21436
21437 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
21438 kern/corecmd.c.
21439 (kernel_img_HEADERS): Add command.h.
21440 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
21441 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
21442 and lib/arg.c.
21443 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
21444 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
21445 remove the corresponding normal mode command.
21446 (normal_mod_SOURCES): Remove normal/arg.c.
21447 * conf/i386-coreboot.rmk: Likewise.
21448 * conf/i386-efi.rmk: Likewise.
21449 * conf/i386-ieee1275.rmk: Likewise.
21450 * conf/powerpc-ieee1275.rmk: Likewise.
21451 * conf/x86_64-efi.rmk: Likewise.
21452
21453 * include/grub/arg.h: Move from here ...
21454 * include/grub/lib/arg.h: ... to here.
21455
21456 * normal/arg.c: Move from here ...
21457 * lib/arg.c: ... to here.
21458
21459 * commands/extcmd.c: New file.
21460 * commands/minicmd.c: Likewise.
21461 * include/grub/command.h: Likewise.
21462 * include/grub/extcmd.h: Likewise.
21463 * kern/command.c: Likewise.
21464 * kern/corecmd.c: Likewise.
21465
21466 * kern/list.c (grub_list_iterate): Return int instead of void.
21467 (grub_list_insert): New function.
21468 (grub_prio_list_insert): Likewise.
21469
21470 * kern/rescue.c (grub_rescue_command): Removed.
21471 (grub_rescue_command_list): Likewise.
21472 (grub_rescue_register_command): Likewise.
21473 (grub_rescue_unregister_command): Likewise.
21474 (grub_rescue_cmd_boot): Move to minicmd.c
21475 (grub_rescue_cmd_help): Likewise.
21476 (grub_rescue_cmd_info): Likewise.
21477 (grub_rescue_cmd_boot): Likewise.
21478 (grub_rescue_cmd_testload): Likewise.
21479 (grub_rescue_cmd_dump): Likewise.
21480 (grub_rescue_cmd_rmmod): Likewise.
21481 (grub_rescue_cmd_lsmod): Likewise.
21482 (grub_rescue_cmd_exit): Likewise.
21483 (grub_rescue_print_devices): Moved to corecmd.c.
21484 (grub_rescue_print_files): Likewise.
21485 (grub_rescue_cmd_ls): Likewise.
21486 (grub_rescue_cmd_insmod): Likewise.
21487 (grub_rescue_cmd_set): Likewise.
21488 (grub_rescue_cmd_unset): Likewise.
21489 (attempt_normal_mode): Use grub_command_find to get normal module.
21490 (grub_enter_rescue_mode): Use grub_register_core_commands to register
21491 commands, remove grub_rescue_register_command calls.
21492
21493 * normal/command.c (grub_register_command): Removed.
21494 (grub_unregister_command): Likewise.
21495 (grub_command_find): Likewise.
21496 (grub_iterate_commands): Likewise.
21497 (rescue_command): Likewise.
21498 (export_command): Moved to corecmd.c.
21499 (set_command): Removed.
21500 (unset_command): Likewise.
21501 (insmod_command): Likewise.
21502 (rmmod_command): Likewise.
21503 (lsmod_command): Likewise.
21504 (grub_command_init): Likewise.
21505
21506 * normal/completion.c (iterate_command): Use cmd->prio to check for
21507 active command.
21508 (complete_arguments): Use grub_extcmd_t structure to find options.
21509 (grub_normal_do_completion): Change function grub_iterate_commands to
21510 grub_command_iterate.
21511
21512 * normal/execute.c (grub_script_execute_cmd): No need to parse
21513 argument here.
21514
21515 * normal/main.c (grub_dyncmd_dispatcher): New function.
21516 (read_command_list): Register unload commands as dyncmd.
21517 (grub_cmd_normal): Use new command interface, register rescue,
21518 unregister normal at entry, register normal, unregister rescue at exit.
21519
21520 * include/grub/list.h (grub_list_test_t): New type.
21521 (grub_list_iterate): Return int instead of void.
21522 (grub_list_insert): New function.
21523 (GRUB_AS_NAMED_LIST_P): New macro.
21524 (GRUB_AS_PRIO_LIST): Likewise.
21525 (GRUB_AS_PRIO_LIST_P): Likewise.
21526 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
21527 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
21528 (grub_prio_list): New structure.
21529 (grub_prio_list_insert): New function.
21530 (grub_prio_list_remove): New inline function.
21531
21532 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
21533 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
21534 (GRUB_COMMAND_FLAG_MENU): Likewise.
21535 (GRUB_COMMAND_FLAG_BOTH): Likewise.
21536 (GRUB_COMMAND_FLAG_TITLE): Likewise.
21537 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
21538 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
21539 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
21540 (grub_command): Likewise.
21541 (grub_register_command): Likewise.
21542 (grub_command_find): Likewise.
21543 (grub_iterate_commands): Likewise.
21544 (grub_command_init): Likewise.
21545 (grub_arg_parse): Likewise.
21546 (grub_arg_show_help): Likewise.
21547
21548 * include/grub/rescue.h (grub_rescue_register_command): Removed.
21549 (grub_rescue_unregister_command): Likewise.
21550
21551 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
21552 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
21553 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
21554
21555 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
21556 grub_rescue_cmd_initrd.
21557 * include/grub/i386/loader.h: Likewise.
21558 * include/grub/x86_64/loader.h: Likewise.
21559
21560 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
21561
21562 2009-03-21 Bean <bean123ch@gmail.com>
21563
21564 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
21565 instead of stat in mingw environment.
21566
21567 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
21568
21569 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
21570
21571 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
21572 AC_CONFIG_LINKS.
21573
21574 2009-03-21 Bean <bean123ch@gmail.com>
21575
21576 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
21577 out of range error.
21578
21579 2009-03-18 Michel Dänzer <michel@daenzer.net>
21580
21581 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
21582 checking inode flags for EXT4_EXTENTS_FLAG.
21583
21584 2009-03-18 Robert Millan <rmh@aybabtu.com>
21585
21586 * loader/i386/linux.c: Include `<grub/video.h>' and
21587 `<grub/i386/pc/vbe.h>'..
21588 (grub_linux_setup_video): New function. Loosely based on the EFI one.
21589 (grub_linux32_boot): Attempt to configure video settings with
21590 grub_linux_setup_video().
21591 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
21592 to avoid grub_console_fini() which would step out of graphical mode
21593 unconditionally.
21594
21595 2009-03-14 Robert Millan <rmh@aybabtu.com>
21596
21597 Fix build on powerpc.
21598 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
21599
21600 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
21601
21602 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
21603 background image command.
21604
21605 2009-03-12 Colin D Bennett <colin@gibibit.com>
21606
21607 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
21608 (grub_gfxterm_putchar): Extract pairs of identical calls to
21609 draw_cursor out of conditional blocks.
21610
21611 2009-03-11 Pavel Roskin <proski@gnu.org>
21612
21613 * fs/hfs.c (grub_hfs_strncasecmp): New function.
21614 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
21615
21616 2009-03-11 Robert Millan <rmh@aybabtu.com>
21617
21618 * loader/i386/multiboot_elfxx.c
21619 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
21620
21621 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
21622
21623 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
21624 `kern/handler.c'.
21625
21626 2009-03-11 Robert Millan <rmh@aybabtu.com>
21627
21628 * loader/i386/multiboot.c (code_size): New variable.
21629 (grub_multiboot): Define offsets by adding to `code_size' rather
21630 than subtracting from `grub_multiboot_payload_size'. Provide
21631 4-byte alignment to MBI and others by increasing
21632 `boot_loader_name_length' appropriately.
21633
21634 * loader/i386/multiboot_elfxx.c
21635 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
21636
21637 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
21638
21639 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
21640 `fs/ext2.c'.
21641
21642 2009-03-08 Robert Millan <rmh@aybabtu.com>
21643
21644 Make loader/i386/linux.c usable on i386-pc again.
21645
21646 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
21647 memory to heap.
21648 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
21649 `#error' stanza.
21650
21651 2009-03-07 Bean <bean123ch@gmail.com>
21652
21653 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
21654 allocation.
21655
21656 2009-03-06 Robert Millan <rmh@aybabtu.com>
21657
21658 Fix display issue on terminals with screen size other than 80x25
21659 (e.g. gfxterm with resolution higher than 640x480).
21660
21661 * normal/main.c (grub_normal_init_page): Display title text in a
21662 position relative to the center of the terminal instead of relying
21663 on a hardcoded offset.
21664
21665 2009-03-04 Robert Millan <rmh@aybabtu.com>
21666
21667 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
21668 installed.
21669
21670 * Makefile.in (host_kernel): New variable.
21671 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
21672 scripts instead of just the windows one.
21673 * configure.ac: Initialize and AC_SUBST `host_kernel'.
21674
21675 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
21676
21677 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
21678 `kern/handler.c'.
21679 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
21680 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
21681 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
21682 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21683 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21684 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21685
21686 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
21687
21688 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
21689 or if there's no space for the disk label and print the partition number on a
21690 invalid magic.
21691
21692 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
21693
21694 * util/misc.c: Include <time.h>.
21695 (grub_millisleep): New function.
21696
21697 2009-03-04 Bean <bean123ch@gmail.com>
21698
21699 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
21700 another option -mno-red-zone.
21701
21702 * commands/handler.c: Change module description.
21703
21704 * kern/handler.c: Add missing space at the end of description line.
21705
21706 * kern/list.c: Likewise.
21707
21708 2009-03-03 Robert Millan <rmh@aybabtu.com>
21709
21710 Move more components to the relocation area, and fix mbi pointer
21711 handling to use the destination rather than the origin (thanks to
21712 Vladimir Serbinenko for spotting).
21713
21714 * loader/i386/multiboot.c (mbi_dest): New variable.
21715 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
21716 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
21717 relocation area.
21718
21719 2009-03-01 Bean <bean123ch@gmail.com>
21720
21721 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
21722 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
21723 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
21724 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
21725
21726 * loader/i386/efi/linux.c (acpi_guid): New variable.
21727 (acpi_guid): Likewise.
21728 (EBDA_SEG_ADDR): New constant.
21729 (LOW_MEM_ADDR): Likewise.
21730 (FAKE_EBDA_SEG): Likewise.
21731 (fake_bios_data): New function.
21732 (grub_linux_boot): Call fake_bios_data.
21733
21734 2009-03-01 Bean <bean123ch@gmail.com>
21735
21736 * commands/terminal.c: Removed.
21737
21738 * commands/handler.c: New file.
21739
21740 * include/grub/list.h: Likewise.
21741
21742 * include/grub/handler.h: Likewise.
21743
21744 * kern/list.c: Likewise.
21745
21746 * kern/handler.c: Likewise.
21747
21748 * kern/term.h: Include header file <grub/handler.h>.
21749 (grub_term_input): Move next field to the beginning.
21750 (grub_term_output): Likewise.
21751 (grub_term_input_class): New variable.
21752 (grub_term_output_class): Likewise.
21753 (grub_term_register_input): Changed to inline function.
21754 (grub_term_register_output): Likewise.
21755 (grub_term_unregister_input): Likewise.
21756 (grub_term_unregister_output): Likewise.
21757 (grub_term_set_current_input): Likewise.
21758 (grub_term_set_current_output): Likewise.
21759 (grub_term_get_current_input): Likewise.
21760 (grub_term_get_current_output): Likewise.
21761 (grub_term_iterate_input): Removed.
21762 (grub_term_iterate_output): Likewise.
21763
21764 * kern/term.c (grub_term_list_input): Removed.
21765 (grub_term_list_output): Likewise.
21766 (grub_term_input_class): New variable.
21767 (grub_term_output_class): Likewise.
21768 (grub_cur_term_input): Change variable as macro.
21769 (grub_cur_term_output): Likewise.
21770 (grub_term_register_input): Removed.
21771 (grub_term_register_output): Likewise.
21772 (grub_term_unregister_input): Likewise.
21773 (grub_term_unregister_output): Likewise.
21774 (grub_term_set_current_input): Likewise.
21775 (grub_term_set_current_output): Likewise.
21776 (grub_term_iterate_input): Likewise.
21777 (grub_term_iterate_output): Likewise.
21778 (grub_term_get_current_input): Likewise.
21779 (grub_term_get_current_output): Likewise.
21780
21781 * util/grub-editenv.c: Include header file <grub/handler.h>.
21782 (grub_term_get_current_input): Removed.
21783 (grub_term_get_current_output): Likewise.
21784 (grub_term_input_class): New variable.
21785 (grub_term_output_class): Likewise.
21786
21787 * util/grub-fstest.c (grub_term_get_current_input): Removed.
21788 (grub_term_get_current_output): Likewise.
21789 (grub_term_input_class): New variable.
21790 (grub_term_output_class): Likewise.
21791
21792 * util/grub-probe.c (grub_term_get_current_input): Removed.
21793 (grub_term_get_current_output): Likewise.
21794 (grub_term_input_class): New variable.
21795 (grub_term_output_class): Likewise.
21796
21797 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
21798 (grub_term_get_current_output): Likewise.
21799 (grub_term_input_class): New variable.
21800 (grub_term_output_class): Likewise.
21801
21802 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
21803 (terminal_mod_SOURCES): Likewise.
21804 (terminal_mod_CFLAGS): Likewise.
21805 (terminal_mod_LDFLAGS): Likewise.
21806
21807 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
21808 handler.c.
21809 (kernel_img_SOURCES): Add list.c and handler.c.
21810 (kernel_img_HEADERS): Add list.h and handler.h.
21811
21812 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
21813 handler.c.
21814 (kernel_mod_SOURCES): Add list.c and handler.c.
21815 (kernel_mod_HEADERS): Add list.h and handler.h.
21816
21817 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
21818 handler.c.
21819 (kernel_elf_SOURCES): Add list.c and handler.c.
21820 (kernel_elf_HEADERS): Add list.h and handler.h.
21821
21822 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
21823 handler.c.
21824 (kernel_elf_SOURCES): Add list.c and handler.c.
21825 (kernel_elf_HEADERS): Add list.h and handler.h.
21826
21827 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
21828 handler.c.
21829 (kernel_mod_SOURCES): Add list.c and handler.c.
21830 (kernel_mod_HEADERS): Add list.h and handler.h.
21831
21832 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
21833 handler.c.
21834 (kernel_elf_SOURCES): Add list.c and handler.c.
21835 (kernel_elf_HEADERS): Add list.h and handler.h.
21836
21837 2009-02-27 Robert Millan <rmh@aybabtu.com>
21838
21839 Factorize elf32 / elf64 code in Multiboot loader. This will
21840 prevent it from getting out of sync again.
21841
21842 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
21843 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
21844 grub_multiboot_load_elf64): Move from here ...
21845 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
21846 grub_multiboot_load_elf): ... to here (new file).
21847
21848 2009-02-27 Robert Millan <rmh@aybabtu.com>
21849
21850 * util/grub.d/10_linux.in: Rename "single-user mode" to
21851 "recovery mode".
21852
21853 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
21854
21855 Don't leak in SCSI code.
21856 * disk/scsi.c (grub_scsi_close): free `scsi'.
21857
21858 2009-02-27 Robert Millan <rmh@aybabtu.com>
21859
21860 * loader/i386/pc/multiboot.c: Move from here ...
21861 * loader/i386/multiboot.c: ... to here. Update all users.
21862
21863 2009-02-27 Robert Millan <rmh@aybabtu.com>
21864
21865 Patch from Alexandre Bique <bique.alexandre@gmail.com>
21866 * util/i386/pc/grub-setup.c (setup): Fix directory path.
21867
21868 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
21869
21870 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
21871 b-tree.
21872
21873 2009-02-27 Robert Millan <rmh@aybabtu.com>
21874
21875 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
21876 `0x' qualifier as 0 when base is specified as parameter).
21877
21878 2009-02-24 Bean <bean123ch@gmail.com>
21879
21880 * configure.ac: Check for -mcmodel=large in x86_64 target.
21881
21882 * include/grub/efi/api.h (efi_call_10): New macro.
21883 (efi_wrap_10): New function.
21884
21885 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
21886 (GRUB_PE32_REL_BASED_HIGH): Likewise.
21887 (GRUB_PE32_REL_BASED_LOW): Likewise.
21888 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
21889 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
21890 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
21891 (GRUB_PE32_REL_BASED_SECTION): Likewise.
21892 (GRUB_PE32_REL_BASED_REL): Likewise.
21893 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
21894 (GRUB_PE32_REL_BASED_DIR64): Likewise.
21895 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
21896
21897 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
21898 issue.
21899
21900 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
21901 (efi_wrap_10): New function.
21902
21903 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
21904
21905 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
21906 MB/MBP model (NV chipset).
21907 (devdata_devs): Add devpath_5 to the list.
21908
21909 * load/i386/efi/linux.c (video_base): Remove variable.
21910 (RGB_MASK): New macro.
21911 (RGB_MAGIC): Likewise.
21912 (LINE_MIN): Likewise.
21913 (LINE_MAX): Likewise.
21914 (FBTEST_STEP): Likewise.
21915 (FBTEST_COUNT): Likewise.
21916 (fb_list): New variable.
21917 (grub_find_video_card): Remove function.
21918 (find_framebuf): New function.
21919 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
21920 line length.
21921
21922 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
21923 problem for x86_64.
21924
21925 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
21926
21927 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
21928
21929 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
21930 coding tool name.
21931
21932 2009-02-22 Robert Millan <rmh@aybabtu.com>
21933
21934 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
21935 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
21936 in our relocation, instead of using it directly from heap. Also
21937 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
21938
21939 2009-02-21 Robert Millan <rmh@aybabtu.com>
21940
21941 Implement USB keyboard support (based on patch by Marco Gerards)
21942
21943 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
21944 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
21945 (usb_keyboard_mod_LDFLAGS): New variables.
21946
21947 * term/usb_keyboard.c: New file.
21948
21949 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
21950
21951 Corrected wrong declaration
21952
21953 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
21954
21955 2009-02-14 Christian Franke <franke@computer.org>
21956
21957 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
21958 (grub_lspci_iter): Print class code and programming interface byte.
21959
21960 2009-02-14 Christian Franke <franke@computer.org>
21961
21962 * gendistlist.sh: Ignore `.svn' directories.
21963
21964 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
21965
21966 * fs/fat.c: Add 2009 to Copyright line.
21967
21968 2009-02-14 Christian Franke <franke@computer.org>
21969
21970 * commands/hdparm.c: New file. Provides `hdparm' command
21971 which sends ATA commands via grub_disk_ata_pass_through ().
21972
21973 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
21974
21975 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
21976 and <grub/cpu/io.h> to include/grub/ata.h.
21977 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
21978 (GRUB_CDROM_SECTOR_SIZE): Remove.
21979 (GRUB_ATA_*): Move to include/grub/ata.h.
21980 (GRUB_ATAPI_*): Likewise.
21981 (enum grub_ata_commands): Likewise.
21982 (enum grub_ata_timeout_milliseconds): Likewise.
21983 (struct grub_ata_device): Likewise.
21984 (grub_ata_regset): Likewise.
21985 (grub_ata_regget): Likewise.
21986 (grub_ata_regset2): Likewise.
21987 (grub_ata_regget2): Likewise.
21988 (grub_ata_check_ready): Likewise.
21989 (grub_ata_wait_not_busy): Remove static, exported in
21990 include/grub/ata.h.
21991 (grub_ata_wait_drq): Likewise.
21992 (grub_ata_pio_read): Likewise.
21993
21994 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
21995 function for hdparm.mod.
21996
21997 * include/grub/ata.h: New file, contains declarations from
21998 disk/ata.c.
21999 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
22000
22001 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
22002 (grub_disk_ata_pass_through): New exported variable.
22003
22004 * kern/disk.c (grub_disk_ata_pass_through): New variable.
22005
22006 2009-02-13 Colin D Bennett <colin@gibibit.com>
22007
22008 Support multiple fallback entries, and provide an API to support
22009 executing default+fallback menu entries. Renamed the `terminal' menu
22010 viewer to `text'.
22011
22012 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
22013 variable declaration.
22014 (grub_menu_execute_callback): New structure declaration.
22015 (grub_menu_execute_callback_t): New typedef.
22016 (grub_menu_execute_with_fallback): New function declaration.
22017 (grub_menu_get_entry): Likewise.
22018 (grub_menu_get_timeout): Likewise.
22019 (grub_menu_set_timeout): Likewise.
22020
22021 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
22022
22023 * normal/menu.c (grub_wait_after_message): Moved to
22024 `normal/menu_text.c'.
22025 (draw_border): Likewise.
22026 (print_message): Likewise.
22027 (print_entry): Likewise.
22028 (print_entries): Likewise.
22029 (grub_menu_init_page): Likewise.
22030 (get_entry_number): Likewise.
22031 (print_timeout): Likewise.
22032 (run_menu): Likewise.
22033 (grub_menu_execute_entry): Likewise.
22034 (show_text_menu): Likewise.
22035 (get_and_remove_first_entry_number): New function.
22036 (grub_menu_execute_with_fallback): Likewise.
22037 (get_entry): Renamed to ...
22038 (grub_menu_get_entry): .. this and made it global.
22039 (get_timeout): Renamed to ...
22040 (grub_menu_get_timeout): ... this and made it global.
22041 (set_timeout): Renamed to ...
22042 (grub_menu_set_timeout): ... this and made it global.
22043 (grub_normal_terminal_menu_viewer): Renamed to ...
22044 (grub_normal_text_menu_viewer): ... this.
22045
22046 * normal/menu_text.c: New file. Extracted text-menu-specific code
22047 from normal/menu.c.
22048
22049 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
22050 (normal_mod_SOURCES): Likewise.
22051
22052 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
22053 (normal_mod_SOURCES): Likewise.
22054
22055 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22056 (normal_mod_SOURCES): Likewise.
22057
22058 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
22059 (normal_mod_SOURCES): Likewise.
22060
22061 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22062 (normal_mod_SOURCES): Likewise.
22063
22064 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22065 (normal_mod_SOURCES): Likewise.
22066
22067 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
22068 (normal_mod_SOURCES): Likewise.
22069
22070 2009-02-11 Robert Millan <rmh@aybabtu.com>
22071
22072 * util/grub.d/00_header.in: Update old reference to `font' command.
22073
22074 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
22075
22076 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
22077
22078 Based on patch from Javier Martín.
22079
22080 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
22081
22082 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
22083 to avoid false positives with FAT.
22084 (grub_fstest_SOURCES): Likewise.
22085 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
22086 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
22087 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22088 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
22089 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22090 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22091
22092 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
22093
22094 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
22095 bpb.version_specific.fat12_or_fat16.fstype and
22096 bpb.version_specific.fat32.fstype.
22097
22098 2009-02-08 Robert Millan <rmh@aybabtu.com>
22099
22100 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
22101
22102 2009-02-08 Robert Millan <rmh@aybabtu.com>
22103
22104 * Makefile.in (host_os, host_cpu): New variables.
22105 (target_os): Remove. Update all users.
22106
22107 2009-02-08 Marco Gerards <marco@gnu.org>
22108
22109 * Makefile.in (enable_grub_emu_usb): New variable.
22110 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
22111 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
22112 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
22113 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
22114 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
22115 `usbtest.mod' and `usbms.mod'.
22116 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
22117 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
22118 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
22119 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
22120 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
22121 variables.
22122
22123 * disk/usbms.c: New file.
22124
22125 * include/grub/usb.h: Likewise.
22126
22127 * include/grub/usbtrans.h: Likewise.
22128
22129 * include/grub/usbdesc.h: Likewise.
22130
22131 * bus/usb/usbtrans.c: Likewise.
22132
22133 * bus/usb/ohci.c: Likewise.
22134
22135 * bus/usb/uhci.c: Likewise.
22136
22137 * bus/usb/usbhub.c: Likewise.
22138
22139 * bus/usb/usb.c: Likewise.
22140
22141 * commands/usbtest.c: Likewise.
22142
22143 * util/usb.c: Likewise.
22144
22145 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
22146
22147 * configure.ac: Test for libusb presence.
22148
22149 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
22150
22151 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
22152
22153 * kern/mm.c: Add more comments.
22154
22155 2009-02-08 Robert Millan <rmh@aybabtu.com>
22156
22157 Patch from Javier Martín.
22158 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
22159 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
22160
22161 2009-02-08 Robert Millan <rmh@aybabtu.com>
22162
22163 * fs/cpio.c: Split tar functionality to ...
22164 * fs/tar.c: ... here (new file). Update all users.
22165
22166 2009-02-07 Robert Millan <rmh@aybabtu.com>
22167
22168 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
22169 backward-incompatible features.
22170
22171 Based on patch from Javier Martín, with some adjustments.
22172
22173 2009-02-07 Michael Scherer <misc@mandriva.org>
22174
22175 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
22176
22177 2009-02-07 Robert Millan <rmh@aybabtu.com>
22178
22179 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
22180 position of `disk/lvm.c' to ensure grub_init_all() always picks it
22181 after the RAID stuff.
22182
22183 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
22184
22185 Fixes problem when running vbetest command as reported by
22186 Vladimir Serbinenko <phcoder@gmail.com>.
22187
22188 * (grub_vbe_set_video_mode): Fixed problem with text modes.
22189
22190 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
22191
22192 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
22193 /dev/md/NpN style mdraid devices.
22194
22195 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
22196
22197 * util/unifont2pff.rb: Remove.
22198
22199 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
22200
22201 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
22202 `#'.
22203
22204 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
22205
22206 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
22207 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
22208 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
22209 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
22210 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22211 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22212 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22213
22214 2009-02-02 Christian Franke <franke@computer.org>
22215
22216 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
22217
22218 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
22219
22220 * INSTALL: Note that we now require at least autoconf 2.59 and
22221 that LZO is optional.
22222
22223 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
22224
22225 Base on patch on bug #24154 created by Tomas Tintera
22226 <trosos@seznam.cz>.
22227
22228 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
22229
22230 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
22231
22232 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
22233 <bero@arklinux.org>.
22234
22235 * normal/parser.y (script_init): Add missing semicolon.
22236
22237 2009-01-31 Colin D Bennett <colin@gibibit.com>
22238
22239 * normal/main.c: Add include to grub/menu_viewer.h.
22240 (free_menu_entry_classes): Added.
22241 (grub_normal_menu_addentry): Added class property handling.
22242 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
22243 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
22244
22245 * normal/menu_viewer.c: New file.
22246
22247 * normal/menu.c (run_menu_entry): Renamed to ...
22248 (grub_menu_execute_entry): ... this and made it as global.
22249 (grub_menu_run): Renamed to ...
22250 (show_text_menu): ... this and made it local.
22251 (show_text_menu): Adapt to new function names.
22252 (grub_normal_terminal_menu_viewer): New global variable.
22253
22254 * include/grub/menu.h: New file.
22255
22256 * include/grub/menu_viewer.h: New file.
22257
22258 * include/grub/normal.h: Added include to grub/menu.h.
22259 (grub_menu_entry): Moved to include/grub/menu.h.
22260 (grub_menu_entry_t): Likewise.
22261 (grub_menu): Likewise.
22262 (grub_menu_t): Likewise.
22263 (grub_normal_terminal_menu_viewer): Added.
22264 (grub_menu_execute_entry): Likewise.
22265 (grub_menu_run): Removed.
22266
22267 * DISTLIST: Added include/grub/menu.h.
22268 Added include/grub/menu_viewer.h.
22269 Added normal/menu_viewer.c.
22270
22271 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
22272
22273 * normal/execute.c (grub_script_execute_menuentry): Changed to use
22274 arglist for menutitle arguments.
22275
22276 * normal/main.c (grub_normal_menu_addentry): Likewise.
22277
22278 * normal/parser.y (menuentry): Likewise.
22279
22280 * normal/script.c (grub_script_create_cmdmenu): Likewise.
22281
22282 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
22283 (grub_script_create_cmdmenu): Likewise.
22284
22285 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
22286
22287 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
22288 changes.
22289
22290 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
22291
22292 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
22293
22294 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
22295
22296 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
22297
22298 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
22299
22300 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
22301
22302 2009-01-30 Christian Franke <franke@computer.org>
22303
22304 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
22305 in option help text.
22306
22307 2009-01-27 Pavel Roskin <proski@gnu.org>
22308
22309 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
22310
22311 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
22312
22313 * commands/lsmmap.c: Add include to grub/machine/memory.h.
22314
22315 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
22316
22317 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
22318 unregister function.
22319
22320 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
22321
22322 * disk/scsi.c (grub_scsi_read): Fix sign problem.
22323
22324 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
22325
22326 * util/grub-mkfont.c (usage): Fix typo.
22327
22328 * util/elf/grub-mkimage.c (load_modules): Fix warning.
22329
22330 2009-01-26 Daniel Mierswa <impulze@impulze.org>
22331
22332 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
22333
22334 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
22335
22336 * kern/misc.c (grub_strcasecmp): New function.
22337 (grub_strcasecmp): Use grub_size_t instead of int for length.
22338 Fix return value.
22339 * include/grub/misc.h: Update function prototypes.
22340
22341 2009-01-26 Robert Millan <rmh@aybabtu.com>
22342
22343 * configure.ac: Fix cross-compilation check.
22344
22345 2009-01-22 Christian Franke <franke@computer.org>
22346
22347 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
22348 (precision) digit string. Allow `.format2' without `format1' (width).
22349 Limit input chars for `%s' output to `format2' if specified. This is
22350 compatible with standard printf ().
22351
22352 2009-01-22 Christian Franke <franke@computer.org>
22353
22354 * disk/ata.c (grub_ata_wait_status): Replace by ...
22355 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
22356 other status bits may be invalid while BSY is asserted.
22357 (grub_ata_check_ready): New function.
22358 (grub_ata_cmd): Removed.
22359 (grub_ata_wait_drq): New function.
22360 (grub_ata_strncpy): Remove inline.
22361 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
22362 and error check now done by grub_ata_wait_drq ().
22363 (grub_ata_pio_write): Likewise.
22364 (grub_atapi_identify): Set DEV before check for !BSY. Use
22365 grub_ata_wait_drq () to wait for data.
22366 (grub_ata_device_initialize): Add status register check to
22367 detect missing SATA slave devices. Add debug messages.
22368 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
22369 (grub_atapi_packet): Set DEV before check for !BSY. Replace
22370 transfer loop by grub_ata_pio_write ().
22371 (grub_ata_identify): Set DEV before check for !BSY. Use
22372 grub_ata_wait_drq () to wait for data.
22373 (grub_ata_setaddress): Set DEV before check for !BSY.
22374 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
22375 read/write in one loop. Fix invalid command on write. Fix incomplete
22376 command on (size % batch) == 0. Add missing error check after write of
22377 last block. Add debug messages.
22378 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
22379
22380 2009-01-19 Christian Franke <franke@computer.org>
22381
22382 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
22383 (GRUB_ATAPI_IREASON_*): Likewise.
22384 (grub_ata_pio_write): Fix timeout error return.
22385 (grub_atapi_identify): Add grub_ata_wait () after cmd.
22386 (grub_atapi_wait_drq): New function.
22387 (grub_atapi_packet): New parameter `size'.
22388 Use grub_atapi_wait_drq () and direct write instead of
22389 grub_ata_pio_write ().
22390 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
22391 reads the number of bytes requested by the device for each DRQ
22392 assertion.
22393 (grub_atapi_write): Remove old implementation, return not
22394 implemented instead.
22395
22396 2009-01-19 Christian Franke <franke@computer.org>
22397
22398 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
22399 of 512 to calculate data size.
22400 (grub_scsi_read12): Likewise.
22401 (grub_scsi_write10): Likewise.
22402 (grub_scsi_write12): Likewise.
22403 (grub_scsi_read): Adjust size according to blocksize.
22404 Add checks for invalid blocksize and unaligned transfer.
22405
22406 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
22407
22408 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
22409
22410 * term/gfxterm.c (write_char): Fix background rendering for wide
22411 width glyphs.
22412
22413 2009-01-19 Robert Millan <rmh@aybabtu.com>
22414
22415 * config.guess: Update to latest version from config git.
22416 * config.sub: Likewise.
22417
22418 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
22419
22420 * Makefile.in: Change font compilation to use new grub-mkfont instead
22421 of java version.
22422
22423 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
22424 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
22425 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
22426 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
22427 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
22428 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
22429 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
22430 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
22431 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
22432
22433 2009-01-16 Christian Franke <franke@computer.org>
22434
22435 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
22436 (enum grub_ata_timeout_milliseconds): New enum.
22437 (grub_ata_wait_status): Add parameter milliseconds.
22438 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
22439 recovery from timed-out commands.
22440 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
22441 return grub_errno instead of REG_ERROR.
22442 (grub_ata_pio_write): Add parameter milliseconds.
22443 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
22444 Pass milliseconds to grub_ata_wait_status () and
22445 grub_ata_pio_read ().
22446 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
22447 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
22448 grub_ata_wait_status (). Fix IDENTIFY timeout check.
22449 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
22450 It is not suitable for device detection, because DEV bit is ignored,
22451 the command may run too long, and not all devices set the signature
22452 properly.
22453 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
22454 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
22455 Fix device selection, DEV bit must be set first to address the registers
22456 of the correct device.
22457 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
22458 grub_ata_pio_read/write ().
22459 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
22460 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
22461
22462 2009-01-13 Carles Pina i Estany <carles@pina.cat>
22463
22464 * util/grub-editenv.c (main): Use fseeko(), not fseek().
22465
22466 2009-01-13 Bean <bean123ch@gmail.com>
22467
22468 * util/grub-mkfont.c (write_font): forget to remove some debug code.
22469
22470 2009-01-13 Bean <bean123ch@gmail.com>
22471
22472 * Makefile.in: (enable_grub_mkfont): New variable.
22473 (freetype_cflags): Likewise.
22474 (freetype_libs): Likewise.
22475
22476 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
22477 (grub_mkfont_SOURCES): New variable.
22478 (grub_mkfont_CFLAGS): Likewise.
22479 (grub_mkfont_LDFLAGS): Likewise.
22480
22481 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
22482 library if `--enable-grub-mkfont' is requested.
22483 (enable_grub_mkfont): New variable.
22484 (freetype_cflags): Likewise.
22485 (freetype_libs): Likewise.
22486
22487 * util/grub-mkfont.c: New file.
22488
22489 2009-01-12 Christian Franke <franke@computer.org>
22490
22491 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
22492 mode check. Fix setting of compat_use[].
22493
22494 2009-01-10 Robert Millan <rmh@aybabtu.com>
22495
22496 Update a few copyright years which we forgot to do in 2008 (only for
22497 files whose changes made in 2008 were copyright-significant)
22498
22499 * Makefile.in: Add 2008 to Copyright line.
22500 * disk/ieee1275/ofdisk.c: Likewise.
22501 * disk/efi/efidisk.c: Likewise.
22502 * kern/dl.c: Likewise.
22503 * kern/sparc64/ieee1275/init.c: Likewise.
22504 * kern/mm.c: Likewise.
22505 * kern/efi/mm.c: Likewise.
22506 * boot/i386/pc/boot.S: Likewise.
22507 * genfslist.sh: Likewise.
22508 * fs/iso9660.c: Likewise.
22509 * fs/hfs.c: Likewise.
22510 * fs/jfs.c: Likewise.
22511 * fs/minix.c: Likewise.
22512 * fs/ufs.c: Likewise.
22513 * gensymlist.sh.in: Likewise.
22514 * genkernsyms.sh.in: Likewise.
22515 * include/grub/misc.h: Likewise.
22516 * include/grub/types.h: Likewise.
22517 * include/grub/symbol.h: Likewise.
22518 * include/grub/elf.h: Likewise.
22519 * include/grub/kernel.h: Likewise.
22520 * include/grub/disk.h: Likewise.
22521 * include/grub/dl.h: Likewise.
22522 * include/grub/i386/linux.h: Likewise.
22523 * include/grub/i386/pc/biosdisk.h: Likewise.
22524 * include/grub/efi/api.h: Likewise.
22525 * include/grub/efi/pe32.h: Likewise.
22526 * include/grub/util/misc.h: Likewise.
22527 * normal/execute.c: Likewise.
22528 * normal/arg.c: Likewise.
22529 * normal/completion.c: Likewise.
22530 * normal/lexer.c: Likewise.
22531 * normal/parser.y: Likewise.
22532 * normal/misc.c: Likewise.
22533 * commands/i386/pc/vbeinfo.c: Likewise.
22534 * commands/hexdump.c: Likewise.
22535 * commands/terminal.c: Likewise.
22536 * commands/ls.c: Likewise.
22537 * commands/help.c: Likewise.
22538 * partmap/pc.c: Likewise.
22539 * loader/efi/chainloader.c: Likewise.
22540 * loader/multiboot_loader.c: Likewise.
22541 * loader/i386/pc/multiboot2.c: Likewise.
22542 * term/efi/console.c: Likewise.
22543 * term/i386/pc/serial.c: Likewise.
22544 * util/lvm.c: Likewise.
22545 * util/console.c: Likewise.
22546 * util/i386/efi/grub-mkimage.c: Likewise.
22547 * util/raid.c: Likewise.
22548
22549 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
22550
22551 * commands/videotest.c: Removed include to grub/machine/memory.h.
22552
22553 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
22554 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
22555 (video_mod_SOURCES): Removed.
22556 (video_mod_CFLAGS): Likewise.
22557 (video_mod_LDFLAGS): Likewise.
22558 (gfxterm_mod_SOURCES): Likewise.
22559 (gfxterm_mod_CFLAGS): Likewise.
22560 (gfxterm_mod_LDFLAGS): Likewise.
22561 (videotest_mod_SOURCES): Likewise.
22562 (videotest_mod_CFLAGS): Likewise.
22563 (videotest_mod_LDFLAGS): Likewise.
22564 (bitmap_mod_SOURCES): Likewise.
22565 (bitmap_mod_CFLAGS): Likewise.
22566 (bitmap_mod_LDFLAGS): Likewise.
22567 (tga_mod_SOURCES): Likewise.
22568 (tga_mod_CFLAGS): Likewise.
22569 (tga_mod_LDFLAGS): Likewise.
22570 (jpeg_mod_SOURCES): Likewise.
22571 (jpeg_mod_CFLAGS): Likewise.
22572 (jpeg_mod_LDFLAGS): Likewise.
22573 (png_mod_SOURCES): Likewise.
22574 (png_mod_CFLAGS): Likewise.
22575 (png_mod_LDFLAGS): Likewise.
22576
22577 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
22578 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
22579 (video_mod_SOURCES): Added.
22580 (video_mod_CFLAGS): Likewise.
22581 (video_mod_LDFLAGS): Likewise.
22582 (videotest_mod_SOURCES): Likewise.
22583 (videotest_mod_CFLAGS): Likewise.
22584 (videotest_mod_LDFLAGS): Likewise.
22585 (bitmap_mod_SOURCES): Likewise.
22586 (bitmap_mod_CFLAGS): Likewise.
22587 (bitmap_mod_LDFLAGS): Likewise.
22588 (tga_mod_SOURCES): Likewise.
22589 (tga_mod_CFLAGS): Likewise.
22590 (tga_mod_LDFLAGS): Likewise.
22591 (jpeg_mod_SOURCES): Likewise.
22592 (jpeg_mod_CFLAGS): Likewise.
22593 (jpeg_mod_LDFLAGS): Likewise.
22594 (png_mod_SOURCES): Likewise.
22595 (png_mod_CFLAGS): Likewise.
22596 (png_mod_LDFLAGS): Likewise.
22597 (gfxterm_mod_SOURCES): Likewise.
22598 (gfxterm_mod_CFLAGS): Likewise.
22599 (gfxterm_mod_LDFLAGS): Likewise.
22600
22601 * term/gfxterm.c: Removed include to grub/machine/memory.h,
22602 grub/machine/console.h.
22603
22604 2009-01-04 Jerone Young <jerone@gmail.com>
22605
22606 Make on screen instructions clearer
22607
22608 Based on patch created by Jidanni <jidanni@jidanni.org>
22609
22610 * normal/menu.c: print clearer instructions on the screen
22611
22612 2009-01-02 Colin D Bennett <colin@gibibit.com>
22613
22614 New font engine.
22615
22616 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
22617 build system and fixed gfxterm.c to work with different sized fonts.
22618
22619 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
22620
22621 * configure: Re-generated.
22622
22623 * DISTLIST: Removed font/manager.c.
22624 Added font/font.c.
22625 Added font/font_cmd.c.
22626
22627 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
22628 compilation.
22629
22630 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
22631
22632 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
22633
22634 * kern/term.c: Changed users of grub_utf8_to_ucs4.
22635
22636 * normal/menu.c: Likewise.
22637
22638 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
22639 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
22640
22641 * include/grub/font.h: Replaced with new file.
22642
22643 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
22644 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
22645 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
22646 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
22647 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
22648 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
22649 fg_red, fg_green, fg_blue, fg_alpha.
22650 (grub_video_adapter): Removed blit_glyph.
22651 (grub_video_blit_glyph): Removed.
22652
22653 * font/manager.c: Removed file.
22654
22655 * font/font.c: New file.
22656
22657 * font/font_cmd.c: Likewise.
22658
22659 * video/video.c (grub_video_blit_glyph): Removed.
22660
22661 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
22662 (grub_video_vbe_map_rgba): Likewise.
22663 (grub_video_vbe_unmap_color_int): Likewise.
22664 (grub_video_vbe_blit_glyph): Removed.
22665 (grub_video_vbe_adapter): Removed blit_glyph.
22666
22667 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
22668 (get_pixel): Likewise.
22669 (set_pixel): Likewise.
22670
22671 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
22672
22673 * term/gfxterm.c: Adapted to new font engine.
22674
22675 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
22676
22677 * term/i386/pc/vga.c: Likewise.
22678
22679 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
22680
22681 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
22682
22683 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
22684
22685 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
22686
22687 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
22688
22689 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
22690
22691 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
22692
22693 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
22694
22695 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
22696
22697 * util/grub.d/00_header.in: Changed to use new loadfont command.
22698
22699 * util/grub-mkconfig_lib.in: Changed font extension.
22700
22701 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
22702
22703 * util/getroot.c (grub_util_get_grub_dev): Add support for
22704 /dev/md/dNNpNN style partitionable mdraid devices.
22705
22706 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
22707
22708 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
22709 at a time limit of the PXE TFTP API correctly.
22710 (grub_pxefs_close): Likewise.
22711
22712 2008-11-29 Robert Millan <rmh@aybabtu.com>
22713
22714 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
22715 grub_ata_device_initialize() calls.
22716
22717 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
22718
22719 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
22720 iteration failed.
22721 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
22722
22723 2008-11-28 Robert Millan <rmh@aybabtu.com>
22724
22725 Fix build on powerpc-ieee1275. Based on patch created by
22726 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
22727 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
22728 `kern/ieee1275/mmap.c'.
22729 * include/grub/powerpc/ieee1275/memory.h: New file.
22730
22731 Provide grub-install on coreboot.
22732 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
22733 (grub_install_SOURCES): New variable.
22734 * util/i386/pc/grub-install.in: Add a few condition checks to make it
22735 usable on coreboot.
22736
22737 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
22738
22739 * util/grub-fstest.c (grub_term_get_current_input): Change return type
22740 to `grub_term_input_t'.
22741 (grub_term_get_current_output): Change return type to
22742 `grub_term_output_t'.
22743
22744 2008-11-22 Robert Millan <rmh@aybabtu.com>
22745
22746 Fix breakage on coreboot due to declaration mismatch.
22747 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
22748 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
22749 grub_vga_text_cls().
22750
22751 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
22752 comments. Avoid copying one more byte than necessary (just in case).
22753
22754 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
22755 to 0x200000 (avoids trouble with some OFW implementations, and matches
22756 with the one in Yaboot).
22757 Reported by Manoel Abranches
22758
22759 2008-11-20 Robert Millan <rmh@aybabtu.com>
22760
22761 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
22762 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
22763
22764 * util/grub-mkconfig_lib.in (grub_warn): New function.
22765 (convert_system_path_to_grub_path): Use grub_warn() when issuing
22766 warnings, to obtain consistent formatting.
22767 * util/grub.d/00_header.in: Likewise.
22768 * util/update-grub_lib.in: Likewise.
22769
22770 * loader/i386/linux.c (allocate_pages): Fix a warning.
22771 Move comment text to `#error' stanza.
22772
22773 Harmonize ieee1275's grub_available_iterate() with the generic
22774 grub_machine_mmap_iterate() interface (fixes a recently-introduced
22775 build problem on i386-ieee1275):
22776 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
22777 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
22778 parameter `type'. Update all users of this function.
22779 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
22780 `kern/ieee1275/mmap.c'.
22781 * kern/ieee1275/init.c
22782 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
22783 with ...
22784 (grub_machine_mmap_iterate): ... this.
22785 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
22786 return type to `grub_err_t'. Update all implementations of this
22787 function prototype.
22788 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
22789 Likewise.
22790
22791 Add `lsmmap' command (lists firmware-provided memory map):
22792 * commands/lsmmap.c: New file.
22793 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
22794 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
22795 variables.
22796 * conf/powerpc-ieee1275.rmk: Likewise.
22797 * conf/i386-coreboot.rmk: Likewise.
22798 * conf/i386-ieee1275.rmk: Likewise.
22799
22800 2008-11-19 Robert Millan <rmh@aybabtu.com>
22801
22802 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
22803 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
22804 constraints to initrd allocation (based on code from
22805 loader/i386/pc/linux.c). Without them, initrd was allocated too high
22806 for Linux to find it.
22807
22808 2008-11-14 Robert Millan <rmh@aybabtu.com>
22809
22810 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
22811 order to cope with duplicate slashes.
22812
22813 2008-11-14 Robert Millan <rmh@aybabtu.com>
22814
22815 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
22816 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
22817 don't want to mess with lower memory, because it is used in the Linux
22818 loader.
22819
22820 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
22821 an appropriate place in lower memory, between 0x10000 and 0x90000,
22822 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
22823 is in our heap (probably as a result of it being corrupted during
22824 decompression). Add #error instance with comment to explain why this
22825 loader isn't currently usable on PC/BIOS.
22826
22827 2008-11-14 Robert Millan <rmh@aybabtu.com>
22828
22829 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
22830 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
22831
22832 2008-11-12 Robert Millan <rmh@aybabtu.com>
22833
22834 Make loader/i386/linux.c buildable on i386-pc (although disabled).
22835
22836 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
22837 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
22838 from here ...
22839 * include/grub/i386/pc/memory.h: ... to here.
22840
22841 2008-11-12 Robert Millan <rmh@aybabtu.com>
22842
22843 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
22844 split).
22845
22846 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
22847 (grub_console_cur_color, grub_console_real_putchar)
22848 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
22849 (grub_console_setcolorstate, grub_console_setcolor)
22850 (grub_console_getcolor): Move from here ...
22851 * include/grub/i386/vga_common.h: ... to here (new file).
22852
22853 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
22854 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
22855 `<grub/i386/io.h>'.
22856 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
22857 `<grub/i386/vga_common.h>'.
22858
22859 2008-11-12 Robert Millan <rmh@aybabtu.com>
22860
22861 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
22862 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
22863 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
22864 variables.
22865 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
22866 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
22867
22868 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
22869 grub_console_init() with call to grub_vga_text_init().
22870 (grub_machine_fini): Replace call to
22871 grub_console_fini() with call to grub_vga_text_fini() and
22872 grub_at_keyboard_fini().
22873
22874 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
22875 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
22876 (grub_console_setcolorstate, grub_console_setcolor)
22877 (grub_console_getcolor): New function prototypes.
22878
22879 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
22880 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
22881 (grub_vga_text_setcursor): Static-ize.
22882 (grub_vga_text_term): New structure.
22883 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
22884
22885 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
22886 (grub_console_cur_color, grub_console_standard_color)
22887 (grub_console_normal_color, grub_console_highlight_color)
22888 (map_char, grub_console_putchar, grub_console_getcharwidth)
22889 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
22890 (grub_console_getcolor): Move from here ...
22891 * term/i386/vga_common.c: ... to here (same function names).
22892
22893 2008-11-12 Robert Millan <rmh@aybabtu.com>
22894
22895 Use newly-added Multiboot support in coreboot.
22896
22897 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
22898 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
22899
22900 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
22901 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
22902 (codestart): Store the MBI in `startup_multiboot_info' when we're
22903 being loaded using Multiboot.
22904
22905 * kern/i386/coreboot/init.c (grub_machine_init): Move
22906 grub_at_keyboard_init() call to beginning of function (useful for
22907 debugging). Call grub_machine_mmap_init() before attempting to use
22908 grub_machine_mmap_iterate().
22909 (grub_lower_mem, grub_upper_mem): Move from here ...
22910 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
22911 here (new file).
22912
22913 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
22914 function prototype.
22915
22916 2008-11-12 Robert Millan <rmh@aybabtu.com>
22917
22918 Fix a regression introduced by the at_keyboard.mod split. Because
22919 some terminals are default on some platforms and non-default on
22920 others, the first terminal being registered determines which is
22921 going to be default.
22922
22923 * kern/term.c (grub_term_register_input): If this is the first
22924 terminal being registered, set it as the current one.
22925 (grub_term_register_output): Likewise.
22926
22927 * term/efi/console.c (grub_console_init): Do not call
22928 grub_term_set_current_output() or grub_term_set_current_input().
22929 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
22930 * term/i386/pc/console.c (grub_console_init): Likewise.
22931 (grub_console_fini): Do not call grub_term_set_current_input()
22932 (but leave grub_term_set_current_output() to restore text mode).
22933
22934 2008-11-10 Robert Millan <rmh@aybabtu.com>
22935
22936 * util/grub.d/00_header.in: Add backward compatibility check for
22937 versions of terminal.mod that don't understand `terminal_input' or
22938 `terminal_output'.
22939
22940 2008-11-09 Robert Millan <rmh@aybabtu.com>
22941
22942 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
22943 `terminal_input' / `terminal_output', not `terminal'.
22944
22945 2008-11-08 Robert Millan <rmh@aybabtu.com>
22946
22947 * Makefile.in (include_DATA): Fix srcdir=. assumption.
22948 (DISTCLEANFILES): Add `build_env.mk'.
22949
22950 2008-11-08 Robert Millan <rmh@aybabtu.com>
22951
22952 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
22953 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
22954 members. Update all users.
22955 * util/console.c (grub_ncurses_term): Split in ...
22956 (grub_ncurses_term_input): ... this, and ...
22957 (grub_ncurses_term_output): ... this. Update all users.
22958 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
22959
22960 2008-11-08 Robert Millan <rmh@aybabtu.com>
22961
22962 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
22963 (PKGDATA): Add $(pkgdata_SRCDIR).
22964 (pkglib_BUILDDIR): New variable.
22965 (pkgdata_SRCDIR): New variable.
22966 (build_env.mk): New target.
22967 (include_DATA): New variable.
22968 (install-local): Install $(include_DATA) files in $(includedir).
22969
22970 2008-11-07 Pavel Roskin <proski@gnu.org>
22971
22972 * gendistlist.sh: Use C locale for sorting to ensure consistent
22973 output on all systems.
22974
22975 * util/grub.d/00_header.in: Remove incorrect space before
22976 "serial".
22977
22978 2008-11-07 Robert Millan <rmh@aybabtu.com>
22979
22980 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
22981 per specification.
22982 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
22983 * loader/multiboot_loader.c (find_multi_boot2_header): New function
22984 (based on find_multi_boot1_header).
22985 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
22986 using find_multi_boot2_header(), and abort if neither Multiboot or
22987 Multiboot headers were found.
22988
22989 2008-11-07 Robert Millan <rmh@aybabtu.com>
22990
22991 Modularize at_keyboard.mod:
22992
22993 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
22994 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
22995 (at_keyboard_mod_LDFLAGS): New variables.
22996
22997 Actual terminal split:
22998
22999 * include/grub/term.h (struct grub_term): Split in ...
23000 (struct grub_term_input): ... this, and ...
23001 (struct grub_term_output): ... this. Update all users.
23002 (grub_term_set_current): Split in ...
23003 (grub_term_set_current_input): ... this, and ...
23004 (grub_term_set_current_output): ... this.
23005 (grub_term_get_current): Split in ...
23006 (grub_term_get_current_input): ... this, and ...
23007 (grub_term_get_current_output): ... this.
23008 (grub_term_register): Split in ...
23009 (grub_term_register_input): ... this, and ...
23010 (grub_term_register_output): ... this.
23011 (grub_term_unregister): Split in ...
23012 (grub_term_unregister_input): ... this, and ...
23013 (grub_term_unregister_output): ... this.
23014 (grub_term_iterate): Split in ...
23015 (grub_term_iterate_input): ... this, and ...
23016 (grub_term_iterate_output): ... this.
23017
23018 * kern/term.c (grub_term_list): Split in ...
23019 (grub_term_list_input): ... this, and ...
23020 (grub_term_list_output): ... this. Update all users.
23021 (grub_cur_term): Split in ...
23022 (grub_cur_term_input): ... this, and ...
23023 (grub_cur_term_output): ... this. Update all users.
23024 (grub_term_set_current): Split in ...
23025 (grub_term_set_current_input): ... this, and ...
23026 (grub_term_set_current_output): ... this.
23027 (grub_term_get_current): Split in ...
23028 (grub_term_get_current_input): ... this, and ...
23029 (grub_term_get_current_output): ... this.
23030 (grub_term_register): Split in ...
23031 (grub_term_register_input): ... this, and ...
23032 (grub_term_register_output): ... this.
23033 (grub_term_unregister): Split in ...
23034 (grub_term_unregister_input): ... this, and ...
23035 (grub_term_unregister_output): ... this.
23036 (grub_term_iterate): Split in ...
23037 (grub_term_iterate_input): ... this, and ...
23038 (grub_term_iterate_output): ... this.
23039
23040 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
23041 a check for input and one for output (and only attempt to get keys
23042 from user when input works).
23043
23044 * util/grub-probe.c (grub_term_get_current): Split in ...
23045 (grub_term_get_current_input): ... this, and ...
23046 (grub_term_get_current_output): ... this.
23047 * util/grub-fstest.c: Likewise.
23048 * util/i386/pc/grub-setup.c: Likewise.
23049 * util/grub-editenv.c: Likewise.
23050
23051 Portability adjustments:
23052
23053 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
23054 `term/i386/pc/at_keyboard.c'.
23055 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
23056 grub_keyboard_controller_init() (now handled by terminal .init).
23057 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
23058 grub_at_keyboard_init().
23059 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
23060 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
23061 at_keyboard.mod via input terminal interface).
23062 * include/grub/i386/coreboot/console.h: Convert into a stub for
23063 `<grub/i386/pc/console.h>'.
23064
23065 Migrate full terminals to new API:
23066
23067 * term/efi/console.c (grub_console_term): Split into ...
23068 (grub_console_term_input): ... this, and ...
23069 (grub_console_term_output): ... this. Update all users.
23070 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
23071 (grub_ofconsole_init): Split into ...
23072 (grub_ofconsole_init_input): ... this, and ...
23073 (grub_ofconsole_init_output): ... this.
23074 (grub_ofconsole_term): Split into ...
23075 (grub_ofconsole_term_input): ... this, and ...
23076 (grub_ofconsole_term_output): ... this. Update all users.
23077 * term/i386/pc/serial.c (grub_serial_term): Split into ...
23078 (grub_serial_term_input): ... this, and ...
23079 (grub_serial_term_output): ... this. Update all users.
23080 * term/i386/pc/console.c (grub_console_term): Split into ...
23081 (grub_console_term_input): ... this, and ...
23082 (grub_console_term_output): ... this. Update all users.
23083 (grub_console_term_input): Only enable it on PC/BIOS platform.
23084 (grub_console_init): Remove grub_keyboard_controller_init() call.
23085
23086 Migrate input terminals to new API:
23087
23088 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
23089 `i386' and `i386/pc' to enable build on x86_64 (this driver is
23090 i386-specific anyway).
23091 (grub_console_checkkey): Rename to ...
23092 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
23093 users.
23094 (grub_keyboard_controller_orig): New variable.
23095 (grub_console_getkey): Rename to ...
23096 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
23097 users.
23098 (grub_keyboard_controller_init): Static-ize. Save original
23099 controller value so that it can be restored ...
23100 (grub_keyboard_controller_fini): ... here (new function).
23101 (grub_at_keyboard_term): New structure.
23102 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
23103 functions.
23104
23105 Migrate output terminals to new API:
23106
23107 * term/i386/pc/vga.c (grub_vga_term): Change type to
23108 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
23109 members. Update all users.
23110 * term/gfxterm.c (grub_video_term): Change type to
23111 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
23112 members. Update all users.
23113 * include/grub/i386/pc/console.h (grub_console_checkkey)
23114 (grub_console_getkey): Do not export (no longer needed by gfxterm,
23115 etc).
23116
23117 Migrate `terminal' command and userland tools to new API:
23118
23119 * commands/terminal.c (grub_cmd_terminal): Split into ...
23120 (grub_cmd_terminal_input): ... this, and ...
23121 (grub_cmd_terminal_output): ... this.
23122 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
23123 `terminal_input' and `terminal_output'.
23124 * util/grub.d/00_header.in: Adjust `terminal' calls to new
23125 `terminal_input' / `terminal_output' API.
23126 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
23127 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
23128 provided ${GRUB_TERMINAL}, convert it).
23129
23130 2008-11-04 Robert Millan <rmh@aybabtu.com>
23131
23132 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
23133 for FreeBSD.
23134 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
23135
23136 2008-11-03 Bean <bean123ch@gmail.com>
23137
23138 * kern/elf.c (grub_elf32_load): Revert to previous code.
23139 (grub_elf64_load): Likewise.
23140
23141 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
23142
23143 2008-11-01 Robert Millan <rmh@aybabtu.com>
23144
23145 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
23146 (TARGET_CPPFLAGS): Likewise.
23147 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
23148
23149 2008-11-01 Carles Pina i Estany <carles@pina.cat>
23150
23151 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
23152
23153 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
23154
23155 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
23156 addition of objects until the code is not going to be able to fail.
23157
23158 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
23159
23160 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
23161 (add a missing NULL check, and correct them by moving the pointer
23162 operations after the actual check).
23163
23164 2008-10-29 Robert Millan <rmh@aybabtu.com>
23165
23166 * util/i386/pc/grub-install.in: Handle empty string as output from
23167 make_system_path_relative_to_its_root().
23168
23169 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
23170
23171 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
23172 circular metadata worst case scenario. If the metadata is circular
23173 then copy the wrap in place.
23174 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
23175 project lib/format_text/layout.h
23176 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
23177
23178 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
23179
23180 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
23181
23182 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
23183
23184 * util/update-grub_lib.in: Mention filename in warning message.
23185
23186 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
23187
23188 * NEWS: Update for rename of update-grub to grub-mkconfig.
23189
23190 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
23191
23192 * util/update-grub_lib.in: Copy to ...
23193 * util/grub-mkconfig_lib.in: ... this. Update all users.
23194 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
23195 * util/update-grub.in: Rename to ...
23196 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
23197 option. Add `--output' option to allow users to specify the generated
23198 configuration file. Default to stdout.
23199 (update_grub_dir): Rename to ...
23200 (grub_mkconfig_dir): ... this.
23201 (grub_cfg): Default to an empty string.
23202 * conf/common.rmk (update-grub): Rename to ...
23203 (grub-mkconfig): ... this.
23204 (update-grub_lib): Copy to ...
23205 (grub-mkconfig_lib): ... this.
23206 (update-grub_SCRIPTS): Copy to ...
23207 (grub-mkconfig_SCRIPTS): ... this. Update all users.
23208 (update-grub_DATA): Rename to ...
23209 (grub-mkconfig_DATA): ... this.
23210
23211 2008-09-28 Robert Millan <rmh@aybabtu.com>
23212
23213 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
23214 to `modified'. Add the real `created' field.
23215 (grub_iso9660_uuid): Use `modified' rather than `created' for
23216 constructing the UUID.
23217
23218 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
23219
23220 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
23221 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
23222
23223 2008-09-28 Bean <bean123ch@gmail.com>
23224
23225 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
23226 Thanks to Christian Franke for finding this bug.
23227
23228 2008-09-25 Robert Millan <rmh@aybabtu.com>
23229
23230 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
23231 instances of grub_util_get_disk_name() (see previous commit).
23232
23233 2008-09-25 Robert Millan <rmh@aybabtu.com>
23234
23235 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
23236 `util/i386/get_disk_name.c'.
23237 * conf/i386-efi.rmk: Likewise.
23238 * conf/x86_64-efi.rmk: Likewise.
23239 * conf/i386-coreboot.rmk: Likewise.
23240 * conf/i386-ieee1275.rmk: Likewise.
23241 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
23242 `util/ieee1275/get_disk_name.c'.
23243 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
23244 * util/ieee1275/get_disk_name.c: Remove file.
23245 * util/i386/get_disk_name.c: Remove file.
23246 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
23247 "hd%d" for device.map entries, rather than using
23248 grub_util_get_disk_name().
23249
23250 2008-09-24 Carles Pina i Estany <carles@pina.cat>
23251
23252 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
23253 warning.
23254 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
23255
23256 2008-09-24 Carles Pina i Estany <carles@pina.cat>
23257
23258 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
23259 Changed to 0x5100.
23260 (GRUB_TERM_PPAGE): Changed to 0x4900.
23261
23262 2008-09-24 Robert Millan <rmh@aybabtu.com>
23263
23264 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
23265 macros (they were i386-pc specific).
23266 * include/grub/sparc64/ieee1275/console.h: Likewise.
23267 * include/grub/efi/console.h: Likewise.
23268
23269 2008-09-22 Bean <bean123ch@gmail.com>
23270
23271 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
23272 resident and in attribute list.
23273
23274 * include/grub/ntfs.h (BMP_LEN): Removed.
23275
23276 2008-09-22 Bean <bean123ch@gmail.com>
23277
23278 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
23279 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
23280
23281 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
23282 error occurs, as grub_disk_open will call grub_disk_close, which will
23283 call p->close (scsi).
23284
23285 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
23286
23287 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
23288 (AC_PREREQ): Bumped to 2.59.
23289 (AC_TRY_COMPILE): Replace obsolete macro with ...
23290 (AC_COMPILE_IFELSE): ... this.
23291 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
23292 (AC_LINK_IFELSE): ... this.
23293
23294 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
23295
23296 * autogen.sh: Add a call to `gendistlist.sh'.
23297
23298 2008-09-19 Christian Franke <franke@computer.org>
23299
23300 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
23301 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
23302 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
23303 Export __enable_execute_stack() to modules.
23304 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
23305 New function.
23306
23307 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
23308
23309 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
23310 Sort the list.
23311
23312 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
23313
23314 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
23315 #include <grub/util/hostdisk.h>.
23316
23317 2008-09-08 Robert Millan <rmh@aybabtu.com>
23318
23319 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
23320 segments when their filesz is zero (grub_file_read() interprets
23321 zero-size as "read until EOF", which results in memory corruption).
23322 Use `lowest_segment' rather than 0 for calculating the current
23323 segment load address.
23324
23325 2008-09-08 Robert Millan <rmh@aybabtu.com>
23326
23327 * util/hostdisk.c (open_device): Replace a grub_util_info() call
23328 with grub_dprintf("hostdisk", ...), as it was so verbose that it
23329 clobbered useful information.
23330
23331 2008-09-08 Robert Millan <rmh@aybabtu.com>
23332
23333 * include/grub/util/biosdisk.h: Move to ...
23334 * include/grub/util/hostdisk.h: ... here. Update all users.
23335 * util/biosdisk.c: Move to ...
23336 * util/hostdisk.c: ... here. Update all users.
23337
23338 2008-09-07 Robert Millan <rmh@aybabtu.com>
23339
23340 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
23341 variables.
23342 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
23343 and length can be stored directly in the `mbi->mmap_addr' and
23344 `mbi->mmap_length' struct fields.
23345
23346 2008-09-07 Robert Millan <rmh@aybabtu.com>
23347
23348 * conf/i386.rmk: New file. Provides declaration for building
23349 `cpuid.mod'.
23350 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
23351 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
23352 variables.
23353 Include `conf/i386.mk'.
23354 * conf/i386-efi.rmk: Likewise.
23355 * conf/x86_64-efi.rmk: Likewise.
23356 * conf/i386-coreboot.rmk: Likewise.
23357 * conf/i386-ieee1275.rmk: Likewise.
23358
23359 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
23360
23361 Based on patch created by Colin D Bennett <colin@gibibit.com>.
23362 Adds optimization support for BGR based modes.
23363
23364 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
23365 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
23366 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
23367 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
23368 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
23369 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
23370 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
23371 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
23372 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
23373 (grub_video_i386_vbeblit_index_index): Likewise.
23374 (grub_video_i386_vbeblit_replace_directN): Added.
23375 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
23376 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
23377 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
23378 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
23379 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
23380 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
23381 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
23382 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
23383 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
23384 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
23385 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
23386 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
23387 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
23388
23389 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
23390 (grub_video_i386_vbefill_R8G8B8): Likewise.
23391 (grub_video_i386_vbefill_index): Likewise.
23392 (grub_video_i386_vbefill_direct32): Added.
23393 (grub_video_i386_vbefill_direct24): Likewise.
23394 (grub_video_i386_vbefill_direct16): Likewise.
23395 (grub_video_i386_vbefill_direct8): Likewise.
23396
23397 * include/grub/video.h (grub_video_blit_format): Removed
23398 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
23399 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
23400 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
23401 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
23402 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
23403
23404 * video/video.c (grub_video_get_blit_format): Updated to use new
23405 blit formats. Added handling for 16 bit color modes.
23406
23407 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
23408 fillers.
23409 (common_blitter): Updated to use new blitters.
23410
23411 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
23412 Removed.
23413 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
23414 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
23415 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
23416 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
23417 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
23418 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
23419 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
23420 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
23421 (grub_video_i386_vbeblit_index_index): Likewise.
23422 (grub_video_i386_vbeblit_replace_directN): Added.
23423 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
23424 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
23425 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
23426 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
23427 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
23428 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
23429 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
23430 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
23431 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
23432 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
23433 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
23434 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
23435 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
23436
23437 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
23438 (grub_video_i386_vbefill_R8G8B8): Likewise.
23439 (grub_video_i386_vbefill_index): Likewise.
23440 (grub_video_i386_vbefill_direct32): Added.
23441 (grub_video_i386_vbefill_direct24): Likewise.
23442 (grub_video_i386_vbefill_direct16): Likewise.
23443 (grub_video_i386_vbefill_direct8): Likewise.
23444
23445 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
23446 types.
23447
23448 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
23449 types.
23450
23451 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
23452 blitter types.
23453
23454 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
23455 types.
23456
23457 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
23458
23459 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
23460 RAID level 1.
23461
23462 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
23463
23464 * fs/iso9660.c (grub_iso9660_date): New structure.
23465 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
23466 (grub_iso9660_uuid): New function.
23467
23468 2008-09-05 Bean <bean123ch@gmail.com>
23469
23470 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
23471
23472 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
23473 insensitive bit for names in Win32 and Win32 & DOS namespace.
23474
23475 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
23476
23477 * include/grub/types.h (LONG_MAX): Likewise.
23478
23479 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
23480
23481 * util/getroot.c: Include <config.h>.
23482 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
23483 add support for /dev/md/N devices and handle LVM double dash escaping.
23484
23485 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
23486
23487 * config.guess: Update to latest version from config git.
23488 * config.sub: Likewise.
23489
23490 2008-09-03 Robert Millan <rmh@aybabtu.com>
23491
23492 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
23493 `disk->total_sectors'.
23494
23495 2008-09-01 Colin D Bennett <colin@gibibit.com>
23496
23497 * include/grub/normal.h: Fixed incorrect comment for
23498 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
23499
23500 2008-09-01 Colin D Bennett <colin@gibibit.com>
23501
23502 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
23503 values with defines.
23504
23505 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
23506 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
23507 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
23508 (GRUB_VBE_MODEATTR_COLOR): Likewise.
23509 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
23510 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
23511 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
23512 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
23513 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
23514 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
23515 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
23516 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
23517 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
23518 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
23519 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
23520 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
23521 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
23522 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
23523 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
23524
23525 2008-08-31 Robert Millan <rmh@aybabtu.com>
23526
23527 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
23528 declaration.
23529 (grub_multiboot): Fix a few warnings.
23530
23531 2008-08-31 Robert Millan <rmh@aybabtu.com>
23532
23533 * loader/i386/pc/multiboot.c: Update comment not to say that
23534 boot_device support is unimplemented.
23535
23536 2008-08-31 Robert Millan <rmh@aybabtu.com>
23537
23538 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
23539 or memory map support are unimplemented.
23540
23541 2008-08-31 Colin D Bennett <colin@gibibit.com>
23542
23543 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
23544
23545 2008-08-31 Colin D Bennett <colin@gibibit.com>
23546
23547 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
23548 total video memory in 'vbeinfo' output; show color format details for
23549 each video mode.
23550
23551 2008-08-30 Pavel Roskin <proski@gnu.org>
23552
23553 * util/genmoddep.c: Remove for real this time.
23554 * DISTLIST: Remove util/genmoddep.c.
23555
23556 2008-08-30 Robert Millan <rmh@aybabtu.com>
23557
23558 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
23559 as required by Multiboot spec (it was already 4-byte aligned, but
23560 only by chance).
23561
23562 2008-08-29 Pavel Roskin <proski@gnu.org>
23563
23564 * kern/powerpc/ieee1275/crt0.S: Rename to ...
23565 * kern/powerpc/ieee1275/startup.S: ... this.
23566 * conf/powerpc-ieee1275.rmk: Adjust for the above.
23567 * DISTLIST: Likewise.
23568
23569 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
23570 grub/cpu/kernel.h. Add start label for consistency with other
23571 platforms. Add grub_prefix immediately after start. Add jump
23572 to the code after grub_prefix.
23573 * include/grub/powerpc/kernel.h: Provide valid values for
23574 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
23575
23576 2008-08-29 Bean <bean123ch@gmail.com>
23577
23578 * configure.ac: Change host_os to cygwin for mingw.
23579 (asprintf): New check for function.
23580
23581 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
23582 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
23583
23584 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
23585 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
23586 sync, sleep and grub_util_get_disk_size for mingw.
23587
23588 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
23589 to get size in mingw.
23590 (open_device): Use flag O_BINARY if it's defined.
23591 (find_root_device): Add dummy code for mingw.
23592
23593 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
23594 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
23595 (get_scsi_disk_name): Return 0 for mingw.
23596
23597 * util/hostfs.c: #include <grub/util/misc.h>.
23598 (grub_hostfs_open): Use "rb" flag to open file, use
23599 grub_util_get_disk_size to get disk size for mingw.
23600
23601 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
23602 (asprintf): New function if HAVE_ASPRINTF is not set.
23603 (sync): New function for mingw.
23604 (sleep): Likewise.
23605 (grub_util_get_disk_size): Likewise.
23606
23607 2008-08-28 Pavel Roskin <proski@gnu.org>
23608
23609 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
23610 kern/time.c.
23611
23612 2008-08-28 Robert Millan <rmh@aybabtu.com>
23613
23614 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
23615
23616 2008-08-28 Robert Millan <rmh@aybabtu.com>
23617
23618 Change find_grub_drive() syntax so it doesn't prevent it from
23619 detecting NULL names as errors.
23620
23621 * util/biosdisk.c (find_grub_drive): Move free slot search code
23622 from here ...
23623 (find_free_slot): ... to here.
23624 (read_device_map): Use find_free_slot() to search for free slots.
23625
23626 2008-08-27 Marco Gerards <marco@gnu.org>
23627
23628 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
23629 (scsi_mod_SOURCES): New variable.
23630 (scsi_mod_CFLAGS): Likewise
23631 (scsi_mod_LDFLAGS): Likewise.
23632
23633 * disk/scsi.c: New file.
23634
23635 * include/grub/scsi.h: Likewise.
23636
23637 * include/grub/scsicmd.h: Likewise.
23638
23639 * disk/ata.c: Include <grub/scsi.h>.
23640 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
23641 instead.
23642 (grub_ata_iterate): Skip ATAPI devices.
23643 (grub_ata_open): Only handle ATAPI devices.
23644 (struct grub_atapi_read): Removed.
23645 (grub_atapi_readsector): Likewise.
23646 (grub_ata_read): No longer handle ATAPI devices.
23647 (grub_ata_write): Likewise.
23648 (grub_atapi_iterate): New function.
23649 (grub_atapi_read): Likewise.
23650 (grub_atapi_write): Likewise.
23651 (grub_atapi_open): Likewise.
23652 (grub_atapi_close): Likewise.
23653 (grub_atapi_dev): New variable.
23654 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
23655 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
23656
23657 * include/grub/disk.h (enum grub_disk_dev_id): Add
23658 `GRUB_DISK_DEVICE_SCSI_ID'.
23659
23660 2008-08-26 Robert Millan <rmh@aybabtu.com>
23661
23662 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
23663 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
23664 descriptive.
23665
23666 2008-08-23 Bean <bean123ch@gmail.com>
23667
23668 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
23669 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
23670 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
23671 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
23672 dm_nv.mod.
23673 (raid5rec_mod_SOURCES): New macro.
23674 (raid5rec_mod_CFLAGS): Likewise.
23675 (raid5rec_mod_LDFLAGS): Likewise.
23676 (raid6rec_mod_SOURCES): Likewise.
23677 (raid6rec_mod_CFLAGS): Likewise.
23678 (raid6rec_mod_LDFLAGS): Likewise.
23679 (mdraid_mod_SOURCES): Likewise.
23680 (mdraid_mod_CFLAGS): Likewise.
23681 (mdraid_mod_LDFLAGS): Likewise.
23682 (dm_nv_mod_SOURCES): Likewise.
23683 (dm_nv_mod_CFLAGS): Likewise.
23684 (dm_nv_mod_LDFLAGS): Likewise.
23685
23686 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
23687 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
23688 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
23689
23690 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
23691 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
23692
23693 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
23694
23695 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
23696
23697 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23698
23699 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23700
23701 * disk/raid5_recover.c: New file.
23702
23703 * disk/raid6_recover.c: Likewise.
23704
23705 * disk/mdraid_linux.c: Likewise.
23706
23707 * disk/dmraid_nvidia.c: Likewise.
23708
23709 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
23710 ULONG_MAX.
23711
23712 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
23713 calculate the size of raid device.
23714 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
23715 different layout of raid5.
23716 (grub_raid_scan_device): Remove code specific to mdraid.
23717 (grub_raid_list): New variable.
23718 (free_array): New function.
23719 (grub_raid_register): Likewise.
23720 (grub_raid_unregister): Likewise.
23721 (grub_raid_rescan): Likewise.
23722 (GRUB_MOD_INIT): Don't iterate device here.
23723 (GRUB_MOD_FINI): Use free_array to release resource.
23724
23725 * include/grub/raid.h: Remove macro and structure specific to mdraid.
23726 (grub_raid5_recover_func_t): New function variable type.
23727 (grub_raid6_recover_func_t): Likewise.
23728 (grub_raid5_recover_func): New variable.
23729 (grub_raid6_recover_func): Likewise.
23730 (grub_raid_register): New function.
23731 (grub_raid_unregister): Likewise.
23732 (grub_raid_rescan): Likewise.
23733 (grub_raid_block_xor): Likewise.
23734
23735 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
23736 (CMD_CRC): New macro.
23737 (part): Removed.
23738 (read_file): Handle device as well as file.
23739 (cmd_crc): New function.
23740 (fstest): Handle multiple disks.
23741 (options): Remove part, raw and long, add root and diskcount.
23742 (usage): Add crc, remove -p, -r, -l, add -r and -c.
23743 (main): Find the first non option entry and ignore subsequent options,
23744 add handling for the new options, support multiple disks.
23745
23746 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
23747
23748 2008-08-23 Bean <bean123ch@gmail.com>
23749
23750 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
23751
23752 * genfslist.sh: Ignore kernel.mod.
23753
23754 * genpartmaplist.sh: Likewise.
23755
23756 2008-08-23 Robert Millan <rmh@aybabtu.com>
23757
23758 * util/getroot.c (find_root_device): Skip anything that starts with
23759 a dot, not just directories. This avoids things like /dev/.tmp.md0.
23760
23761 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
23762
23763 * util/update-grub.in (GRUB_GFXMODE): Export variable.
23764 * util/grub.d/00_header.in: Allow the administrator to change default
23765 gfxmode via ${GRUB_GFXMODE}.
23766
23767 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
23768
23769 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
23770
23771 2008-08-21 Robert Millan <rmh@aybabtu.com>
23772
23773 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
23774 loader.
23775 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
23776 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
23777
23778 2008-08-20 Carles Pina i Estany <carles@pina.cat>
23779
23780 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
23781 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
23782
23783 2008-08-19 Robert Millan <rmh@aybabtu.com>
23784
23785 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
23786 (struct grub_virtual_screen): Remove `cursor_color'.
23787 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
23788 initialization.
23789 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
23790
23791 2008-08-18 Robert Millan <rmh@aybabtu.com>
23792
23793 Unify (identical) linux_normal.c files.
23794 * loader/i386/efi/linux_normal.c: Move from here ...
23795 * loader/linux_normal.c: ... to here. Update all users.
23796 * loader/i386/pc/linux_normal.c: Delete. Update all users.
23797 * loader/i386/ieee1275/linux_normal.c: Likewise.
23798
23799 2008-08-18 Robert Millan <rmh@aybabtu.com>
23800
23801 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
23802 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
23803 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
23804 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
23805 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
23806 New macros.
23807 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
23808 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
23809 (GRUB_LINUX_CL_END_OFFSET): ... to here.
23810 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
23811 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
23812 (GRUB_EFI_CL_END_OFFSET): Rename to ...
23813 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
23814 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
23815 Initialize `params->video_cursor_x' and `params->video_cursor_y'
23816 portably using grub_getxy().
23817 Replace `-EFI' with `-bzImage' in boot message.
23818
23819 2008-08-17 Robert Millan <rmh@aybabtu.com>
23820
23821 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
23822
23823 2008-08-17 Robert Millan <rmh@aybabtu.com>
23824
23825 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
23826
23827 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
23828 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
23829 (grub_machine_mmap_iterate): New function declaration.
23830 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
23831 structure.
23832 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
23833 macros.
23834
23835 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
23836 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
23837 Move e820 parsing from here ...
23838 * kern/i386/pc/mmap.c: New file.
23839 (grub_machine_mmap_iterate): ... to here.
23840
23841 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
23842 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
23843 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
23844 (grub_available_iterate): Redeclare to return `void', and redeclare
23845 its hook to use grub_uint64_t as addr and size parameters, and rename
23846 to ...
23847 (grub_machine_mmap_iterate): ... this. Update all users.
23848
23849 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
23850 to make it more readable. Rename to ...
23851 (grub_machine_mmap_iterate): ... this.
23852
23853 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
23854 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
23855 (grub_multiboot): Allocate an extra region after the payload, and fill
23856 it with a Multiboot memory map. Adjust a.out loader to calculate size
23857 with the extra space.
23858 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
23859 with the extra space.
23860
23861 2008-08-17 Carles Pina i Estany <carles@pina.cat>
23862
23863 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
23864
23865 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
23866
23867 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
23868 mdate-sh to the list `find' searches for.
23869 * DISTLIST: Regenerated.
23870
23871 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
23872
23873 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
23874 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
23875 genmoddep.awk, gensymlist.sh.in.
23876 (DISTDIRS): Add bus, docs, hook, lib.
23877 * DISTLIST: Regenerated.
23878 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
23879
23880 2008-08-16 Robert Millan <rmh@aybabtu.com>
23881
23882 * disk/raid.c (grub_raid_init): Handle/report errors set by
23883 grub_device_iterate().
23884 * disk/lvm.c (grub_lvm_init): Likewise.
23885
23886 2008-08-15 Bean <bean123ch@gmail.com>
23887
23888 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
23889 and datehook.mod.
23890 (datetime_mod_SOURCES): New macro.
23891 (datetime_mod_CFLAGS): Likewise.
23892 (datetime_mod_LDFLAGS): Likewise.
23893 (date_mod_SOURCES): Likewise.
23894 (date_mod_CFLAGS): Likewise.
23895 (date_mod_LDFLAGS): Likewise.
23896 (datehook_mod_SOURCES): Likewise.
23897 (datehook_mod_CFLAGS): Likewise.
23898 (datehook_mod_LDFLAGS): Likewise.
23899
23900 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
23901 and datehook.mod.
23902 (datetime_mod_SOURCES): New macro.
23903 (datetime_mod_CFLAGS): Likewise.
23904 (datetime_mod_LDFLAGS): Likewise.
23905 (date_mod_SOURCES): Likewise.
23906 (date_mod_CFLAGS): Likewise.
23907 (date_mod_LDFLAGS): Likewise.
23908 (datehook_mod_SOURCES): Likewise.
23909 (datehook_mod_CFLAGS): Likewise.
23910 (datehook_mod_LDFLAGS): Likewise.
23911
23912 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
23913 and datehook.mod.
23914 (datetime_mod_SOURCES): New macro.
23915 (datetime_mod_CFLAGS): Likewise.
23916 (datetime_mod_LDFLAGS): Likewise.
23917 (date_mod_SOURCES): Likewise.
23918 (date_mod_CFLAGS): Likewise.
23919 (date_mod_LDFLAGS): Likewise.
23920 (datehook_mod_SOURCES): Likewise.
23921 (datehook_mod_CFLAGS): Likewise.
23922 (datehook_mod_LDFLAGS): Likewise.
23923
23924 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
23925 and datehook.mod.
23926 (datetime_mod_SOURCES): New macro.
23927 (datetime_mod_CFLAGS): Likewise.
23928 (datetime_mod_LDFLAGS): Likewise.
23929 (date_mod_SOURCES): Likewise.
23930 (date_mod_CFLAGS): Likewise.
23931 (date_mod_LDFLAGS): Likewise.
23932 (datehook_mod_SOURCES): Likewise.
23933 (datehook_mod_CFLAGS): Likewise.
23934 (datehook_mod_LDFLAGS): Likewise.
23935
23936 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
23937 and datehook.mod.
23938 (datetime_mod_SOURCES): New macro.
23939 (datetime_mod_CFLAGS): Likewise.
23940 (datetime_mod_LDFLAGS): Likewise.
23941 (date_mod_SOURCES): Likewise.
23942 (date_mod_CFLAGS): Likewise.
23943 (date_mod_LDFLAGS): Likewise.
23944 (datehook_mod_SOURCES): Likewise.
23945 (datehook_mod_CFLAGS): Likewise.
23946 (datehook_mod_LDFLAGS): Likewise.
23947
23948 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
23949
23950 * commands/date.c: New file.
23951
23952 * hook/datehook.c: Likewise.
23953
23954 * include/grub/lib/datetime.h: Likewise.
23955
23956 * include/grub/i386/cmos.h: Likewise.
23957
23958 * lib/datetime.c: Likewise.
23959
23960 * lib/i386/datetime.c: Likewise.
23961
23962 * lib/efi/datetime.c: Likewise.
23963
23964 2008-08-14 Robert Millan <rmh@aybabtu.com>
23965
23966 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
23967 (grub_mkelfimage_SOURCES): New variable.
23968 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
23969
23970 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
23971 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
23972 * conf/powerpc-ieee1275.rmk: Likewise.
23973 * conf/i386-ieee1275.rmk: Likewise.
23974
23975 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
23976 * kern/i386/coreboot/init.c: Likewise.
23977
23978 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
23979 with `<grub/cpu/kernel.h>'.
23980 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
23981 to ...
23982 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
23983 * kern/i386/coreboot/startup.S: Likewise.
23984
23985 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
23986 (GRUB_MOD_GAP): Remove.
23987 * include/grub/powerpc/kernel.h: New file.
23988 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
23989 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
23990 * include/grub/i386/kernel.h: New file.
23991 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
23992 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
23993 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
23994
23995 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
23996 `grub-mkelfimage'.
23997 Use --directory when invoking grub_mkimage.
23998
23999 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
24000 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
24001 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
24002 and GRUB_KERNEL_CPU_PREFIX.
24003
24004 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
24005
24006 * include/grub/err.h (grub_err_printf): New function prototype.
24007 * util/misc.c (grub_err_printf): New function.
24008 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
24009 grub_printf.
24010 * kern/err.c (grub_print_error): Use grub_err_printf.
24011
24012 2008-08-13 Robert Millan <rmh@aybabtu.com>
24013
24014 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
24015
24016 2008-08-13 Robert Millan <rmh@aybabtu.com>
24017
24018 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
24019 boot entry.
24020
24021 2008-08-12 Robert Millan <rmh@aybabtu.com>
24022
24023 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
24024 of the relocation code from here ...
24025 (grub_multiboot): ... to here.
24026 (forward_relocator, backward_relocator): Move from here ...
24027 * kern/i386/loader.S (grub_multiboot_forward_relocator)
24028 (grub_multiboot_backward_relocator): ... to here.
24029 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
24030 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
24031 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
24032 (grub_multiboot_forward_relocator_end)
24033 (grub_multiboot_backward_relocator)
24034 (grub_multiboot_backward_relocator_end): New variables.
24035
24036 2008-08-12 Bean <bean123ch@gmail.com>
24037
24038 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
24039
24040 2008-08-11 Robert Millan <rmh@aybabtu.com>
24041
24042 * kern/i386/linuxbios/startup.S: Move from here ...
24043 * kern/i386/coreboot/startup.S: ... to here.
24044
24045 * kern/i386/linuxbios/init.c: Move from here ...
24046 * kern/i386/coreboot/init.c: ... to here.
24047
24048 * kern/i386/linuxbios/table.c: Move from here ...
24049 * kern/i386/coreboot/mmap.c: ... to here.
24050
24051 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
24052
24053 2008-08-11 Robert Millan <rmh@aybabtu.com>
24054
24055 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
24056 errors. Leave it to the upper layer to handle them.
24057
24058 2008-08-09 Christian Franke <franke@computer.org>
24059
24060 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
24061 * conf/common.rmk: Install `grub-pe2elf' only if requested.
24062 Install `grub.d/10_windows' only on Cygwin.
24063 * configure.ac: Add subst of `target_os'.
24064 Check `target_os' also before setting TARGET_OBJ2ELF.
24065 Add `--enable-grub-pe2elf'.
24066
24067 2008-08-08 Robert Millan <rmh@aybabtu.com>
24068
24069 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
24070 (grub_last_time): Change type to grub_uint64_t.
24071 (grub_disk_open): Migrate code from to using grub_get_time_ms().
24072 (grub_disk_close): Likewise.
24073
24074 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
24075 (run_menu): Migrate code from to using grub_get_time_ms().
24076
24077 * util/misc.c (grub_get_time_ms): New function.
24078
24079 2008-08-08 Marco Gerards <marco@gnu.org>
24080
24081 * disk/ata.c (grub_ata_regget): Change return type to
24082 `grub_uint8_t'.
24083 (grub_ata_regget2): Likewise.
24084 (grub_ata_wait_status): New function.
24085 (grub_ata_wait_busy): Removed function, updated all users to use
24086 `grub_ata_wait_status'.
24087 (grub_ata_wait_drq): Likewise.
24088 (grub_ata_cmd): New function.
24089 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
24090 error handling.
24091 (grub_ata_pio_write): Add error handling.
24092 (grub_atapi_identify): Likewise.
24093 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
24094 handling.
24095 (grub_ata_identify): Use `grub_ata_cmd' and improve error
24096 handling. Actually use the detected registers. Reorder the
24097 detection logic such that it is easier to read.
24098 (grub_ata_pciinit): Do not assign the same ID to each controller.
24099 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
24100 handling.
24101 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
24102
24103 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
24104
24105 2008-08-08 Marco Gerards <marco@gnu.org>
24106
24107 * NEWS: Update.
24108
24109 2008-08-07 Bean <bean123ch@gmail.com>
24110
24111 * include/grub/x86_64/pci.h: New file.
24112
24113 2008-08-07 Christian Franke <franke@computer.org>
24114
24115 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
24116 (TIMER2_GATE): Likewise.
24117 (grub_pit_wait): Add enable/disable of the timer2 gate
24118 bit of port 0x61. This fixes a possible infinite loop.
24119
24120 2008-08-07 Bean <bean123ch@gmail.com>
24121
24122 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
24123 kern/i386/tsc.c and kern/i386/pit.c.
24124
24125 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
24126 x86_64 platform.
24127
24128 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
24129 <grub/i386/tsc.h>.
24130
24131 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
24132
24133 2008-08-07 Bean <bean123ch@gmail.com>
24134
24135 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
24136
24137 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
24138
24139 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
24140 multiple inclusion. Add #include <grub/types.h>.
24141
24142 2008-08-06 Christian Franke <franke@computer.org>
24143
24144 * conf/common.rmk: Build and install `10_windows'.
24145 * util/grub.d/10_windows.in: New script.
24146
24147 2008-08-06 Pavel Roskin <proski@gnu.org>
24148
24149 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
24150
24151 2008-08-06 Robert Millan <rmh@aybabtu.com>
24152
24153 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
24154 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
24155
24156 2008-08-06 Bean <bean123ch@gmail.com>
24157
24158 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
24159 (grub_pxefs_fs_int): Remove dummy definition.
24160 (grub_pxefs_open): Use data->block_size to store the current block
24161 size setting.
24162 (grub_pxefs_read): Use block size stored in data->block_size. As the
24163 value of grub_pxe_blksize can be changed after the file is opened.
24164
24165 2008-08-06 Bean <bean123ch@gmail.com>
24166
24167 * fs/i386/pc/pxe.c (curr_file): new variable.
24168 (grub_pxefs_open): Simply the handling of pxe file system. Don't
24169 require the dummy internal file system anymore.
24170 (grub_pxefs_read): Removed.
24171 (grub_pxefs_close): Likewise.
24172 (grub_pxefs_fs_int): Likewise.
24173 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
24174 connection when we switch file.
24175 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
24176
24177 2008-08-06 Robert Millan <rmh@aybabtu.com>
24178
24179 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
24180 `halt.mod'.
24181 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
24182 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
24183
24184 * kern/i386/halt.c: New file.
24185 * kern/i386/reboot.c: Likewise.
24186 * include/grub/i386/reboot.h: Likewise.
24187 * include/grub/i386/halt.h: Likewise.
24188
24189 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
24190 Include `<grub/cpu/halt.h>'.
24191 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
24192 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
24193
24194 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
24195 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
24196 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
24197 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
24198 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
24199 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
24200 from here ...
24201 * include/grub/i386/at_keyboard.h: ... to here.
24202
24203 2008-08-05 Robert Millan <rmh@aybabtu.com>
24204
24205 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
24206 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
24207 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
24208 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
24209 `kern/generic/millisleep.c'.
24210
24211 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
24212 instead of grub_get_rtc().
24213 (grub_tsc_init): Initialize `tsc_boot_time'.
24214
24215 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
24216 (grub_machine_init): Use grub_tsc_init() rather than
24217 installing an RTC-based handler via grub_install_get_time_ms().
24218
24219 * kern/i386/pit.c: New file.
24220 * include/grub/i386/pit.h: Likewise.
24221
24222 2008-08-05 Bean <bean123ch@gmail.com>
24223
24224 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
24225
24226 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
24227 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
24228 (pxe_mod_SOURCES): New macro.
24229 (pxe_mod_CFLAGS): Likewise.
24230 (pxe_mod_LDFLAGS): Likewise.
24231 (pxecmd_mod_SOURCES): Likewise.
24232 (pxecmd_mod_CFLAGS): Likewise.
24233 (pxecmd_mod_LDFLAGS): Likewise.
24234
24235 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
24236 (grub_pxe_call): Likewise.
24237
24238 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
24239
24240 * commands/i386/pc/pxecmd.c: New file.
24241
24242 * fs/i386/pc/pxe.c: Likewise.
24243
24244 * include/grub/i386/pc/pxe.h: Likewise.
24245
24246 2008-08-05 Bean <bean123ch@gmail.com>
24247
24248 * util/console.c (grub_console_cur_color): New variable.
24249 (grub_console_standard_color): Likewise.
24250 (grub_console_normal_color): Likewise.
24251 (grub_console_highlight_color): Likewise.
24252 (color_map): Likewise.
24253 (use_color): Likewise.
24254 (NUM_COLORS): New macro.
24255 (grub_ncurses_setcolorstate): Handle color properly.
24256 (grub_ncurses_setcolor): Don't change color here, just remember the
24257 settings, color will be set in grub_ncurses_setcolorstate.
24258 (grub_ncurses_getcolor): New function.
24259 (grub_ncurses_init): Initialize color pairs.
24260 (grub_ncurses_term): New member grub_ncurses_getcolor.
24261
24262 2008-08-05 Colin D Bennett <colin@gibibit.com>
24263
24264 High resolution timer support. Implemented for x86 CPUs using TSC.
24265 Extracted generic grub_millisleep() so it's linked in only as needed.
24266 This requires a Pentium compatible CPU; if the RDTSC instruction is
24267 not supported, then it falls back on the generic grub_get_time_ms()
24268 implementation that uses the machine's RTC.
24269
24270 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
24271 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
24272 `kern/generic/millisleep.c'.
24273
24274 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
24275 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
24276
24277 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
24278 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
24279
24280 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
24281
24282 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
24283 `kern/generic/millisleep.c'.
24284
24285 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
24286
24287 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
24288
24289 * kern/generic/rtc_get_time_ms.c: New file.
24290
24291 * kern/generic/millisleep.c: New file.
24292
24293 * kern/misc.c: Don't include
24294 <kern/time.h> anymore.
24295 (grub_millisleep_generic): Removed.
24296
24297 * commands/sleep.c (grub_interruptible_millisleep): Uses
24298 grub_get_time_ms() instead of grub_get_rtc().
24299
24300 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
24301 function.
24302 (grub_cpu_is_cpuid_supported): New inline function.
24303 (grub_cpu_is_tsc_supported): New inline function.
24304 (grub_tsc_init): New function prototype.
24305 (grub_tsc_get_time_ms): New function prototype.
24306
24307 * kern/i386/tsc.c (grub_get_time_ms): New file.
24308
24309 * include/grub/time.h: Include <grub/types.h.
24310 (grub_millisleep_generic): Removed.
24311 (grub_get_time_ms): New prototype.
24312 (grub_install_get_time_ms): New prototype.
24313 (grub_rtc_get_time_ms): New prototype.
24314
24315 * kern/time.c (grub_get_time_ms): New function.
24316 (grub_install_get_time_ms): New function.
24317
24318 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
24319 <grub/time.h> anymore.
24320 (grub_millisleep): Removed.
24321 (grub_machine_init): Call grub_tsc_init.
24322
24323 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
24324 get_time_ms() implementation.
24325
24326 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
24327 (ieee1275_get_time_ms): New function.
24328 (grub_machine_init): Install get_time_ms() implementation.
24329
24330 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
24331 (grub_machine_init): Call grub_tsc_init().
24332 (grub_millisleep): Removed.
24333
24334 * kern/ieee1275/init.c (grub_millisleep): Removed.
24335 (grub_machine_init): Install ieee1275_get_time_ms()
24336 implementation.
24337 (ieee1275_get_time_ms): New function.
24338 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
24339 real work.
24340
24341 2008-08-05 Marco Gerards <marco@gnu.org>
24342
24343 * disk/ata.c: Include <grub/pci.h>.
24344 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
24345 (grub_ata_initialize): Rewritten.
24346 (grub_ata_device_initialize): New function.
24347
24348 2008-08-04 Pavel Roskin <proski@gnu.org>
24349
24350 * kern/main.c: Include grub/mm.h.
24351
24352 2008-08-04 Robert Millan <rmh@aybabtu.com>
24353
24354 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
24355 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
24356 corruption problem).
24357
24358 2008-08-04 Robert Millan <rmh@aybabtu.com>
24359
24360 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
24361 warnings introduced in my last commit.
24362
24363 2008-08-03 Robert Millan <rmh@aybabtu.com>
24364
24365 Make PCI available on all i386 architectures.
24366
24367 * include/grub/i386/pc/pci.h: Move from here ...
24368 * include/grub/i386/pci.h: ... to here.
24369
24370 * include/grub/i386/pc/pci.h: Remove.
24371 * include/grub/i386/efi/pci.h: Remove.
24372 * include/grub/x86_64/efi/pci.h: Remove.
24373
24374 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
24375 `<grub/cpu/pci.h>'.
24376
24377 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
24378 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
24379 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
24380
24381 * conf/i386-ieee1275.rmk: Likewise.
24382
24383 2008-08-03 Robert Millan <rmh@aybabtu.com>
24384
24385 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
24386 (grub_console_setcursor): Make it possible to set cursor off.
24387
24388 2008-08-03 Robert Millan <rmh@aybabtu.com>
24389
24390 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
24391 of modules instead of assuming which platform provides what.
24392 * util/update-grub.in: Likewise.
24393
24394 2008-08-03 Robert Millan <rmh@aybabtu.com>
24395
24396 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
24397 instead of `grub_install_dos_part' to determine whether a drive needs
24398 to be prepended to prefix (`grub_install_dos_part' is not reliable,
24399 because it can be overridden when loading GRUB via Multiboot).
24400
24401 2008-08-02 Robert Millan <rmh@aybabtu.com>
24402
24403 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
24404
24405 2008-08-02 Robert Millan <rmh@aybabtu.com>
24406
24407 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
24408 of informational grub_dprintf() calls.
24409
24410 2008-08-02 Robert Millan <rmh@aybabtu.com>
24411
24412 * disk/memdisk.c (memdisk_size): Don't initialize.
24413 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
24414
24415 * include/grub/i386/pc/kernel.h
24416 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
24417 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
24418 (grub_memdisk_image_size, grub_arch_memdisk_addr)
24419 (grub_arch_memdisk_size): Remove.
24420
24421 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
24422 field (was only used to transfer a constant). Add `type' field to
24423 support multiple module types.
24424 (grub_module_iterate): New function.
24425
24426 * kern/device.c (grub_device_open): Do not hide error messages
24427 when grub_disk_open() fails. Use grub_print_error() instead.
24428
24429 * kern/i386/pc/init.c (grub_arch_modules_addr)
24430 (grub_arch_memdisk_size): Remove functions.
24431 (grub_arch_modules_addr): Return the module address in high memory
24432 (now that it isn't copied anymore).
24433
24434 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
24435 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
24436 decompression routine (grub_total_module_size already includes that
24437 now). Don't copy modules back to low memory.
24438
24439 * kern/main.c: Include `<grub/mm.h>'.
24440 (grub_load_modules): Split out (and use) ...
24441 (grub_module_iterate): ... this function, which iterates through
24442 module objects and runs a hook.
24443 Comment out grub_mm_init_region() call, as it would cause non-ELF
24444 modules to be overwritten.
24445
24446 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
24447 the memdisk image in its own region, make it part of the module list.
24448 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
24449 (main): Parse --memdisk|-m option, and pass user-provided path as
24450 parameter to generate_image().
24451 (add_segments): Pass `memdisk_path' down to load_modules().
24452 (load_modules): Embed memdisk image in module section when requested.
24453 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
24454 `header.type' instead of `header.offset'.
24455
24456 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
24457 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
24458 (memdisk_mod_LDFLAGS): New variables.
24459 * conf/i386-coreboot.rmk: Likewise.
24460 * conf/i386-ieee1275.rmk: Likewise.
24461
24462 2008-08-02 Robert Millan <rmh@aybabtu.com>
24463
24464 * loader/i386/pc/multiboot.c (playground, forward_relocator)
24465 (backward_relocator): New variables. Used to allocate and relocate
24466 the payload, respectively.
24467 (grub_multiboot_load_elf32): Load into heap instead of requested
24468 address, install the appropriate relocator code in each bound of
24469 the payload, and set the entry point such that
24470 grub_multiboot_real_boot() will jump to one of them.
24471
24472 * kern/i386/loader.S (grub_multiboot_payload_size)
24473 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
24474 (grub_multiboot_payload_entry_offset): New variables.
24475 (grub_multiboot_real_boot): Set cpu context to what the relocator
24476 expects, and jump to the relocator instead of the payload.
24477
24478 * include/grub/i386/loader.h (grub_multiboot_payload_size)
24479 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
24480 (grub_multiboot_payload_entry_offset): Export.
24481
24482 2008-08-01 Bean <bean123ch@gmail.com>
24483
24484 * normal/menu_entry.c (editor_getline): Don't return the original
24485 string as result, as it will be released by lexer once it has done
24486 using it.
24487
24488 2008-08-01 Robert Millan <rmh@aybabtu.com>
24489
24490 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
24491 within menuentries, not before them.
24492 util/grub.d/10_hurd.in: Likewise.
24493
24494 2008-08-01 Bean <bean123ch@gmail.com>
24495
24496 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
24497 (bufio_mod_SOURCES): New macro.
24498 (bufio_mod_CFLAGS): Likewise.
24499 (bufio_mod_LDFLAGS): Likewise.
24500
24501 * include/grub/bufio.h: New file.
24502
24503 * io/bufio.c: Likewise.
24504
24505 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
24506 (grub_video_reader_png): Use grub_buffile_open to open file.
24507
24508 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
24509 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
24510
24511 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
24512 (grub_video_reader_tga): Use grub_buffile_open to open file.
24513
24514 * font/manager.c: Include <grub/bufio.h>.
24515 (add_font): Use grub_buffile_open to open file.
24516
24517 2008-07-31 Robert Millan <rmh@aybabtu.com>
24518
24519 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
24520 ELF segments, use a macro for arbitrarily accessing any of them instead
24521 of preparing a pointer that allows access to one at a time.
24522 (grub_multiboot_load_elf64): Likewise.
24523
24524 2008-07-31 Bean <bean123ch@gmail.com>
24525
24526 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
24527 GRUB_KERNEL_MACHINE_DATA_END.
24528
24529 2008-07-30 Robert Millan <rmh@aybabtu.com>
24530
24531 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
24532 Increase from 0x50 to 0x60.
24533 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
24534 use UUIDs to identify the root drive for them. If that's not
24535 possible, abort.
24536 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
24537 check, for cross-disk installs.
24538
24539 2008-07-30 Robert Millan <rmh@aybabtu.com>
24540
24541 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
24542 is non-empty, use it to set the `prefix' environment variable instead
24543 of the usual approach.
24544 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
24545 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
24546 environment variable instead of dummy make_install_device().
24547
24548 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
24549 (start): Insert a data section, with `grub_prefix' variable.
24550 * kern/i386/linuxbios/startup.S: Likewise.
24551
24552 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
24553 New variable reference.
24554 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
24555 New macro. Defines offset of `grub_prefix' within startup.S (relative
24556 to `start').
24557 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
24558 section within startup.S (relative to `start').
24559 * include/grub/i386/coreboot/kernel.h: Likewise.
24560
24561 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
24562 Overwrite grub_prefix with its contents, at the beginning of the
24563 first segment.
24564 (main): Understand -p|--prefix.
24565
24566 2008-07-30 Robert Millan <rmh@aybabtu.com>
24567
24568 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
24569
24570 2008-07-30 Robert Millan <rmh@aybabtu.com>
24571
24572 * term/i386/pc/vga_text.c (grub_console_cls): Use
24573 grub_console_gotoxy() to go back to beginning of the screen.
24574 Found by Patrick Georgi <patrick.georgi@coresystems.de>
24575
24576 2008-07-29 Christian Franke <franke@computer.org>
24577
24578 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
24579 Add conversion of emulated mount points on Cygwin.
24580
24581 2008-07-29 Christian Franke <franke@computer.org>
24582
24583 * util/update-grub.in: Add a check for admin
24584 group on Cygwin.
24585 Remove old `grub.cfg.new' before creation.
24586 Add `-f' to `mv' to handle the different filesystem
24587 semantics of Windows.
24588
24589 2008-07-29 Bean <bean123ch@gmail.com>
24590
24591 * normal/main.c (get_line): Fix buffer overflow bug.
24592
24593 2008-07-28 Robert Millan <rmh@aybabtu.com>
24594
24595 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
24596 (struct grub_apple_header): New struct. Describes the layout of
24597 the partmap header.
24598 (apple_partition_map_iterate): Check the header magic as well as the
24599 partition magic (which was already being checked).
24600
24601 2008-07-28 Pavel Roskin <proski@gnu.org>
24602
24603 * genmk.rb: Add a warning to the beginning of the output that
24604 it's a generated file and should not be edited.
24605
24606 2008-07-28 Robert Millan <rmh@aybabtu.com>
24607
24608 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
24609 with the same number are found, just use issue a warning with
24610 grub_dprintf(), as this error has been reported to be non-fatal.
24611
24612 2008-07-27 Robert Millan <rmh@aybabtu.com>
24613
24614 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
24615 information.
24616
24617 2008-07-27 Bean <bean123ch@gmail.com>
24618
24619 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
24620 (grub_fat_find_dir): Ignore case when comparing filename.
24621
24622 2008-07-27 Bean <bean123ch@gmail.com>
24623
24624 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
24625 smallino, as it's more descriptive, and i8count can be confused with
24626 the other field count.
24627 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
24628 inode type.
24629
24630 2008-07-27 Bean <bean123ch@gmail.com>
24631
24632 * commands/crc.c: New file.
24633
24634 * lib/crc.c: Likewise.
24635
24636 * include/grub/lib/crc.h: Likewise.
24637
24638 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
24639
24640 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
24641 (hexdump): Move this function to ...
24642
24643 * lib/hexdump.c: ... here.
24644
24645 * include/grub/hexdump.h: Renamed to ...
24646
24647 * include/grub/lib/hexdump.h: ... this.
24648
24649 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
24650
24651 * util/grub-editenv.c: Likewise.
24652
24653 * include/envblk.h: Renamed to ...
24654
24655 * include/lib/envblk.h: ... this.
24656
24657 * util/envblk.c: Renamed to ...
24658
24659 * lib/envblk.c: ... this.
24660
24661 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
24662 lib/hexdump.c.
24663 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
24664 (pkglib_MODULES): Add crc.mod.
24665 (hexdump_mod_SOURCES): Add lib/hexdump.c.
24666 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
24667 (crc_mod_SOURCES): New macro.
24668 (crc_mod_CFLAGS): Likewise.
24669 (crc_mod_LDFLAGS): Likewise.
24670
24671 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
24672
24673 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
24674
24675 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
24676
24677 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24678
24679 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
24680
24681 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
24682
24683 * commands/help.c: Include <grub/term.h>.
24684 (TERM_WIDTH): Removed. Updated all users.
24685
24686 2008-07-27 Pavel Roskin <proski@gnu.org>
24687
24688 * util/getroot.c (find_root_device): Rephrase a comment to avoid
24689 spurious warnings about a comment within a comment.
24690
24691 2008-07-25 Robert Millan <rmh@aybabtu.com>
24692
24693 * util/getroot.c (find_root_device): Skip devices that match
24694 /dev/dm-[0-9]. This lets the real device be found for any type of
24695 abstraction (LVM, EVMS, RAID..).
24696 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
24697 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
24698 device is found first, find_root_device() will now skip it.
24699
24700 2008-07-24 Pavel Roskin <proski@gnu.org>
24701
24702 * include/grub/types.h: Use __builtin_bswap32() and
24703 __builtin_bswap64() with gcc 4.3 and newer.
24704
24705 2008-07-24 Christian Franke <franke@computer.org>
24706
24707 * util/i386/pc/grub-install.in: If `--debug' is specified,
24708 pass `--verbose' to grub-setup.
24709 Abort script if make_system_path_relative_to_its_root() fails.
24710
24711 2008-07-24 Bean <bean123ch@gmail.com>
24712
24713 * configure.ac: Fixed a bug caused by the previous cygwin patch,
24714 variable `target_platform' should be `platform'.
24715
24716 2008-07-24 Bean <bean123ch@gmail.com>
24717
24718 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
24719 (grub_png_init_fixed_block): New function.
24720 (grub_png_decode_image_data): Handle fixed huffman code compression.
24721
24722 2008-07-24 Bean <bean123ch@gmail.com>
24723
24724 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
24725 (grub_pe2elf_SOURCES): New macro.
24726 (CLEANFILES): Add grub-pe2elf.
24727
24728 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
24729 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
24730 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
24731 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
24732 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
24733 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
24734 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
24735 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
24736 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
24737 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
24738 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
24739 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
24740 (GRUB_PE32_DT_FUNCTION): Likewise.
24741 (GRUB_PE32_REL_I386_DIR32): Likewise.
24742 (GRUB_PE32_REL_I386_REL32): Likewise.
24743 (grub_pe32_symbol): New structure.
24744 (grub_pe32_reloc): Likewise.
24745
24746 * util/grub-pe2elf.c: New file.
24747
24748 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
24749 start symbol in non pc platform.
24750
24751 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
24752
24753 The following patches are from Christian Franke.
24754
24755 * include/grub/dl.h: Remove .previous, gas supports this only
24756 for ELF format.
24757
24758 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
24759 Remove .type, gas supports this only for ELF format.
24760
24761 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
24762 nullbytes in symbol table. This fixes an infinite loop if table is
24763 zero filled.
24764
24765 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
24766 TARGET_IMG_LDFLAGS and EXEEXT.
24767
24768 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
24769 TARGET_IMG_LDFLAGS_AC.
24770 (grub_CHECK_STACK_ARG_PROBE): New function.
24771
24772 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
24773
24774 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
24775
24776 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
24777 to set TARGET_IMG_LD* accordingly.
24778 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
24779 Add call to grub_CHECK_STACK_ARG_PROBE.
24780 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
24781
24782 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
24783
24784 * genmk.rb: Add EXEEXT to CLEANFILES.
24785
24786 2008-07-23 Robert Millan <rmh@aybabtu.com>
24787
24788 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
24789 define the codes for arrows and lines used for the menu).
24790 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
24791 as well.
24792
24793 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
24794 fonts, because the latter are too slow.
24795
24796 2008-07-21 Bean <bean123ch@gmail.com>
24797
24798 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
24799 a20. Run keyboard test last, as it will cause macbook to halt.
24800
24801 2008-07-18 Pavel Roskin <proski@gnu.org>
24802
24803 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
24804 load foreign architecture modules correctly anyway. Keep
24805 support for loading host architecture modules, whether we
24806 compile them or not.
24807
24808 2008-07-17 Pavel Roskin <proski@gnu.org>
24809
24810 * configure.ac: Use -m32 or -m64 regardless of whether we had to
24811 change target_cpu. The compiler default can mismatch target_cpu
24812 in any case.
24813
24814 * disk/efi/efidisk.c: Fix format warnings on x86_64.
24815 * kern/efi/efi.c: Likewise.
24816
24817 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
24818 target compiler is functional.
24819 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
24820 are set up.
24821
24822 * configure.ac: Default to efi platform for x86_64-apple. Allow
24823 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
24824 adjustments from the rest, only do them if target is not
24825 explicitly given. Merge other adjustments with the final sanity
24826 check. Remove an extraneous check for supported CPU. Be
24827 specific which CPU and which platform is not supported.
24828
24829 * configure.ac: Default to pc platform for x86_64.
24830
24831 2008-07-17 Robert Millan <rmh@aybabtu.com>
24832
24833 Partial LinuxBIOS -> Coreboot rename.
24834
24835 * conf/i386-linuxbios.rmk: Renamed to ...
24836 * conf/i386-coreboot.rmk: ... this.
24837 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
24838 * configure.ac: Accept "coreboot" as input platform (but maintain
24839 compatibility with "linuxbios").
24840 * include/grub/i386/linuxbios: Renamed to ...
24841 * include/grub/i386/coreboot: ... this.
24842
24843 2008-07-17 Bean <bean123ch@gmail.com>
24844
24845 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
24846 (appleldr_mod_SOURCE): New variable.
24847 (appleldr_mod_CFLAGS): Likewise.
24848 (appleldr_mod_LDFLAGS): Likewise.
24849 (pci_mod_SOURCES): Likewise.
24850 (pci_mod_CFLAGS): Likewise.
24851 (pci_mod_LDFLAGS): Likewise.
24852 (lspci_mod_SOURCES): Likewise.
24853 (lspci_mod_CFLAGS): Likewise.
24854 (lspci_mod_LDFLAGS): Likewise.
24855
24856 * conf/x86_64-efi.rmk: New file.
24857
24858 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
24859 macro.
24860 (grub_efidisk_write): Likewise.
24861
24862 * include/efi/api.h (efi_call_0): New macro.
24863 (efi_call_1): Likewise.
24864 (efi_call_2): Likewise.
24865 (efi_call_3): Likewise.
24866 (efi_call_4): Likewise.
24867 (efi_call_5): Likewise.
24868 (efi_call_6): Likewise.
24869
24870 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
24871 grub_rescue_cmd_chainloader.
24872
24873 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
24874 (grub_pe32_optional_header): Change some fields based on i386 or
24875 x86_64 platform.
24876 (GRUB_PE32_PE32_MAGIC): Likewise.
24877
24878 * include/grub/efi/uga_draw.h: New file.
24879
24880 * include/grub/elf.h (STN_ABS): New constant.
24881 (R_X86_64_NONE): Relocation constant for x86_64.
24882 (R_X86_64_64): Likewise.
24883 (R_X86_64_PC32): Likewise.
24884 (R_X86_64_GOT32): Likewise.
24885 (R_X86_64_PLT32): Likewise.
24886 (R_X86_64_COPY): Likewise.
24887 (R_X86_64_GLOB_DAT): Likewise.
24888 (R_X86_64_JUMP_SLOT): Likewise.
24889 (R_X86_64_RELATIVE): Likewise.
24890 (R_X86_64_GOTPCREL): Likewise.
24891 (R_X86_64_32): Likewise.
24892 (R_X86_64_32S): Likewise.
24893 (R_X86_64_16): Likewise.
24894 (R_X86_64_PC16): Likewise.
24895 (R_X86_64_8): Likewise.
24896 (R_X86_64_PC8): Likewise.
24897
24898 * include/grub/i386/efi/pci.h: New file.
24899
24900 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
24901 Change it value based on platform.
24902 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
24903 (GRUB_E820_RAM): Likewise.
24904 (GRUB_E820_RESERVED): Likewise.
24905 (GRUB_E820_ACPI): Likewise.
24906 (GRUB_E820_NVS): Likewise.
24907 (GRUB_E820_EXEC_CODE): Likewise.
24908 (GRUB_E820_MAX_ENTRY): Likewise.
24909 (grub_e820_mmap): New structure.
24910 (linux_kernel_header): Change the efi field according to different
24911 kernel version, also field from linux_kernel_header.
24912
24913 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
24914
24915 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
24916 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
24917 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
24918 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
24919 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
24920 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
24921 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
24922 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
24923 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
24924 (GRUB_PCI_ADDR_IO_MASK): Likewise.
24925
24926 * include/grub/x86_64/efi/kernel.h: New file.
24927
24928 * include/grub/x86_64/efi/loader.h: Likewise.
24929
24930 * include/grub/x86_64/efi/machine.h: Likewise.
24931
24932 * include/grub/x86_64/efi/pci.h: Likewise.
24933
24934 * include/grub/x86_64/efi/time.h: Likewise.
24935
24936 * include/grub/x86_64/linux.h: Likewise.
24937
24938 * include/grub/x86_64/setjmp.h: Likewise.
24939
24940 * include/grub/x86_64/time.h: Likewise.
24941
24942 * include/grub/x86_64/types.h: Likewise.
24943
24944 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
24945 GRUB_TARGET_SIZEOF_VOID_P.
24946
24947 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
24948 (grub_efi_locate_handle): Likewise.
24949 (grub_efi_open_protocol): Likewise.
24950 (grub_efi_set_text_mode): Likewise.
24951 (grub_efi_stall): Likewise.
24952 (grub_exit): Likewise.
24953 (grub_reboot): Likewise.
24954 (grub_halt): Likewise.
24955 (grub_efi_exit_boot_services): Likewise.
24956 (grub_get_rtc): Likewise.
24957
24958 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
24959 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
24960 (grub_efi_allocate_pages): Wrap efi calls.
24961 (grub_efi_free_pages): Wrap efi calls.
24962 (grub_efi_get_memory_map): Wrap efi calls.
24963
24964 * kern/x86_64/dl.c: New file.
24965
24966 * kern/x86_64/efi/callwrap.S: Likewise.
24967
24968 * kern/x86_64/efi/startup.S: Likewise.
24969
24970 * loader/efi/appleloader.c: Likewise.
24971
24972 * loader/efi/chainloader.c (cmdline): New variable.
24973 (grub_chainloader_unload): Wrap efi calls.
24974 (grub_chainloader_boot): Likewise.
24975 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
24976 command line.
24977
24978 * loader/efi/chainloader_normal.c (chainloader_command):
24979 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
24980 command line.
24981
24982 * loader/i386/efi/linux.c (allocate_pages): Change allocation
24983 method.
24984 (grub_e820_add_region): New function.
24985 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
24986 booting.
24987 (grub_find_video_card): New function.
24988 (grub_linux_setup_video): New function.
24989 (grub_rescue_cmd_linux): Probe for video information.
24990
24991 * normal/x86_64/setjmp.S: New file.
24992
24993 * term/efi/console.c (map_char): New function.
24994 (grub_console_putchar): Map unicode char.
24995 (grub_console_checkkey): Wrap efi calls.
24996 (grub_console_getkey): Likewise.
24997 (grub_console_getwh): Likewise.
24998 (grub_console_gotoxy): Likewise.
24999 (grub_console_cls): Likewise.
25000 (grub_console_setcolorstate): Likewise.
25001 (grub_console_setcursor): Likewise.
25002
25003 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
25004
25005 2008-07-16 Pavel Roskin <proski@gnu.org>
25006
25007 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
25008 format strings.
25009
25010 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
25011 pointer, not an integer. This fixes a warning and prevents
25012 precision loss on 64-bit systems.
25013 (relocate_addresses): Remove unneeded cast.
25014
25015 2008-07-15 Pavel Roskin <proski@gnu.org>
25016
25017 * kern/i386/ieee1275/init.c: Include grub/cache.h.
25018
25019 * term/ieee1275/ofconsole.c: Disable code unused on i386.
25020
25021 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
25022 Fix comparison between signed and unsigned.
25023
25024 * include/grub/i386/ieee1275/console.h: Declare
25025 grub_console_init() and grub_console_fini().
25026
25027 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
25028 It's empty and unused.
25029
25030 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
25031 beginning to avoid warnings with some compilers.
25032
25033 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
25034 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
25035
25036 2008-07-14 Pavel Roskin <proski@gnu.org>
25037
25038 * kern/env.c (grub_register_variable_hook): Don't copy empty
25039 string, it leaks memory. Pass "" to grub_env_set(), it should
25040 handle constant strings.
25041
25042 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
25043 * commands/cmp.c (grub_cmd_cmp): Likewise.
25044 * kern/dl.c (grub_dl_flush_cache): Likewise.
25045 (grub_dl_load_core): Likewise.
25046 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
25047 (grub_elf64_load_phdrs): Likewise.
25048
25049 2008-07-13 Pavel Roskin <proski@gnu.org>
25050
25051 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
25052 between signed and unsigned.
25053 (LzmaEnc_Finish): Fix warning about an unused parameter.
25054
25055 2008-07-13 Bean <bean123ch@gmail.com>
25056
25057 * Makefile.in (enable_lzo): New rule.
25058
25059 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
25060
25061 * configure.ac (ENABLE_LZO): New option --enable-lzo.
25062
25063 * boot/i386/pc/lnxboot.S: #include <config.h>.
25064
25065 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
25066 its value according to the compression algorithm used, lzo or lzma.
25067
25068 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
25069 compression algorithm according to configure macro.
25070
25071 * kern/i386/pc/startup.S (codestart): Likewise.
25072
25073 * kern/i386/pc/lzma_decode.S: New file.
25074
25075 * include/grub/lib/LzFind.h: Likewise.
25076
25077 * include/grub/lib/LzHash.h: Likewise.
25078
25079 * include/grub/lib/LzmaDec.h: Likewise.
25080
25081 * include/grub/lib/LzmaEnc.h: Likewise.
25082
25083 * include/grub/lib/LzmaTypes.h: Likewise.
25084
25085 * lib/LzFind.c: Likewise.
25086
25087 * lib/LzmaDec.c: Likewise.
25088
25089 * lib/LzmaEnc.c: Likewise.
25090
25091 2008-07-13 Bean <bean123ch@gmail.com>
25092
25093 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
25094 (grub_ext4_extent_header): New structure.
25095 (grub_ext4_extent): Likewise.
25096 (grub_ext4_extent_idx): Likewise.
25097 (grub_ext4_find_leaf): New function.
25098 (grub_ext2_read_block): Handle extents.
25099
25100 2008-07-12 Robert Millan <rmh@aybabtu.com>
25101
25102 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
25103
25104 2008-07-11 Robert Millan <rmh@aybabtu.com>
25105
25106 * util/grub.d/40_custom.in: New file. Example on how to add custom
25107 entries to /etc/grub.d.
25108 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
25109 40_custom (implicitly, by merging all the grub.d rules).
25110
25111 2008-07-11 Pavel Roskin <proski@gnu.org>
25112
25113 * commands/read.c (grub_getline): Fix invalid memory access.
25114 Don't add newline to the variable value.
25115
25116 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
25117 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
25118 (serial_hw_get_port): Check validity of the port number.
25119 (grub_cmd_serial): Check return value of serial_hw_get_port().
25120
25121 2008-07-07 Pavel Roskin <proski@gnu.org>
25122
25123 * boot/i386/pc/diskboot.S (notification_string): Replace
25124 "Loading kernel" with just "loading". This is shorter, less
25125 confusing and saves a few bytes for possible future changes.
25126
25127 2008-07-05 Pavel Roskin <proski@gnu.org>
25128
25129 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
25130 size for ATAPI devices, they are undefined. Output sector
25131 number in decimal form.
25132
25133 * disk/ata.c: Use named constants for status bits.
25134
25135 2008-07-04 Pavel Roskin <proski@gnu.org>
25136
25137 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
25138 grub_addr_t before casting it to the void pointer to fix a
25139 warning. Non-addressable regions are discarded earlier.
25140 (grub_arch_modules_addr): Cast _end to grub_addr_t.
25141 * kern/i386/linuxbios/table.c: Include grub/misc.h.
25142 (check_signature): Don't shadow table_header.
25143 (grub_linuxbios_table_iterate): Cast numeric constants to
25144 grub_linuxbios_table_header_t.
25145 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
25146 grub_stop().
25147
25148 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
25149 prevent warnings.
25150
25151 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
25152 pointer, which can cause warnings. Support 64-bit addresses.
25153
25154 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
25155 of sizeof(long). This fixes PowerPC image generation on x86_64.
25156
25157 2008-07-04 Robert Millan <rmh@aybabtu.com>
25158
25159 This fixes a performance issue when pc & gpt partmap iterators
25160 didn't abort iteration even after our hook found what it was
25161 looking for (often causing expensive probes of non-existent drives).
25162
25163 Some callers relied on previous buggy behaviour, since they would
25164 raise an error when their own hooks caused early abortion of its
25165 iteration.
25166
25167 * kern/device.c (grub_device_open): Improve error message.
25168 * disk/lvm.c (grub_lvm_open): Likewise.
25169 * disk/raid.c (grub_raid_open): Likewise.
25170
25171 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
25172 when hook requests it, independently of grub_errno.
25173 (pc_partition_map_probe): Do not fail when find_func() caused
25174 early abortion of pc_partition_map_iterate().
25175
25176 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
25177 when hook requests it, independently of grub_errno.
25178 (gpt_partition_map_probe): Do not fail when find_func() caused
25179 early abortion of gpt_partition_map_iterate().
25180
25181 * kern/partition.c (grub_partition_iterate): Abort parent iteration
25182 when hook requests it, independently of grub_errno. Do not fail when
25183 part_map_iterate_hook() caused early abortion of p->iterate().
25184
25185 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
25186 when grub_partition_iterate() returned with non-zero.
25187
25188 2008-07-03 Pavel Roskin <proski@gnu.org>
25189
25190 * disk/ata.c (grub_ata_pio_write): Check status before writing,
25191 like we do in grub_ata_pio_read().
25192 (grub_ata_readwrite): Always write individual sectors. Fix the
25193 sector count for the remainder.
25194 (grub_ata_write): Enable writing to ATA devices. Correctly
25195 report error for ATAPI devices.
25196
25197 2008-07-02 Pavel Roskin <proski@gnu.org>
25198
25199 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
25200 warning.
25201
25202 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
25203 for every read sector, we already increment it for the whole
25204 batch. This fixes reading more than 256 sectors at once.
25205
25206 * util/grub-editenv.c (cmd_info): Cast argument to long
25207 explicitly. ptrdiff_t reduces to int on i386.
25208
25209 * util/grub-editenv.c (main): Be specific which parameter is
25210 missing.
25211
25212 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
25213 (memdisk): Make memdisk_orig_addr a pointer.
25214
25215 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
25216 for file offsets, use grub_off_t instead. Fix printf format
25217 warnings.
25218
25219 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
25220 there. Real unexpected warnings should not drown in the noise
25221 about known problems.
25222
25223 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
25224 grub_disk_addr_t for memory addresses.
25225
25226 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
25227 explicitly to fix a warning.
25228
25229 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
25230
25231 * Makefile.in (MODULE_LDFLAGS): New variable.
25232 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
25233 the linker accepts --build-id=none.
25234 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
25235 MODULE_LDFLAGS.
25236 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
25237
25238 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
25239 those in Linux XFS code. Provide a way to access 64-bit parent
25240 inode.
25241 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
25242 the end of struct grub_xfs_dir_header.
25243
25244 2008-07-02 Bean <bean123ch@gmail.com>
25245
25246 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
25247 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
25248 and GRUB_IEEE1275_FLAG_NO_ANSI.
25249
25250 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
25251 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
25252 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
25253
25254 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
25255 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
25256
25257 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
25258 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
25259
25260 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
25261 esc sequence on non ANSI terminal.
25262 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
25263
25264 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
25265 beginning of file.
25266
25267 2008-07-02 Bean <bean123ch@gmail.com>
25268
25269 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
25270 (grub_editenv_SOURCES): New variable.
25271 (pkglib_MODULES): Add loadenv.mod.
25272 (loadenv_mod_SOURCES): New variable.
25273 (loadenv_mod_CFLAGS): Likewise.
25274 (loadenv_mod_LDFLAGS): Likewise.
25275
25276 * include/grub/envblk.h: New file.
25277
25278 * util/envblk.c: New file.
25279
25280 * util/grub-editenv.c: New file.
25281
25282 * commands/loadenv.c: New file.
25283
25284 2008-07-01 Pavel Roskin <proski@gnu.org>
25285
25286 * include/multiboot2.h (struct multiboot_tag_module): Use char,
25287 not unsigned char. This fixes warnings and is consistent with
25288 other tags.
25289
25290 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
25291
25292 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
25293
25294 * term/tparm.c (analyze): Always set *popcount.
25295
25296 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
25297 cast to fix a warning.
25298
25299 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
25300 cast to suppress a warning.
25301
25302 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
25303 grub_fshelp_read_file() expects.
25304
25305 * fs/fat.c: Fix UUID calculation on big-endian systems. We
25306 write uuid as a 32-bit value in CPU byte order, so declare and
25307 use it as such.
25308
25309 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
25310 long if the format specifier expects it.
25311 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
25312 * partmap/pc.c (pc_partition_map_iterate): Likewise.
25313 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
25314 long to fix a warning.
25315 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
25316 grub_dprintf() arguments to fix warnings.
25317
25318 2008-06-30 Pavel Roskin <proski@gnu.org>
25319
25320 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
25321 install_bsd_part immediately before core.img is embedded or
25322 modified on disk. This fixes core.img verification if core.img
25323 cannot be embedded.
25324
25325 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
25326 core_path to calculate the blocklist.
25327 Patch from Javier Martín <lordhabbit@gmail.com>
25328
25329 2008-06-29 Robert Millan <rmh@aybabtu.com>
25330
25331 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
25332 block to disk block.
25333 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
25334 Patch from Niels Böhm <bitbucket@arcor.de>
25335
25336 2008-06-29 Robert Millan <rmh@aybabtu.com>
25337
25338 * util/update-grub_lib.in (font_path): Search for fonts in
25339 /boot/grub first, which is more likely to be readable (we aren't
25340 deciding where fonts live, just looking for them).
25341
25342 2008-06-26 Pavel Roskin <proski@gnu.org>
25343
25344 * util/biosdisk.c (read_device_map): Don't leave dead map
25345 entries for devices failing stat() check.
25346
25347 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
25348 core_path_dev for the core.img path on the target device.
25349
25350 2008-06-26 Robert Millan <rmh@aybabtu.com>
25351
25352 * disk/fs_uuid.c: New file.
25353 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
25354 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
25355 (fs_uuid_mod_LDFLAGS): New variables.
25356 * include/grub/disk.h (grub_disk_dev_id): Add
25357 `GRUB_DISK_DEVICE_UUID_ID'.
25358 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
25359 implement iterate().
25360
25361 2008-06-26 Robert Millan <rmh@aybabtu.com>
25362
25363 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
25364 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
25365 Linux image includes no initrd.
25366
25367 2008-06-21 Javier Martín <lordhabbit@gmail.com>
25368
25369 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
25370 call to resolve the core image location that effectively appended the
25371 name twice.
25372
25373 2008-06-21 Robert Millan <rmh@aybabtu.com>
25374
25375 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
25376 call from here ...
25377
25378 * util/grub.d/10_hurd.in: ... to here ...
25379 * util/grub.d/10_linux.in: ... and here.
25380
25381 2008-06-19 Robert Millan <rmh@aybabtu.com>
25382
25383 * kern/main.c (grub_main): Export `prefix' variable immediately
25384 after it has been set by grub_machine_set_prefix().
25385
25386 2008-06-19 Robert Millan <rmh@aybabtu.com>
25387
25388 * commands/search.c (search_label, search_fs_uuid, search_file): Print
25389 search result when not saving to variable, not the other way around.
25390 When saving to variable, abort iteration as soon as a match is found.
25391
25392 2008-06-19 Robert Millan <rmh@aybabtu.com>
25393
25394 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
25395 check for partition that provides /boot/grub. Its logic is flawed,
25396 as it prevents prepare_grub_to_access_device() from being called
25397 multiple times.
25398
25399 2008-06-19 Robert Millan <rmh@aybabtu.com>
25400
25401 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
25402 "insmod" command directly when abstraction modules are needed,
25403 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
25404 since it had already been processed).
25405
25406 2008-06-19 Pavel Roskin <proski@gnu.org>
25407
25408 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
25409 changed. This is needed in case GRUB_LIBDIR changes.
25410 * conf/i386-ieee1275.rmk: Likewise.
25411 * conf/i386-linuxbios.rmk: Likewise.
25412 * conf/i386-pc.rmk: Likewise.
25413 * conf/powerpc-ieee1275.rmk: Likewise.
25414
25415 2008-06-18 Pavel Roskin <proski@gnu.org>
25416
25417 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
25418 kernel_elf_symlist.c to symlist.c for consistency with other
25419 architectures. Update all users.
25420 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
25421
25422 2008-06-18 Robert Millan <rmh@aybabtu.com>
25423
25424 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
25425 it in prefix.
25426
25427 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
25428 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
25429 a RAID device, run setup() for all members independently on whether
25430 LVM abstraction is being used.
25431 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
25432 If grub-mkimage has set `*install_dos_part == -2', don't override this
25433 value.
25434 Perform *install_dos_part adjustments independently on whether
25435 we're embedding or not.
25436 Clarify error message when image is too big for embedding.
25437 Remove duplicate *install_dos_part stanza.
25438
25439 2008-06-17 Robert Millan <rmh@aybabtu.com>
25440
25441 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
25442 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
25443 variables.
25444 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
25445 values in grub_ofconsole_normal_color and
25446 grub_ofconsole_highlight_color (they're not directly related to
25447 background and foreground).
25448 (grub_ofconsole_setcolorstate): Extract background and foreground
25449 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
25450
25451 2008-06-17 Robert Millan <rmh@aybabtu.com>
25452
25453 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
25454 /boot/grub for the check in last commit, not /boot (they could be
25455 different partitions).
25456
25457 2008-06-16 Robert Millan <rmh@aybabtu.com>
25458
25459 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
25460 asked to setup access for the same partition that provides /boot,
25461 don't bother using UUIDs since our root already has the value we
25462 want.
25463
25464 2008-06-16 Robert Millan <rmh@aybabtu.com>
25465
25466 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
25467 I2O devices.
25468 Patch from Sven Mueller <sven@debian.org>.
25469
25470 2008-06-16 Robert Millan <rmh@aybabtu.com>
25471
25472 * util/update-grub.in: Check for $EUID instead of $UID.
25473 Reported by Vincent Zweije.
25474
25475 2008-06-16 Bean <bean123ch@gmail.com>
25476
25477 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
25478 (grub_ext2_read_block): Likewise.
25479 (grub_ext2_read_inode): Likewise.
25480 (grub_ext2_mount): Likewise.
25481 (grub_ext2_close): Likewise.
25482 (grub_ext3_get_journal): Removed.
25483
25484 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
25485 (grub_reiserfs_read_symlink): Likewise.
25486 (grub_reiserfs_mount): Likewise.
25487 (grub_reiserfs_open): Likewise.
25488 (grub_reiserfs_read): Likewise.
25489 (grub_reiserfs_close): Likewise.
25490 (grub_reiserfs_get_journal): Removed.
25491
25492 * fs/fshelp.c (grub_fshelp_read): Removed.
25493 (grub_fshelp_map_block): Likewise.
25494
25495 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
25496 (grub_fshelp_journal): Likewise.
25497 (grub_fshelp_read): Likewise.
25498 (grub_fshelp_map_block): Likewise.
25499
25500 2008-06-16 Pavel Roskin <proski@gnu.org>
25501
25502 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
25503 floating point anymore.
25504 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
25505
25506 2008-06-15 Pavel Roskin <proski@gnu.org>
25507
25508 * commands/ls.c (grub_ls_list_files): Use integer calculations
25509 for human readable format, avoid floating point use.
25510 * kern/misc.c (grub_ftoa): Remove.
25511 (grub_vsprintf): Remove floating point support.
25512
25513 2008-06-15 Robert Millan <rmh@aybabtu.com>
25514
25515 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
25516 devices.
25517 Reported by Max Vozeler.
25518
25519 2008-06-15 Robert Millan <rmh@aybabtu.com>
25520
25521 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
25522 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
25523 skipped later.
25524 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
25525 the beginning of the prefix.
25526
25527 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
25528 It is assumed that if we have a memdisk, grub-mkimage has set
25529 grub_prefix to include the "(memdisk)" drive in it.
25530
25531 2008-06-15 Robert Millan <rmh@aybabtu.com>
25532
25533 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
25534 Initialize keyboard controller after registering the terminal, so that
25535 grub_printf() can be called from grub_keyboard_controller_init().
25536
25537 2008-06-15 Robert Millan <rmh@aybabtu.com>
25538
25539 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
25540 extent-btree which is written as big endian on disk.
25541 Reported by Alain Greppin <al@chilibi.org>.
25542
25543 2008-06-14 Robert Millan <rmh@aybabtu.com>
25544
25545 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
25546 * util/i386/pc/grub-install.in (modules): Likewise.
25547
25548 2008-06-13 Pavel Roskin <proski@gnu.org>
25549
25550 * commands/ls.c (grub_ls_list_files): Fix format warnings.
25551
25552 2008-06-13 Bean <bean123ch@gmail.com>
25553
25554 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
25555
25556 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
25557
25558 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
25559 to indicate sparse block.
25560
25561 2008-06-12 Pavel Roskin <proski@gnu.org>
25562
25563 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
25564 number, grub_fshelp_read() does it for us.
25565
25566 * fs/fshelp.c (grub_fshelp_read): New function. Implement
25567 linear disk read with journal translation.
25568 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
25569 * include/grub/fshelp.h: Declare grub_fshelp_read().
25570
25571 2008-06-09 Pavel Roskin <proski@gnu.org>
25572
25573 * fs/minix.c (grub_minix_mount): Handle error reading
25574 superblock.
25575
25576 2008-06-08 Robert Millan <rmh@aybabtu.com>
25577
25578 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
25579 don't append the RAID prefix afterwards.
25580 Reported by Clint Adams.
25581
25582 2008-06-08 Robert Millan <rmh@aybabtu.com>
25583
25584 Based on description from Pavel:
25585 * kern/disk.c (grub_disk_check_range): Rename to ...
25586 (grub_disk_adjust_range): ... this. Add a comment explaining the
25587 tasks performed by this function.
25588
25589 2008-06-08 Robert Millan <rmh@aybabtu.com>
25590
25591 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
25592 `num_serial' (for consistency with other variables).
25593 (struct grub_ntfs_data): Add `uuid' member.
25594 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
25595 (grub_ntfs_uuid): New function.
25596 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
25597
25598 2008-06-07 Pavel Roskin <proski@gnu.org>
25599
25600 * util/biosdisk.c (open_device): Revert last change to the
25601 function, it broke installation. The sector needs to be
25602 different dependent on which device is opened.
25603
25604 2008-06-06 Robert Millan <rmh@aybabtu.com>
25605
25606 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
25607 rest of GRUB, and breakage doesn't happen if its value were modified.
25608
25609 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
25610 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
25611 a constant (same value).
25612 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
25613 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
25614
25615 2008-06-06 Robert Millan <rmh@aybabtu.com>
25616
25617 * util/biosdisk.c (open_device): Do not modify sector offset when
25618 accessing a partition. kern/disk.c already handles this for us.
25619
25620 2008-06-06 Robert Millan <rmh@aybabtu.com>
25621
25622 * util/grub-emu.c (grub_machine_init): Move code in this function from
25623 here ...
25624 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
25625 segfault in case grub_printf() is called).
25626
25627 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
25628 grub_probe. Update all users not to explicitly add it again.
25629 (grub_device): New variable; contains corresponding device for grubdir.
25630 (fs_module, partmap_module, devabstraction_module): Pass
25631 `--device ${grub_device}' to grub_probe to avoid traversing /dev
25632 every time.
25633
25634 2008-06-05 Robert Millan <rmh@aybabtu.com>
25635
25636 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
25637 is found, print it (same layout as with labels).
25638
25639 2008-06-04 Robert Millan <rmh@aybabtu.com>
25640
25641 * util/biosdisk.c (get_drive): Rename to ...
25642 (find_grub_drive): ... this. Update all users.
25643
25644 (get_os_disk): Rename to ...
25645 (convert_system_partition_to_system_disk): ... this. Update all users.
25646
25647 (find_drive): Rename to ...
25648 (find_system_device): ... this. Update all users.
25649
25650 2008-06-04 Robert Millan <rmh@aybabtu.com>
25651
25652 * util/biosdisk.c (get_os_disk): Handle IDA devices.
25653 * util/grub-mkdevicemap.c (get_mmc_disk_name)
25654 (make_device_map): Likewise.
25655
25656 2008-06-01 Robert Millan <rmh@aybabtu.com>
25657
25658 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
25659 before dereferencing it.
25660
25661 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
25662 union with fat12/fat16-specific ones. Add some new fields, including
25663 `num_serial' for both versions.
25664 (struct grub_fat_data): Add `uuid' member.
25665 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
25666 names. Initialize `data->uuid' using `num_serial'.
25667 (grub_fat_uuid): New function.
25668 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
25669
25670 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
25671 (grub_reiserfs_uuid): New function.
25672 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
25673 member.
25674
25675 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
25676 (grub_xfs_uuid): New function.
25677 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
25678
25679 2008-06-01 Robert Millan <rmh@aybabtu.com>
25680
25681 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
25682 code that is backward compatible with pre-uuid search command.
25683
25684 2008-05-31 Robert Millan <rmh@aybabtu.com>
25685
25686 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
25687 floppies after everything else, to ensure floppy drive isn't accessed
25688 unnecessarily (patch from Bean).
25689
25690 2008-05-31 Robert Millan <rmh@aybabtu.com>
25691
25692 * commands/search.c (search_label, search_fs_uuid, search_file): Do
25693 not print device names when we were asked to set a variable.
25694
25695 2008-05-31 Robert Millan <rmh@aybabtu.com>
25696
25697 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
25698 using "cursor-on" and "cursor-off" commands (understood at least by
25699 the Open Firmware flavour on OLPC).
25700
25701 2008-05-31 Michael Gorven <michael@gorven.za.net>
25702
25703 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
25704 on and off sequences.
25705
25706 2008-05-31 Robert Millan <rmh@aybabtu.com>
25707
25708 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
25709 * util/update-grub.in: Likewise.
25710
25711 2008-05-30 Pavel Roskin <proski@gnu.org>
25712
25713 * util/biosdisk.c (linux_find_partition): Simplify logic and
25714 make the code more universal. Keep special processing for
25715 devfs, but use a simple rule for all other devices. If the
25716 device ends with a number, append 'p' and the partition number.
25717 Otherwise, append only the partition number.
25718
25719 2008-05-30 Robert Millan <rmh@aybabtu.com>
25720
25721 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
25722 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
25723 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
25724 the `root' parameter to Linux.
25725
25726 2008-05-30 Robert Millan <rmh@aybabtu.com>
25727
25728 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
25729 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
25730 --fs_uuid with --fs-uuid.
25731 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
25732 all filesystems support them).
25733
25734 2008-05-30 Robert Millan <rmh@aybabtu.com>
25735
25736 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
25737 grub_printf() flags, since we're printing in units of 2 bytes.
25738
25739 2008-05-30 Robert Millan <rmh@aybabtu.com>
25740
25741 * util/grub.d/00_header.in: Remove obsolete comment referencing
25742 convert_system_path_to_grub_path().
25743 * util/update-grub.in: Likewise.
25744 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
25745 (convert_system_path_to_grub_path): Add a warning message explaining
25746 that this function is deprecated. Rely on is_path_readable_by_grub()
25747 for the readability checks.
25748 (font_path): Use is_path_readable_by_grub() for the readability
25749 check rather than convert_system_path_to_grub_path().
25750
25751 2008-05-30 Robert Millan <rmh@aybabtu.com>
25752
25753 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
25754 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
25755 converting it first.
25756 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
25757 grub.cfg for access to font file, and afterwards call it again to set
25758 the root device.
25759
25760 2008-05-30 Robert Millan <rmh@aybabtu.com>
25761
25762 * commands/search.c (options): Add --fs_uuid option.
25763 (search_fs_uuid): New function.
25764 (grub_cmd_search): Fix --set argument passing.
25765 Use search_fs_uuid() when requested via --fs_uuid.
25766 (grub_search_init): Update help message.
25767 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
25768 and redeclare it as an array of 16-bit words.
25769 (grub_ext2_uuid): New function.
25770 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
25771 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
25772 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
25773 (GRUB_DEVICE_BOOT_UUID): New variables.
25774 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
25775 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
25776 whenever possible.
25777 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
25778 just assume `root' variable has the right value.
25779 * util/grub.d/10_linux.in: Likewise.
25780 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
25781 via PRINT_FS_UUID.
25782 (main): Recognise `-t fs_uuid' argument.
25783
25784 2008-05-30 Robert Millan <rmh@aybabtu.com>
25785
25786 * util/biosdisk.c (map): Redefine structure to hold information
25787 about GRUB drive name.
25788 (get_drive): Reimplement without assuming (and verifying) BIOS-like
25789 drive names.
25790 (call_hook): Remove.
25791 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
25792 member. Assume drive has partitions.
25793 (grub_util_biosdisk_open): Access device names via `.device' struct
25794 member.
25795 (open_device): Likewise.
25796 (find_drive): Likewise.
25797 (read_device_map): Adjust map[] usage to match the new struct
25798 definition. Don't check for duplicates (still possible, but not cheap
25799 anymore).
25800 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
25801 (make_device_name): Remove assumption of BIOS-like drive names.
25802
25803 2008-05-30 Pavel Roskin <proski@gnu.org>
25804
25805 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
25806 compiling execute.c doesn't need grub_script.tab.h anymore.
25807 (normal/command.c_DEPENDENCIES): Likewise.
25808 (normal/function.c_DEPENDENCIES): Likewise.
25809 * conf/i386-ieee1275.rmk: Likewise.
25810 * conf/i386-linuxbios.rmk: Likewise.
25811 * conf/i386-pc.rmk: Likewise.
25812 * conf/powerpc-ieee1275.rmk: Likewise.
25813 * conf/sparc64-ieee1275.rmk: Likewise.
25814
25815 2008-05-29 Pavel Roskin <proski@gnu.org>
25816
25817 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
25818 when scanning metadata for volume group name.
25819
25820 * include/grub/script.h: Don't include grub_script.tab.h. It's
25821 a generated file, which may only be included from the files with
25822 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
25823 use union YYSTYPE, as the later allows forward declaration.
25824 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
25825
25826 2008-05-29 Robert Millan <rmh@aybabtu.com>
25827
25828 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
25829 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
25830 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
25831 (grub_console_checkkey): Add grub_dprintf() call to report unknown
25832 scan codes.
25833
25834 2008-05-29 Robert Millan <rmh@aybabtu.com>
25835
25836 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
25837 control key combinations.
25838
25839 2008-05-29 Robert Millan <rmh@aybabtu.com>
25840
25841 * util/powerpc/ieee1275/grub-install.in: Move from here ...
25842 * util/ieee1275/grub-install.in: ... to here.
25843 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
25844 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
25845 (grub_install_SOURCES): Likewise.
25846
25847 2008-05-29 Robert Millan <rmh@aybabtu.com>
25848
25849 * fs/affs.c: Update copyright year.
25850 * fs/ext2.c: Likewise.
25851 * fs/fshelp.c: Likewise.
25852 * fs/hfsplus.c: Likewise.
25853 * fs/ntfs.c: Likewise.
25854 * fs/xfs.c: Likewise.
25855 * include/grub/fshelp.h: Likewise.
25856 * util/grub-mkdevicemap.c: Likewise.
25857
25858 2008-05-28 Robert Millan <rmh@aybabtu.com>
25859
25860 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
25861 might need to be fatfs to support some firmware implementations
25862 (e.g. OFW or EFI).
25863
25864 2008-05-28 Robert Millan <rmh@aybabtu.com>
25865
25866 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
25867 devices.
25868 * util/grub-mkdevicemap.c (get_mmc_disk_name)
25869 (make_device_map): Likewise.
25870
25871 2008-05-20 Bean <bean123ch@gmail.com>
25872
25873 * fs/fshelp.c (grub_fshelp_map_block): New function.
25874 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
25875 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
25876
25877 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
25878 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
25879 (grub_fshelp_journal): New structure.
25880 (grub_fshelp_map_block): New function prototype.
25881 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
25882 (grub_fshelp_map_block): Likewise.
25883
25884 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
25885 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
25886 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
25887 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
25888 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
25889 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
25890 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
25891 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
25892 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
25893 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
25894 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
25895 (grub_ext2_sblock): New members for journal support.
25896 (grub_ext3_journal_header): New structure.
25897 (grub_ext3_journal_revoke_header): Likewise.
25898 (grub_ext3_journal_block_tag): Likewise.
25899 (grub_ext3_journal_sblock): Likewise.
25900 (grub_fshelp_node): New members logfile and journal.
25901 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
25902 grub_fshelp_map_block to get real block number.
25903 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
25904 number.
25905 (grub_ext2_read_inode): Likewise.
25906 (grub_ext3_get_journal): New function.
25907 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
25908 (grub_ext2_close): Release memory used by journal.
25909
25910 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
25911 (REISERFS_MAGIC_DESC_BLOCK): New macro.
25912 (grub_reiserfs_transaction_header): Renamed to
25913 grub_reiserfs_description_block, replace field data with real_blocks.
25914 (grub_reiserfs_commit_block): New structure.
25915 (grub_reiserfs_data): New member journal.
25916 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
25917 number.
25918 (grub_reiserfs_read_symlink): Likewise.
25919 (grub_reiserfs_iterate_dir): Likewise.
25920 (grub_reiserfs_open): Likewise.
25921 (grub_reiserfs_read): Likewise.
25922 (grub_reiserfs_get_journal): New function.
25923 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
25924 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
25925 using grub_reiserfs_get_journal.
25926 (grub_reiserfs_close): Release memory used by journal.
25927
25928 * fs/affs.c (grub_affs_read_block): Change block type to
25929 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
25930
25931 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
25932
25933 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
25934
25935 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
25936
25937 * fs/udf.c (grub_udf_read_block): Change block type to
25938 grub_disk_addr_t. Use type cast to avoid warning.
25939
25940 * fs/xfs.c (grub_xfs_read_block): Likewise.
25941
25942 2008-05-16 Christian Franke <franke@computer.org>
25943
25944 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
25945 to ensure that break with ESC will always work.
25946 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
25947 Remove ESC from keyboard queue.
25948
25949 2008-05-16 Christian Franke <franke@computer.org>
25950
25951 * util/biosdisk.c: [__CYGWIN__] Add includes.
25952 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
25953 (get_os_disk): Move variable declarations to OS specific
25954 parts to avoid warning.
25955 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
25956 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
25957 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
25958 Cygwin.
25959 * util/getroot.c: [__CYGWIN__] Add includes.
25960 (strip_extra_slashes): Fix "/" case.
25961 [__CYGWIN__] (get_win32_path): New function.
25962 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
25963 [__CYGWIN__] (find_root_device): Disable.
25964 [__CYGWIN__] (get_bootsec_serial): New function.
25965 [__CYGWIN__] (find_cygwin_root_device): Likewise.
25966 [__linux__] (grub_guess_root_device): Add early returns to simplify
25967 structure.
25968 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
25969 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
25970 check for Linux only.
25971
25972 2008-05-15 Bean <bean123ch@gmail.com>
25973
25974 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
25975 keyboard hang problem in apple's intel mac.
25976
25977 2008-05-09 Robert Millan <rmh@aybabtu.com>
25978
25979 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
25980 devices.
25981 * util/grub-mkdevicemap.c (get_virtio_disk_name)
25982 (make_device_map): Likewise.
25983 Reported by Aurelien Jarno <aurel32@debian.org>
25984
25985 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
25986
25987 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
25988 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
25989 (make_device_map): Output entries for xvd type disks.
25990
25991 2008-05-07 Robert Millan <rmh@aybabtu.com>
25992
25993 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
25994 devices.
25995 * util/grub-mkdevicemap.c (get_cciss_disk_name)
25996 (make_device_map): Likewise.
25997 Reported by Roland Dreier <rdreier@cisco.com>
25998
25999 2008-05-07 Robert Millan <rmh@aybabtu.com>
26000
26001 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
26002 grub_strstr() call. Correct a few mistakes in failure path handling.
26003
26004 2008-05-06 Robert Millan <rmh@aybabtu.com>
26005
26006 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
26007 Do not print a trailing slash (therefore, the root directory is an
26008 empty string).
26009 (convert_system_path_to_grub_path): Do not remove trailing slash
26010 from make_system_path_relative_to_its_root() output.
26011
26012 * util/i386/pc/grub-install.in: Add trailing slash to output from
26013 make_system_path_relative_to_its_root().
26014
26015 2008-05-06 Robert Millan <rmh@aybabtu.com>
26016
26017 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
26018 ensures that output lines aren't intermangled with those sent to
26019 stderr (via grub_util_info()).
26020 * util/grub-probe.c (grub_refresh): Likewise.
26021 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
26022
26023 2008-05-05 Christian Franke <franke@computer.org>
26024
26025 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
26026 Add Cygwin device names.
26027 (get_ide_disk_name) [__CYGWIN__]: Likewise.
26028 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
26029 (check_device): Return error instead of success on empty name.
26030 (make_device_map): Move label inside linux specific code to
26031 prevent compiler warning.
26032
26033 2008-04-30 Robert Millan <rmh@aybabtu.com>
26034
26035 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
26036 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
26037 first boot option.
26038 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
26039
26040 2008-04-29 Robert Millan <rmh@aybabtu.com>
26041
26042 * docs/grub.cfg: New file (example GRUB configuration).
26043
26044 2008-04-26 Robert Millan <rmh@aybabtu.com>
26045
26046 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
26047 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
26048 and `disk/ieee1275/nand.c'.
26049
26050 2008-04-25 Bean <bean123ch@gmail.com>
26051
26052 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
26053 i386-linuxbios.
26054
26055 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
26056 change the buffer size to 4096 for cdrom device.
26057
26058 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
26059 and nand.mod.
26060 (_linux_mod_SOURCES): New variable.
26061 (_linux_mod_CFLAGS): Likewise.
26062 (_linux_mod_LDFLAGS): Likewise.
26063 (linux_mod_SOURCES): Likewise.
26064 (linux_mod_CFLAGS): Likewise.
26065 (linux_mod_LDFLAGS): Likewise.
26066 (nand_mod_SOURCES): Likewise.
26067 (nand_mod_CFLAGS): Likewise.
26068 (nand_mod_LDFLAGS): Likewise.
26069
26070 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
26071 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
26072 type property. (nand device in olpc don't have this property)
26073
26074 * include/grub/disk.h (grub_disk_dev_id): New macro
26075 GRUB_DISK_DEVICE_NAND_ID.
26076
26077 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
26078 function prototype.
26079 (grub_rescue_cmd_initrd): Likewise.
26080
26081 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
26082 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
26083 ofw_cif_handler and ofw_idt, adjust padding number.
26084
26085 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
26086 GRUB_MACHINE_IEEE1275 is defined.
26087
26088 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
26089 Use NESTED_FUNC_ATTR attribute on the hook parameter.
26090
26091 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
26092 on nested function heap_init.
26093 (grub_upper_mem): New variable for i386-ieee1275.
26094 (grub_get_extended_memory): New function for i386-ieee1275.
26095 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
26096
26097 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
26098 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
26099 property.
26100
26101 * loader/i386/ieee1275/linux.c: New file.
26102
26103 * loader/i386/ieee1275/linux_normal.c: New file.
26104
26105 * disk/ieee1275/nand.c: New file.
26106
26107 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
26108
26109 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
26110 value.
26111 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
26112
26113 2008-04-18 Robert Millan <rmh@aybabtu.com>
26114
26115 Restructures early code path on ieee1275 to unify grub_main() as
26116 the first C function that is executed in every platform.
26117
26118 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
26119 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
26120 cmain().
26121 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
26122 * kern/ieee1275/cmain.c (cmain): Rename to ...
26123 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
26124 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
26125 at the beginning.
26126
26127 2008-04-18 Robert Millan <rmh@aybabtu.com>
26128
26129 * util/update-grub.in: Fix syntax error when setting
26130 `GRUB_PRELOAD_MODULES'.
26131 Reported by Stephane Chazelas <stephane@artesyncp.com>
26132
26133 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
26134
26135 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
26136 section into account, newer toolchains generate unique build ids
26137 * configure.ac: remove the test for --build-id=none acceptance,
26138 we want build ids to be preserved
26139 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
26140 far from other sections don't cause the raw binary images grow
26141 size
26142
26143 2008-04-15 Robert Millan <rmh@aybabtu.com>
26144
26145 * disk/lvm.c: Update copyright year.
26146 * kern/misc.c: Likewise.
26147
26148 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
26149
26150 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
26151 there is no memory left for physical volume name.
26152
26153 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
26154
26155 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
26156 volume name mapping to support bigger than 9 character names properly.
26157
26158 2008-04-13 Robert Millan <rmh@aybabtu.com>
26159
26160 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
26161 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
26162
26163 2008-04-13 Christian Franke <franke@computer.org>
26164
26165 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
26166 to create a floppy emulation boot CD when non emulation mode
26167 does not work.
26168 Enable Joliet CD filesystem extension.
26169
26170 2008-04-13 Robert Millan <rmh@aybabtu.com>
26171
26172 * kern/misc.c (grub_strncat): Fix off-by-one error.
26173 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
26174
26175 * kern/env.c (grub_env_context_close): Clear current context, not
26176 previous one.
26177 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
26178
26179 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
26180
26181 2008-04-13 Robert Millan <rmh@aybabtu.com>
26182
26183 Improve robustness when handling LVM.
26184
26185 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
26186 (and leave `*p' unmodified).
26187 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
26188 through it.
26189 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
26190 iterating through it.
26191 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
26192 through it.
26193 (grub_lvm_scan_device): Check the return value (and fail gracefully
26194 when due) on each grub_lvm_getvalue() or grub_strstr() call.
26195 Don't assume `vg->pvs != NULL' when iterating through it.
26196
26197 2008-04-13 Robert Millan <rmh@aybabtu.com>
26198
26199 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
26200 * genmk.rb (partmap): New variable.
26201 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
26202 (#{partmap}): New target rule.
26203 * genpartmaplist.sh: New file.
26204 * Makefile.in (pkglib_DATA): Add partmap.lst.
26205 (partmap.lst): New target rule.
26206 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
26207 modules (including all partition maps), instead of preloading them.
26208
26209 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
26210
26211 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
26212 `linux-boot-prober' (if installed) to detect other operating
26213 systems which are installed on the computer and add them to
26214 the boot menu.
26215 * conf/common.rmk: Build and install 30_os-prober.
26216
26217 2008-04-12 Robert Millan <rmh@aybabtu.com>
26218
26219 * kern/powerpc/ieee1275/init.c: Move from here ...
26220 * kern/ieee1275/init.c: ... to here. Update all users.
26221
26222 * kern/powerpc/ieee1275/cmain.c: Move from here ...
26223 * kern/ieee1275/cmain.c: ... to here. Update all users.
26224
26225 * kern/powerpc/ieee1275/openfw.c: Move from here ...
26226 * kern/ieee1275/openfw.c: ... to here. Update all users.
26227
26228 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
26229 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
26230
26231 2008-04-10 Pavel Roskin <proski@gnu.org>
26232
26233 * configure.ac: Always use "_cv_" in cache variables for
26234 compatibility with Autoconf 2.62.
26235
26236 2008-04-07 Robert Millan <rmh@aybabtu.com>
26237
26238 Revert grub/machine/init.h addition by Pavel (since it breaks on
26239 i386-ieee1275 and others):
26240 * util/i386/pc/misc.c: Remove grub/machine/init.h.
26241 * util/powerpc/ieee1275/misc.c: Likewise.
26242
26243 2008-04-07 Robert Millan <rmh@aybabtu.com>
26244
26245 * util/grub-probe.c (probe): Improve error message.
26246
26247 2008-04-07 Robert Millan <rmh@aybabtu.com>
26248
26249 * util/biosdisk.c (read_device_map): Skip devices that don't exist
26250 (this prevents the presence of a bogus entry from ruining the whole
26251 thing).
26252
26253 2008-04-06 Pavel Roskin <proski@gnu.org>
26254
26255 * util/biosdisk.c: Include grub/util/biosdisk.h.
26256 * util/grub-fstest.c (execute_command): Make static.
26257 * util/grub-mkdevicemap.c (check_device): Likewise.
26258 * util/i386/pc/misc.c: Include grub/machine/init.h.
26259 * util/powerpc/ieee1275/misc.c: Likewise.
26260 * util/lvm.c: Include grub/util/lvm.h.
26261 * util/misc.c: Include grub/kernel.h, grub/misc.h and
26262 grub/cache.h.
26263 * util/raid.c: Include grub/util/raid.h.
26264 (grub_util_getdiskname): Make static.
26265
26266 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
26267 grub_hostfs_fini(), as they are called from grub_init_all() and
26268 grub_fini_all() respectively. This fixes an infinite loop in
26269 grub-fstest due to double registration of hostfs.
26270 Reported by Christian Franke <Christian.Franke@t-online.de>
26271
26272 2008-04-05 Pavel Roskin <proski@gnu.org>
26273
26274 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
26275 all 8 functions. Otherwise, probe function 0 only.
26276
26277 2008-04-04 Pavel Roskin <proski@gnu.org>
26278
26279 * commands/lspci.c (grub_lspci_iter): Print the bus number
26280 correctly.
26281
26282 * commands/lspci.c (grub_pci_classes): Fix typos.
26283 (grub_lspci_iter): Don't print func twice. Print vendor ID
26284 before device ID, as it's normally done.
26285
26286 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
26287 Fix signedness warnings.
26288 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
26289 Likewise.
26290 * util/ieee1275/get_disk_name.c: Include config.h so that
26291 _GNU_SOURCE is defined and getline() is declared. Mark an
26292 unused argument as such. Fix a signedness warning.
26293
26294 2008-04-02 Pavel Roskin <proski@gnu.org>
26295
26296 * genkernsyms.sh.in: Use more robust assignments for CC and
26297 srcdir. Quote srcdir.
26298 * gensymlist.sh.in: Likewise. Assert at the compile time that
26299 the symbol table is not empty.
26300
26301 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
26302 * fs/cpio.c (grub_cpio_read): Likewise.
26303
26304 2008-04-01 Pavel Roskin <proski@gnu.org>
26305
26306 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
26307 * disk/host.c (grub_host_open): Likewise.
26308 * disk/loopback.c (grub_loopback_open): Likewise.
26309 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
26310 disk->id as in disk/host.c, not a multi-character constant.
26311
26312 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
26313 later is obsolete, potentially dangerous and sets a bad example.
26314 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
26315 * util/misc.c (grub_util_get_image_size): Likewise.
26316
26317 * disk/loopback.c (options): Improve help for "--partitions".
26318
26319 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
26320 options to align them with the short options, e.g. "echo -e".
26321
26322 2008-03-31 Bean <bean123ch@gmail.com>
26323
26324 * video/reader/png.c (grub_png_data): New member is_16bit and
26325 image_data.
26326 (grub_png_decode_image_header): Detect 16 bit png image.
26327 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
26328 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
26329 (grub_video_reader_png): Release memory occupied by image_data.
26330
26331 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
26332 4096 bytes.
26333 (grub_nfs_mount): Skip the test for sector per cluster.
26334
26335 * include/grub/ntfs.h (MAX_SPC): Removed.
26336
26337 2008-03-31 Bean <bean123ch@gmail.com>
26338
26339 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
26340 (grub_probe_SOURCES): Add fs/afs.c.
26341 (grub_fstest_SOURCES): Likewise.
26342 (afs_mod_SOURCES): New variable.
26343 (afs_mod_CFLAGS): Likewise.
26344 (afs_mod_LDFLAGS): Likewise.
26345
26346 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
26347 (grub_emu_SOURCES): Likewise.
26348
26349 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
26350
26351 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26352
26353 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
26354
26355 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26356
26357 * fs/afs.c: New file.
26358
26359 2008-03-30 Pavel Roskin <proski@gnu.org>
26360
26361 * disk/host.c: Include grub/misc.h to fix a warning.
26362 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
26363 warnings about implicit declarations.
26364
26365 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
26366 variable.
26367 * include/grub/i386/loader.h: Change declaration of
26368 grub_linux_boot() to match what grub_loader_set() expects.
26369 * util/getroot.c (grub_guess_root_device): Return const char* to
26370 fix a warning.
26371 * util/grub-probe.c (probe): Fix a warning about uninitialized
26372 abstraction_name variable.
26373 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
26374 second argument as unused to fix a warning.
26375
26376 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
26377 missing grub_error() call.
26378
26379 * util/update-grub_lib.in: Define datarootdir, since Autoconf
26380 2.60 and newer uses it to define datadir.
26381
26382 * commands/sleep.c: Fix warning about implicit declaration.
26383 * disk/memdisk.c: Likewise.
26384 * loader/aout.c: Likewise.
26385 * loader/i386/bsd_normal.c: Likewise.
26386 * util/grub-probe.c: Likewise.
26387
26388 * commands/i386/cpuid.c (has_longmode): Make static.
26389 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
26390 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
26391
26392 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
26393 GDT. This is more robust, as %ds can change.
26394 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
26395 calling real_to_prot().
26396 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
26397
26398 2008-03-28 Pavel Roskin <proski@gnu.org>
26399
26400 * kern/i386/pc/startup.S: Assert that uncompressed functions
26401 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
26402 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
26403 code, as they push parts of the code (error handlers) beyond
26404 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
26405 code as correctness and size.
26406
26407 2008-03-28 Pavel Roskin <proski@gnu.org>
26408
26409 * kern/i386/pc/startup.S
26410 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
26411 data block address to the real mode, keep offset minimal. This
26412 works around a bug in AWARD BIOS on old Athlon systems, which
26413 makes CD detection hang.
26414
26415 2008-03-26 Pavel Roskin <proski@gnu.org>
26416
26417 * normal/color.c (grub_parse_color_name_pair): Make `name' a
26418 const.
26419 * include/grub/normal.h: Add grub_parse_color_name_pair()
26420 declaration.
26421
26422 2008-03-24 Bean <bean123ch@gmail.com>
26423
26424 * disk/i386/pc/biosdisk.c (cd_start): Removed.
26425 (cd_count): Removed.
26426 (cd_drive): New variable.
26427 (grub_biosdisk_get_drive): Don't check for (cdN) device.
26428 (grub_biosdisk_call_hook): Likewise.
26429 (grub_biosdisk_iterate): Change cdrom detection method.
26430 (grub_biosdisk_open): Replace cd_start with cd_drive.
26431 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
26432 detect cdrom device.
26433
26434 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
26435 Removed.
26436 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
26437 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
26438 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
26439 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
26440 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
26441 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
26442 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
26443 (grub_biosdisk_cdrp): New structure.
26444 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
26445
26446 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
26447
26448 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
26449 device.
26450
26451 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
26452 New function.
26453
26454 2008-03-20 Robert Millan <rmh@aybabtu.com>
26455
26456 Remove 2 TiB limit in ata.mod.
26457 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
26458 (grub_ata_dumpinfo): Print sector count with 0x%llx.
26459 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
26460 grub_uint64_t instead of grub_uint32_t.
26461
26462 2008-03-05 Bean <bean123ch@gmail.com>
26463
26464 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
26465 (grub_multiboot): Set boot device.
26466
26467 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
26468
26469 2008-03-02 Bean <bean123ch@gmail.com>
26470
26471 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
26472 symlink_buffer.
26473
26474 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
26475
26476 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
26477 texinfo.tex.
26478
26479 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
26480 modified.
26481
26482 * docs/fdl.texi: New file.
26483
26484 * docs/mdate-sh: New file. Copied from gnulib.
26485 * docs/texinfo.tex: Likewise.
26486
26487 * config.guess: Updated from gnulib.
26488 * install-sh: Likewise.
26489
26490 2008-02-28 Robert Millan <rmh@aybabtu.com>
26491
26492 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
26493 (aout_mod_SOURCES): New variable.
26494 (aout_mod_CFLAGS): Likewise.
26495 (aout_mod_LDFLAGS): Likewise.
26496
26497 * conf/i386-ieee1275.rmk: Likewise.
26498
26499 2008-02-28 Robert Millan <rmh@aybabtu.com>
26500
26501 * util/update-grub.in: Reorganise terminal validity check. Accept
26502 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
26503 Based on suggestion by Franklin PIAT.
26504
26505 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
26506
26507 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
26508 function.
26509 * util/getroot.c (grub_util_check_block_device): New function that
26510 returns the given argument if it is a block device and returns NULL else.
26511 * util/grub-probe.c (argument_is_device): New variable.
26512 (probe): Promote device_name from a variable to an argument. Receive
26513 device_name from grub_util_check_block_device() if path is NULL and from
26514 grub_guess_root_device() else. Do not free() device_name anymore.
26515 (options): Introduce new parameter '-d, --device'.
26516 (main): Add description of the new parameter to the help screen.
26517 Rename path variable to argument. Set argument_is_device if the '-d'
26518 option is given. Pass argument to probe() depending on
26519 argument_is_device.
26520
26521 2008-02-24 Bean <bean123ch@gmail.com>
26522
26523 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
26524 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
26525 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
26526 (GRUB_ISO9660_VOLDESC_PART): Likewise.
26527 (GRUB_ISO9660_VOLDESC_END): Likewise.
26528 (grub_iso9660_primary_voldesc): New member escape.
26529 (grub_iso9660_data): New member joliet.
26530 (grub_iso9660_convert_string): New function.
26531 (grub_iso9660_mount): Detect joliet extension.
26532 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
26533 (grub_iso9660_iso9660_label): Likewise.
26534
26535 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
26536 (grub_setup_SOURCES): Add fs/udf.c.
26537 (grub_fstest_SOURCES): Likewise.
26538 (udf_mod_SOURCES): New variable.
26539 (udf_mod_CFLAGS): Likewise.
26540 (udf_mod_LDFLAGS): Likewise.
26541
26542 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
26543 (grub_emu_SOURCES): Likewise.
26544
26545 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
26546
26547 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26548
26549 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
26550
26551 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26552
26553 * fs/udf.c: New file.
26554
26555 2008-02-24 Robert Millan <rmh@aybabtu.com>
26556
26557 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
26558 (normal/lexer.c_DEPENDENCIES): New variables.
26559 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
26560 (normal/lexer.c_DEPENDENCIES): Likewise.
26561 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
26562 (normal/lexer.c_DEPENDENCIES): Likewise.
26563 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
26564 (normal/lexer.c_DEPENDENCIES): Likewise.
26565 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
26566 (normal/lexer.c_DEPENDENCIES): Likewise.
26567 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
26568 (normal/lexer.c_DEPENDENCIES): Likewise.
26569
26570 2008-02-23 Robert Millan <rmh@aybabtu.com>
26571
26572 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
26573 since they were intended to be in hex. This didn't break previously
26574 because of a bug in gpt_partition_map_iterate() (see below).
26575
26576 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
26577 when checking the validity of GPT header.
26578 Remove `partno', since it always provides the same information as `i'.
26579
26580 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
26581
26582 * include/grub/efi/time.h: Fix a wrong comment.
26583
26584 2008-02-19 Pavel Roskin <proski@gnu.org>
26585
26586 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
26587 message.
26588
26589 2008-02-19 Bean <bean123ch@gmail.com>
26590
26591 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
26592 (aout_mod_SOURCES): New variable.
26593 (aout_mod_CFLAGS): Likewise.
26594 (aout_mod_LDFLAGS): Likewise.
26595 (_bsd_mod_SOURCES): New variable.
26596 (_bsd_mod_CFLAGS): Likewise.
26597 (_bsd_mod_LDFLAGS): Likewise.
26598 (bsd_mod_SOURCES): New variable.
26599 (bsd_mod_CFLAGS): Likewise.
26600 (bsd_mod_LDFLAGS): Likewise.
26601
26602 * include/grub/aout.h: New file.
26603
26604 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
26605
26606 * include/grub/i386/bsd.h: New file.
26607
26608 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
26609 to make it public.
26610
26611 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
26612 function is called, so that it's possible to change it inside the hook.
26613 (grub_elf64_load): Likewise.
26614 (grub_elf_file): Don't close the file if elf header is not found.
26615 (grub_elf_close): Close the file if grub_elf_file fails (The new
26616 grub_elf_file won't close it).
26617 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
26618 (grub_elf64_size): Likewise.
26619
26620 * kern/i386/loader.S (grub_unix_real_boot): New function.
26621
26622 * loader/aout.c: New file.
26623
26624 * loader/i386/bsd.c: New file.
26625
26626 * loader/i386/bsd_normal.c: New file.
26627
26628 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
26629
26630 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
26631 can test other formats.
26632
26633 2008-02-19 Robert Millan <rmh@aybabtu.com>
26634
26635 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
26636 (grub_gpt_partition_type_empty): Redefine with macro from
26637 `<grub/gpt_partition.h>'.
26638 (gpt_partition_map_iterate): Adjust partition type comparison.
26639
26640 Export `entry' as partmap-specific `part.data' struct.
26641 (grub_gpt_header, grub_gpt_partentry): Move from here ...
26642
26643 * include/grub/gpt_partition.h (grub_gpt_header)
26644 (grub_gpt_partentry): ... to here (new file).
26645
26646 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
26647
26648 (grub_gpt_partition_type_bios_boot): New const variable, defined
26649 with macro from `<grub/gpt_partition.h>'.
26650
26651 (setup): Replace `first_start' with `embed_region', which keeps
26652 track of the embed region (and is partmap-agnostic).
26653
26654 Replace find_first_partition_start() with find_usable_region(),
26655 which finds a usable region for embedding using partmap-specific
26656 knowledge (supports PC/MSDOS and GPT).
26657
26658 Fix all assumptions that the embed region start at sector 1, using
26659 `embed_region.start' from now on. Similarly, use `embed_region.end'
26660 rather than `first_start' to calculate available size.
26661
26662 In grub_util_info() message, replace "into after the MBR" with an
26663 indication of the specific sector our embed region starts at.
26664
26665 2008-02-19 Robert Millan <rmh@aybabtu.com>
26666
26667 * DISTLIST: Replace `commands/ieee1275/halt.c' and
26668 `commands/ieee1275/reboot.c' with `commands/halt.c' and
26669 `commands/reboot.c'.
26670 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
26671 (halt_mod_SOURCES): Likewise.
26672 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
26673 (halt_mod_SOURCES): Likewise.
26674
26675 2008-02-17 Christian Franke <franke@computer.org>
26676
26677 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
26678
26679 2008-02-17 Robert Millan <rmh@aybabtu.com>
26680
26681 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
26682 set `first_start' to 0 for non-PC/MSDOS partition maps.
26683
26684 2008-02-16 Robert Millan <rmh@aybabtu.com>
26685
26686 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
26687 do not assume partition map is PC/MSDOS before performing checks that
26688 are specific to that layout.
26689
26690 2008-02-13 Robert Millan <rmh@aybabtu.com>
26691
26692 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
26693 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
26694 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
26695
26696 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
26697
26698 * configure.ac: Only a cosmetic change on the handling of
26699 -fno-stack-protector.
26700
26701 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
26702
26703 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
26704 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
26705 reboot.c.
26706 (grub_install_SOURCES): Add halt.mod and reboot.mod.
26707 (halt_mod_SOURCES): New variable.
26708 (halt_mod_CFLAGS): Likewise.
26709 (halt_mod_LDFLAGS): Likewise.
26710 (reboot_mod_SOURCES): Likewise.
26711 (reboot_mod_CFLAGS): Likewise.
26712 (reboot_mod_LDFLAGS): Likewise.
26713
26714 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
26715 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
26716 reboot.c.
26717 (halt_mod_SOURCES): Likewise.
26718 (reboot_mod_SOURCES): Likewise.
26719
26720 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
26721 commands/i386/pc/reboot.c by commands/reboot.c.
26722 (reboot_mod_SOURCES): Likewise.
26723
26724 * commands/i386/pc/reboot.c: merge this file ...
26725
26726 * commands/ieee1275/reboot.c: ... and this file ...
26727
26728 * commands/reboot.c: ... to this file.
26729 Add some precompiler directive to include the correct header for
26730 each machine.
26731
26732 * commands/ieee1275/halt.c: move this file ...
26733
26734 * commands/halt.c: ... to here.
26735 Add some precompiler directive to include the correct header for
26736 each machine.
26737
26738 * include/grub/efi/efi.h (grub_reboot): New function declaration.
26739 (grub_halt): Likewise.
26740
26741 * kern/efi/efi.c (grub_reboot): New function.
26742 (grub_halt): Likewise.
26743
26744 2008-02-12 Robert Millan <rmh@aybabtu.com>
26745
26746 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
26747 /dev (like it is done for /dev/mapper). This doesn't provide support
26748 for EVMS, but at least it is now easy to identify the problem when it
26749 arises.
26750
26751 2008-02-11 Robert Millan <rmh@aybabtu.com>
26752
26753 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
26754 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
26755 comparing it with -1, not 0.
26756
26757 2008-02-10 Robert Millan <rmh@aybabtu.com>
26758
26759 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
26760 `disk/lvm.c'.
26761 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26762 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
26763
26764 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
26765 `disk/lvm.c' to the end of the list.
26766 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
26767 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
26768
26769 2008-02-10 Robert Millan <rmh@aybabtu.com>
26770
26771 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
26772 grub_print_error() instead. This will let user know why we're entering
26773 rescue mode.
26774 Based on suggestions from Sam Morris.
26775
26776 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
26777
26778 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
26779 on remaining N args, instead of "--" arg N times.
26780
26781 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
26782
26783 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
26784 (fill_with_default_glyph): Changed to use unknown_glyph for fill
26785 pattern for unknown glyphs.
26786
26787 2008-02-09 Robert Millan <rmh@aybabtu.com>
26788
26789 * configure.ac: Probe for `help2man'.
26790 * Makefile.in (builddir): New variable.
26791 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
26792 or otherwise add a few flags/options to it.
26793 (install-local): For every executable utility or script that is
26794 installed, invoke $(HELP2MAN) to install a manpage based on --help
26795 output.
26796
26797 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
26798 that it doesn't prevent --help from working in build tree.
26799
26800 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
26801 with `bug-grub@gnu.org'.
26802 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
26803 * util/update-grub.in (usage): New function.
26804 Implement proper argument check, with support for --help and --version
26805 (as well as existing -y).
26806
26807 2008-02-09 Christian Franke <franke@computer.org>
26808
26809 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
26810 avoid overwriting previous output.
26811 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
26812
26813 2008-02-09 Robert Millan <rmh@aybabtu.com>
26814
26815 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
26816 drawing the menu.
26817
26818 2008-02-09 Robert Millan <rmh@aybabtu.com>
26819
26820 * commands/sleep.c: New file.
26821 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
26822 (sleep_mod_SOURCES): New variable.
26823 (sleep_mod_CFLAGS): Likewise.
26824 (sleep_mod_LDFLAGS): Likewise.
26825
26826 2008-02-09 Robert Millan <rmh@aybabtu.com>
26827
26828 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
26829 situations in which we can deduce the RAID size and the superblock
26830 doesn't match it.
26831
26832 2008-02-09 Robert Millan <rmh@aybabtu.com>
26833
26834 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
26835 and return a grub_diskmemberlist_t composed of LVM physical volumes.
26836 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
26837
26838 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
26839 and return a grub_diskmemberlist_t composed of physical array members.
26840 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
26841
26842 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
26843 prototype.
26844 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
26845 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
26846 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
26847
26848 * util/grub-probe.c (probe): Move partmap probing code from here ...
26849 (probe_partmap): ... to here.
26850 (probe): Use probe_partmap() once for the disk we're probing, and
26851 additionally, when such disk contains a memberlist() struct member,
26852 once for each disk that is contained in the structure returned by
26853 memberlist().
26854
26855 2008-02-09 Robert Millan <rmh@aybabtu.com>
26856
26857 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
26858 environment variable to 'all' in order to obtain debug output from
26859 non-util/ code.
26860 * util/i386/pc/grub-setup.c (main): Likewise.
26861
26862 2008-02-08 Robert Millan <rmh@aybabtu.com>
26863
26864 * disk/raid.c (grub_raid_scan_device): Check for
26865 `array->device[sb.this_disk.number]' rather than for
26866 `array->device[sb.this_disk.number]->name', since the latter is not
26867 guaranteed to be accessible.
26868
26869 2008-02-08 Robert Millan <rmh@aybabtu.com>
26870
26871 * disk/raid.c: Update copyright.
26872 * fs/cpio.c: Likewise.
26873 * include/grub/raid.h: Likewise.
26874 * loader/i386/pc/multiboot.c: Likewise.
26875 * util/hostfs.c: Likewise.
26876
26877 2008-02-08 Robert Millan <rmh@aybabtu.com>
26878
26879 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
26880 to a grub_disk_t array.
26881 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
26882 `device[x]'.
26883 (grub_raid_scan_device): Replace `device[x].name' accesses with
26884 `device[x]->name'. Simplify initialization of `array->device[x]'.
26885
26886 2008-02-08 Robert Millan <rmh@aybabtu.com>
26887
26888 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
26889 grub_dprintf() calls.
26890 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
26891 error message.
26892
26893 2008-02-07 Christian Franke <franke@computer.org>
26894
26895 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
26896 instead of fseek and ftell to support large files.
26897 (grub_hostfs_read): Likewise.
26898
26899 2008-02-07 Robert Millan <rmh@aybabtu.com>
26900
26901 Patch from Jeroen Dekkers.
26902 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
26903 failure, since successfully reading all array members might not be
26904 required.
26905
26906 2008-02-06 Robert Millan <rmh@aybabtu.com>
26907
26908 * util/grub-probe.c (probe): Simplify partmap probing (with the
26909 assumption that the first word up to the underscore equals to
26910 the module name).
26911
26912 2008-02-06 Christian Franke <franke@computer.org>
26913
26914 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
26915 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
26916 last block of a cpio or tar stream.
26917 Check for "TRAILER!!!" instead of any empty data
26918 block to detect last block of a cpio stream.
26919 (grub_cpio_dir): Fix constness of variable np.
26920 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
26921 cpio or tar trailer is detected. This fixes a crash
26922 on open of a non existing file.
26923
26924 2008-02-05 Bean <bean123ch@gmail.com>
26925
26926 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
26927 address of entry.
26928 (grub_multiboot_load_elf64): Likewise.
26929 (grub_multiboot): Initialize mbi structure.
26930
26931 * util/grub-fstest.c: Don't include unused header file script.h.
26932
26933 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
26934 of file.
26935 (grub_fstest_SOURCES): Likewise.
26936
26937 2008-02-05 Robert Millan <rmh@aybabtu.com>
26938
26939 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
26940 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
26941 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
26942 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
26943
26944 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
26945 (translation_table): Replace hardcoded values with macros
26946 provided by `<grub/term.h>'.
26947
26948 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
26949 (keyboard_map): Correct/add a few values, with macros provided
26950 by `<grub/term.h>'.
26951 (keyboard_map_shift): Zero values that don't differ from their
26952 `keyboard_map' equivalents.
26953 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
26954 Discard the second scan code that is always sent by Caps lock.
26955 Only use `keyboard_map_shift' when it provides a non-zero value,
26956 otherwise fallback to `keyboard_map'.
26957
26958 2008-02-04 Bean <bean123ch@gmail.com>
26959
26960 * Makefile.in (enable_grub_fstest): New variable.
26961
26962 * conf/common.rmk (grub_fstest_init.lst): New rule.
26963 (grub_fstest_init.h): Likewise.
26964 (grub_fstest_init.c): Likewise.
26965 (util/grub-fstest.c_DEPENDENCIES): New variable.
26966 (grub_fstest_SOURCES): Likewise.
26967
26968 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
26969
26970 * util/grub-fstest.c: New file.
26971
26972 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
26973
26974 Make grub-setup handle a separate root device.
26975
26976 * util/i386/pc/grub-setup.c (setup): Always open the root device,
26977 so that the root device can be compared with the destination
26978 device.
26979 When embedding the core image, if the root and destination devices
26980 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
26981 0xFF.
26982 When not embedding, set ROOT_DRIVE to 0xFF.
26983
26984 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
26985
26986 Add support for having a grub directory in a different drive. This
26987 is still only the data handling part.
26988
26989 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
26990 (codestart): Save %dh in GRUB_ROOT_DRIVE.
26991 (grub_root_drive): New variable.
26992
26993 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
26994 instead of GRUB_BOOT_DRIVE to construct a device name. Set
26995 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
26996 as it was.
26997
26998 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
26999
27000 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
27001 macro.
27002 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
27003
27004 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
27005 is bogus, because PXE booting does not specify any drive
27006 correctly.
27007
27008 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
27009 am not sure if this is really correct.
27010
27011 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
27012 is always identical to the boot drive when booting from a CD.
27013
27014 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
27015 longer.
27016 (root_drive): New variable.
27017 (real_start): Unconditionally set %dh to ROOT_DRIVE.
27018 (setup_sectors): Push %dx right after popping it, because %dh will
27019 be modified later.
27020 (copy_buffer): Restore %dx.
27021
27022 2008-02-03 Robert Millan <rmh@aybabtu.com>
27023
27024 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
27025 use `cdboot.img' for cdrom images.
27026
27027 2008-02-03 Robert Millan <rmh@aybabtu.com>
27028
27029 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
27030 only setup gfxterm when `font' command has succeeded.
27031
27032 2008-02-03 Robert Millan <rmh@aybabtu.com>
27033
27034 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
27035 (grub_rescue_cmd_multiboot_loader)
27036 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
27037
27038 2008-02-03 Pavel Roskin <proski@gnu.org>
27039
27040 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
27041 %edx and %esi from stack only after grub_gate_a20() is called.
27042 grub_gate_a20() clobbers %edx.
27043
27044 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
27045
27046 * configure.ac (AC_INIT): Bumped to 1.96.
27047
27048 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
27049 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
27050 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
27051 video/readers/png.c.
27052
27053 2008-02-03 Bean <bean123ch@gmail.com>
27054
27055 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
27056 (cdboot_img_SOURCES): New variable.
27057 (cdboot_img_ASFLAGS): New variable.
27058 (cdboot_img_LDFLAGS): New variable.
27059
27060 * boot/i386/pc/cdboot.S: New file.
27061
27062 * disk/i386/pc/biosdisk.c (cd_start): New variable.
27063 (cd_count): Likewise.
27064 (grub_biosdisk_get_drive): Add support for cd device.
27065 (grub_biosdisk_call_hook): Likewise.
27066 (grub_biosdisk_iterate): Likewise.
27067 (grub_biosdisk_open): Likewise.
27068 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
27069 (grub_biosdisk_rw): Support reading from cd device.
27070 (GRUB_MOD_INIT): Iterate cd devices.
27071
27072 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
27073 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
27074 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
27075
27076 * kern/i386/pc/init.c (make_install_device): Check for cd device.
27077
27078 2008-02-02 Robert Millan <rmh@aybabtu.com>
27079
27080 * commands/read.c: New file.
27081 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
27082 (read_mod_SOURCES): New variable.
27083 (read_mod_CFLAGS): Likewise.
27084 (read_mod_LDFLAGS): Likewise.
27085
27086 2008-02-02 Robert Millan <rmh@aybabtu.com>
27087
27088 * normal/main.c (grub_normal_execute): Check for `menu->size' when
27089 determining whether menu has to be displayed.
27090
27091 2008-02-02 Marco Gerards <marco@gnu.org>
27092
27093 * bus/pci.c: New file.
27094
27095 * include/grub/pci.h: Likewise.
27096
27097 * include/grub/i386/pc/pci.h: Likewise.
27098
27099 * commands/lspci.c: Likewise.
27100
27101 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
27102 `lspci.mod'.
27103 (pci_mod_SOURCES): New variable.
27104 (pci_mod_CFLAGS): Likewise.
27105 (pci_mod_LDFLAGS): Likewise.
27106 (lspci_mod_SOURCES): Likewise.
27107 (lspci_mod_CFLAGS): Likewise.
27108 (lspci_mod_LDFLAGS): Likewise.
27109
27110 2008-02-02 Bean <bean123ch@gmail.com>
27111
27112 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
27113 (grub_ufs_get_file_block): Fix indirect block calculation problem.
27114
27115 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
27116 (grub_xfs_btree_node): New structure.
27117 (grub_xfs_btree_root): New structure.
27118 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
27119 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
27120 (GRUB_XFS_EXTENT_BLOCK): Likewise.
27121 (GRUB_XFS_EXTENT_SIZE): Likewise.
27122 (grub_xfs_read_block): Support btree format type.
27123 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
27124 Use directory block as basic unit.
27125
27126 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
27127
27128 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
27129 __attribute__ ((__regparm__ (1))).
27130
27131 2008-02-01 Robert Millan <rmh@aybabtu.com>
27132
27133 Correct a mistake in previous commit.
27134
27135 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
27136 top.
27137 (normal/command.c_DEPENDENCIES): New variable.
27138
27139 2008-02-01 Robert Millan <rmh@aybabtu.com>
27140
27141 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
27142 top.
27143 (normal/command.c_DEPENDENCIES): New variable.
27144 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
27145 * conf/i386-ieee1275.rmk: Likewise.
27146 * conf/i386-linuxbios.rmk: Likewise.
27147 * conf/i386-pc.rmk: Likewise.
27148 * conf/sparc64-ieee1275.rmk: Likewise.
27149 * conf/powerpc-ieee1275.rmk: Likewise.
27150 (grub_emu_SOURCES): Add `fs/fshelp.c'.
27151
27152 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
27153
27154 2008-02-01 Robert Millan <rmh@aybabtu.com>
27155
27156 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
27157 call at beginning of function.
27158
27159 2008-01-31 Pavel Roskin <proski@gnu.org>
27160
27161 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
27162 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
27163 (grub_mkrescue_SOURCES): Likewise.
27164 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
27165
27166 2008-01-30 Robert Millan <rmh@aybabtu.com>
27167
27168 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
27169 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
27170 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
27171 (grub_probe_SOURCES): ... to here.
27172
27173 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
27174 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
27175 * conf/i386-ieee1275.rmk: Likewise.
27176 * conf/i386-linuxbios.rmk: Likewise.
27177 * conf/powerpc-ieee1275.rmk: Likewise.
27178
27179 2008-01-30 Tristan Gingold <gingold@free.fr>
27180
27181 * kern/rescue.c: Silently accept empty lines.
27182
27183 2008-01-29 Bean <bean123ch@gmail.com>
27184
27185 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
27186 (real_code_2): Code cleanup and change comment style.
27187 (move_memory): Avoid using 32-bit address mode.
27188
27189 2008-01-29 Bean <bean123ch@gmail.com>
27190
27191 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
27192 (png_mod_SOURCES): New variable.
27193 (png_mod_CFLAGS): Likewise.
27194 (png_mod_LDFLAGS): Likewise.
27195
27196 * video/readers/png.c: New file.
27197
27198 2008-01-28 Robert Millan <rmh@aybabtu.com>
27199
27200 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
27201 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
27202 `ifndef GRUB_MOD_GAP' hack.
27203 * util/elf/grub-mkimage.c (add_segments): Likewise.
27204
27205 2008-01-27 Robert Millan <rmh@aybabtu.com>
27206
27207 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
27208 `GRUB_MOD_GAP' for platforms in which it's not defined.
27209 * util/elf/grub-mkimage.c (add_segments): Likewise.
27210
27211 2008-01-27 Robert Millan <rmh@aybabtu.com>
27212
27213 Get grub-emu to build again (including parallel builds).
27214
27215 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
27216 Split into ...
27217 (util/grub-emu.c_DEPENDENCIES): ... this, ...
27218 (normal/execute.c_DEPENDENCIES): ... this, ...
27219 (grub-emu_DEPENDENCIES): ... and this.
27220
27221 * conf/i386-efi.rmk: Likewise.
27222 * conf/i386-linuxbios.rmk: Likewise.
27223 * conf/i386-ieee1275.rmk: Likewise.
27224 * conf/powerpc-ieee1275.rmk: Likewise.
27225 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
27226
27227 2008-01-27 Robert Millan <rmh@aybabtu.com>
27228
27229 * NEWS: Add a few items.
27230
27231 2008-01-27 Robert Millan <rmh@aybabtu.com>
27232
27233 Fix parallel builds with grub-emu. Based on earlier commit for
27234 grub-probe and grub-setup.
27235
27236 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
27237 (util/grub-emu.c_DEPENDENCIES): ... this.
27238 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
27239 (util/grub-emu.c_DEPENDENCIES): ... this.
27240 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
27241 (util/grub-emu.c_DEPENDENCIES): ... this.
27242 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
27243 (util/grub-emu.c_DEPENDENCIES): ... this.
27244 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
27245 (util/grub-emu.c_DEPENDENCIES): ... this.
27246
27247 2008-01-27 Pavel Roskin <proski@gnu.org>
27248
27249 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
27250 to create a gap between _end and the modules added to the image
27251 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
27252 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
27253 * util/elf/grub-mkimage.c (add_segments): Likewise.
27254
27255 2008-01-26 Pavel Roskin <proski@gnu.org>
27256
27257 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
27258 just return an error.
27259
27260 2008-01-26 Bean <bean123ch@gmail.com>
27261
27262 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
27263 (grub_reiserfs_get_item): Save offset of the next item.
27264 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
27265
27266 2008-01-25 Robert Millan <rmh@aybabtu.com>
27267
27268 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
27269 make all filesystem sources appear together (possibly fixing omissions
27270 while at it).
27271 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
27272 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27273 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
27274 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27275
27276 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
27277 add `kern/file.c'.
27278 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
27279 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
27280 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
27281 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
27282
27283 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
27284 (probe): Add a sanity check to make sure of our ability to read
27285 requested files when probing for filesystem type.
27286
27287 * genmk.rb: Update copyright year (2007).
27288
27289 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
27290 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
27291 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
27292 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
27293 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
27294 : Remove function prototypes.
27295
27296 2008-01-25 Robert Millan <rmh@aybabtu.com>
27297
27298 Revert my previous commits (based on wrong assumption of how grub_errno
27299 works).
27300
27301 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
27302 * kern/file.c (grub_file_open): Likewise.
27303
27304 2008-01-24 Pavel Roskin <proski@gnu.org>
27305
27306 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
27307 that hang if GRUB tries to setup colors.
27308 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
27309 colors for firmwares that don't support it.
27310 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
27311 Recognize Open Hack'Ware, set flags to work around its
27312 limitations.
27313
27314 2008-01-24 Robert Millan <rmh@aybabtu.com>
27315
27316 * kern/file.c (grub_file_open): Do not account previous failures of
27317 unrelated functions when grub_errno is checked for.
27318 Reported by Oleg Strikov.
27319
27320 2008-01-24 Bean <bean123ch@gmail.com>
27321
27322 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
27323 (grub_ufs_sblock): New member volume name.
27324 (grub_ufs_find_file): Fix string copy bug.
27325 (grub_ufs_label): Implement this function properly.
27326
27327 * fs/hfs.c (grub_hfs_cnid_type): New enum.
27328 (grub_hfs_iterate_records): Use the correct file number for extents
27329 and catalog file. Fix problem in next index calculation.
27330 (grub_hfs_find_node): Replace recursive function call with loop.
27331 (grub_hfs_iterate_dir): Replace recursive function call with loop.
27332
27333 2008-01-23 Robert Millan <rmh@aybabtu.com>
27334
27335 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
27336 `<grub/symbol.h>' and `<grub/multiboot.h>'.
27337 (grub_multiboot2_real_boot): New function prototype.
27338
27339 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
27340 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
27341
27342 * kern/i386/ieee1275/init.c (grub_os_area_addr)
27343 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
27344
27345 2008-01-23 Robert Millan <rmh@aybabtu.com>
27346
27347 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
27348 #ifdef'ed out grub_printf().
27349
27350 2008-01-23 Robert Millan <rmh@aybabtu.com>
27351
27352 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
27353 grub_dprintf calls, since they make "debug=all" mode unusable.
27354 (grub_console_checkkey): Likewise.
27355
27356 2008-01-23 Robert Millan <rmh@aybabtu.com>
27357
27358 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
27359 `term/i386/pc/at_keyboard.c'.
27360 (pkglib_MODULES): Add `serial.mod'.
27361 (serial_mod_SOURCES): New variable.
27362 (serial_mod_CFLAGS): Likewise.
27363 (serial_mod_LDFLAGS): Likewise.
27364
27365 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
27366 `<grub/powerpc/ieee1275/console.h>'.
27367 (grub_keyboard_controller_init): New function prototype.
27368 (grub_console_checkkey): Likewise.
27369 (grub_console_getkey): Likewise.
27370
27371 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
27372 keyboard on i386.
27373
27374 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
27375 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
27376
27377 2008-01-23 Robert Millan <rmh@aybabtu.com>
27378
27379 * kern/i386/pc/init.c (make_install_device): When memdisk image is
27380 present, "(memdisk)/boot/grub" becomes the default prefix.
27381
27382 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
27383 a memdisk tarball with all the modules. Add --overlay=DIR option that
27384 allows users to overlay additional files into the image.
27385
27386 2008-01-23 Robert Millan <rmh@aybabtu.com>
27387
27388 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
27389 and `machine/memory.h'.
27390 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
27391 (_multiboot_mod_SOURCES): New variable.
27392 (_multiboot_mod_CFLAGS): Likewise.
27393 (_multiboot_mod_LDFLAGS): Likewise.
27394 (multiboot_mod_SOURCES): Likewise.
27395 (multiboot_mod_CFLAGS): Likewise.
27396 (multiboot_mod_LDFLAGS): Likewise.
27397
27398 * include/grub/i386/ieee1275/loader.h: New file.
27399
27400 * include/grub/i386/ieee1275/machine.h: Likewise.
27401
27402 * include/grub/i386/ieee1275/memory.h: Likewise.
27403
27404 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
27405 variable declaration.
27406 (grub_os_area_size): Likewise.
27407
27408 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
27409 (grub_lower_mem, grub_upper_mem): New variables.
27410 (grub_stop_floppy): New function (just to make
27411 grub_multiboot2_real_boot() happy).
27412
27413 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
27414 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
27415 (grub_stop): New function.
27416 Include `"../realmode.S"' and `"../loader.S"'.
27417
27418 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
27419 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
27420
27421 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
27422 rely on grub_multiboot2_real_boot() for final boot.
27423
27424 2008-01-22 Robert Millan <rmh@aybabtu.com>
27425
27426 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
27427 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
27428 device that doesn't look like an SD card.
27429 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
27430 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
27431 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
27432 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
27433 found.
27434
27435 2008-01-22 Robert Millan <rmh@aybabtu.com>
27436
27437 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
27438 avoid claiming over our own code.
27439
27440 2008-01-22 Bean <bean123ch@gmail.com>
27441
27442 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
27443 (jpeg_mod_SOURCES): New variable.
27444 (jpeg_mod_CFLAGS): Likewise.
27445 (jpeg_mod_LDFLAGS): Likewise.
27446
27447 * video/readers/jpeg.c : New file.
27448
27449 2008-01-22 Bean <bean123ch@gmail.com>
27450
27451 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
27452 there are no more items.
27453
27454 2008-01-21 Robert Millan <rmh@aybabtu.com>
27455
27456 * kern/mm.c (grub_mm_init_region): Improve debug message.
27457
27458 2008-01-21 Robert Millan <rmh@aybabtu.com>
27459
27460 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
27461 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
27462 address.
27463 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
27464 a C macro.
27465 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
27466 Indicates start of upper memory.
27467 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
27468 (generate_image): Abort when image size is big enough to corrupt
27469 upper memory.
27470
27471 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
27472 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
27473 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
27474 instead of hardcoding 0xA0000.
27475 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
27476 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
27477 instead of hardcoding 0xA0000.
27478
27479 2008-01-21 Robert Millan <rmh@aybabtu.com>
27480
27481 * disk/memdisk.c (memdisk_size): New variable.
27482 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
27483 `memdisk_size'.
27484 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
27485 image to dynamic memory.
27486 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
27487 `memdisk_size'. Free memdisk block.
27488
27489 2008-01-21 Robert Millan <rmh@aybabtu.com>
27490
27491 Fix detection of very small filesystems (like tar).
27492
27493 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
27494 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
27495 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
27496 a problem with this disk).
27497
27498 2008-01-21 Robert Millan <rmh@aybabtu.com>
27499
27500 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
27501 on grub_biosdisk_rw_standard() error.
27502
27503 2008-01-21 Robert Millan <rmh@aybabtu.com>
27504
27505 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
27506 recent changes.
27507 * kern/elf.c: Likewise.
27508 * kern/ieee1275/ieee1275.c: Likewise.
27509 * kern/powerpc/ieee1275/openfw.c: Likewise.
27510 * term/ieee1275/ofconsole.c: Likewise.
27511
27512 2008-01-21 Robert Millan <rmh@aybabtu.com>
27513
27514 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
27515
27516 * include/grub/kernel.h (grub_arch_memdisk_addr)
27517 (grub_arch_memdisk_size): Moved from here ...
27518
27519 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
27520 (grub_arch_memdisk_size): ... to here.
27521
27522 2008-01-21 Robert Millan <rmh@aybabtu.com>
27523
27524 Mostly based on bugfix from Bean.
27525
27526 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
27527 attribute with hook() parameter.
27528 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
27529 declaration.
27530 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
27531 attribute with hook() parameter.
27532 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
27533 declaration.
27534
27535 2008-01-21 Robert Millan <rmh@aybabtu.com>
27536
27537 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
27538 (pkglib_MODULES): Add `memdisk.mod'.
27539 (memdisk_mod_SOURCES): New variable.
27540 (memdisk_mod_CFLAGS): Likewise.
27541 (memdisk_mod_LDFLAGS): Likewise.
27542
27543 * disk/memdisk.c: New file.
27544
27545 * include/grub/disk.h (grub_disk_dev_id): Add
27546 `GRUB_DISK_DEVICE_MEMDISK_ID'.
27547
27548 * include/grub/i386/pc/kernel.h
27549 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
27550 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
27551 (grub_kernel_image_size): New variable declaration.
27552 (grub_total_module_size): Likewise.
27553 (grub_memdisk_image_size): Likewise.
27554
27555 * include/grub/i386/pc/memory.h
27556 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
27557
27558 * include/grub/kernel.h: Include `<grub/symbol.h>'.
27559 (grub_arch_memdisk_addr): New variable declaration.
27560 (grub_arch_memdisk_size): Likewise.
27561
27562 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
27563 (grub_arch_memdisk_size): Likewise.
27564
27565 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
27566 (codestart): Replace hardcoded `0x100000' with
27567 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
27568
27569 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
27570 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
27571 not NULL, append the contents of the file it refers to, at the end of
27572 the compressed kernel image. Initialize `grub_memdisk_image_size'
27573 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
27574 (options): Add "memdisk"|'m' option.
27575 (main): Parse --memdisk|-m option, and pass user-provided path as
27576 parameter to generate_image().
27577
27578 2008-01-20 Robert Millan <rmh@aybabtu.com>
27579
27580 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
27581 grub_dprintf() calls from here ...
27582 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
27583
27584 2008-01-20 Robert Millan <rmh@aybabtu.com>
27585
27586 Fix detection of "real mode" when /options/real-mode? doesn't exist.
27587
27588 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
27589 declaration.
27590 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
27591 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
27592 `GRUB_IEEE1275_FLAG_REAL_MODE'.
27593 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
27594 property).
27595 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
27596 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
27597
27598 2008-01-19 Robert Millan <rmh@aybabtu.com>
27599
27600 Get rid of confusing function (superseded by
27601 `grub_ieee1275_get_integer_property')
27602 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
27603 prototype.
27604 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
27605 function.
27606 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
27607 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
27608 in native endianness from grub_ieee1275_get_integer_property().
27609
27610 2008-01-19 Robert Millan <rmh@aybabtu.com>
27611
27612 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
27613 command after "shut-down", since implementations differ on which
27614 the command for halt is.
27615
27616 2008-01-19 Robert Millan <rmh@aybabtu.com>
27617
27618 * include/grub/i386/linuxbios/console.h: Add header protection.
27619 (grub_keyboard_controller_init): New function prototype.
27620 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
27621 (KEYBOARD_COMMAND_READ): Likewise.
27622 (KEYBOARD_COMMAND_WRITE): Likewise.
27623 (KEYBOARD_SCANCODE_SET1): Likewise.
27624 (grub_keyboard_controller_write): New function.
27625 (grub_keyboard_controller_read): Likewise.
27626 (grub_keyboard_controller_init): Likewise.
27627
27628 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
27629 (grub_console_init): On coreboot/LinuxBIOS, call
27630 grub_keyboard_controller_init().
27631
27632 2008-01-19 Robert Millan <rmh@aybabtu.com>
27633
27634 PowerPC changes provided by Pavel Roskin.
27635
27636 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
27637 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
27638 don't rely on cmain() doing it.
27639 * kern/i386/ieee1275/startup.S (_start): Store %eax in
27640 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
27641
27642 2008-01-16 Robert Millan <rmh@aybabtu.com>
27643
27644 * include/grub/i386/linuxbios/memory.h
27645 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
27646 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
27647 receive `table_header' as argument. Instead, probe for it in the
27648 known memory ranges where it can be present.
27649 (grub_available_iterate): Do not pass a fixed `table_header' address
27650 to grub_linuxbios_table_iterate().
27651
27652 2008-01-15 Robert Millan <rmh@aybabtu.com>
27653
27654 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
27655 * conf/i386-ieee1275.rmk: New file.
27656 * include/grub/i386/ieee1275/console.h: Likewise.
27657 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
27658 * include/grub/i386/ieee1275/kernel.h: Likewise.
27659 * include/grub/i386/ieee1275/time.h: Likewise.
27660 * kern/i386/ieee1275/init.c: Likewise.
27661 * kern/i386/ieee1275/startup.S: Likewise.
27662
27663 2008-01-15 Robert Millan <rmh@aybabtu.com>
27664
27665 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
27666 when pointers are 32-bit (but still do set it to one when they are
27667 64-bit).
27668
27669 2008-01-15 Robert Millan <rmh@aybabtu.com>
27670
27671 * include/grub/ieee1275/ieee1275.h
27672 (grub_ieee1275_get_integer_property): New function prototype.
27673
27674 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
27675 (grub_ieee1275_get_integer_property): New function. Wraps around
27676 grub_ieee1275_get_property() to handle endianness.
27677
27678 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
27679 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
27680 where appropriate.
27681 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
27682 (grub_map): Likewise.
27683 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
27684
27685 2008-01-15 Bean <bean123ch@gmail.com>
27686
27687 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
27688 (grub_script_execute_cmdline): Reset grub_errno.
27689
27690 * normal/main.c (read_config_file): Reset grub_errno.
27691
27692 * normal/parse.y (script_init): New.
27693 (script): Move function and menuentry here.
27694 (delimiter): New.
27695 (command): Add delimiter at the end of command.
27696 (commands): Adjust to match the new command.
27697 (commandblock): Remove grub_script_lexer_record_start.
27698 (menuentry): Add grub_script_lexer_record_start, use the new commands.
27699 (if): Use the new commands.
27700
27701 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
27702
27703 2008-01-15 Robert Millan <rmh@aybabtu.com>
27704
27705 * normal/menu.c (run_menu): Move timeout message from here ...
27706 (print_timeout): ... to here.
27707 (run_menu): Use print_timeout() once during initial draw to print
27708 the whole message, and again in every clock tick to update only
27709 the number of seconds.
27710
27711 2008-01-15 Robert Millan <rmh@aybabtu.com>
27712
27713 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
27714 actual size of `available' from grub_ieee1275_get_property(), and
27715 restrict parsing to that bound.
27716
27717 2008-01-15 Christian Franke <franke@computer.org>
27718
27719 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
27720 (argp_program_version): Remove variable.
27721 (argp_program_bug_address): Likewise.
27722 (options): Convert from struct argp_option to struct option.
27723 (struct arguments): Remove.
27724 (parse_opt): Remove.
27725 (usage): New function.
27726 (main): Replace struct args members by simple variables.
27727 Replace argp_parse() by getopt_long().
27728 Add switch to evaluate options.
27729 Add missing "(...)" around root_dev in prefix string.
27730
27731 2008-01-14 Robert Millan <rmh@aybabtu.com>
27732
27733 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
27734 for grub_ieee1275_exit(), in order to improve portability.
27735
27736 2008-01-14 Robert Millan <rmh@aybabtu.com>
27737
27738 * util/grub.d/10_linux.in (prefix): Define.
27739 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
27740
27741 2008-01-13 Pavel Roskin <proski@gnu.org>
27742
27743 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
27744 grub_errno if no errors have been detected.
27745
27746 2008-01-12 Robert Millan <rmh@aybabtu.com>
27747
27748 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
27749 (grub_util_get_dev_abstraction): New function prototype.
27750
27751 * util/getroot.c: Include `<grub/util/getroot.h>'
27752 (grub_util_get_grub_dev): Move detection of abstraction type to ...
27753 (grub_util_get_dev_abstraction): ... here (new function).
27754
27755 * util/grub-probe.c: Convert PRINT_* to an enum. Add
27756 `PRINT_ABSTRACTION'.
27757 (probe): Probe for abstraction type when requested.
27758 (main): Understand `--target=abstraction'.
27759
27760 * util/i386/efi/grub-install.in: Add abstraction module to core
27761 image when it is found to be necessary.
27762 * util/i386/pc/grub-install.in: Likewise.
27763 * util/powerpc/ieee1275/grub-install.in: Likewise.
27764
27765 * util/update-grub_lib.in (font_path): Return system path without
27766 converting to GRUB path.
27767 * util/update-grub.in: Convert system path returned by font_path()
27768 to a GRUB path. Use `grub-probe -t abstraction' to determine what
27769 abstraction module is needed for loading fonts (if any). Export
27770 that as `GRUB_PRELOAD_MODULES'.
27771 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
27772 insmod commands).
27773
27774 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
27775
27776 Remove some unused code from reiserfs.
27777
27778 * fs/reiserfs.c (struct grub_reiserfs_key)
27779 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
27780 (struct grub_reiserfs_node_body): Removed.
27781 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
27782 Likewise.
27783 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
27784 Likewise.
27785 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
27786 Likewise.
27787 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
27788 Likewise.
27789 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
27790 Likewise.
27791 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
27792 Likewise.
27793 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
27794 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
27795 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
27796
27797 2008-01-10 Robert Millan <rmh@aybabtu.com>
27798
27799 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
27800 Determines if a file is garbage left by packaging systems, etc.
27801 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
27802 for processing /etc/grub.d scripts.
27803 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
27804 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
27805 as a condition for processing Linux images.
27806
27807 2008-01-10 Pavel Roskin <proski@gnu.org>
27808
27809 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
27810 to compile reiserfs.c on PowerPC.
27811
27812 2008-01-10 Robert Millan <rmh@aybabtu.com>
27813
27814 * kern/device.c (grub_device_iterate): Do not abort device iteration
27815 when one of the devices cannot be opened.
27816 * kern/disk.c (grub_disk_open): Do not account previous failures of
27817 unrelated functions when grub_errno is checked for.
27818
27819 2008-01-08 Robert Millan <rmh@aybabtu.com>
27820
27821 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
27822 `! grub_linux_is_bzimage', change order of address comparison to make
27823 it more intuitive, and improve "too big zImage" error message.
27824
27825 2008-01-08 Robert Millan <rmh@aybabtu.com>
27826
27827 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
27828 `$(update-grub_DATA)'.
27829 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
27830 targets.
27831
27832 2008-01-07 Robert Millan <rmh@aybabtu.com>
27833
27834 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
27835 which instruction is modified by grub-setup during installation
27836 (since it wasn't obvious by only looking at this file).
27837
27838 2008-01-07 Robert Millan <rmh@aybabtu.com>
27839
27840 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
27841 listing actual TODO items.
27842
27843 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
27844
27845 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
27846 correctly.
27847 (grub_reiserfs_get_key_offset): Likewise.
27848 (grub_reiserfs_set_key_offset): Likewise.
27849 (grub_reiserfs_set_key_type): Likewise.
27850 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
27851
27852 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
27853 better to remove the bitfield version completely.
27854
27855 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
27856
27857 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
27858 allocated from the heap, due to the fshelp implementation.
27859 (grub_reiserfs_dir): Free NODE, due to the same reason.
27860
27861 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
27862
27863 Mostly from Vincent Pelletier:
27864
27865 * fs/reiserfs.c: New file.
27866
27867 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
27868 (reiserfs_mod_SOURCES): New variable.
27869 (reiserfs_mod_CFLAGS): Likewise.
27870 (reiserfs_mod_LDFLAGS): Likewise.
27871
27872 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
27873 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
27874 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
27875 normal/color.c.
27876
27877 2008-01-06 Robert Millan <rmh@aybabtu.com>
27878
27879 * normal/color.c: Remove `<grub/env.h>'.
27880
27881 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
27882
27883 * include/grub/normal.h: Include <grub/env.h>.
27884
27885 2008-01-05 Robert Millan <rmh@aybabtu.com>
27886
27887 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
27888 usage example with `(hd0,1)'.
27889 Reported by Samuel Thibault.
27890
27891 2008-01-05 Robert Millan <rmh@aybabtu.com>
27892
27893 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
27894 (grub_linux_boot_zimage): Rename to ...
27895 (grub_linux_boot): ... this.
27896 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
27897 (grub_linux_boot_zimage): Conditionalize zImage copy.
27898
27899 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
27900 (grub_linux_boot_bzimage): Remove prototype.
27901 (grub_linux_boot_zimage): Rename to ...
27902 (grub_linux_boot): ... this.
27903
27904 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
27905 (grub_linux_boot): Remove function.
27906
27907 2008-01-05 Robert Millan <rmh@aybabtu.com>
27908
27909 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
27910 (grub_env_write_color_highlight): Likewise.
27911 (grub_wait_after_message): Likewise.
27912
27913 * normal/color.c: New file.
27914
27915 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
27916 (normal_mod_DEPENDENCIES): Likewise.
27917
27918 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
27919 (normal_mod_DEPENDENCIES): Likewise.
27920
27921 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
27922 (normal_mod_DEPENDENCIES): Likewise.
27923
27924 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
27925 (normal_mod_DEPENDENCIES): Likewise.
27926
27927 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
27928 for waiting after a message is printed.
27929 * normal/main.c (read_config_file): Likewise.
27930 (grub_normal_init): Register grub_env_write_color_normal() and
27931 grub_env_write_color_highlight() hooks. Mark `color_normal' and
27932 `color_highlight' variables as global.
27933
27934 * normal/menu.c (grub_wait_after_message): New function.
27935 (grub_color_menu_normal): New variable. Replaces ...
27936 (GRUB_COLOR_MENU_NORMAL): ... this macro.
27937 (grub_color_menu_highlight): New variable. Replaces ...
27938 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
27939 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
27940 `GRUB_TERM_COLOR_STANDARD'.
27941 (print_message): Use `grub_setcolorstate' to reload colors. Rename
27942 `normal_code' and `highlight_code' to `old_color_normal' and
27943 `old_color_highlight', respectively.
27944 (grub_menu_init_page): Update colors when drawing the menu, based on
27945 `menu_color_normal' and `menu_color_highlight' variables.
27946 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
27947 a message is printed.
27948
27949 2008-01-05 Robert Millan <rmh@aybabtu.com>
27950
27951 * kern/env.c (grub_env_context_open): Propagate hooks for global
27952 variables to new context.
27953
27954 * kern/main.c (grub_set_root_dev): Export `root' variable.
27955
27956 2008-01-05 Robert Millan <rmh@aybabtu.com>
27957
27958 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
27959 discs unconditionally, since udev and others have options to provide
27960 them.
27961
27962 2008-01-05 Robert Millan <rmh@aybabtu.com>
27963
27964 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
27965
27966 2008-01-04 Christian Franke <franke@computer.org>
27967
27968 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
27969 of eisa_mmap.
27970
27971 2008-01-03 Pavel Roskin <proski@gnu.org>
27972
27973 * kern/i386/linuxbios/init.c: Put "void" to all function
27974 declarations with no arguments.
27975 * kern/powerpc/ieee1275/init.c: Likewise.
27976 * term/i386/pc/at_keyboard.c: Likewise.
27977 * term/i386/pc/vga_text.c: Likewise.
27978 * util/grub-mkdevicemap.c: Likewise.
27979
27980 2008-01-02 Robert Millan <rmh@aybabtu.com>
27981
27982 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
27983 message when loaded image is out of bounds.
27984 (grub_multiboot_load_elf64): Likewise.
27985
27986 2008-01-02 Pavel Roskin <proski@gnu.org>
27987
27988 * util/grub.d/10_linux.in: Try version without ".old" when
27989 looking for initrd. It's better to use initrd from the newer
27990 kernel of the same version than no initrd at all.
27991
27992 2008-01-01 Robert Millan <rmh@aybabtu.com>
27993
27994 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
27995
27996 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
27997
27998 * include/grub/video.h: Added grub_video_unmap_color and
27999 grub_video_get_active_render_target.
28000 (grub_video_adapter): Added unmap_color and get_active_render_target.
28001
28002 * video/video.c: Added grub_video_unmap_color and
28003 grub_video_get_active_render_target.
28004 (grub_video_get_info): Changed method to accept NULL pointer as an
28005 argument to allow detection of active video adapter.
28006
28007 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
28008 grub_video_vbe_unmap_color_int.
28009 Added grub_video_vbe_unmap_color and
28010 grub_video_vbe_get_active_render_target.
28011 (grub_video_vbe_adapter): Added unmap_color and
28012 get_active_render_target.
28013
28014 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
28015 with grub_video_vbe_unmap_color_int.
28016
28017 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
28018 (DEFAULT_NORMAL_COLOR): Likewise.
28019 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
28020 (DEFAULT_FG_COLOR): Removed.
28021 (DEFAULT_BG_COLOR): Likewise.
28022 (DEFAULT_CURSOR_COLOR): Changed value.
28023 (grub_virtual_screen): Added standard_color_setting,
28024 normal_color_setting, highlight_color_setting and term_color.
28025 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
28026 (bitmap_width): Added.
28027 (bitmap_height): Likewise.
28028 (bitmap): Likewise.
28029 (set_term_color): Likewise.
28030 (grub_virtual_screen_setup): Changed to use new terminal coloring
28031 settings.
28032 (grub_gfxterm_init): Added init for bitmap.
28033 (grub_gfxterm_fini): Added destroy for bitmap.
28034 (redraw_screen_rect): Updated to use background bitmap and new
28035 terminal coloring.
28036 (scroll_up): Added optimization for case when there is no bitmap.
28037 (grub_gfxterm_cls): Fixed to use correct background color.
28038 (grub_virtual_screen_setcolorstate): Changed to use new terminal
28039 coloring.
28040 (grub_virtual_screen_setcolor): Likewise.
28041 (grub_virtual_screen_getcolor): Added.
28042 (grub_gfxterm_background_image_cmd): Likewise.
28043 (grub_video_term): Added setcolor and getcolor.
28044 (MOD_INIT): Added registration of background_image command.
28045 (MOD_TERM): Added unregistration for background_image command.
28046
28047 2007-12-30 Pavel Roskin <proski@gnu.org>
28048
28049 * loader/multiboot_loader.c: Fix multiboot command
28050 unregistration. Fix all typos in the word "multiboot".
28051
28052 2007-12-29 Pavel Roskin <proski@gnu.org>
28053
28054 * util/grub.d/10_linux.in: Refactor search for initrd. Add
28055 support for initrd names used in Fedora.
28056
28057 2007-12-26 Bean <bean123ch@gmail.com>
28058
28059 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
28060 (cpio_mod_SOURCES): New variable.
28061 (cpio_mod_CFLAGS): Likewise.
28062 (cpio_mod_LDFLAGS): Likewise.
28063
28064 * fs/cpio.c: New file.
28065
28066 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
28067
28068 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28069
28070 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
28071
28072 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28073
28074 2007-12-25 Robert Millan <rmh@aybabtu.com>
28075
28076 * include/grub/term.h (struct grub_term): Add `getcolor' function.
28077 (grub_getcolor): New function.
28078
28079 * kern/term.c (grub_getcolor): New function.
28080 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
28081 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
28082 (print_entry): Set normal and highlight colors to
28083 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
28084 respectively, before printing and restore them to old
28085 values afterwards.
28086 (grub_menu_init_page): Likewise. Fill an additional colored space
28087 that would otherwise be left blank.
28088
28089 * term/efi/console.c (grub_console_getcolor): New function.
28090 (struct grub_console_term.getcolor): New variable.
28091 * term/i386/pc/console.c (grub_console_getcolor): New function.
28092 (struct grub_console_term.getcolor): New variable.
28093 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
28094 (struct grub_console_term.getcolor): New variable.
28095
28096 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
28097 (struct grub_console_term.setcolor): Remove variable.
28098 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
28099 (struct grub_console_term.setcolor): Remove variable.
28100 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
28101 (struct grub_console_term.setcolor): Remove variable.
28102 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
28103 (struct grub_console_term.setcolor): Remove variable.
28104
28105 2007-12-25 Robert Millan <rmh@aybabtu.com>
28106
28107 * configure.ac: Search for possible unifont.hex locations, and
28108 define UNIFONT_HEX if found.
28109
28110 * Makefile.in (UNIFONT_HEX): Define variable.
28111 (DATA): Rename to ...
28112 (PKGLIB): ... this. Update all users.
28113 (PKGDATA): New variable.
28114 (pkgdata_IMAGES): Rename to ...
28115 (pkglib_IMAGES): ... this. Update all users.
28116 (pkgdata_MODULES): Rename to ...
28117 (pkglib_MODULES): ... this. Update all users.
28118 (pkgdata_PROGRAMS): Rename to ...
28119 (pkglib_PROGRAMS): ... this. Update all users.
28120 (pkgdata_DATA): Rename to ...
28121 (pkglib_DATA): ... this. Update all users.
28122 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
28123 (unicode.pff, ascii.pff): New rules.
28124 (all-local): Add `$(PKGDATA)' dependency.
28125 (install-local): Process `$(PKGDATA)'.
28126
28127 * util/update-grub_lib.in (font_path): Search for *.pff files in
28128 a few more locations, including `${pkgdata}'.
28129
28130 2007-12-23 Robert Millan <rmh@aybabtu.com>
28131
28132 Patch from Bean <bean123ch@gmail.com>:
28133 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
28134 `size'.
28135
28136 2007-12-21 Bean <bean123ch@gmail.com>
28137
28138 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
28139 (ntfscomp_mod_SOURCES): New variable.
28140 (ntfscomp_mod_CFLAGS): Likewise.
28141 (ntfscomp_mod_LDFLAGS): Likewise.
28142
28143 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
28144 (grub_probe_SOURCES): Likewise.
28145 (grub_emu_SOURCES): Likewise.
28146
28147 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
28148 (grub_emu_SOURCES): Likewise.
28149
28150 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
28151 (grub_emu_SOURCES): Likewise.
28152
28153 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
28154 (grub_emu_SOURCES): Likewise.
28155
28156 * fs/ntfs.c (grub_ntfscomp_func): New variable.
28157 (read_run_list): Renamed to grub_ntfs_read_run_list.
28158 (decomp_nextvcn): Moved to ntfscomp.c.
28159 (decomp_getch): Likewise.
28160 (decomp_get16): Likewise.
28161 (decomp_block): Likewise.
28162 (read_block): Likewise.
28163 (read_data): Partially moved to ntfscomp.c.
28164 (fixup): Change unsigned to grub_uint16_t.
28165 (read_mft): Change unsigned long to grub_uint32_t.
28166 (read_attr): Likewise.
28167 (read_data): Likewise.
28168 (read_run_data): Likewise.
28169 (read_run_list): Likewise.
28170 (read_mft): Likewise.
28171
28172 * fs/ntfscomp.c: New file.
28173
28174 * include/grub/ntfs.h: New file.
28175
28176 2007-12-16 Robert Millan <rmh@aybabtu.com>
28177
28178 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
28179 IDE disk check, since Linux is known to support 20 IDE disks.
28180 Reported by Colin Watson.
28181
28182 2007-12-15 Bean <bean123ch@gmail.com>
28183
28184 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
28185 (lnxboot_img_SOURCES): New variable.
28186 (lnxboot_img_ASFLAGS): Likewise.
28187 (lnxboot_img_LDFLAGS): Likewise.
28188
28189 * boot/i386/pc/lnxboot.S: New file.
28190
28191 2007-11-24 Pavel Roskin <proski@gnu.org>
28192
28193 * configure.ac: Test if '--build-id=none' is supported by the
28194 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
28195 objcopy to generate incorrect binary files (binutils
28196 2.17.50.0.18-1 as shipped by Fedora 8).
28197 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
28198 linking, so that build ID doesn't break the test.
28199
28200 2007-11-24 Pavel Roskin <proski@gnu.org>
28201
28202 * include/grub/i386/time.h: use "void" in the argument list
28203 of grub_cpu_idle().
28204 * include/grub/powerpc/time.h: Likewise.
28205 * include/grub/sparc64/time.h: Likewise.
28206
28207 2007-11-18 Christian Franke <franke@computer.org>
28208
28209 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
28210 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
28211 This fixes the problem that function keys did not work in grub-emu.
28212
28213 2007-11-18 Christian Franke <franke@computer.org>
28214
28215 * disk/host.c (grub_host_open): Remove attribute unused from
28216 name parameter. Add check for "host". This fixes the problem
28217 that grub-emu does not find partitions.
28218
28219 2007-11-18 Christian Franke <franke@computer.org>
28220
28221 * util/hostfs.c (is_dir): New function.
28222 (grub_hostfs_dir): Handle missing dirent.d_type case.
28223 (grub_hostfs_read): Add missing fseek().
28224 (grub_hostfs_label): Clear label pointer. This fixes a crash
28225 of grub-emu on "ls (host)".
28226
28227 2007-11-18 Christian Franke <franke@computer.org>
28228
28229 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
28230 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
28231 to 64 bit boundary by default.
28232
28233 2007-11-18 Bean <bean123ch@gmail.com>
28234
28235 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
28236 (hexdump_mod_SOURCES): New variable.
28237 (hexdump_mod_CFLAGS): Likewise.
28238 (hexdump_mod_LDFLAGS): Likewise.
28239
28240 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
28241
28242 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
28243
28244 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
28245
28246 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
28247
28248 * include/grub/hexdump.h: New file.
28249
28250 * commands/hexdump.c: New file.
28251
28252 2007-11-10 Robert Millan <rmh@aybabtu.com>
28253
28254 * commands/i386/pc/play.c (beep_off): Switch order of arguments
28255 in grub_outb() calls.
28256 (beep_on): Likewise.
28257
28258 2007-11-10 Christian Franke <franke@computer.org>
28259
28260 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
28261 (grub_menu_run): Likewise.
28262
28263 2007-11-10 Robert Millan <rmh@aybabtu.com>
28264
28265 * include/grub/i386/efi/machine.h: New file.
28266 * include/grub/i386/linuxbios/machine.h: Likewise.
28267 * include/grub/i386/pc/machine.h: Likewise.
28268 * include/grub/powerpc/ieee1275/machine.h: Likewise.
28269 * include/grub/sparc64/ieee1275/machine.h: Likewise.
28270
28271 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
28272 (serial_hw_io_addr): New variable.
28273 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
28274 instead of `(unsigned short *) 0x400'.
28275
28276 2007-11-10 Bean <bean123ch@gmail.com>
28277
28278 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
28279
28280 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
28281
28282 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
28283 (vga_mod_SOURCES): Added.
28284 (vga_mod_CFLAGS): Likewise.
28285 (vga_mod_LDFLAGS): Likewise.
28286
28287 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
28288 grub_outb() calls.
28289 (set_map_mask): Likewise.
28290 (set_read_map): Likewise.
28291 (set_read_address): Likewise.
28292 (vga_font): Removed variable.
28293 (get_vga_glyph): Removed function.
28294 (invalidate_char): Likewise.
28295 (write_char): Changed to use grub_font_get_glyph() for font
28296 information.
28297 (grub_vga_putchar): Likewise.
28298 (grub_vga_getcharwidth): Likewise.
28299
28300 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
28301
28302 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
28303 flags.
28304 (pxeboot_img_LDFLAGS): Likewise.
28305 (diskboot_img_LDFLAGS): Likewise.
28306 (kernel_img_LDFLAGS): Likewise.
28307
28308 2007-11-06 Robert Millan <rmh@aybabtu.com>
28309
28310 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
28311 in grub_outb() calls.
28312 (serial_hw_init): Likewise.
28313
28314 2007-11-05 Robert Millan <rmh@aybabtu.com>
28315
28316 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
28317 spaces. Skip non-regular files.
28318
28319 2007-11-05 Robert Millan <rmh@aybabtu.com>
28320
28321 * kern/disk.c (grub_disk_firmware_fini)
28322 (grub_disk_firmware_is_tainted): New variables.
28323
28324 * include/grub/disk.h (grub_disk_firmware_fini)
28325 (grub_disk_firmware_is_tainted): Likewise.
28326
28327 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
28328 (grub_disk_biosdisk_fini): ... to here.
28329 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
28330 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
28331 is set. Register grub_disk_biosdisk_fini() in
28332 `grub_disk_firmware_fini'.
28333
28334 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
28335 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
28336 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
28337 to finish existing firmware disk interface.
28338
28339 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
28340 (ata_mod_SOURCES): New variable.
28341 (ata_mod_CFLAGS): Likewise.
28342 (ata_mod_LDFLAGS): Likewise.
28343
28344 2007-11-05 Robert Millan <rmh@aybabtu.com>
28345
28346 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
28347 (grub_ata_wait): Reimplement using grub_millisleep().
28348
28349 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
28350 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
28351
28352 2007-11-03 Marco Gerards <marco@gnu.org>
28353
28354 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
28355 (CRTC_ADDR_PORT): New macro.
28356 (CRTC_DATA_PORT): Likewise.
28357 (CRTC_CURSOR): Likewise.
28358 (CRTC_CURSOR_ADDR_HIGH): Likewise.
28359 (CRTC_CURSOR_ADDR_LOW): Likewise.
28360 (update_cursor): New function.
28361 (grub_console_real_putchar): Call `update_cursor'.
28362 (grub_console_gotoxy): Likewise.
28363 (grub_console_cls): Set the default color when clearing the
28364 screen.
28365 (grub_console_setcursor): Implemented.
28366
28367 2007-11-03 Marco Gerards <marco@gnu.org>
28368
28369 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
28370 become activate.
28371 (grub_ata_pio_write): Likewise.
28372
28373 (grub_atapi_identify): Wait after issuing an ATA command.
28374 (grub_atapi_packet): Likewise.
28375 (grub_ata_identify): Likewise.
28376 (grub_ata_readwrite): Likewise.
28377
28378 2007-11-03 Marco Gerards <marco@gnu.org>
28379
28380 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
28381 (grub_ata_pio_write): Likewise.
28382 (grub_ata_readwrite): Use `grub_error', instead of
28383 returning `grub_errno'.
28384
28385 2007-11-03 Marco Gerards <marco@gnu.org>
28386
28387 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
28388 grub_ata_pio_write once for every single sector, instead of for
28389 multiple sectors.
28390
28391 2007-10-31 Robert Millan <rmh@aybabtu.com>
28392
28393 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
28394
28395 * conf/i386-linuxbios.rmk: New file.
28396
28397 * kern/i386/pc/hardware.c: Likewise.
28398 * term/i386/pc/at_keyboard.c: Likewise.
28399 * term/i386/pc/vga_text.c: Likewise.
28400
28401 * include/grub/i386/linuxbios/boot.h: Likewise.
28402 * include/grub/i386/linuxbios/console.h: Likewise.
28403 * include/grub/i386/linuxbios/init.h: Likewise.
28404 * include/grub/i386/linuxbios/kernel.h: Likewise.
28405 * include/grub/i386/linuxbios/loader.h: Likewise.
28406 * include/grub/i386/linuxbios/memory.h: Likewise.
28407 * include/grub/i386/linuxbios/serial.h: Likewise.
28408 * include/grub/i386/linuxbios/time.h: Likewise.
28409
28410 * kern/i386/linuxbios/init.c: Likewise.
28411 * kern/i386/linuxbios/startup.S: Likewise.
28412 * kern/i386/linuxbios/table.c: Likewise.
28413
28414 2007-10-31 Marco Gerards <marco@gnu.org>
28415
28416 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
28417 (ata_mod_SOURCES): New variable.
28418 (ata_mod_CFLAGS): Likewise.
28419 (ata_mod_LDFLAGS): Likewise.
28420
28421 * disk/ata.c: New file.
28422
28423 * include/grub/disk.h (grub_disk_dev_id): Add
28424 `GRUB_DISK_DEV_ATA_ID'.
28425
28426 2007-10-31 Robert Millan <rmh@aybabtu.com>
28427
28428 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
28429 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
28430
28431 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
28432 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
28433
28434 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
28435 `<grub/types.h>'.
28436
28437 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
28438
28439 2007-10-27 Robert Millan <rmh@aybabtu.com>
28440
28441 * include/grub/types.h (ULONG_MAX): Define macro.
28442
28443 2007-10-22 Robert Millan <rmh@aybabtu.com>
28444
28445 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
28446 `"../realmode.S"'.
28447 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
28448
28449 2007-10-22 Robert Millan <rmh@aybabtu.com>
28450
28451 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
28452 (pkgdata_MODULES): Add `biosdisk.mod'.
28453 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
28454 variables.
28455
28456 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
28457 (grub_biosdisk_init): Replace with ...
28458 (GRUB_MOD_INIT(biosdisk)): ... this.
28459 (grub_biosdisk_fini): Replace with ...
28460 (GRUB_MOD_FINI(biosdisk)): ... this.
28461
28462 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
28463 (grub_machine_init): Remove call to grub_biosdisk_init().
28464 (grub_machine_fini): Remove call to grub_machine_fini().
28465
28466 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
28467
28468 2007-10-22 Robert Millan <rmh@aybabtu.com>
28469
28470 * include/grub/time.h: New file.
28471 * include/grub/i386/time.h: Likewise.
28472 * include/grub/powerpc/time.h: Likewise.
28473 * include/grub/sparc64/time.h: Likewise.
28474
28475 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
28476 instances to ...
28477 (KERNEL_MACHINE_TIME_HEADER): ... this.
28478 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
28479 instances to ...
28480 (KERNEL_MACHINE_TIME_HEADER): ... this.
28481 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
28482 instances to ...
28483 (KERNEL_MACHINE_TIME_HEADER): ... this.
28484
28485 * kern/i386/efi/init.c: Include `<grub/time.h>'.
28486 (grub_millisleep): New function.
28487 * kern/i386/pc/init.c: Include `<grub/time.h>'.
28488 (grub_millisleep): New function.
28489 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
28490 Remove `grub/machine/time.h' include.
28491 (grub_millisleep): New function.
28492 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
28493 Remove `grub/machine/time.h' include.
28494 (grub_millisleep): New function.
28495
28496 * include/grub/misc.h (grub_div_roundup): New function.
28497
28498 * kern/misc.c: Include `<grub/time.h>'.
28499 (grub_millisleep_generic): New function.
28500
28501 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
28502 Add `time.h'.
28503 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
28504 Add `time.h'.
28505 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
28506 `machine/time.h'. Add `time.h'.
28507 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
28508
28509 2007-10-21 Robert Millan <rmh@aybabtu.com>
28510
28511 * include/grub/misc.h (grub_max): New function.
28512
28513 2007-10-21 Robert Millan <rmh@aybabtu.com>
28514
28515 * util/misc.c (grub_util_info): Call fflush() before returning.
28516
28517 2007-10-20 Robert Millan <rmh@aybabtu.com>
28518
28519 * genmk.rb (Image): Copy `extra_flags' from here ...
28520 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
28521
28522 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
28523 to `argc' and `args' arguments.
28524
28525 2007-10-17 Robert Millan <rmh@aybabtu.com>
28526
28527 * kern/i386/loader.S: New file.
28528
28529 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
28530 * kern/i386/loader.S (grub_linux_prot_size)... to here.
28531 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
28532 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
28533 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
28534 * kern/i386/loader.S (grub_linux_real_addr)... to here.
28535 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
28536 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
28537 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
28538 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
28539 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
28540 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
28541 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
28542 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
28543
28544 * kern/i386/realmode.S: New file.
28545
28546 * kern/i386/pc/startup.S (protstack): Moved from here ...
28547 * kern/i386/realmode.S (protstack)... to here.
28548 * kern/i386/pc/startup.S (gdt): Moved from here ...
28549 * kern/i386/realmode.S (gdt)... to here.
28550 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
28551 * kern/i386/realmode.S (prot_to_real)... to here.
28552
28553 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
28554 `kern/i386/realmode.S'.
28555
28556 2007-10-17 Robert Millan <rmh@aybabtu.com>
28557
28558 * include/grub/i386/loader.h: New file.
28559
28560 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
28561 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
28562 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
28563 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
28564 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
28565 * include/grub/i386/loader.h (grub_linux_prot_size)
28566 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
28567 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
28568 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
28569 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
28570
28571 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
28572
28573 2007-10-15 Robert Millan <rmh@aybabtu.com>
28574
28575 * normal/misc.c (grub_normal_print_device_info): Do not probe for
28576 filesystem when dev->disk is unset.
28577 Do probe for filesystem even when dev->disk->has_partitions is set.
28578 In case a filesystem is found, always report it.
28579 In case it isn't, if dev->disk->has_partitions is set, report that
28580 a partition table was found instead of reporting that no filesystem
28581 could be identified.
28582
28583 2007-10-12 Robert Millan <rmh@aybabtu.com>
28584
28585 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
28586 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
28587
28588 * include/grub/types.h (grub_host_to_target16): New macro.
28589 (grub_host_to_target32): Likewise.
28590 (grub_host_to_target64): Likewise.
28591 (grub_target_to_host16): Likewise.
28592 (grub_target_to_host32): Likewise.
28593 (grub_target_to_host64): Likewise.
28594
28595 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
28596 Renamed from to ...
28597 (GRUB_MOD_ALIGN): ...this. Update all users.
28598
28599 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
28600 grub_host_to_target32.
28601 Replace grub_be_to_cpu32 with grub_target_to_host32.
28602 (load_modules): Likewise.
28603 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
28604 Replace grub_be_to_cpu32 with grub_target_to_host32.
28605 Replace grub_cpu_to_be16 with grub_host_to_target16.
28606 Replace grub_cpu_to_be32 grub_host_to_target32.
28607
28608 2007-10-12 Robert Millan <rmh@aybabtu.com>
28609
28610 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
28611 * util/elf/grub-mkimage.c: ... here.
28612
28613 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
28614 `util/powerpc/ieee1275/grub-mkimage.c'.
28615
28616 2007-10-07 Robert Millan <rmh@aybabtu.com>
28617
28618 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
28619 and make it easier to figure out.
28620 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
28621 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
28622 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
28623 leave us with less than HEAP_MIN_SIZE total heap.
28624 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
28625
28626 2007-10-03 Robert Millan <rmh@aybabtu.com>
28627
28628 * include/grub/i386/io.h: New file.
28629 * commands/i386/pc/play.c (inb): Removed.
28630 (outb): Removed.
28631 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
28632 with grub_outb().
28633 * term/i386/pc/serial.c (inb): Removed.
28634 (outb): Removed.
28635 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
28636 with grub_outb().
28637 * term/i386/pc/vga.c (inb): Removed.
28638 (outb): Removed.
28639 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
28640 with grub_outb().
28641
28642 2007-10-02 Robert Millan <rmh@aybabtu.com>
28643
28644 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
28645 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28646 Reported by Marcin Kurek.
28647
28648 2007-09-07 Robert Millan <rmh@aybabtu.com>
28649
28650 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
28651 SmartFirmware version updates (as released by Sven Luther), and avoid
28652 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
28653 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
28654 known broken.
28655
28656 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
28657
28658 From Hitoshi Ozeki:
28659 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
28660 when merging two regions.
28661
28662 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
28663
28664 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
28665 * normal/completion.c (grub_normal_do_completion): Likewise.
28666 Reported by Hitoshi Ozeki.
28667
28668 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
28669
28670 Do not use devices at boot in chainloading.
28671
28672 * loader/i386/pc/chainloader.c (boot_drive): New variable.
28673 (boot_part_addr): Likewise.
28674 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
28675 with BOOT_DRIVE and BOOT_PART_ADDR.
28676 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
28677 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
28678
28679 2007-08-29 Robert Millan <rmh@aybabtu.com>
28680
28681 Patch from Simon Peter <dn.tlp@gmx.net>:
28682 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
28683 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
28684 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
28685 util/i386/pc/grub-setup.c_DEPENDENCIES.
28686 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
28687 util/grub-probe.c_DEPENDENCIES.
28688 * conf/powerpc-ieee1275.rmk: Likewise.
28689
28690 2007-08-28 Robert Millan <rmh@aybabtu.com>
28691
28692 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
28693 to tell grub-mkdevicemap how to name devices.
28694 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
28695 feature).
28696
28697 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
28698 util/i386/get_disk_name.c.
28699 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
28700 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
28701 util/ieee1275/get_disk_name.c.
28702
28703 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
28704
28705 * DISTLIST: Add util/i386/get_disk_name.c and
28706 util/ieee1275/get_disk_name.c.
28707
28708 * util/grub-mkdevicemap.c: Replace device naming logic with
28709 grub_util_get_disk_name() calls.
28710
28711 2007-08-20 Robert Millan <rmh@aybabtu.com>
28712
28713 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
28714 (so that it works for both plural and singular quantities).
28715
28716 2007-08-05 Robert Millan <rmh@aybabtu.com>
28717
28718 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
28719 so that [xz] isn't taken into account when determining order.
28720
28721 2007-08-02 Marco Gerards <marco@gnu.org>
28722
28723 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
28724 `include/multiboot2.h', `include/grub/elfload.h',
28725 `include/multiboot.h', `include/grub/multiboot.h',
28726 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
28727 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
28728 `kern/elf.c', `loader/multiboot_loader.c',
28729 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
28730 `loader/i386/pc/multiboot2.c',
28731 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
28732 `util/i386/pc/grub-mkrescue.in'. Remove
28733 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
28734 `include/grub/i386/pc/util/biosdisk.h' and
28735 `include/grub/powerpc/ieee1275/multiboot.h'.
28736
28737 2007-08-02 Bean <bean123ch@gmail.com>
28738
28739 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
28740 (ntfs_mod_SOURCES): New variable.
28741 (ntfs_mod_CFLAGS): Likewise.
28742 (ntfs_mod_LDFLAGS): Likewise.
28743
28744 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
28745 (grub_probe_SOURCES): Likewise.
28746 (grub_emu_SOURCES): Likewise.
28747
28748 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
28749 (grub_emu_SOURCES): Likewise.
28750
28751 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
28752 (grub_emu_SOURCES): Likewise.
28753
28754 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
28755
28756 * fs/ntfs.c: New file.
28757
28758 2007-08-02 Bean <bean123ch@gmail.com>
28759
28760 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
28761
28762 * file.h (grub_file): Likewise.
28763
28764 * fshelp.h (grub_fshelp_read_file): Likewise.
28765
28766 * util/i386/pc/grub-setup.c (setup): Likewise.
28767 (save_first_sector): Likewise.
28768 (save_blocklists): Likewise.
28769
28770 * fs/affs.c (grub_affs_read_file): Likewise.
28771
28772 * fs/ext2.c (grub_ext2_read_file): Likewise.
28773
28774 * fs/fat.c (grub_fat_read_data): Likewise.
28775
28776 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
28777
28778 * fs/hfs.c (grub_hfs_read_file): Likewise.
28779
28780 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
28781
28782 * fs/jfs.c (grub_jfs_read_file): Likewise.
28783
28784 * fs/minix.c (grub_minix_read_file): Likewise.
28785
28786 * fs/sfs.c (grub_sfs_read_file): Likewise.
28787
28788 * fs/ufs.c (grub_ufs_read_file): Likewise.
28789
28790 * fs/xfs.c (grub_xfs_read_file): Likewise.
28791
28792 * command/blocklist.c (read_blocklist): Likewise.
28793 (print_blocklist): Likewise.
28794
28795 2007-08-02 Marco Gerards <marco@gnu.org>
28796
28797 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
28798 `util/hostfs.c'.
28799
28800 * disk/host.c: New file.
28801
28802 * util/hostfs.c: Likewise.
28803
28804 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
28805 return `GRUB_ERR_BAD_FS'.
28806 * fs/sfs.c (grub_sfs_mount): Likewise.
28807 * fs/xfs.c (grub_xfs_mount): Likewise.
28808
28809 * include/grub/disk.h (enum grub_disk_dev_id): Add
28810 `GRUB_DISK_DEVICE_HOST_ID'.
28811
28812 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
28813
28814 2007-07-24 Jerone Young <jerone@gmail.com>
28815
28816 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
28817 modules for compilation.
28818 * conf/powerpc-ieee1275.rmk: Likewise.
28819
28820 * include/multiboot.h: Move multiboot definitions to one file. Rename
28821 many definitions to not get grub specific.
28822 * include/multiboot2.h: Create header with multiboot 2 definitions.
28823 * include/grub/multiboot.h: Header for grub specific function
28824 prototypes and definitions.
28825 * include/grub/multiboot2.h: Likewise.
28826 * include/grub/multiboot_loader.h: Likewise.
28827 * include/grub/i386/pc/multiboot.h: Removed.
28828 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
28829
28830 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
28831 and 2 to allow for one multiboot and module commands.
28832 * loader/multiboot2.c: Add multiboot2 functionality.
28833 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
28834 and definition names.
28835 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
28836 2 functions.
28837 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
28838 ieee1275 specific multiboot2 code.
28839
28840 * kern/i386/pc/startup.S: Change headers and definition names for
28841 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
28842
28843 2007-07-22 Robert Millan <rmh@aybabtu.com>
28844
28845 * geninitheader.sh: Process file specified in first parameter rather
28846 than hardcoding grub_modules_init.lst.
28847 * geninit.sh: Likewise. Also, construct header name dynamically rather
28848 than hardcoding grub_modules_init.h.
28849
28850 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
28851 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
28852 grub_probe_init.[ch] and grub_setup_init.[ch].
28853
28854 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
28855 grub_modules_init.h with grub_emu_init.h.
28856 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
28857 grub_probe_init.[ch] files.
28858 * conf/i386-efi.rmk: Likewise.
28859 * conf/i386-pc.rmk: Likewise.
28860 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
28861 grub_setup_init.[ch] files.
28862
28863 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
28864 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
28865 to initialize modules rather than a list of hardcoded functions.
28866 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
28867 grub_init_all() to initialize modules rather than a list of hardcoded
28868 functions.
28869
28870 2007-07-22 Robert Millan <rmh@aybabtu.com>
28871
28872 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
28873 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
28874
28875 2007-07-22 Robert Millan <rmh@aybabtu.com>
28876
28877 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
28878 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
28879 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
28880 flag when running on SmartFirmware.
28881 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
28882 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
28883 was set.
28884
28885 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
28886 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
28887 rather than decreasing it.
28888
28889 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
28890 there's not enough space to do it, fail in the same way as when it
28891 can't be done because there are no partitions.
28892
28893 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
28894 when nvsetenv failed.
28895
28896 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
28897
28898 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
28899 because this rule is automatically generated.
28900 (grub-mkrescue): Removed for the same reason as above.
28901
28902 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
28903
28904 Migrate to GNU General Public License Version 3.
28905
28906 * COPYING: Replaced with the plain text version of GPLv3.
28907
28908 * config.guess: Updated from gnulib.
28909 * config.sub: Likewise.
28910
28911 * geninit.sh: Output a GPLv3 copyright notice.
28912 * geninitheader.sh: Likewise.
28913 * genmodsrc.sh: Likewise.
28914 * gensymlist.sh.in: Likewise.
28915
28916 * boot/i386/pc/boot.S: Upgraded to GPLv3.
28917 * boot/i386/pc/diskboot.S: Likewise.
28918 * boot/i386/pc/pxeboot.S: Likewise.
28919 * commands/blocklist.c: Likewise.
28920 * commands/boot.c: Likewise.
28921 * commands/cat.c: Likewise.
28922 * commands/cmp.c: Likewise.
28923 * commands/configfile.c: Likewise.
28924 * commands/echo.c: Likewise.
28925 * commands/help.c: Likewise.
28926 * commands/ls.c: Likewise.
28927 * commands/search.c: Likewise.
28928 * commands/terminal.c: Likewise.
28929 * commands/test.c: Likewise.
28930 * commands/videotest.c: Likewise.
28931 * commands/i386/cpuid.c: Likewise.
28932 * commands/i386/pc/halt.c: Likewise.
28933 * commands/i386/pc/play.c: Likewise.
28934 * commands/i386/pc/reboot.c: Likewise.
28935 * commands/i386/pc/vbeinfo.c: Likewise.
28936 * commands/i386/pc/vbetest.c: Likewise.
28937 * commands/ieee1275/halt.c: Likewise.
28938 * commands/ieee1275/reboot.c: Likewise.
28939 * commands/ieee1275/suspend.c: Likewise.
28940 * disk/loopback.c: Likewise.
28941 * disk/lvm.c: Likewise.
28942 * disk/raid.c: Likewise.
28943 * disk/efi/efidisk.c: Likewise.
28944 * disk/i386/pc/biosdisk.c: Likewise.
28945 * disk/ieee1275/ofdisk.c: Likewise.
28946 * font/manager.c: Likewise.
28947 * fs/affs.c: Likewise.
28948 * fs/ext2.c: Likewise.
28949 * fs/fat.c: Likewise.
28950 * fs/fshelp.c: Likewise.
28951 * fs/hfs.c: Likewise.
28952 * fs/hfsplus.c: Likewise.
28953 * fs/iso9660.c: Likewise.
28954 * fs/jfs.c: Likewise.
28955 * fs/minix.c: Likewise.
28956 * fs/sfs.c: Likewise.
28957 * fs/ufs.c: Likewise.
28958 * fs/xfs.c: Likewise.
28959 * hello/hello.c: Likewise.
28960 * include/grub/acorn_filecore.h: Likewise.
28961 * include/grub/arg.h: Likewise.
28962 * include/grub/bitmap.h: Likewise.
28963 * include/grub/boot.h: Likewise.
28964 * include/grub/cache.h: Likewise.
28965 * include/grub/device.h: Likewise.
28966 * include/grub/disk.h: Likewise.
28967 * include/grub/dl.h: Likewise.
28968 * include/grub/elfload.h: Likewise.
28969 * include/grub/env.h: Likewise.
28970 * include/grub/err.h: Likewise.
28971 * include/grub/file.h: Likewise.
28972 * include/grub/font.h: Likewise.
28973 * include/grub/fs.h: Likewise.
28974 * include/grub/fshelp.h: Likewise.
28975 * include/grub/gzio.h: Likewise.
28976 * include/grub/hfs.h: Likewise.
28977 * include/grub/kernel.h: Likewise.
28978 * include/grub/loader.h: Likewise.
28979 * include/grub/lvm.h: Likewise.
28980 * include/grub/misc.h: Likewise.
28981 * include/grub/mm.h: Likewise.
28982 * include/grub/net.h: Likewise.
28983 * include/grub/normal.h: Likewise.
28984 * include/grub/parser.h: Likewise.
28985 * include/grub/partition.h: Likewise.
28986 * include/grub/pc_partition.h: Likewise.
28987 * include/grub/raid.h: Likewise.
28988 * include/grub/rescue.h: Likewise.
28989 * include/grub/script.h: Likewise.
28990 * include/grub/setjmp.h: Likewise.
28991 * include/grub/symbol.h: Likewise.
28992 * include/grub/term.h: Likewise.
28993 * include/grub/terminfo.h: Likewise.
28994 * include/grub/tparm.h: Likewise.
28995 * include/grub/types.h: Likewise.
28996 * include/grub/video.h: Likewise.
28997 * include/grub/efi/api.h: Likewise.
28998 * include/grub/efi/chainloader.h: Likewise.
28999 * include/grub/efi/console.h: Likewise.
29000 * include/grub/efi/console_control.h: Likewise.
29001 * include/grub/efi/disk.h: Likewise.
29002 * include/grub/efi/efi.h: Likewise.
29003 * include/grub/efi/pe32.h: Likewise.
29004 * include/grub/efi/time.h: Likewise.
29005 * include/grub/i386/linux.h: Likewise.
29006 * include/grub/i386/setjmp.h: Likewise.
29007 * include/grub/i386/types.h: Likewise.
29008 * include/grub/i386/efi/kernel.h: Likewise.
29009 * include/grub/i386/efi/loader.h: Likewise.
29010 * include/grub/i386/efi/time.h: Likewise.
29011 * include/grub/i386/pc/biosdisk.h: Likewise.
29012 * include/grub/i386/pc/boot.h: Likewise.
29013 * include/grub/i386/pc/chainloader.h: Likewise.
29014 * include/grub/i386/pc/console.h: Likewise.
29015 * include/grub/i386/pc/init.h: Likewise.
29016 * include/grub/i386/pc/kernel.h: Likewise.
29017 * include/grub/i386/pc/loader.h: Likewise.
29018 * include/grub/i386/pc/memory.h: Likewise.
29019 * include/grub/i386/pc/multiboot.h: Likewise.
29020 * include/grub/i386/pc/serial.h: Likewise.
29021 * include/grub/i386/pc/time.h: Likewise.
29022 * include/grub/i386/pc/vbe.h: Likewise.
29023 * include/grub/i386/pc/vbeblit.h: Likewise.
29024 * include/grub/i386/pc/vbefill.h: Likewise.
29025 * include/grub/i386/pc/vbeutil.h: Likewise.
29026 * include/grub/i386/pc/vga.h: Likewise.
29027 * include/grub/ieee1275/ieee1275.h: Likewise.
29028 * include/grub/ieee1275/ofdisk.h: Likewise.
29029 * include/grub/powerpc/libgcc.h: Likewise.
29030 * include/grub/powerpc/setjmp.h: Likewise.
29031 * include/grub/powerpc/types.h: Likewise.
29032 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
29033 * include/grub/powerpc/ieee1275/console.h: Likewise.
29034 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
29035 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
29036 * include/grub/powerpc/ieee1275/loader.h: Likewise.
29037 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
29038 * include/grub/powerpc/ieee1275/time.h: Likewise.
29039 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
29040 * include/grub/sparc64/libgcc.h: Likewise.
29041 * include/grub/sparc64/setjmp.h: Likewise.
29042 * include/grub/sparc64/types.h: Likewise.
29043 * include/grub/sparc64/ieee1275/console.h: Likewise.
29044 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
29045 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
29046 * include/grub/sparc64/ieee1275/time.h: Likewise.
29047 * include/grub/util/biosdisk.h: Likewise.
29048 * include/grub/util/getroot.h: Likewise.
29049 * include/grub/util/lvm.h: Likewise.
29050 * include/grub/util/misc.h: Likewise.
29051 * include/grub/util/raid.h: Likewise.
29052 * include/grub/util/resolve.h: Likewise.
29053 * io/gzio.c: Likewise.
29054 * kern/device.c: Likewise.
29055 * kern/disk.c: Likewise.
29056 * kern/dl.c: Likewise.
29057 * kern/elf.c: Likewise.
29058 * kern/env.c: Likewise.
29059 * kern/err.c: Likewise.
29060 * kern/file.c: Likewise.
29061 * kern/fs.c: Likewise.
29062 * kern/loader.c: Likewise.
29063 * kern/main.c: Likewise.
29064 * kern/misc.c: Likewise.
29065 * kern/mm.c: Likewise.
29066 * kern/parser.c: Likewise.
29067 * kern/partition.c: Likewise.
29068 * kern/rescue.c: Likewise.
29069 * kern/term.c: Likewise.
29070 * kern/efi/efi.c: Likewise.
29071 * kern/efi/init.c: Likewise.
29072 * kern/efi/mm.c: Likewise.
29073 * kern/i386/dl.c: Likewise.
29074 * kern/i386/efi/init.c: Likewise.
29075 * kern/i386/efi/startup.S: Likewise.
29076 * kern/i386/pc/init.c: Likewise.
29077 * kern/i386/pc/lzo1x.S: Likewise.
29078 * kern/i386/pc/startup.S: Likewise.
29079 * kern/ieee1275/ieee1275.c: Likewise.
29080 * kern/powerpc/cache.S: Likewise.
29081 * kern/powerpc/dl.c: Likewise.
29082 * kern/powerpc/ieee1275/cmain.c: Likewise.
29083 * kern/powerpc/ieee1275/crt0.S: Likewise.
29084 * kern/powerpc/ieee1275/init.c: Likewise.
29085 * kern/powerpc/ieee1275/openfw.c: Likewise.
29086 * kern/sparc64/cache.S: Likewise.
29087 * kern/sparc64/dl.c: Likewise.
29088 * kern/sparc64/ieee1275/init.c: Likewise.
29089 * kern/sparc64/ieee1275/openfw.c: Likewise.
29090 * loader/efi/chainloader.c: Likewise.
29091 * loader/efi/chainloader_normal.c: Likewise.
29092 * loader/i386/efi/linux.c: Likewise.
29093 * loader/i386/efi/linux_normal.c: Likewise.
29094 * loader/i386/pc/chainloader.c: Likewise.
29095 * loader/i386/pc/chainloader_normal.c: Likewise.
29096 * loader/i386/pc/linux.c: Likewise.
29097 * loader/i386/pc/linux_normal.c: Likewise.
29098 * loader/i386/pc/multiboot.c: Likewise.
29099 * loader/i386/pc/multiboot_normal.c: Likewise.
29100 * loader/powerpc/ieee1275/linux.c: Likewise.
29101 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
29102 * normal/arg.c: Likewise.
29103 * normal/cmdline.c: Likewise.
29104 * normal/command.c: Likewise.
29105 * normal/completion.c: Likewise.
29106 * normal/execute.c: Likewise.
29107 * normal/function.c: Likewise.
29108 * normal/lexer.c: Likewise.
29109 * normal/main.c: Likewise.
29110 * normal/menu.c: Likewise.
29111 * normal/menu_entry.c: Likewise.
29112 * normal/misc.c: Likewise.
29113 * normal/parser.y: Likewise.
29114 * normal/script.c: Likewise.
29115 * normal/i386/setjmp.S: Likewise.
29116 * normal/powerpc/setjmp.S: Likewise.
29117 * normal/sparc64/setjmp.S: Likewise.
29118 * partmap/acorn.c: Likewise.
29119 * partmap/amiga.c: Likewise.
29120 * partmap/apple.c: Likewise.
29121 * partmap/gpt.c: Likewise.
29122 * partmap/pc.c: Likewise.
29123 * partmap/sun.c: Likewise.
29124 * term/gfxterm.c: Likewise.
29125 * term/terminfo.c: Likewise.
29126 * term/efi/console.c: Likewise.
29127 * term/i386/pc/console.c: Likewise.
29128 * term/i386/pc/serial.c: Likewise.
29129 * term/i386/pc/vesafb.c: Likewise.
29130 * term/i386/pc/vga.c: Likewise.
29131 * term/ieee1275/ofconsole.c: Likewise.
29132 * util/biosdisk.c: Likewise.
29133 * util/console.c: Likewise.
29134 * util/genmoddep.c: Likewise.
29135 * util/getroot.c: Likewise.
29136 * util/grub-emu.c: Likewise.
29137 * util/grub-mkdevicemap.c: Likewise.
29138 * util/grub-probe.c: Likewise.
29139 * util/lvm.c: Likewise.
29140 * util/misc.c: Likewise.
29141 * util/raid.c: Likewise.
29142 * util/resolve.c: Likewise.
29143 * util/update-grub.in: Likewise.
29144 * util/update-grub_lib.in: Likewise.
29145 * util/grub.d/00_header.in: Likewise.
29146 * util/grub.d/10_hurd.in: Likewise.
29147 * util/grub.d/10_linux.in: Likewise.
29148 * util/i386/efi/grub-install.in: Likewise.
29149 * util/i386/efi/grub-mkimage.c: Likewise.
29150 * util/i386/pc/grub-install.in: Likewise.
29151 * util/i386/pc/grub-mkimage.c: Likewise.
29152 * util/i386/pc/grub-mkrescue.in: Likewise.
29153 * util/i386/pc/grub-setup.c: Likewise.
29154 * util/i386/pc/misc.c: Likewise.
29155 * util/powerpc/ieee1275/grub-install.in: Likewise.
29156 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
29157 * util/powerpc/ieee1275/misc.c: Likewise.
29158 * video/bitmap.c: Likewise.
29159 * video/video.c: Likewise.
29160 * video/i386/pc/vbe.c: Likewise.
29161 * video/i386/pc/vbeblit.c: Likewise.
29162 * video/i386/pc/vbefill.c: Likewise.
29163 * video/i386/pc/vbeutil.c: Likewise.
29164 * video/readers/tga.c: Likewise.
29165
29166 2007-07-02 Robert Millan <rmh@aybabtu.com>
29167
29168 * conf/i386-efi.rmk: Replace obsolete reference to
29169 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
29170 with util/getroot.c.
29171 * conf/powerpc-ieee1275.rmk: Likewise.
29172 * conf/sparc64-ieee1275.rmk: Likewise.
29173
29174 * util/grub-emu.c (main): Fix unchecked pointer handling.
29175
29176 2007-07-02 Robert Millan <rmh@aybabtu.com>
29177
29178 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
29179 invocation to fail, in order to support partition-less media.
29180
29181 * util/i386/pc/grub-install.in: Likewise.
29182
29183 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
29184 which fs or partmap modules are needed (akin to its sister scripts).
29185
29186 Also use grub-probe to get rid of unportable /proc/mounts check.
29187
29188 Print the same informational message that the other scripts do, before
29189 exiting.
29190
29191 2007-06-23 Robert Millan <rmh@aybabtu.com>
29192
29193 * util/update-grub_lib.in (font_path): New function. Determine whether
29194 a font file can be found and, if so, echo the GRUB path to it.
29195
29196 * util/update-grub.in: Handle multiple terminals depending on user
29197 input, platform availability and font file presence. Propagate
29198 variables of our findings to /etc/grub.d/ children.
29199
29200 * util/grub.d/00_header.in: Handle multiple terminals, based on
29201 environment setup by update-grub.
29202
29203 2007-06-23 Robert Millan <rmh@aybabtu.com>
29204
29205 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
29206
29207 2007-06-21 Robert Millan <rmh@aybabtu.com>
29208
29209 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
29210 indicate end of data section in kernel image.
29211 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
29212 GRUB_KERNEL_MACHINE_DATA_END.
29213
29214 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
29215 space for it.
29216 * kern/i386/efi/startup.S: Likewise.
29217
29218 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
29219 during image generation. Implement --prefix option to override this
29220 patch.
29221 * util/i386/efi/grub-mkimage.c: Likewise.
29222
29223 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
29224 code to make path relative to its root into a separate function.
29225
29226 * util/i386/pc/grub-install.in: Use newly provided
29227 make_system_path_relative_to_its_root() to convert ${grubdir}, then
29228 pass the result to grub-install --prefix.
29229
29230 2007-06-13 Robert Millan <rmh@aybabtu.com>
29231
29232 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
29233 DEFAULT_DEVICE_MAP.
29234 * util/grub-emu.c: Use above definitions from misc.h instead of
29235 defining them.
29236 * util/grub-mkdevicemap.c: Likewise.
29237 * util/i386/pc/grub-setup.c: Likewise.
29238 * util/grub-probe.c: Likewise.
29239 (probe): Abort with grub_util_error() when either
29240 grub_guess_root_device or grub_util_get_grub_dev fails.
29241
29242 2007-06-12 Robert Millan <rmh@aybabtu.com>
29243
29244 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
29245 "pager" assignment.
29246 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
29247 "pcdata".
29248 * util/grub-probe.c (probe): Likewise for "drive_name".
29249
29250 2007-06-11 Robert Millan <rmh@aybabtu.com>
29251
29252 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
29253 not just the cdrom one.
29254
29255 2007-06-11 Robert Millan <rmh@aybabtu.com>
29256
29257 * util/i386/pc/grub-mkrescue.in: Add "set -e".
29258 Add --pkglibdir=DIR option to override pkglibdir.
29259 Mention --image-type=TYPE in help output.
29260 Fix --grub-mkimage (it was a no-op).
29261 Abort gracefully when no parameter is given.
29262
29263 2007-06-11 Robert Millan <rmh@aybabtu.com>
29264
29265 * util/i386/pc/grub-mkrescue.in: New file.
29266 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
29267 * Makefile.in: Handle bin_SCRIPTS.
29268
29269 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
29270
29271 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
29272 list of video modes.
29273
29274 2007-06-06 Robert Millan <rmh@aybabtu.com>
29275
29276 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
29277 file doesn't exist, or if it is in a filesystem grub can't read.
29278
29279 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
29280 not abort if GRUB_DRIVE could not be defined. Rearrange generated
29281 header comment to fit in 80 columns when the variables are resolved.
29282
29283 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
29284 could be identified by update-grub. Remove redundant check for
29285 unifont.pff existence (since convert_system_path_to_grub_path now
29286 handles that).
29287
29288 2007-06-04 Robert Millan <rmh@aybabtu.com>
29289
29290 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
29291
29292 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
29293
29294 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
29295
29296 2007-06-04 Robert Millan <rmh@aybabtu.com>
29297
29298 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
29299
29300 * include/grub/partition.h: Declare grub_apple_partition_map_init and
29301 grub_apple_partition_map_fini.
29302
29303 * util/biosdisk.c
29304 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
29305 to access >2 TiB disks).
29306
29307 Print disk->total_sectors with %llu instead of %lu, since this
29308 variable is always 64-bit (prevents wrong disk size from being displayed
29309 on either >2 TiB disk or big-endian CPU).
29310
29311 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
29312 into a generic case that supports all (sane) partition maps.
29313
29314 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
29315 breaks big-endian.
29316
29317 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
29318 and grub_apple_partition_map_fini() after that.
29319
29320 2007-06-01 Robert Millan <rmh@aybabtu.com>
29321
29322 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
29323
29324 * util/grub.d/00_header.in: Only enable gfxterm when
29325 convert_system_path_to_grub_path() succeeds.
29326
29327 2007-05-20 Robert Millan <rmh@aybabtu.com>
29328
29329 * util/update-grub_lib.in: New file.
29330 * DISTLIST: Add update-grub_lib.in.
29331 * conf/common.rmk: Generate update-grub_lib and install it in
29332 $(lib_DATA).
29333 * Makefile.in: Add install routine for $(lib_DATA).
29334
29335 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
29336 function provided by update-grub_lib to support arbitrary paths of
29337 unifont.pff.
29338 * util/update-grub.in: Use convert_system_path_to_grub_path() to
29339 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
29340
29341 2007-05-19 Robert Millan <rmh@aybabtu.com>
29342
29343 * commands/i386/cpuid.c: New module.
29344 * DISTLIST: Add it.
29345 * conf/i386-efi.rmk: Enable cpuid.mod.
29346 * conf/i386-pc.rmk: Likewise.
29347
29348 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
29349
29350 * kern/disk.c (grub_disk_read): Check return value of
29351 grub_realloc().
29352
29353 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
29354
29355 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
29356 arrays.
29357 * disk/raid.c (grub_raid_open): Likewise.
29358
29359 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
29360
29361 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
29362 stack instead of on the heap.
29363
29364 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
29365 before doing a read on it.
29366
29367 * configure.ac: Only use -fno-stack-protector for the target
29368 environment.
29369
29370 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
29371
29372 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
29373 __attribute_ ((unused)) to mode_type argument.
29374
29375 * util/getroot.c (grub_guess_root_device): Fix #endif.
29376
29377 * kern/misc.c (memcmp): Fix prototype.
29378
29379 * include/grub/partition.h [GRUB_UTIL]
29380 (grub_gpt_partition_map_init): Add prototype.
29381 (grub_gpt_partition_map_fini): Likewise.
29382
29383 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
29384 at the right place.
29385
29386 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
29387 (grub_fat_read_data): Likewise.
29388 (grub_fat_find_dir): Likewise.
29389
29390 * font/manager.c (find_glyph): Make table a const.
29391 (grub_font_get_glyph): Remove bitmap from if statement.
29392
29393 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
29394
29395 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
29396 code, first search for device in /dev/mapper, then in /dev.
29397 (grub_util_get_grub_dev): New function.
29398 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
29399 prototype.
29400 * util/grub-probe.c (probe): Remove check for RAID, call
29401 grub_util_get_grub_dev() instead of
29402 grub_util_biosdisk_get_grub_dev().
29403 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
29404 grub_util_biosdisk_get_grub_dev().
29405 * util/i386/pc/grub-setup.c (main): Likewise.
29406
29407 2007-05-16 Robert Millan <rmh@aybabtu.com>
29408
29409 * DISTLIST: Update for the latest changes.
29410 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
29411 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
29412 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
29413 grub/util/biosdisk.h.
29414 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
29415 grub/util/biosdisk.h.
29416
29417 2007-05-16 Robert Millan <rmh@aybabtu.com>
29418
29419 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
29420
29421 2007-05-16 Robert Millan <rmh@aybabtu.com>
29422
29423 * util/i386/efi/grub-install.in: New.
29424 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
29425 newly added grub-install.
29426 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
29427 include.
29428 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
29429 grub/util/biosdisk.h.
29430 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
29431 grub/util/biosdisk.h.
29432
29433 2007-05-16 Robert Millan <rmh@aybabtu.com>
29434
29435 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
29436 * include/grub/util/biosdisk.h: ... here.
29437 * util/i386/pc/biosdisk.c: Moved to ...
29438 * util/biosdisk.c: ... here.
29439 * util/i386/pc/getroot.c: Moved to ...
29440 * util/getroot.c: ... here.
29441 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
29442 * util/grub-mkdevicemap.c: ... here.
29443 * util/i386/pc/grub-probe.c: Moved to ...
29444 * util/grub-probe.c: ... here.
29445
29446 2007-05-15 Robert Millan <rmh@aybabtu.com>
29447
29448 * util/update-grub.in: Remove duplicated line in grub.cfg header
29449 message.
29450
29451 2007-05-13 Robert Millan <rmh@aybabtu.com>
29452
29453 * util/update-grub.in: Fix a few assumptions about the devices holding
29454 /, /boot and /boot/grub being the same.
29455 * util/grub.d/00_header.in: Likewise.
29456 * util/grub.d/10_hurd.in: Likewise.
29457 * util/grub.d/10_linux.in: Likewise.
29458
29459 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
29460 patterns. Use that to define the `.old' suffix as older than `'.
29461
29462 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
29463
29464 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
29465 the grub.cfg header message.
29466
29467 2007-05-11 Robert Millan <rmh@aybabtu.com>
29468
29469 * util/update-grub.in: Create device.map if it doesn't already exist,
29470 before attempting to run grub-probe.
29471 Check for grub-probe and grub-mkdevicemap with the same code
29472 grub-install is using.
29473 Remove test mode.
29474
29475 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
29476
29477 * Makefile.in: Add the datarootdir autoconf variable.
29478
29479 2007-05-09 Robert Millan <rmh@aybabtu.com>
29480
29481 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
29482 fail gracefully if dev->disk->partition == NULL.
29483
29484 2007-05-07 Robert Millan <rmh@aybabtu.com>
29485
29486 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
29487 determine partition map module.
29488 * util/i386/pc/grub-install.in: Use this feature to decide which
29489 partition module to load, instead of hardcoding pc and gpt.
29490
29491 2007-05-07 Robert Millan <rmh@aybabtu.com>
29492
29493 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
29494 source directory differs from build directory.
29495
29496 2007-05-05 Robert Millan <rmh@aybabtu.com>
29497
29498 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
29499 initialisation.
29500
29501 2007-05-05 Robert Millan <rmh@aybabtu.com>
29502
29503 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
29504
29505 2007-05-05 Robert Millan <rmh@aybabtu.com>
29506
29507 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
29508 command-line arguments via ${GRUB_CMDLINE_LINUX}.
29509
29510 2007-05-05 Robert Millan <rmh@aybabtu.com>
29511
29512 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
29513 (grub_probe_SOURCES): Likewise.
29514 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
29515 GPT and initialize dos_part and bsd_part accordingly.
29516 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
29517 install_bsd_part.
29518 (main): Activate gpt module for use during partition identification,
29519 and deactivate it afterwards.
29520 * util/i386/pc/grub-install.in: Add gpt module to core.img.
29521 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
29522 partition identification, and deactivate it afterwards.
29523
29524 2007-05-05 Robert Millan <rmh@aybabtu.com>
29525
29526 * term/i386/pc/console.c (grub_console_fini): Call
29527 grub_term_set_current() before grub_term_unregister().
29528
29529 2007-05-04 Robert Millan <rmh@aybabtu.com>
29530
29531 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
29532 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
29533 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
29534 and update-grub_DATA.
29535 * conf/common.rmk: Build and install update-grub components.
29536 * conf/common.mk: Regenerate.
29537 * util/update-grub.in: New. Core of update-grub.
29538 * util/grub.d/00_header.in: New. Generates grub.cfg header.
29539 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
29540 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
29541 * util/grub.d/README: New. Document grub.d directory layout.
29542
29543 2007-05-01 Robert Millan <rmh@aybabtu.com>
29544
29545 * util/grub-emu.c: Move initialization functions
29546 grub_util_biosdisk_init() and grub_init_all() before
29547 grub_util_biosdisk_get_grub_dev(), which relies on them.
29548
29549 2007-04-19 Robert Millan <rmh@aybabtu.com>
29550
29551 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
29552 it is used later.
29553
29554 2007-04-18 Jerone Young <jerone@gmail.com>
29555
29556 * kernel/elf.c: Add missing parenthesis for conditional statement
29557 stanza.
29558
29559 2007-04-10 Jerone Young <jerone@gmail.com>
29560
29561 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
29562 continue on and look for device node with real device name.
29563
29564 2007-04-10 Jerone Young <jerone@gmail.com>
29565
29566 * configure.ac: Add argument for autoconf to use transformation
29567 ability.
29568 * Makefile.in: Add autoconf package transformation code.
29569 * util/i386/pc/grub-install.in: Likewise.
29570 * util/powerpc/ieee1275/grub-install.in: Likewise.
29571
29572 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
29573
29574 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
29575 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
29576 (EXT2_REVISION): Likewise.
29577 (EXT2_INODE_SIZE): Likewise.
29578 (struct grub_ext2_block_group): Added a missing member
29579 "used_dirs".
29580 (grub_ext2_read_inode): Divide by the inode size in a superblock
29581 instead of 128 to obtain INODES_PER_BLOCK.
29582 Use the macro EXT2_INODE_SIZE instead of directly using
29583 SBLOCK->INODE_SIZE.
29584
29585 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
29586
29587 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
29588 superblock instead of the structure size to compute an
29589 offset. This fixes the problem that GRUB could not read a
29590 filesystem when inode size is different from 128-byte.
29591
29592 2007-03-05 Marco Gerards <marco@gnu.org>
29593
29594 * normal/main.c (read_config_file): When "menu" is not set, create
29595 an initial context.
29596
29597 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
29598
29599 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
29600 (HEAP_LIMIT): New macro.
29601 (grub_claim_heap): Claim memory up to `heaplimit'.
29602
29603 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
29604
29605 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
29606 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
29607 (_start): Likewise.
29608 (grub_arch_modules_addr): Return address after `_end'.
29609 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
29610 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
29611 (add_segments): Calculate `_end' from phdr size and location.
29612 (ALIGN_UP): Moved to ...
29613 * include/grub/misc.h: here.
29614 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
29615 New macro.
29616 (GRUB_IEEE1275_MODULE_BASE): Removed.
29617
29618 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
29619
29620 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
29621 loop boundary.
29622
29623 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
29624
29625 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
29626 All users updated.
29627 (grub_elf64_load_hook_t): Likewise.
29628 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
29629 debug output.
29630
29631 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
29632
29633 * kern/mm.c: Update copyright.
29634 (grub_mm_debug): Correct syntax error.
29635 (grub_mm_dump_free): New function.
29636 (grub_debug_free): Call `grub_free'.
29637 * include/grub/mm.h: Update copyright.
29638 (grub_mm_dump_free): Add declaration.
29639
29640 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
29641
29642 * include/grub/ieee1275/ieee1275.h: Update copyright.
29643 * kern/powerpc/ieee1275/init.c: Likewise.
29644 * kern/powerpc/ieee1275/openfw.c: Likewise.
29645
29646 * loader/powerpc/ieee1275/linux.c: Likewise.
29647 * include/grub/elfload.h: Likewise.
29648 * kern/elf.c: Likewise.
29649 (grub_elf32_load): Pass `base' and `size' parameters. Update all
29650 callers.
29651 (grub_elf64_load): Likewise.
29652 (grub_elf32_load_segment): Move to a nested function.
29653 (grub_elf64_load_segment): Likewise.
29654
29655 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
29656
29657 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
29658 prototype.
29659 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
29660 (grub_heap_len): Likewise.
29661 (HEAP_SIZE): New macro.
29662 (grub_claim_heap): New function.
29663 (grub_machine_init): Don't claim heap directly. Call
29664 `grub_claim_heap'.
29665 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
29666 (grub_available_iterate): New function.
29667
29668 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
29669
29670 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
29671 * configure.ac: Use it for testing the HOST and TARGET compilers.
29672
29673 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
29674
29675 * Makefile.in (enable_grub_emu): New variable.
29676 * configure.ac (--enable-grub-emu): New option.
29677 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
29678 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
29679 * conf/i386-pc.rmk: Likewise.
29680 * conf/powerpc-ieee1275.rmk: Likewise.
29681 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
29682
29683 2006-12-12 Marco Gerards <marco@gnu.org>
29684
29685 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
29686
29687 * kern/env.c (grub_env_unset): Don't free the member `value' when
29688 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
29689 pointer.
29690
29691 * normal/main.c (current_menu): Removed.
29692 (free_menu): Unset the `menu' environment variable.
29693 (grub_normal_menu_addentry): Make use of the environment variable
29694 `menu', instead of using the global `current_menu'. Allocate
29695 memory for the sourcecode of this entry.
29696 (read_config_file): New argument `nested', changed all callers.
29697 Only in the case of a new context, initialize a new menu. Set the
29698 `menu' environment variable.
29699 (grub_normal_execute): Don't set and unset the environment
29700 variable `menu' here anymore. Only free the menu when leaving the
29701 context.
29702
29703 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
29704 leak.
29705
29706 2006-12-11 Marco Gerards <marco@gnu.org>
29707
29708 * normal/menu_entry.c (run): Fix off by one bug so the last line
29709 is executed. Move the loader check to outside the loop.
29710
29711 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
29712
29713 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
29714
29715 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
29716
29717 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
29718 the number of sectors. Reported by Andrey Shuvikov
29719 <mr_hyro@yahoo.com>.
29720
29721 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
29722
29723 * kern/disk.c (grub_disk_read): When there is a read error, always
29724 try to read only the necessary data.
29725
29726 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
29727 disk/raid.c.
29728 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
29729 prototype.
29730 [GRUB_UTIL] (grub_raid_fini): Likewise.
29731 [GRUB_UTIL] (grub_lvm_init): Likewise.
29732 [GRUB_UTIL] (grub_lvm_fini): Likewise.
29733 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
29734 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
29735 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
29736 and grub_raid_fini().
29737
29738 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
29739
29740 * include/grub/types.h (__unused): Rename to UNUSED.
29741 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
29742 (grub_elf64_size): Likewise.
29743
29744 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
29745
29746 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
29747 grub_error_push and grub_error_pop in the error-handling path.
29748 (grub_elf32_load_segment): Only call grub_file_read with non-zero
29749 length.
29750
29751 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
29752
29753 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
29754 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
29755 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29756 (kernel_elf_SOURCES): Likewise.
29757 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
29758 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
29759 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
29760 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
29761 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
29762 (elf_mod_SOURCES): New variable.
29763 (elf_mod_CFLAGS): Likewise.
29764 (elf_mod_LDFLAGS): Likewise.
29765 * include/grub/types.h (__unused): New macro.
29766 * include/grub/elfload.h: New file.
29767 * kern/elf.c: Likewise.
29768 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
29769 (ELF32_LOADMASK): New macro.
29770 (ELF64_LOADMASK): Likewise.
29771 (vmlinux): Removed.
29772 (grub_linux_load32): New function.
29773 (grub_linux_load64): Likewise.
29774 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
29775 Use grub_elf_t instead of grub_file_t.
29776
29777 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
29778
29779 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
29780 `catch_result' to struct set_color_args.
29781
29782 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
29783
29784 * normal/menu.c: Include grub/script.h.
29785 * normal/menu_entry.c: Likewise.
29786 * include/grub/normal.h: Do not include grub/script.h.
29787
29788 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
29789
29790 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
29791
29792 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
29793
29794 * kern/disk.c (grub_disk_open): Print debug messages when opening a
29795 disk.
29796 (grub_disk_close): Print debug messages when closing a disk.
29797 (grub_disk_read): Print debug messages when disk read fails.
29798 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
29799 filesystem type.
29800 * kern/partition.c: Include misc.h.
29801 (grub_partition_iterate): Print debug messages when detecting
29802 partition type.
29803
29804 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
29805
29806 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
29807 is negative.
29808 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
29809
29810 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
29811
29812 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
29813 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
29814
29815 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
29816
29817 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
29818 instead of sizeof(lv). Patch by Michael Guntsche.
29819
29820 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
29821
29822 * disk/lvm.c: Rename VGS to VG_LIST.
29823 (grub_lvm_iterate): Change VGS->LV to VG-LV.
29824 (grub_lvm_open): Likewise.
29825 Thanks to Michael Guntsche for finding this bug.
29826
29827 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
29828
29829 * configure.ac (AC_INIT): Bumped to 1.95.
29830
29831 2006-10-14 Robert Millan <rmh@aybabtu.com>
29832
29833 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
29834 with "/dev/.static/dev/md".
29835
29836 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
29837
29838 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
29839 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
29840 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
29841 DRIVE_NAME are always freed.
29842
29843 * util/i386/pc/biosdisk.c (make_device_name): Add one into
29844 DOS_PART, as a DOS partition is counted from one instead of zero
29845 now. Reported by Robert Millan.
29846
29847 2006-10-14 Robert Millan <rmh@aybabtu.com>
29848
29849 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
29850 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
29851 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
29852 string returned by grub_guess_root_device.
29853 * util/i386/pc/grub-setup.c: Likewise.
29854 * util/i386/pc/grub-probefs.c: Likewise.
29855
29856 * util/i386/pc/grub-probefs.c: Rename to ...
29857 * util/i386/pc/grub-probe.c: ... this.
29858 * DISTLIST: Remove grub-probefs, add grub-probe.
29859 * conf/i386-efi.rmk: Likewise.
29860 * conf/i386-pc.rmk: Likewise.
29861 * util/i386/pc/grub-install.in: Likewise.
29862
29863 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
29864 choose which information we want to print.
29865
29866 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
29867
29868 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
29869 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
29870 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
29871 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
29872 video/readers/tga.c and video/i386/pc/vbeutil.c.
29873
29874 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
29875
29876 Added support for RAID and LVM.
29877
29878 * disk/lvm.c: New file.
29879 * disk/raid.c: Likewise.
29880 * include/grub/lvm.h: Likewise.
29881 * include/grub/raid.h: Likewise.
29882 * include/grub/util/lvm.h: Likewise.
29883 * include/grub/util/raid.h: Likewise.
29884 * util/lvm.c: Likewise.
29885 * util/raid.c: Likewise.
29886
29887 * include/grub/disk.h (grub_disk_dev_id): Add
29888 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
29889 (grub_disk_get_size): New prototype.
29890 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
29891 returns a partition.
29892 (grub_disk_get_size): New function.
29893
29894 * kern/i386/pc/init.c (make_install_device): Copy the prefix
29895 verbatim if grub_install_dos_part is -2.
29896
29897 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
29898 and LVM devices.
29899
29900 * util/i386/pc/grub-setup.c (setup): New argument
29901 MUST_EMBED. Force embedding of GRUB when the argument is
29902 true. Close FILE before returning.
29903 (main): Add support for RAID and LVM.
29904
29905 * conf/common.rmk: Add RAID and LVM modules.
29906 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
29907 util/lvm.c.
29908 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
29909
29910 * kern/misc.c (grub_strstr): New function.
29911 * include/grub/misc.h (grub_strstr): New prototype.
29912
29913 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
29914
29915 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
29916
29917 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
29918
29919 * kern/misc.c (grub_strtoull): Guess the base only if not
29920 specified.
29921
29922 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
29923
29924 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
29925 PowerMac support.
29926
29927 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
29928
29929 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
29930
29931 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
29932 Remove `flags' argument. All callers changed.
29933 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
29934 (IEEE1275_IHANDLE_INVALID): New variable.
29935 (IEEE1275_CELL_INVALID): New variable.
29936 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
29937 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
29938 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
29939 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
29940 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
29941 codes from Open Firmware. All callers updated.
29942 (grub_ieee1275_next_property): Directly return Open Firmware return
29943 code.
29944 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
29945 Standardize error checking from `grub_ieee1275_get_property'.
29946 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
29947 `devalias' to `aliases'. Correct comments. Consolidate error paths.
29948
29949 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
29950
29951 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
29952 `instance_to_package_args' to `instance_to_path_args'.
29953
29954 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
29955 `grub_ieee1275_chosen'.
29956
29957 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
29958 `grub_ieee1275_interpret'.
29959
29960 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
29961
29962 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
29963
29964 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
29965
29966 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
29967 (__cmpdi): Likewise.
29968
29969 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
29970 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
29971 `grub_ssize_t'.
29972
29973 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
29974
29975 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
29976 to type `grub_ssize_t'.
29977 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
29978
29979 2006-09-22 Marco Gerards <marco@gnu.org>
29980
29981 * normal/script.c (grub_script_create_cmdmenu): Skip leading
29982 newlines.
29983
29984 2006-09-22 Marco Gerards <marco@gnu.org>
29985
29986 * commands/echo.c: New file.
29987
29988 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
29989
29990 * conf/common.rmk (echo_mod_SOURCES): New variable.
29991 (echo_mod_CFLAGS): Likewise.
29992 (echo_mod_LDFLAGS): Likewise.
29993
29994 2006-09-22 Marco Gerards <marco@gnu.org>
29995
29996 * normal/main.c (get_line): Malloc memory instead of using
29997 preallocated memory. Removed the arguments `cmdline' and
29998 `max_len'. Updated all callers.
29999
30000 2006-09-22 Marco Gerards <marco@gnu.org>
30001
30002 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
30003 (normal_mod_DEPENDENCIES): Likewise.
30004
30005 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
30006 (normal_mod_DEPENDENCIES): Likewise.
30007
30008 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
30009
30010 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
30011
30012 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
30013 programs.
30014 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
30015 (normal_mod_DEPENDENCIES): Likewise.
30016 * conf/i386-pc.mk: Regenerate.
30017 * conf/i386-efi.mk: Likewise
30018 * conf/common.mk: Likewise.
30019 * conf/powerpc-ieee1275.mk: Likewise.
30020 * conf/sparc64-ieee1275.mk: Likewise.
30021
30022 2006-09-22 Robert Millan <rmh@aybabtu.com>
30023
30024 Sync with i386 version.
30025 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
30026 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
30027
30028 2006-09-21 Robert Millan <rmh@aybabtu.com>
30029
30030 Import from GRUB Legacy (lib/device.c):
30031 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
30032 (init_device_map) [__linux__]: Add support for I2O devices.
30033
30034 2006-09-14 Marco Gerards <marco@gnu.org>
30035
30036 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
30037 `-melf_i386'.
30038
30039 2006-09-14 Robert Millan <rmh@aybabtu.com>
30040
30041 * util/i386/pc/grub-install.in: Skip menu.lst when removing
30042 /boot/grub/*.lst.
30043
30044 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
30045
30046 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
30047 before adding it to device.map.
30048
30049 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
30050
30051 * genmk.rb: Let GCC generate dependencies the first time it
30052 compiles a file; using the -MD option.
30053 * conf/common.mk: Regenerate.
30054 * conf/i386-pc.mk: Likewise.
30055 * conf/i386-efi.mk: Likewise.
30056 * conf/powerpc-ieee1275.mk: Likewise.
30057 * conf/sparc64-ieee1275.mk: Likewise.
30058
30059 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
30060
30061 Move the prototypes of grub_setjmp and grub_longjmp to
30062 cpu/setjmp.h, so that each architecture may specify different
30063 attributes.
30064
30065 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
30066 (grub_longjmp): Likewise.
30067 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
30068 (grub_longjmp): Likewise.
30069 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
30070 (grub_longjmp): Likewise.
30071
30072 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
30073 [!GRUB_UTIL] (grub_longjmp): Removed.
30074
30075 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
30076
30077 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
30078 "color!" method does not return any value.
30079
30080 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
30081
30082 * include/grub/bitmap.h: New file.
30083
30084 * include/grub/i386/pc/vbeutil.h: Likewise.
30085
30086 * video/bitmap.c: Likewise.
30087
30088 * video/readers/tga.c: Likewise.
30089
30090 * video/i386/pc/vbeutil.c: Likewise.
30091
30092 * commands/videotest.c: Code cleanup and updated to reflect to new
30093 video API.
30094
30095 * term/gfxterm.c: Likewise.
30096
30097 * video/video.c: Likewise.
30098
30099 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
30100 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
30101 (bitmap_mod_SOURCES): New entry.
30102 (bitmap_mod_CFLAGS): Likewise.
30103 (bitmap_mod_LDFLAGS): Likewise.
30104 (tga_mod_SOURCES): Likewise.
30105 (tga_mod_CFLAGS): Likewise.
30106 (tga_mod_LDFLAGS): Likewise.
30107
30108 * include/grub/video.h (grub_video_blit_operators): New enum type.
30109 (grub_video_render_target): Changed as forward declaration and moved
30110 actual definition to be video driver specific.
30111 (grub_video_adapter.blit_bitmap): Added blitting operator.
30112 (grub_video_adapter.blit_render_target): Likewise.
30113 (grub_video_blit_bitmap): Likewise.
30114 (grub_video_blit_render_target): Likewise.
30115
30116 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
30117 driver specific render target definition.
30118 (grub_video_vbe_map_rgba): Added driver internal helper.
30119 (grub_video_vbe_unmap_color): Updated to use
30120 grub_video_i386_vbeblit_info.
30121 (grub_video_vbe_get_video_ptr): Likewise.
30122
30123 * include/grub/i386/pc/vbeblit.h
30124 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
30125 grub_video_i386_vbeblit_info.
30126 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
30127 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
30128 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
30129 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
30130 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
30131 (grub_video_i386_vbeblit_index_index): Likewise.
30132 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
30133 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
30134 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
30135 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
30136 operator.
30137 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
30138 operator.
30139
30140 * video/i386/pc/vbeblit.c: Updated to reflect changes on
30141 include/grub/i386/pc/vbeblit.h.
30142
30143 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
30144 Updated to use grub_video_i386_vbeblit_info.
30145 (grub_video_i386_vbefill_R8G8B8): Likewise.
30146 (grub_video_i386_vbefill_index): Likewise.
30147 (grub_video_i386_vbefill): Added generic filler.
30148
30149 * video/i386/pc/vbefill.c: Updated to reflect changes on
30150 include/grub/i386/pc/vbefill.h.
30151
30152 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
30153 grub_video_i386_vbeblit_info.
30154 (grub_video_vbe_unmap_color): Likewise.
30155 (grub_video_vbe_blit_glyph): Likewise.
30156 (grub_video_vbe_scroll): Likewise.
30157 (grub_video_vbe_draw_pixel): Removed function.
30158 (grub_video_vbe_get_pixel): Likewise.
30159 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
30160 updated code to use it.
30161 (common_blitter): Added common blitter for render target and bitmap.
30162 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
30163 (grub_video_vbe_blit_render_target): Likewise.
30164
30165 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
30166
30167 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
30168 is in text mode if there is no console control protocol instance
30169 available.
30170
30171 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
30172
30173 * include/grub/video.h: Code cleanup.
30174
30175 * include/grub/i386/pc/vbe.h: Likewise.
30176
30177 * video/i386/pc/vbe.c: Likewise.
30178
30179 * video/i386/pc/vbeblit.c: Likewise.
30180
30181 * video/i386/pc/vbefill.c: Likewise.
30182
30183 * video/video.c: Likewise. Also added more comments.
30184
30185 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
30186
30187 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
30188 (struct grub_biosdisk_dap): Likewise.
30189
30190 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
30191 linkage settings for all functions.
30192
30193 2006-07-12 Marco Gerards <marco@gnu.org>
30194
30195 * configure.ac (--enable-mm-debug): Fix typo.
30196
30197 * genkernsyms.sh.in: Use proper quoting for `CC'.
30198
30199 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
30200
30201 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
30202 (normal_mod_ASFLAGS): Remove "-m32".
30203
30204 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
30205
30206 * util/misc.c: Include config.h.
30207 [!HAVE_MEMALIGN]: Do not include malloc.h.
30208 (grub_memalign): Use posix_memalign, if present. Then, use
30209 memalign, if present. Otherwise, emit an error.
30210
30211 * util/grub-emu.c: Do not include malloc.h.
30212
30213 * include/grub/util/misc.h: Include unistd.h. This is required for
30214 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
30215 D. Eades III <hde@foobar-qux.org>.
30216
30217 * configure.ac (AC_GNU_SOURCE): Added.
30218 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
30219 type.
30220
30221 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
30222
30223 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
30224 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
30225
30226 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
30227
30228 * include/grub/types.h (grub_host_addr_t): Rename to
30229 grub_target_addr_t.
30230 (grub_host_off_t): Rename to grub_target_off_t.
30231 (grub_host_size_t): Rename to grub_target_size_t.
30232 (grub_host_ssize_t): Rename to grub_target_ssize_t.
30233 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
30234
30235 * include/grub/kernel.h (struct grub_module_header): Change type
30236 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
30237 (grub_module_info): Likewise.
30238
30239 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
30240
30241 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
30242 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
30243 Velazquez <jesus.velazquez@gmail.com>.
30244
30245 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
30246
30247 Count partitions from 1 instead of 0 in the string representation
30248 of partitions. Still use 0-based internally.
30249
30250 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
30251 (sun_partition_map_iterate): Use grub_partition_t instead of
30252 struct grub_partition *. Cast DESC->START_CYLINDER to
30253 grub_uint64_t after converting the endian.
30254 (sun_partition_map_probe): Subtract 1 for PARTNUM.
30255 (sun_partition_map_get_name): Add 1 to P->INDEX.
30256
30257 * partmap/pc.c (grub_partition_parse): Subtract 1 for
30258 PCDATA->DOS_PART.
30259 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
30260
30261 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
30262 zero instead of one.
30263 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
30264 (gpt_partition_map_get_name): Add 1 into P->INDEX.
30265
30266 * partmap/apple.c (apple_partition_map_iterate): Change the type
30267 of POS to unsigned.
30268 (apple_partition_map_probe): Subtract 1 for PARTNUM.
30269 (apple_partition_map_get_name): Add 1 into P->INDEX.
30270
30271 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
30272 of POS to unsigned.
30273 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
30274 calculate the offset of a partition.
30275 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
30276 (amiga_partition_map_get_name): Add 1 into P->INDEX.
30277
30278 * partmap/acorn.c (acorn_partition_map_find): Change the type of
30279 SECTOR to grub_disk_addr_t.
30280 (acorn_partition_map_iterate): Likewise.
30281 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
30282 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
30283 top.
30284 (acorn_partition_map_get_name): Add 1 into P->INDEX.
30285
30286 * kern/i386/pc/init.c (make_install_device): Add 1 into
30287 GRUB_INSTALL_DOS_PART.
30288
30289 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
30290 conditional.
30291
30292 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
30293
30294 Clean up the code to support 64-bit addressing in disks and
30295 files. This change is not enough for filesystems yet.
30296
30297 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
30298 type of "start" to grub_uint64_t.
30299 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
30300 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
30301 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
30302 convert addresses.
30303
30304 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
30305 to grub_disk_addr_t.
30306
30307 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
30308 string.
30309
30310 * partmap/pc.c (pc_partition_map_iterate): Likewise.
30311
30312 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
30313 to char *.
30314
30315 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
30316
30317 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
30318
30319 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
30320
30321 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
30322 to grub_off_t, to detect an error from grub_file_seek.
30323 (grub_multiboot_load_elf32): Likewise.
30324
30325 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
30326 maximum unsigned long value when an overflow is detected.
30327 (grub_strtoull): New function.
30328 (grub_divmod64): Likewise.
30329 (grub_lltoa): use grub_divmod64.
30330
30331 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
30332 grub_disk_addr_t.
30333 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
30334 the pointer to next character. Use grub_strtoull instead of
30335 grub_strtoul.
30336 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
30337 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
30338 respectively.
30339
30340 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
30341 return value is signed.
30342 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
30343 test if OFFSET is less than zero, as OFFSET is unsigned now.
30344
30345 * kern/disk.c (struct grub_disk_cache): Change the type of
30346 "sector" to grub_disk_addr_t.
30347 (grub_disk_cache_get_index): Change the type of SECTOR to
30348 grub_disk_addr_t. Calculate the hash with SECTOR casted to
30349 unsigned after shifting.
30350 (grub_disk_cache_invalidate): Change the type of SECTOR to
30351 grub_disk_addr_t.
30352 (grub_disk_cache_unlock): Likewise.
30353 (grub_disk_cache_store): Likewise.
30354 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
30355 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
30356 grub_disk_addr_t and grub_uint64_t, respectively.
30357 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
30358 body, as the value of OFFSET is tweaked by
30359 grub_disk_check_range. Change the types of START_SECTOR, LEN and
30360 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
30361 respectively.
30362 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
30363 body, as the value of OFFSET is tweaked by
30364 grub_disk_check_range. Change the types of LEN and N to
30365 grub_size_t.
30366
30367 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
30368 and "saved_offset" to grub_off_t.
30369 (test_header): Cast BUF to char *.
30370 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
30371 to char *.
30372 (grub_gzio_read): Change the types of OFFSET and SIZE to
30373 grub_off_t and grub_size_t, respectively.
30374
30375 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
30376 Removed.
30377 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
30378 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
30379 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
30380 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
30381 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
30382
30383 * include/grub/types.h (grub_off_t): Unconditionally set to
30384 grub_uint64_t.
30385 (grub_disk_addr_t): Changed to grub_uint64_t.
30386
30387 * include/grub/partition.h (struct grub_partition): Change the
30388 types of "start", "len" and "offset" to grub_disk_addr_t,
30389 grub_uint64_t and grub_disk_addr_t, respectively.
30390 (grub_partition_get_start): Return grub_disk_addr_t.
30391 (grub_partition_get_len): Return grub_uint64_t.
30392
30393 * include/grub/misc.h (grub_strtoull): New prototype.
30394 (grub_divmod64): Likewise.
30395
30396 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
30397 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
30398 grub_off_t, respectively.
30399 All callers and references changed.
30400
30401 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
30402 grub_size_t in "read".
30403 All callers and references changed.
30404
30405 * include/grub/file.h (struct grub_file): Change the types of
30406 "offset" and "size" to grub_off_t and grub_off_t,
30407 respectively. Change the type of SECTOR to grub_disk_addr_t in
30408 "read_hook".
30409 (grub_file_read): Change the type of LEN to grub_size_t.
30410 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
30411 grub_off_t.
30412 (grub_file_size): Return grub_off_t.
30413 (grub_file_tell): Likewise.
30414 All callers and references changed.
30415
30416 * include/grub/disk.h (struct grub_disk_dev): Change the types of
30417 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
30418 "write".
30419 (struct grub_disk): Change the type of "total_sectors" to
30420 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
30421 "read_hook".
30422 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
30423 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
30424 (grub_disk_write): Likewise.
30425 All callers and references changed.
30426
30427 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
30428 char * for grub_strncmp to silence gcc.
30429 (grub_iso9660_mount): Likewise.
30430 (grub_iso9660_mount): Likewise.
30431 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
30432 return statement.
30433 (grub_iso9660_iterate_dir): Likewise.
30434 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
30435
30436 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
30437 LEN to grub_disk_addr_t and grub_size_t, respectively.
30438
30439 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
30440
30441 * fs/jfs.c (grub_jfs_read_file): Likewise.
30442
30443 * fs/minix.c (grub_jfs_read_file): Likewise.
30444
30445 * fs/sfs.c (grub_jfs_read_file): Likewise.
30446
30447 * fs/ufs.c (grub_jfs_read_file): Likewise.
30448
30449 * fs/xfs.c (grub_jfs_read_file): Likewise.
30450
30451 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
30452 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
30453 respectively.
30454
30455 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
30456 BLKNR to -1 instead of returning GRUB_ERRNO.
30457 (grub_ext2_read_file): Change the types of SECTOR and
30458 LEN to grub_disk_addr_t and grub_size_t, respectively.
30459
30460 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
30461 LEN to grub_disk_addr_t and grub_size_t, respectively.
30462
30463 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
30464 grub_file_read.
30465
30466 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
30467 string. Do not cast SECTOR explicitly.
30468
30469 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
30470 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
30471 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
30472 grub_disk_addr_t and grub_size_t, respectively. If the sector is
30473 over 2TB and LBA mode is not supported, raise an error.
30474 (get_safe_sectors): New function.
30475 (grub_biosdisk_read): Use get_safe_sectors.
30476 (grub_biosdisk_write): Likewise.
30477
30478 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
30479 (grub_efidisk_write): Likewise.
30480
30481 * disk/loopback.c (delete_loopback): Cosmetic changes.
30482 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
30483 correctly.
30484 (grub_loopback_open): Likewise.
30485 (grub_loopback_read): Likewise. Also, change the type of POS to
30486 grub_off_t, and fix the usage of grub_memset.
30487
30488 * commands/i386/pc/play.c: Include grub/machine/time.h.
30489
30490 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
30491 print FILE->SIZE.
30492
30493 * commands/configfile.c: Include grub/env.h.
30494
30495 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
30496 GRUB_ERRNO directly instead. Change the type of POS to
30497 grub_off_t. Follow the coding standard.
30498
30499 * commands/blocklist.c: Include grub/partition.h.
30500 (grub_cmd_blocklist): Return an error if the underlying device is
30501 not a disk. Take the starting sector of a partition into account,
30502 if a partition is used.
30503
30504 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
30505 a length field.
30506 (lba_mode): Support 64-bit addresses.
30507 (chs_mode): Likewise.
30508 (copy_buffer): Adapted to the new offsets of a length field and a
30509 segment field.
30510 (blocklist_default_start): Allocate 64-bit space.
30511
30512 * boot/i386/pc/boot.S (force_lba): Removed.
30513 (boot_drive): Moved to under KERNEL_SECTOR.
30514 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
30515 space.
30516 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
30517 is useless.
30518 (lba_mode): Refactored to support a 64-bit address. More size
30519 optimization.
30520 (setup_sectors): Likewise.
30521
30522 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
30523
30524 * DISTLIST: Added include/grub/i386/linux.h. Removed
30525 include/grub/i386/pc/linux.h
30526
30527 * configure.ac (AC_INIT): Bumped to 1.94.
30528
30529 * config.guess: Updated from gnulib.
30530 * config.sub: Likewise.
30531 * install-sh: Likewise.
30532 * mkinstalldirs: Likewise.
30533
30534 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
30535
30536 * conf/common.rmk (grub_modules_init.lst): Depended on
30537 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
30538 MODSRCFILES.
30539
30540 * genmk.rb (PModule::rule): Reverted the previous change.
30541
30542 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
30543
30544 * conf/common.rmk (grub_modules_init.lst): Depends on
30545 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
30546 that the target does not exist before producing.
30547 (grub_modules_init.h): Remove the target before generating.
30548 (grub_emu_init.c): Likewise.
30549
30550 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
30551
30552 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
30553
30554 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
30555 for the target-specific tests. Make sure that we also have the
30556 up-to-date target variables for those tests.
30557
30558 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
30559
30560 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
30561 (PModule::rule): Likewise.
30562
30563 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
30564
30565 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
30566 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
30567 target-specific flags should be prefixed.
30568 (PModule::rule): Likewise.
30569
30570 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
30571
30572 * configure.ac (CMP): Check if cmp is available explicitly.
30573
30574 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
30575
30576 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
30577 (target_cpu): New variable.
30578 (pkglibdir): Use target_cpu instead of host_cpu.
30579
30580 * util/i386/pc/grub-install.in (host_cpu): Removed.
30581 (target_cpu): New variable.
30582 (pkglibdir): Use target_cpu instead of host_cpu.
30583
30584 * util/genmoddep.c: Removed.
30585
30586 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
30587 instead of GRUB_HOST_SIZEOF_VOID_P.
30588 * kern/dl.c: Likewise.
30589
30590 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
30591 ...
30592 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
30593 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
30594 (GRUB_TARGET_SIZEOF_LONG): ... this.
30595 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
30596 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
30597 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
30598 to ...
30599 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
30600 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
30601 (GRUB_TARGET_SIZEOF_LONG): ... this.
30602 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
30603 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
30604 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
30605 to ...
30606 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
30607 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
30608 (GRUB_TARGET_SIZEOF_LONG): ... this.
30609 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
30610 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
30611
30612 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
30613 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
30614 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
30615 instead of GRUB_HOST_SIZEOF_LONG.
30616 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
30617 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
30618 GRUB_CPU_WORDS_BIGENDIAN.
30619 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
30620 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
30621 grub_host_ssize_t.
30622
30623 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
30624 (genmoddep_SOURCES): Likewise.
30625 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
30626 (genmoddep_SOURCES): Likewise.
30627 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
30628 (genmoddep_SOURCES): Likewise.
30629 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
30630 Likewise.
30631 (genmoddep_SOURCES): Likewise.
30632
30633 * genmoddep.awk: New file.
30634
30635 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
30636 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
30637 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
30638 (PModule::rule): Likewise.
30639 (Program::rule): Likewise.
30640 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
30641 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
30642 respectively.
30643
30644 * configure.ac: Rewritten intensively to use host and target
30645 instead of build and host, respectively.
30646
30647 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
30648 (host_cpu): Removed.
30649 (target_cpu): New variable.
30650 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
30651 (BUILD_CC): Removed.
30652 (BUILD_CFLAGS): Likewise.
30653 (BUILD_CPPFLAGS): Likewise.
30654 (TARGET_CC): New variable.
30655 (TARGET_CFLAGS): Likewise.
30656 (TARGET_CPPFLAGS): Likewise.
30657 (TARGET_LDFLAGS): Likewise.
30658 (AWK): Likewise.
30659 (include): Use target_cpu instead of host_cpu.
30660 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
30661
30662 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
30663
30664 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
30665
30666 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
30667 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
30668 field 'false' to 'exec_on_false'.
30669 (grub_script_create_cmdif): Renamed argument names to reflect above
30670 changes.
30671
30672 * normal/execute.c (grub_script_execute_cmdif): Likewise.
30673
30674 * normal/script.c (grub_script_create_cmdif): Likewise.
30675
30676 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
30677
30678 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
30679 top.
30680 (grub_hfsplus_btree_recptr): Likewise.
30681 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
30682 FILEBLOCK both to pass a block number and store next block
30683 number.
30684 (grub_hfsplus_read_block): Rewritten heavily to support an extent
30685 overflow file correctly. Specify errors appropriately, because
30686 fshelp expects that GRUB_ERRNO is set when fails. Reuse
30687 grub_hfsplus_btree_recptr to get the pointer to a found key.
30688 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
30689 is found.
30690
30691 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
30692 linux.mod.
30693 (_linux_mod_SOURCES): New variable.
30694 (_linux_mod_CFLAGS): Likewise.
30695 (_linux_mod_LDFLAGS): Likewise.
30696 (linux_mod_SOURCES): Likewise.
30697 (linux_mod_CFLAGS): Likewise.
30698 (linux_mod_LDFLAGS): Likewise.
30699
30700 * DISTLIST: Added loader/i386/efi/linux.c,
30701 loader/i386/efi/linux_normal.c and
30702 include/grub/i386/efi/loader.h.
30703
30704 * loader/i386/efi/linux.c: New file.
30705 * loader/i386/efi/linux_normal.c: Likewise.
30706 * include/grub/i386/efi/loader.h: Likewise.
30707
30708 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
30709
30710 * commands/blocklist.c: New file.
30711
30712 * DISTLIST: Added commands/blocklist.c.
30713
30714 * term/efi/console.c (grub_console_highlight_color): Use a lighter
30715 color for the background, and a darker color for the foreground.
30716 (grub_console_checkkey): Return READ_KEY.
30717 (grub_console_cls): Set the background to
30718 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
30719
30720 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
30721
30722 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
30723 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
30724
30725 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
30726 prototype.
30727
30728 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
30729 BG. The spec is wrong again.
30730
30731 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
30732 prototype.
30733 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
30734
30735 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
30736 commands/blocklist.c.
30737 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30738
30739 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
30740 (blocklist_mod_SOURCES): New variable.
30741 (blocklist_mod_CFLAGS): Likewise.
30742 (blocklist_mod_LDFLAGS): Likewise.
30743
30744 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
30745
30746 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
30747 duplication.
30748 (lba_mode): Use %eax more intensively to reduce the code size.
30749
30750 2006-05-20 Marco Gerards <marco@gnu.org>
30751
30752 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
30753
30754 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
30755 for `menuentry'.
30756 (script): Accept leading newlines.
30757 (newlines): New rule to describe 0 or more newlines.
30758 (commands): Accept `command' with trailing newline. Fixed the
30759 order in which arguments were passed to `grub_script_add_cmd'.
30760 Accept commands separated by newlines.
30761 (function): Changed to accept newlines.
30762 (menuentry) Rewritten.
30763
30764 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
30765 front of the list, instead of to the end.
30766
30767 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
30768
30769 * util/i386/pc/grub-install.in (bindir): New variable.
30770 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
30771 Shaver <lbgwjl@gmail.com>.
30772
30773 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
30774
30775 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
30776 grub/machine/linux.h
30777 * loader/i386/pc/linux.c: Likewise.
30778
30779 * include/grub/i386/pc/linux.h: Moved to ...
30780 * include/grub/i386/linux.h: ... here.
30781
30782 * include/grub/i386/linux.h (struct linux_kernel_params): New
30783 struct.
30784
30785 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
30786
30787 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
30788 checking.
30789 (grub_video_vbe_blit_glyph): Likewise.
30790 (grub_video_vbe_blit_bitmap): Likewise.
30791 (grub_video_vbe_blit_render_target): Likewise.
30792
30793 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
30794
30795 * configure.ac (--with-platform): Properly quote the square
30796 brackets.
30797
30798 2006-05-08 Marco Gerards <marco@gnu.org>
30799
30800 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
30801 this...
30802 (kernel_elf_HEADERS): ...to this. Updated all users.
30803 (grubof_symlist.c): Renamed from this...
30804 (kernel_elf_symlist.c): ...to this. Updated all users.
30805 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
30806 (grubof_SOURCES): Renamed from this...
30807 (kernel_elf_SOURCES): ...to this.
30808 (grubof_HEADERS): Renamed from this...
30809 (kernel_elf_HEADERS): ...to this.
30810 (grubof_CFLAGS): Renamed from this...
30811 (kernel_elf_CFLAGS): ...to this.
30812 (grubof_ASFLAGS): Renamed from this...
30813 (kernel_elf_ASFLAGS): ...to this.
30814 (grubof_LDFLAGS): Renamed from this...
30815 (kernel_elf_LDFLAGS): ...to this.
30816
30817 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
30818 this...
30819 (kernel_elf_HEADERS): ...to this. Updated all users.
30820 (grubof_symlist.c): Renamed from this...
30821 (kernel_elf_symlist.c): ...to this. Updated all users.
30822 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
30823 (grubof_SOURCES): Renamed from this...
30824 (kernel_elf_SOURCES): ...to this.
30825 (grubof_HEADERS): Renamed from this...
30826 (kernel_elf_HEADERS): ...to this.
30827 (grubof_CFLAGS): Renamed from this...
30828 (kernel_elf_CFLAGS): ...to this.
30829 (grubof_ASFLAGS): Renamed from this...
30830 (kernel_elf_ASFLAGS): ...to this.
30831 (grubof_LDFLAGS): Renamed from this...
30832 (kernel_elf_LDFLAGS): ...to this.
30833
30834 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
30835 `kernel.elf' instead of `grubof'.
30836
30837 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
30838
30839 Add --with-platform to configure. Use pkglibdir instead of
30840 pkgdatadir. This is reported by Roger Leigh.
30841
30842 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
30843 (host_vendor): Likewise.
30844 (host_os): Likewise.
30845 (pkgdatadir): Likewise.
30846 (platform): New variable.
30847 (pkglibdir): Likewise.
30848 Use PKGLIBDIR instead of PKGDATADIR.
30849
30850 * util/i386/pc/grub-install.in (datadir): Removed.
30851 (host_vendor): Likewise.
30852 (host_os): Likewise.
30853 (pkgdatadir): Likewise.
30854 (platform): New variable.
30855 (pkglibdir): Likewise.
30856 Use PKGLIBDIR instead of PKGDATADIR.
30857
30858 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
30859 instead of GRUB_DATADIR.
30860 (main): Likewise.
30861 * util/i386/pc/grub-mkimage.c (usage): Likewise.
30862 (main): Likewise.
30863 * util/i386/efi/grub-mkimage.c (usage): Likewise.
30864 (main): Likewise.
30865
30866 * configure.ac (--with-platform): New option.
30867 Use PLATFORM instead of HOST_VENDOR to specify a platform.
30868
30869 * Makefile.in: Include a makefile based on PLATFORM instead of
30870 HOST_VENDOR.
30871 (pkgdatadir): Not appended by the machine type.
30872 (pkglibdir): Appended by the machine type.
30873 (host_vendor): Removed.
30874 (platform): New variable.
30875 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
30876 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
30877 (uninstall): Likewise.
30878
30879 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
30880
30881 Use the environment context in the menu. Remove the commands
30882 "default" and "timeout", and use variables instead.
30883
30884 * normal/menu.c: Include grub/env.h.
30885 (print_entry): Cast TITLE to silence gcc.
30886 (get_timeout): New function.
30887 (set_timeout): Likewise.
30888 (get_entry_number): Likewise.
30889 (run_menu): Use a default entry, a fallback entry and a timeout
30890 in the environment variables "default", "fallback" and
30891 "timeout". Also, tweak the default entry if it is not within the
30892 current menu entries.
30893 (grub_menu_run): Use a fallback entry in the environment variable
30894 "fallback".
30895
30896 * normal/main.c (read_config_file): Do not initialize
30897 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
30898 NEWMENU->TIMEOUT.
30899 (grub_normal_execute): Use a data slot to store the menu.
30900
30901 * include/grub/normal.h (struct grub_menu): Removed default_entry,
30902 fallback_entry and timeout.
30903 (struct grub_menu_list): Removed.
30904 (grub_menu_list_t): Likewise.
30905 (struct grub_context): Likewise.
30906 (grub_context_t): Likewise.
30907 (grub_context_get): Likewise.
30908 (grub_context_get_current_menu): Likewise.
30909 (grub_context_push_menu): Likewise.
30910 (grub_context_pop_menu): Likewise.
30911 (grub_default_init): Likewise.
30912 (grub_default_fini): Likewise.
30913 (grub_timeout_init): Likewise.
30914 (grub_timeout_fini): Likewise.
30915
30916 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
30917 and timeout.mod.
30918 (normal_mod_SOURCES): Removed normal/context.c.
30919
30920 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
30921 commands/default.c, commands/timeout.c and normal/context.c.
30922 (normal_mod_SOURCES): Removed normal/context.c.
30923
30924 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
30925 commands/timeout.c and normal/context.c.
30926 (normal_mod_SOURCES): Removed normal/context.c.
30927
30928 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
30929 commands/default.c, commands/timeout.c and normal/context.c.
30930 (normal_mod_SOURCES): Removed normal/context.c.
30931
30932 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
30933 timeout.mod.
30934 (default_mod_SOURCES): Removed.
30935 (default_mod_CFLAGS): Likewise.
30936 (default_mod_LDFLAGS): Likewise.
30937 (timeout_mod_SOURCES): Removed.
30938 (timeout_mod_CFLAGS): Likewise.
30939 (timeout_mod_LDFLAGS): Likewise.
30940
30941 * DISTLIST: Removed commands/default.c, commands/timeout.c and
30942 normal/context.c.
30943
30944 * commands/default.c: Removed.
30945 * commands/timeout.c: Likewise.
30946 * normal/context.c: Likewise.
30947
30948 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
30949
30950 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
30951
30952 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
30953
30954 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
30955 "next" to "prev" for readability.
30956 (struct grub_env_sorted_var): New struct.
30957 (grub_env_context): Renamed to ...
30958 (initial_context): ... this.
30959 (grub_env_var_context): Renamed to ...
30960 (current_context): ... this.
30961 (grub_env_find): Look only at CURRENT_CONTEXT.
30962 (grub_env_context_open): Rewritten to copy exported variables from
30963 previous context.
30964 (grub_env_context_close): Rewritten according to the new
30965 scheme. Also, add an assertion to prevent the initial context from
30966 removed.
30967 (grub_env_insert): Removed the code for the sorted list.
30968 (grub_env_remove): Likewise.
30969 (grub_env_export): Simply mark the variable with
30970 GRUB_ENV_VAR_GLOBAL.
30971 (grub_env_set): A cosmetic change for naming consistency.
30972 (grub_env_get): Likewise.
30973 (grub_env_unset): Likewise.
30974 (grub_env_iterate): Rewritten to sort variables within this
30975 function.
30976 (grub_register_variable_hook): Fixed for naming consistency. Call
30977 grub_env_find again, only if NAME is not found at the first time.
30978 (mangle_data_slot_name): New function.
30979 (grub_env_set_data_slot): Likewise.
30980 (grub_env_get_data_slot): Likewise.
30981 (grub_env_unset_data_slot): Likewise.
30982
30983 * include/grub/env.h (grub_env_var_type): New enum.
30984 (GRUB_ENV_VAR_LOCAL): New constant.
30985 (GRUB_ENV_VAR_GLOBAL): Likewise.
30986 (GRUB_ENV_VAR_DATA): Likewise.
30987 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
30988 "type".
30989 (grub_env_set): Replace VAR with NAME for consistency.
30990 (grub_register_variable_hook): Likewise.
30991 (grub_env_export): Specify the name of the argument.
30992 (grub_env_set_data_slot): New prototype.
30993 (grub_env_get_data_slot): Likewise.
30994 (grub_env_unset_data_slot): Likewise.
30995
30996 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
30997
30998 Extend the loader so that GRUB can accept a loader which comes
30999 back to GRUB when a loaded image exits. Also, this change adds
31000 support for a chainloader on EFI.
31001
31002 * term/efi/console.c: Include grub/misc.h.
31003 (grub_console_checkkey): Display a scan code on the top for
31004 debugging. This will be removed once the EFI port gets stable.
31005 Correct the scan code mapping.
31006
31007 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
31008 allocate memory from larger regions, in order to reduce the number
31009 of allocated regions. Otherwise, the MacOSX loader panics.
31010 (filter_memory_map): Avoid less than 1MB for compatibility with
31011 other loaders.
31012 (add_memory_regions): Allocate from the tail of a region, if
31013 possible, to avoid allocating a region near to 1MB, for the MacOSX
31014 loader.
31015
31016 * kern/efi/init.c (grub_efi_set_prefix): Specify
31017 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
31018
31019 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
31020 argument IMAGE_HANDLE and specify it to get a loaded image.
31021 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
31022 grub_efi_get_loaded_image.
31023 (grub_efi_get_filename): Divide the length by the size of
31024 grub_efi_char16_t.
31025 (grub_efi_get_device_path): New function.
31026 (grub_efi_print_device_path): Print End Device Path nodes. Divide
31027 the length by the size of grub_efi_char16_t for a file path device
31028 path node.
31029
31030 * kern/loader.c (grub_loader_noreturn): New variable.
31031 (grub_loader_set): Accept a new argument NORETURN. Set
31032 GRUB_LOADER_NORETURN to NORETURN.
31033 All callers changed.
31034 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
31035 grub_machine_fini.
31036
31037 * include/grub/efi/efi.h (grub_efi_get_device_path): New
31038 prototype.
31039 (grub_efi_get_loaded_image): Take an argument to specify an image
31040 handle.
31041
31042 * include/grub/loader.h (grub_loader_set): Added one more argument
31043 NORETURN.
31044
31045 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
31046 instead of grub_efi_open_protocol.
31047 (grub_efidisk_get_device_name): Likewise.
31048 (grub_efidisk_close): Print a newline.
31049 (grub_efidisk_get_device_handle): Fixed to use
31050 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
31051 GRUB_EFI_DEVICE_PATH_TYPE.
31052
31053 * disk/efi/efidisk.c (device_path_guid): Moved to ...
31054 * kern/efi/efi.c (device_path_guid): ... here.
31055
31056 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
31057 chain.mod.
31058 (kernel_mod_HEADERS): Added efi/disk.h.
31059 (_chain_mod_SOURCES): New variable.
31060 (_chain_mod_CFLAGS): Likewise.
31061 (_chain_mod_LDFLAGS): Likewise.
31062 (chain_mod_SOURCES): Likewise.
31063 (chain_mod_CFLAGS): Likewise.
31064 (chain_mod_LDFLAGS): Likewise.
31065
31066 * DISTLIST: Added include/grub/efi/chainloader.h,
31067 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
31068
31069 * include/grub/efi/chainloader.h: New file.
31070 * loader/efi/chainloader.c: Likewise.
31071 * loader/efi/chainloader_normal.c: Likewise.
31072
31073 2006-04-30 Marco Gerards <marco@gnu.org>
31074
31075 * commands/configfile.c (grub_cmd_source): New function.
31076 (GRUB_MOD_INIT): Register the commands `source' and `.'.
31077 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
31078
31079 2006-04-30 Marco Gerards <marco@gnu.org>
31080
31081 * normal/execute.c (grub_script_execute_cmd): Change the return
31082 type to `grub_err_t'. Correctly return the error.
31083 (grub_script_execute_cmdline): In case a command line is not a
31084 command or a function, try to interpret it as an assignment.
31085
31086 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
31087
31088 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
31089 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
31090 skip a node whose name is obviously invalid as UTF-16,
31091 i.e. contains a NUL character. Stop the iteration when the last
31092 directory entry is found. Instead of using the return value of
31093 grub_hfsplus_btree_iterate_node, store the value in RET and use
31094 it, because the iterator can be stopped by the last directory
31095 entry.
31096
31097 2006-04-30 Marco Gerards <marco@gnu.org>
31098
31099 * include/grub/env.h (grub_env_export): New prototype. Reported
31100 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
31101
31102 2006-04-30 Marco Gerards <marco@gnu.org>
31103
31104 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
31105 size of the extents in a catalog file record.
31106
31107 2006-04-29 Marco Gerards <marco@gnu.org>
31108
31109 * commands/configfile.c (grub_cmd_configfile): Execute the
31110 configfile within its own context.
31111
31112 * include/grub/env.h (grub_env_context_open): New prototype.
31113 (grub_env_context_close): Likewise.
31114
31115 * kern/env.c (grub_env): Removed.
31116 (grub_env_sorted): Likewise.
31117 (grub_env_context): New variable.
31118 (grub_env_var_context): Likewise.
31119 (grub_env_find): Search both the active context and the global
31120 context.
31121 (grub_env_context_open): New function.
31122 (grub_env_context_close): Likewise.
31123 (grub_env_insert): Likewise.
31124 (grub_env_remove): Likewise.
31125 (grub_env_export): Likewise.
31126 (grub_env_set): Changed to use helper functions to avoid code
31127 duplication.
31128 (grub_env_iterate): Rewritten so both the current context and the
31129 global context are being used.
31130
31131 * normal/command.c (export_command): New function.
31132 (grub_command_init): Register the `export' function.
31133
31134 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
31135
31136 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
31137 explicitly to suppress gcc's warnings.
31138 * fs/fat.c (grub_fat_find_dir): Likewise.
31139 (grub_fat_label): Likewise.
31140 * fs/xfs.c (grub_xfs_read_inode): Likewise.
31141 (grub_xfs_mount): Likewise.
31142 (grub_xfs_label): Likewise.
31143 * fs/affs.c (grub_affs_mount): Likewise.
31144 (grub_affs_label): Likewise.
31145 (grub_affs_iterate_dir): Likewise.
31146 * fs/sfs.c (grub_sfs_mount): Likewise.
31147 (grub_sfs_iterate_dir): Likewise.
31148 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
31149 * fs/hfs.c (grub_hfs_mount): Likewise.
31150 (grub_hfs_cmp_catkeys): Likewise.
31151 (grub_hfs_find_dir): Likewise.
31152 (grub_hfs_dir): Likewise.
31153 (grub_hfs_label): Likewise.
31154 * fs/jfs.c (grub_jfs_mount): Likewise.
31155 (grub_jfs_opendir): Likewise.
31156 (grub_jfs_getent): Likewise.
31157 (grub_jfs_lookup_symlink): Likewise.
31158 (grub_jfs_label): Likewise.
31159 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
31160 (grub_hfsplus_iterate_dir): Likewise.
31161 (grub_hfsplus_btree_iterate_node): Made static.
31162
31163 * util/grub-emu.c (prefix): New variable.
31164 (grub_machine_set_prefix): New function.
31165 (main): Do not set the environment variable "prefix" here. Only
31166 set PREFIX, which is used later by grub_machine_set_prefix.
31167
31168 * include/grub/video.h: Do not include grub/symbol.h.
31169 (grub_video_register): Not exported. This symbol is not defined in
31170 the kernel.
31171 (grub_video_unregister): Likewise.
31172 (grub_video_iterate): Likewise.
31173 (grub_video_setup): Likewise.
31174 (grub_video_restore): Likewise.
31175 (grub_video_get_info): Likewise.
31176 (grub_video_get_blit_format): Likewise.
31177 (grub_video_set_palette): Likewise.
31178 (grub_video_get_palette): Likewise.
31179 (grub_video_set_viewport): Likewise.
31180 (grub_video_get_viewport): Likewise.
31181 (grub_video_map_color): Likewise.
31182 (grub_video_map_rgb): Likewise.
31183 (grub_video_map_rgba): Likewise.
31184 (grub_video_fill_rect): Likewise.
31185 (grub_video_blit_glyph): Likewise.
31186 (grub_video_blit_bitmap): Likewise.
31187 (grub_video_blit_render_target): Likewise.
31188 (grub_video_scroll): Likewise.
31189 (grub_video_swap_buffers): Likewise.
31190 (grub_video_create_render_target): Likewise.
31191 (grub_video_delete_render_target): Likewise.
31192 (grub_video_set_active_render_target): Likewise.
31193
31194 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
31195 Undefined.
31196 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
31197
31198 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
31199 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
31200 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
31201 instead of $(srcdir)/genkernsyms.sh.
31202
31203 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
31204 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
31205 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
31206 instead of $(srcdir)/genkernsyms.sh.
31207
31208 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
31209 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
31210 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
31211 instead of $(srcdir)/genkernsyms.sh.
31212
31213 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
31214 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
31215 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
31216 instead of $(srcdir)/genkernsyms.sh.
31217
31218 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
31219 genkernsyms.sh.
31220
31221 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
31222 genkernsyms.sh.
31223 (gensymlist.sh): New target.
31224 (genkernsyms.sh): Likewise.
31225
31226 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
31227 genkernsyms.sh.in and gensymlist.sh.in.
31228
31229 * genkernsyms.sh: Removed.
31230 * gensymlist.sh: Likewise.
31231
31232 * genkernsyms.sh.in: New file.
31233 * gensymlist.sh.in: Likewise.
31234
31235 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
31236
31237 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
31238 clobber "prefix", since we may have already set it manually.
31239
31240 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
31241
31242 * kern/misc.c (abort): New alias for grub_abort.
31243
31244 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
31245
31246 A new machine-specific function "grub_machine_set_prefix" is
31247 defined. This is called after loading modules, so that a prefix
31248 initialization can use modules. Also, this change adds an
31249 intensive debugging feature for the memory manager via the
31250 configure option "--enable-mm-debug".
31251
31252 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
31253 PART.LEN.
31254
31255 * kern/sparc64/ieee1275/init.c (abort): Removed.
31256 (grub_stop): Likewise.
31257 (grub_exit): New function.
31258 (grub_set_prefix): Renamed to ...
31259 (grub_machine_set_prefix): ... this.
31260 (grub_machine_init): Do not call grub_set_prefix.
31261
31262 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
31263 (grub_machine_set_prefix): ... this.
31264 (grub_machine_init): Do not call grub_set_prefix.
31265
31266 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
31267 (grub_machine_init): Do not set the prefix here.
31268
31269 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
31270
31271 * kern/efi/init.c: Include grub/mm.h.
31272 (grub_efi_set_prefix): New function.
31273
31274 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
31275 (grub_efi_get_filename): New function.
31276 (grub_print_device_path): Renamed to ...
31277 (grub_efi_print_device_path): ... this.
31278
31279 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
31280 [MM_DEBUG] (grub_realloc): Likewise.
31281 [MM_DEBUG] (grub_free): Likewise.
31282 [MM_DEBUG] (grub_memalign): Likewise.
31283 [MM_DEBUG] (grub_mm_debug): New variable.
31284 [MM_DEBUG] (grub_debug_malloc): New function.
31285 [MM_DEBUG] (grub_debug_free): New function.
31286 [MM_DEBUG] (grub_debug_realloc): New function.
31287 [MM_DEBUG] (grub_debug_memalign): New function.
31288
31289 * kern/misc.c (grub_abort): Print a newline to distinguish
31290 the message.
31291
31292 * kern/main.c (grub_main): Call grub_machine_set_prefix and
31293 grub_set_root_dev after loading modules. This is necessary when
31294 setting a prefix depends on modules.
31295
31296 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
31297 (grub_efi_print_device_path): ... this.
31298 (grub_efi_get_filename): New prototype.
31299 (grub_efi_set_prefix): Likewise.
31300
31301 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
31302 and grub/disk.h.
31303 (grub_efidisk_get_device_handle): New prototype.
31304 (grub_efidisk_get_device_name): Likewise.
31305
31306 * include/grub/mm.h: Include config.h.
31307 (MM_DEBUG): Removed.
31308 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
31309 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
31310 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
31311 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
31312 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
31313 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
31314 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
31315 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
31316 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
31317
31318 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
31319
31320 * disk/efi/efidisk.c: Include grub/partition.h.
31321 (iterate_child_devices): New function.
31322 (add_device): First, compare only last device path nodes, so that
31323 devices are sorted by the types.
31324 (grub_efidisk_get_device_handle): New function.
31325 (grub_efidisk_get_device_name): Likewise.
31326
31327 * configure.ac (--enable-mm-debug): New option to enable the
31328 memory manager debugging feature. This makes the binary much
31329 bigger, so is disabled by default.
31330
31331 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
31332
31333 Use grub_abort instead of grub_stop, and grub_exit must be
31334 define in each architecture now. Also, this change adds support
31335 for EFI disks.
31336
31337 * util/i386/pc/grub-probefs.c: Include grub/term.h.
31338 (grub_getkey): New function.
31339 (grub_term_get_current): Likewise.
31340
31341 * util/i386/pc/grub-setup.c: Include grub/term.h.
31342 (grub_getkey): New function.
31343 (grub_term_get_current): Likewise.
31344
31345 * util/misc.c (grub_stop): Renamed to ...
31346 (grub_exit): ... this.
31347
31348 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
31349 (grub_exit): ... this.
31350 (grub_machine_init): Use grub_abort instead of abort.
31351 (grub_stop): Removed.
31352
31353 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
31354 abort.
31355
31356 * kern/i386/pc/startup.S (grub_exit): New function.
31357 (cold_reboot): New label.
31358
31359 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
31360 (grub_efi_init): Call grub_efidisk_init.
31361 (grub_efi_fini): Call grub_efidisk_fini.
31362
31363 * kern/efi/efi.c: Include grub/mm.h.
31364 (grub_efi_console_control_guid): Renamed to ...
31365 (console_control_guid): ... this.
31366 (grub_efi_loaded_image_guid): Renamed to ...
31367 (loaded_image_guid): ... this.
31368 (grub_efi_locate_handle): New function.
31369 (grub_efi_open_protocol): Likewise.
31370 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
31371 GRUB_EFI_CONSOLE_CONTROL_GUID.
31372 (grub_efi_exit): Removed.
31373 (grub_stop): Likewise.
31374 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
31375 (grub_exit): New function.
31376 (grub_print_device_path): Likewise.
31377
31378 * kern/rescue.c (grub_rescue_cmd_exit): New function.
31379 (grub_enter_rescue_mode): Register "exit".
31380
31381 * kern/misc.c (grub_real_dprintf): A cosmetic change.
31382 (grub_abort): New function.
31383
31384 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
31385
31386 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
31387
31388 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
31389
31390 * include/grub/efi/efi.h (grub_efi_exit): Removed.
31391 (grub_print_device_path): New prototype.
31392 (grub_efi_locate_handle): Likewise.
31393 (grub_efi_open_protocol): Likewise.
31394
31395 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
31396 * disk/efi/efidisk.c: Likewise.
31397
31398 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
31399
31400 * include/grub/efi/console_control.h
31401 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
31402
31403 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
31404 last 8 bytes as an array.
31405 (GRUB_EFI_DISK_IO_GUID): New macro.
31406 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
31407 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
31408 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
31409 grub_uint8_t.
31410 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
31411 (struct grub_efi_device_path): Rename the member "sub_type" to
31412 "subtype".
31413 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
31414 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
31415 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
31416 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
31417 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
31418 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
31419 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
31420 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
31421 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
31422 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
31423 (struct grub_efi_pci_device_path): New structure.
31424 (grub_efi_pci_device_path_t): New type.
31425 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
31426 (struct grub_efi_pccard_device_path): New structure.
31427 (grub_efi_pccard_device_path_t): New type.
31428 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
31429 (struct grub_efi_memory_mapped_device_path): New structure.
31430 (grub_efi_memory_mapped_device_path_t): New type.
31431 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
31432 (struct grub_efi_vendor_device_path): New structure.
31433 (grub_efi_vendor_device_path_t): New type.
31434 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
31435 (struct grub_efi_controller_device_path): New structure.
31436 (grub_efi_controller_device_path_t): New type.
31437 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
31438 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
31439 (struct grub_efi_acpi_device_path): New structure.
31440 (grub_efi_acpi_device_path_t): New type.
31441 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
31442 (struct grub_efi_expanded_acpi_device_path): New structure.
31443 (grub_efi_expanded_acpi_device_path_t): New type.
31444 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
31445 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
31446 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
31447 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
31448 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
31449 (struct grub_efi_atapi_device_path): New structure.
31450 (grub_efi_atapi_device_path_t): New type.
31451 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
31452 (struct grub_efi_fibre_channel_device_path): New structure.
31453 (grub_efi_fibre_channel_device_path_t): New type.
31454 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
31455 (struct grub_efi_1394_device_path): New structure.
31456 (grub_efi_1394_device_path_t): New type.
31457 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
31458 (struct grub_efi_usb_device_path): New structure.
31459 (grub_efi_usb_device_path_t): New type.
31460 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
31461 (struct grub_efi_usb_class_device_path): New structure.
31462 (grub_efi_usb_class_device_path_t): New type.
31463 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
31464 (struct grub_efi_i2o_device_path): New structure.
31465 (grub_efi_i2o_device_path_t): New type.
31466 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
31467 (struct grub_efi_mac_address_device_path): New structure.
31468 (grub_efi_mac_address_device_path_t): New type.
31469 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
31470 (struct grub_efi_ipv4_device_path): New structure.
31471 (grub_efi_ipv4_device_path_t): New type.
31472 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
31473 (struct grub_efi_ipv6_device_path): New structure.
31474 (grub_efi_ipv6_device_path_t): New type.
31475 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
31476 (struct grub_efi_infiniband_device_path): New structure.
31477 (grub_efi_infiniband_device_path_t): New type.
31478 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
31479 (struct grub_efi_uart_device_path): New structure.
31480 (grub_efi_uart_device_path_t): New type.
31481 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
31482 (struct grub_efi_vendor_messaging_device_path): New structure.
31483 (grub_efi_vendor_messaging_device_path_t): New type.
31484 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
31485 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
31486 (struct grub_efi_hard_drive_device_path): New structure.
31487 (grub_efi_hard_drive_device_path_t): New type.
31488 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
31489 (struct grub_efi_cdrom_device_path): New structure.
31490 (grub_efi_cdrom_device_path_t): New type.
31491 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
31492 (struct grub_efi_vendor_media_device_path): New structure.
31493 (grub_efi_vendor_media_device_path_t): New type.
31494 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
31495 (struct grub_efi_file_path_device_path): New structure.
31496 (grub_efi_file_path_device_path_t): New type.
31497 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
31498 (struct grub_efi_protocol_device_path): New structure.
31499 (grub_efi_protocol_device_path_t): New type.
31500 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
31501 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
31502 (struct grub_efi_bios_device_path): New structure.
31503 (grub_efi_bios_device_path_t): New type.
31504 (struct grub_efi_disk_io): New structure.
31505 (grub_efi_disk_io_t): New type.
31506 (struct grub_efi_block_io_media): New structure.
31507 (grub_efi_block_io_media_t): New type.
31508 (struct grub_efi_block_io): New structure.
31509 (grub_efi_block_io_t): New type.
31510
31511 * include/grub/misc.h (grub_stop): Removed.
31512 (grub_exit): New prototype.
31513 (grub_abort): Likewise.
31514
31515 * include/grub/disk.h (enum grub_disk_dev_id): Added
31516 GRUB_DISK_DEVICE_EFIDISK_ID.
31517
31518 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
31519 disk/efi/efidisk.c.
31520 (kernel_syms.lst): Remove the target if an error occurs.
31521
31522 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
31523
31524 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
31525 as it was simply too buggy.
31526
31527 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
31528
31529 * kern/misc.c (grub_lltoa): New function.
31530 (grub_vsprintf): Added support for the long long suffix,
31531 i.e. "ll".
31532
31533 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
31534
31535 * Makefile.in (LDFLAGS): Add variable.
31536 (LD): Remove variable.
31537 * configure.ac: Add -m32 to LDFLAGS.
31538 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
31539 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
31540 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
31541 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
31542 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
31543 variables.
31544 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
31545 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
31546 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
31547
31548 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
31549
31550 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
31551 length for unknown glyph.
31552
31553 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
31554
31555 Add support for pre-loaded modules into the EFI port.
31556
31557 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
31558 completely. Accept one more argument DIR. The caller has changed.
31559
31560 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
31561
31562 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
31563 (grub_efi_loaded_image_guid): New variable.
31564 (grub_efi_get_loaded_image): New function.
31565 (grub_arch_modules_addr): Likewise.
31566
31567 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
31568 prototype.
31569
31570 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
31571 (struct grub_efi_loaded_image): New structure.
31572 (grub_efi_loaded_image_t): New type.
31573
31574 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
31575
31576 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
31577 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
31578 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
31579
31580 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
31581
31582 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
31583
31584 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
31585
31586 * DISTLIST: Added include/grub/efi/console.h,
31587 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
31588 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
31589
31590 * include/grub/efi/console.h: New file.
31591 * include/grub/efi/time.h: Likewise.
31592 * include/grub/i386/efi/kernel.h: Likewise.
31593 * kern/efi/init.c: Likewise.
31594 * kern/efi/mm.c: Likewise.
31595 * term/efi/console.c: Likewise.
31596
31597 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
31598 (grub_stop): Removed.
31599 (grub_get_rtc): Likewise.
31600 (grub_machine_init): Simply call grub_efi_init.
31601 (grub_machine_fini): Call grub_efi_fini.
31602
31603 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
31604 (grub_efi_output_string): Removed.
31605 (grub_efi_stall): New function.
31606 (grub_stop): Likewise.
31607 (grub_get_rtc): Likewise.
31608
31609 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
31610 (grub_efi_stall): New prototype.
31611 (grub_efi_allocate_pages): Likewise.
31612 (grub_efi_free_pages): Likewise.
31613 (grub_efi_get_memory_map): Likewise.
31614 (grub_efi_mm_init): Likewise.
31615 (grub_efi_mm_fini): Likewise.
31616 (grub_efi_init): Likewise.
31617 (grub_efi_fini): Likewise.
31618
31619 * include/grub/i386/efi/time.h: Do not include
31620 grub/symbol.h. Include grub/efi/time.h.
31621 (GRUB_TICKS_PER_SECOND): Removed.
31622 (grub_get_rtc): Likewise.
31623
31624 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
31625 Added padding. The EFI spec is buggy.
31626 (GRUB_EFI_BLACK): New macro.
31627 (GRUB_EFI_BLUE): Likewise.
31628 (GRUB_EFI_GREEN): Likewise.
31629 (GRUB_EFI_CYAN): Likewise.
31630 (GRUB_EFI_RED): Likewise.
31631 (GRUB_EFI_MAGENTA): Likewise.
31632 (GRUB_EFI_BROWN): Likewise.
31633 (GRUB_EFI_LIGHTGRAY): Likewise.
31634 (GRUB_EFI_BRIGHT): Likewise.
31635 (GRUB_EFI_DARKGRAY): Likewise.
31636 (GRUB_EFI_LIGHTBLUE): Likewise.
31637 (GRUB_EFI_LIGHTGREEN): Likewise.
31638 (GRUB_EFI_LIGHTCYAN): Likewise.
31639 (GRUB_EFI_LIGHTRED): Likewise.
31640 (GRUB_EFI_LIGHTMAGENTA): Likewise.
31641 (GRUB_EFI_YELLOW): Likewise.
31642 (GRUB_EFI_WHITE): Likewise.
31643 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
31644 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
31645 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
31646 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
31647 (GRUB_EFI_BACKGROUND_RED): Likewise.
31648 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
31649 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
31650 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
31651 (GRUB_EFI_TEXT_ATTR): Likewise.
31652
31653 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
31654 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
31655 (kernel_mod_HEADERS): Added efi/time.h.
31656
31657 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
31658
31659 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
31660 include/grub/efi/api.h, include/grub/efi/console_control.h,
31661 include/grub/efi/efi.h, include/grub/efi/pe32.h,
31662 include/grub/i386/efi/time.h, kern/efi/efi.c,
31663 kern/i386/efi/init.c, kern/i386/efi/startup.S,
31664 and util/i386/efi/grub-mkimage.c.
31665
31666 * Makefile.in (RMKFILES): Added i386-efi.rmk.
31667
31668 * genmk.rb (PModule#rule): Do not export symbols if
31669 #{prefix}_EXPORTS is set to "no".
31670
31671 * conf/i386-efi.mk: New file.
31672 * conf/i386-efi.rmk: Likewise.
31673 * include/grub/efi/api.h: Likewise.
31674 * include/grub/efi/console_control.h: Likewise.
31675 * include/grub/efi/efi.h: Likewise.
31676 * include/grub/efi/pe32.h: Likewise.
31677 * include/grub/i386/efi/time.h: Likewise.
31678 * kern/efi/efi.c: Likewise.
31679 * kern/i386/efi/init.c: Likewise.
31680 * kern/i386/efi/startup.S: Likewise.
31681 * util/i386/efi/grub-mkimage.c: Likewise.
31682
31683 2006-04-17 Marco Gerards <marco@gnu.org>
31684
31685 * include/grub/script.h: Include <grub/parser.h> and
31686 "grub_script.tab.h".
31687 (struct grub_lexer_param): New struct.
31688 (struct grub_parser_param): Likewise.
31689 (grub_script_create_arglist): Pass the state in an argument.
31690 (grub_script_add_arglist): Likewise.
31691 (grub_script_create_cmdline): Likewise.
31692 (grub_script_create_cmdblock): Likewise.
31693 (grub_script_create_cmdif): Likewise.
31694 (grub_script_create_cmdmenu): Likewise.
31695 (grub_script_add_cmd): Likewise.
31696 (grub_script_arg_add): Likewise.
31697 (grub_script_lexer_ref): Likewise.
31698 (grub_script_lexer_deref): Likewise.
31699 (grub_script_lexer_record_start): Likewise.
31700 (grub_script_lexer_record_stop): Likewise.
31701 (grub_script_mem_record): Likewise.
31702 (grub_script_mem_record_stop): Likewise.
31703 (grub_script_malloc): Likewise.
31704 (grub_script_yylex): Likewise.
31705 (grub_script_yyparse): Likewise.
31706 (grub_script_yyerror): Likewise.
31707 (grub_script_yylex): Likewise.
31708 (grub_script_lexer_init): Return the state.
31709
31710 * normal/lexer.c (grub_script_lexer_state): Removed variable.
31711 (grub_script_lexer_done): Likewise.
31712 (grub_script_lexer_getline): Likewise.
31713 (grub_script_lexer_refs): Likewise.
31714 (script): Likewise.
31715 (newscript): Likewise.
31716 (record): Likewise.
31717 (recording): Likewise.
31718 (recordpos): Likewise.
31719 (recordlen): Likewise.
31720 (grub_script_lexer_init): Return the state instead of setting
31721 global variables.
31722 (grub_script_lexer_ref): Use the newly added argument for state
31723 instead of globals.
31724 (grub_script_lexer_deref): Likewise.
31725 (grub_script_lexer_record_start): Likewise.
31726 (grub_script_lexer_record_stop): Likewise.
31727 (recordchar): Likewise.
31728 (nextchar): Likewise.
31729 (grub_script_yylex2): Likewise.
31730 (grub_script_yylex): Likewise.
31731 (grub_script_yyerror): Likewise.
31732
31733 * normal/parser.y (func_mem): Removed variable.
31734 (menu_entry): Likewise.
31735 (err): Likewise.
31736 (%lex-param): New parser option.
31737 (%parse-param): Likewise.
31738 (script): Always return the AST.
31739 (argument): Pass the state around.
31740 (arguments): Likewise.
31741 (grubcmd): Likewise.
31742 (commands): Likewise.
31743 (function): Likewise.
31744 (menuentry): Likewise.
31745 (if_statement): Likewise.
31746 (if): Likewise.
31747
31748 * normal/script.c (grub_script_memused): Removed variable.
31749 (grub_script_parsed): Likewise.
31750 (grub_script_malloc): Added a state argument. Use that instead of
31751 global variables.
31752 (grub_script_mem_record): Likewise.
31753 (grub_script_mem_record_stop): Likewise.
31754 (grub_script_arg_add): Likewise.
31755 (grub_script_add_arglist): Likewise.
31756 (grub_script_create_cmdline): Likewise.
31757 (grub_script_create_cmdif): Likewise.
31758 (grub_script_create_cmdmenu): Likewise.
31759 (grub_script_add_cmd): Likewise.
31760 (grub_script_parse): Setup the state before calling the parser.
31761
31762 2006-04-16 Marco Gerards <marco@gnu.org>
31763
31764 * normal/command.c (grub_command_init): Remove the title command.
31765
31766 * normal/lexer.c (grub_script_yylex): Renamed from this...
31767 (grub_script_yylex2): ... to this.
31768 (grub_script_yylex): New function. Temporary
31769 introduced to filter some tokens.
31770 (grub_script_yyerror): Print a newline.
31771
31772 * normal/main.c (read_config_file): Output information about the
31773 lines that contain errors. Wait for a key after all lines have
31774 been processed. Don't return an empty menu.
31775
31776 * normal/parser.y (func_mem): Don't initialize.
31777 (menu_entry): Likewise.
31778 (err): New variable.
31779 (script): Don't return anything when an error was encountered.
31780 (ws, returns): Removed rules.
31781 (argument): Disabled concatenated variable support.
31782 (arguments): Remove explicit separators.
31783 (grubcmd): Likewise.
31784 (function): Likewise.
31785 (menuentry): Likewise.
31786 (if): Likewise.
31787 (commands): Likewise. Add error handling.
31788
31789 * normal/script.c (grub_script_create_cmdline): If
31790 `grub_script_parsed' is 0, assume the parser encountered an error.
31791
31792 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
31793
31794 * configure.ac: Add support for EFI. Fix the typo
31795 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
31796
31797 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
31798
31799 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
31800 foreign multibyte characters should be shown correctly.
31801
31802 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
31803
31804 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
31805 calculation.
31806 (read_config_file): Made it to close file before returning.
31807
31808 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
31809
31810 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
31811 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
31812 video/i386/pc/vbefill.c.
31813
31814 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
31815 video/i386/pc/vbefill.c.
31816
31817 * include/grub/video.h (grub_video_blit_format): New enum.
31818 (grub_video_mode_info): Added new member blit_format.
31819 (grub_video_get_blit_format): New function prototype.
31820
31821 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
31822 function prototype.
31823 (grub_video_vbe_map_rgb): Likewise.
31824 (grub_video_vbe_unmap_color): Likewise.
31825
31826 * include/grub/i386/pc/vbeblit.h: New file.
31827
31828 * include/grub/i386/pc/vbefill.h: New file.
31829
31830 * video/video.c (grub_video_get_blit_format): New function.
31831 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
31832 (grub_video_vbe_map_rgb): Likewise.
31833 (grub_video_vbe_unmap_color): Likewise.
31834
31835 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
31836 optimized fills.
31837 (grub_video_vbe_blit_render_target): Changed to use more optimized
31838 blits.
31839 (grub_video_vbe_setup): Added detection for optimized settings.
31840 (grub_video_vbe_create_render_target): Likewise.
31841
31842 * video/i386/pc/vbeblit.c: New file.
31843
31844 * video/i386/pc/vbefill.c: New file.
31845
31846 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
31847
31848 * font/manager.c (grub_font_get_glyph): Removed font fixup from
31849 here...
31850
31851 * util/unifont2pff.rb: ... and moved it to here. Improved argument
31852 parsing to support both hex and dec ranges. If filename was missing
31853 show usage information.
31854
31855 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
31856
31857 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
31858 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
31859
31860 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
31861 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
31862 (video_mod_SOURCES): Added.
31863 (video_mod_CFLAGS): Likewise.
31864 (video_mod_LDFLAGS): Likewise.
31865 (gfxterm_mod_SOURCES): Likewise.
31866 (gfxterm_mod_CFLAGS): Likewise.
31867 (gfxterm_mod_LDFLAGS): Likewise.
31868 (videotest_mod_SOURCES): Likewise.
31869 (videotest_mod_CFLAGS): Likewise.
31870 (videotest_mod_LDFLAGS): Likewise.
31871 (vesafb_mod_SOURCES): Removed.
31872 (vesafb_mod_CFLAGS): Likewise.
31873 (vesafb_mod_LDFLAGS): Likewise.
31874 (vga_mod_SOURCES): Likewise.
31875 (vga_mod_CFLAGS): Likewise.
31876 (vga_mod_LDFLAGS): Likewise.
31877
31878 * commands/videotest.c: New file.
31879
31880 * font/manager.c (fill_with_default_glyph): Modified to use
31881 grub_font_glyph.
31882 (grub_font_get_glyph): Likewise.
31883 (fontmanager): Renamed from this...
31884 (font_manager): ... to this.
31885
31886 * include/grub/font.h (grub_font_glyph): Added new structure.
31887 (grub_font_get_glyph): Modified to use grub_font_glyph.
31888
31889 * include/grub/misc.h (grub_abs): Added as inline function.
31890
31891 * include/grub/video.h: New file.
31892
31893 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
31894 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
31895 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
31896 (grub_vbe_get_controller_info): Renamed from this...
31897 (grub_vbe_bios_get_controller_info): ... to this.
31898 (grub_vbe_get_mode_info): Renamed from this...
31899 (grub_vbe_bios_get_mode_info): ... to this.
31900 (grub_vbe_set_mode): Renamed from this...
31901 (grub_vbe_bios_set_mode): ... to this.
31902 (grub_vbe_get_mode): Renamed from this...
31903 (grub_vbe_bios_get_mode): ... to this.
31904 (grub_vbe_set_memory_window): Renamed from this...
31905 (grub_vbe_bios_set_memory_window): ... to this.
31906 (grub_vbe_get_memory_window): Renamed from this...
31907 (grub_vbe_bios_get_memory_window): ... to this.
31908 (grub_vbe_set_scanline_length): Renamed from this...
31909 (grub_vbe_set_scanline_length): ... to this.
31910 (grub_vbe_get_scanline_length): Renamed from this...
31911 (grub_vbe_bios_get_scanline_length): ... to this.
31912 (grub_vbe_set_display_start): Renamed from this...
31913 (grub_vbe_bios_set_display_start): ... to this.
31914 (grub_vbe_get_display_start): Renamed from this...
31915 (grub_vbe_bios_get_display_start): ... to this.
31916 (grub_vbe_set_palette_data): Renamed from this...
31917 (grub_vbe_bios_set_palette_data): ... to this.
31918 (grub_vbe_set_pixel_rgb): Removed.
31919 (grub_vbe_set_pixel_index): Likewise.
31920
31921 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
31922 from this...
31923 (grub_vbe_bios_get_controller_info): ... to this.
31924 (grub_vbe_get_mode_info): Renamed from this...
31925 (grub_vbe_bios_get_mode_info): ... to this.
31926 (grub_vbe_set_mode): Renamed from this...
31927 (grub_vbe_bios_set_mode): ... to this.
31928 (grub_vbe_get_mode): Renamed from this...
31929 (grub_vbe_bios_get_mode): ... to this.
31930 (grub_vbe_set_memory_window): Renamed from this...
31931 (grub_vbe_bios_set_memory_window): ... to this.
31932 (grub_vbe_get_memory_window): Renamed from this...
31933 (grub_vbe_bios_get_memory_window): ... to this.
31934 (grub_vbe_set_scanline_length): Renamed from this...
31935 (grub_vbe_set_scanline_length): ... to this.
31936 (grub_vbe_get_scanline_length): Renamed from this...
31937 (grub_vbe_bios_get_scanline_length): ... to this.
31938 (grub_vbe_set_display_start): Renamed from this...
31939 (grub_vbe_bios_set_display_start): ... to this.
31940 (grub_vbe_get_display_start): Renamed from this...
31941 (grub_vbe_bios_get_display_start): ... to this.
31942 (grub_vbe_set_palette_data): Renamed from this...
31943 (grub_vbe_bios_set_palette_data): ... to this.
31944 (grub_vbe_bios_get_controller_info): Fixed problem with registers
31945 getting corrupted after calling it. Added more pushes and pops.
31946 (grub_vbe_bios_set_mode): Likewise.
31947 (grub_vbe_bios_get_mode): Likewise.
31948 (grub_vbe_bios_get_memory_window): Likewise.
31949 (grub_vbe_bios_set_scanline_length): Likewise.
31950 (grub_vbe_bios_get_scanline_length): Likewise.
31951 (grub_vbe_bios_get_display_start): Likewise.
31952 (grub_vbe_bios_set_palette_data): Likewise.
31953
31954 * normal/cmdline.c (cl_set_pos): Refresh the screen.
31955 (cl_insert): Likewise.
31956 (cl_delete): Likewise.
31957
31958 * term/gfxterm.c: New file.
31959
31960 * term/i386/pc/vesafb.c: Removed file.
31961
31962 * video/video.c: New file.
31963
31964 * video/i386/pc/vbe.c (real2pm): Added new function.
31965 (grub_video_vbe_draw_pixel): Likewise.
31966 (grub_video_vbe_get_video_ptr): Likewise.
31967 (grub_video_vbe_get_pixel): Likewise
31968 (grub_video_vbe_init): Likewise.
31969 (grub_video_vbe_fini): Likewise.
31970 (grub_video_vbe_setup): Likewise.
31971 (grub_video_vbe_get_info): Likewise.
31972 (grub_video_vbe_set_palette): Likewise.
31973 (grub_video_vbe_get_palette): Likewise.
31974 (grub_video_vbe_set_viewport): Likewise.
31975 (grub_video_vbe_get_viewport): Likewise.
31976 (grub_video_vbe_map_color): Likewise.
31977 (grub_video_vbe_map_rgb): Likewise.
31978 (grub_video_vbe_map_rgba): Likewise.
31979 (grub_video_vbe_unmap_color): Likewise.
31980 (grub_video_vbe_fill_rect): Likewise.
31981 (grub_video_vbe_blit_glyph): Likewise.
31982 (grub_video_vbe_blit_bitmap): Likewise.
31983 (grub_video_vbe_blit_render_target): Likewise.
31984 (grub_video_vbe_scroll): Likewise.
31985 (grub_video_vbe_swap_buffers): Likewise.
31986 (grub_video_vbe_create_render_target): Likewise.
31987 (grub_video_vbe_delete_render_target): Likewise.
31988 (grub_video_vbe_set_active_render_target): Likewise.
31989 (grub_vbe_set_pixel_rgb): Remove function.
31990 (grub_vbe_set_pixel_index): Likewise.
31991 (index_color_mode): Remove static variable.
31992 (active_mode): Likewise.
31993 (framebuffer): Likewise.
31994 (bytes_per_scan_line): Likewise.
31995 (grub_video_vbe_adapter): Added new static variable.
31996 (framebuffer): Likewise.
31997 (render_target): Likewise.
31998 (initial_mode): Likewise.
31999 (mode_in_use): Likewise.
32000 (mode_list): Likewise.
32001
32002 2006-03-10 Marco Gerards <marco@gnu.org>
32003
32004 * configure.ac (AC_INIT): Bumped to 1.93.
32005
32006 * DISTLIST: Added `include/grub/hfs.h'.
32007
32008 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
32009
32010 * boot/i386/pc/boot.S (general_error): Before looping, try INT
32011 18H, which might help the BIOS falling back to next boot media.
32012
32013 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
32014
32015 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
32016 Poe Chen <poe.poechen@gmail.com>.
32017
32018 2006-01-17 Marco Gerards <marco@gnu.org>
32019
32020 * include/grub/normal.h: Include <grub/script.h>.
32021 (grub_command_list): Removed struct.
32022 (grub_command_list_t): Removed type.
32023 (grub_menu_entry): Remove members `num' and `command_list'. Add
32024 members `commands' and `sourcecode'.
32025 * include/grub/script.h: Add inclusion guards.
32026 (grub_script_cmd_menuentry): New struct.
32027 (grub_script_execute_menuentry): New prototype.
32028 (grub_script_lexer_record_start): Likewise.
32029 (grub_script_lexer_record_stop): Likewise.
32030 * normal/execute.c (grub_script_execute_menuentry): New function.
32031 * normal/lexer.c (record, recording, recordpos, recordlen): New
32032 variables.
32033 (grub_script_lexer_record_start): New function.
32034 (grub_script_lexer_record_stop): Likewise.
32035 (recordchar): Likewise.
32036 (nextchar): Likewise.
32037 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
32038 2048 as the buffer size. Add the tokens `menuentry' and `@'.
32039 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
32040 (current_menu): New variable.
32041 (free_menu): Mainly rewritten.
32042 (grub_normal_menu_addentry): New function.
32043 (read_config_file): Rewritten.
32044 * normal/menu.c (run_menu_entry): Mainly rewritten.
32045 * normal/menu_entry.c (make_screen): Rewritten the code to insert
32046 the menu entry.
32047 (run): Mainly rewritten.
32048 * normal/parser.y (menu_entry): New variable.
32049 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
32050 (menuentry): New rule.
32051 (command): Add `menuentry'.
32052 (if_statement): Allow additional returns before `fi'.
32053 * normal/script.c (grub_script_create_cmdmenu): New function.
32054
32055 2006-01-03 Marco Gerards <marco@gnu.org>
32056
32057 * INSTALL: GNU Bison is required.
32058 * configure.ac: Rewritten the test to detect Bison.
32059 * Makefile.in (YACC): New variable. Reported by Xun Sun
32060 <xun.sun.cn@gmail.com>.
32061
32062 2006-01-03 Marco Gerards <marco@gnu.org>
32063
32064 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
32065 the HFS+ filesystem to filesystem blocks.
32066 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
32067 GCC warning is silenced.
32068
32069 2006-01-03 Marco Gerards <marco@gnu.org>
32070
32071 * partmap/apple.c (apple_partition_map_iterate): Convert the data
32072 read from disk from big endian to host byte order.
32073
32074 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
32075
32076 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
32077 documentation.
32078 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
32079 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
32080 embedded HFS+ filesystem.
32081 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
32082 (grub_hfs_sblock): Move from here...
32083 * include/grub/hfs.h: To here... New file.
32084 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
32085 documentation.
32086 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
32087 New macros.
32088 (grub_hfsplus_volheader): Change type of member `magic' to
32089 `grub_uint16_t'.
32090 (grub_hfsplus_data): Add new member `embedded_offset'.
32091 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
32092 returned block.
32093 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
32094 Calculate the offset.
32095
32096 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
32097
32098 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
32099 Removed.
32100 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
32101
32102 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
32103
32104 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
32105 ENV->NAME is NULL after allocating ENV->VALUE.
32106
32107 2005-12-25 Marco Gerards <marco@gnu.org>
32108
32109 * kern/env.c (grub_env_set): Rewritten the error handling code.
32110
32111 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
32112
32113 * geninit.sh: Made more robust, and more portable.
32114
32115 2005-12-25 Marco Gerards <marco@gnu.org>
32116
32117 Add support for Apple HFS+ filesystems.
32118
32119 * fs/hfsplus.c: New file.
32120
32121 * DISTLIST: Added `fs/hfsplus.c'.
32122
32123 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
32124 (hfsplus_mod_SOURCES): New variable.
32125 (hfsplus_mod_CFLAGS): Likewise.
32126 (hfsplus_mod_LDFLAGS): Likewise.
32127 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
32128 (grub_setup_SOURCES): Likewise.
32129 (grub_mkdevicemap_SOURCES): Likewise.
32130 (grub_emu_SOURCES): Likewise.
32131 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32132
32133 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
32134
32135 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
32136
32137 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
32138
32139 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
32140 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
32141 include/grub/parser.h, include/grub/script.h, kern/parser.c,
32142 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
32143 normal/lexer.c, normal/parser.y, normal/script.c, and
32144 partmap/gpt.c.
32145 Removed kern/sparc64/cache.c.
32146
32147 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
32148 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
32149 grub_emu_init.c.
32150
32151 * configure.ac (AC_INIT): Bumped to 1.92.
32152
32153 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
32154
32155 * kern/err.c (grub_error_push): Added new function to support error
32156 stacks.
32157 (grub_error_pop): Likewise.
32158 (grub_error_stack_items): New local variable to support error stacks.
32159 (grub_error_stack_pos): Likewise.
32160 (grub_error_stack_assert): Likewise.
32161 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
32162 stack depth.
32163 (grub_print_error): Added support to print errors from error stack.
32164
32165 * include/grub/err.h (grub_error_push): Added function prototype.
32166 (grub_error_pop): Likewise.
32167
32168 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
32169
32170 * configure.ac: Accept `powerpc64' as host_cpu.
32171 (amd64): Rename to `biarch32'.
32172
32173 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
32174 non-cacheline-aligned addresses.
32175
32176 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
32177 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
32178 if `size' is non-zero.
32179
32180 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
32181
32182 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
32183 and `cd' to make sure the filename is not prefixed with a
32184 directory name.
32185 (pkgdata_MODULES): Add `gpt.mod'.
32186 (gpt_mod_SOURCES): New variable.
32187 (gpt_mod_CFLAGS): Likewise.
32188 (gpt_mod_LDFLAGS): Likewise.
32189
32190 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
32191
32192 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
32193 New macro.
32194
32195 * partmap/gpt.c: New file.
32196
32197 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
32198 GPT partition map is detected.
32199
32200 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
32201
32202 * commands/i386/pc/play.c: New file.
32203 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
32204 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
32205 macros.
32206
32207 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
32208
32209 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
32210 ((unused))' to silence gcc warning.
32211
32212 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
32213
32214 * configure.ac: Correct `AC_PROG_YACC' test.
32215
32216 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
32217
32218 * util/powerpc/ieee1275/grub-install.in: Run the mount point
32219 check before installing files.
32220
32221 2005-11-22 Mike Small <smallm@panix.com>
32222
32223 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
32224 number regex so multidigit numbers are recognized correctly.
32225
32226 2005-11-22 Mike Small <smallm@panix.com>
32227
32228 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
32229 debugging message before attempting to claim memory.
32230 (grub_rescue_cmd_initrd): Add a claim debugging message and try
32231 multiple addresses in case of failure.
32232
32233 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
32234
32235 * term/tparm.c (get_space): Remove empty `if' statement.
32236
32237 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
32238
32239 * kern/parser.c (check_varstate): Rename `state' to 's'.
32240
32241 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
32242
32243 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
32244 variable definitions to the beginning of each function. Sort stack
32245 variables by size.
32246 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
32247 `buf' argument to `char *'.
32248
32249 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
32250
32251 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
32252 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
32253 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
32254 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
32255 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
32256 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
32257 configfile.mod, search.mod, gzio.mod and test.mod.
32258 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
32259 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
32260 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
32261 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
32262 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
32263 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
32264 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
32265 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
32266 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
32267 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
32268 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
32269 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
32270 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
32271 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
32272 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
32273 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
32274 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
32275 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
32276 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
32277 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
32278 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
32279 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
32280 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
32281
32282 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
32283 `grep --include'.
32284 (pkgdata_MODULES): Add test.mod.
32285
32286 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
32287
32288 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
32289 appending to variables with "+=".
32290 (PModule): Use full pathname to generate *.lst filenames.
32291
32292 * Makefile.in: Fixed list rules moved from genmk.rb.
32293 (.DELETE_ON_ERROR): New special target.
32294 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
32295
32296 * conf/i386-pc.rmk: Include conf/common.mk.
32297 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
32298 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
32299 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
32300 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
32301 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
32302 configfile.mod, search.mod, gzio.mod and test.mod.
32303 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
32304 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
32305 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
32306 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
32307 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
32308 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
32309 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
32310 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
32311 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
32312 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
32313 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
32314 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
32315 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
32316 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
32317 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
32318 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
32319 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
32320 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
32321 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
32322 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
32323 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
32324 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
32325 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
32326 here...
32327 * conf/common.rmk: ... to here. New file.
32328
32329 * conf/common.mk: New file.
32330
32331 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
32332
32333 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
32334 (grub_script.tab.c): ... here.
32335
32336 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
32337 (grub_script.tab.c): ... here.
32338
32339 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
32340 (grub_script.tab.c): ... here.
32341
32342 * normal/command.c (grub_command_find): Fixed a memory leak of
32343 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
32344
32345 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
32346
32347 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
32348 "@" which marks the start of a comment on ARM.
32349 (VARIABLE): Likewise.
32350
32351 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
32352
32353 Add support for Linux/ADFS partition tables.
32354
32355 * partmap/acorn.c: New file.
32356
32357 * include/grub/acorn_filecore.h: Likewise.
32358
32359 * DISTLIST: Added `partmap/acorn.c' and
32360 `include/grub/acorn_filecore.h'.
32361
32362 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
32363 `partmap/acorn.c'.
32364 (pkgdata_MODULES): Add `acorn.mod'.
32365 (acorn_mod_SOURCES): New variable.
32366 (acorn_mod_CFLAGS): Likewise.
32367
32368 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
32369 `partmap/acorn.c'.
32370 (pkgdata_MODULES): Add `acorn.mod'.
32371 (acorn_mod_SOURCES): New variable.
32372 (acorn_mod_CFLAGS): Likewise.
32373
32374 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
32375 (pkgdata_MODULES): Add `acorn.mod'.
32376 (acorn_mod_SOURCES): New variable.
32377 (acorn_mod_CFLAGS): Likewise.
32378 (acorn_mod_LDFLAGS): Likewise.
32379
32380 * include/types.h (grub_disk_addr_t): New typedef.
32381
32382 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
32383
32384 * geninit.sh: New file.
32385
32386 * geninitheader.sh: Likewise.
32387
32388 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
32389 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
32390 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
32391 * commands/configfile.c (grub_configfile_init)
32392 (grub_configfile_fini): Likewise.
32393 * commands/default.c (grub_default_init, grub_default_fini):
32394 Likewise.
32395 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
32396 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
32397 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
32398 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
32399 Likewise.
32400 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
32401 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
32402 Likewise.
32403 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
32404 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
32405 Likewise.
32406 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
32407 Likewise.
32408 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
32409 Likewise.
32410 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
32411 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
32412 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
32413 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
32414 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
32415 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
32416 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
32417 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
32418 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
32419 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
32420 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
32421 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
32422 * partmap/amiga.c (grub_amiga_partition_map_init)
32423 (grub_amiga_partition_map_fini): Likewise.
32424 * partmap/apple.c (grub_apple_partition_map_init)
32425 (grub_apple_partition_map_fini): Likewise.
32426 * partmap/pc.c (grub_pc_partition_map_init)
32427 (grub_pc_partition_map_fini): Likewise.
32428 * partmap/sun.c (grub_sun_partition_map_init,
32429 grub_sun_partition_map_fini): Likewise.
32430 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
32431 Likewise.
32432
32433 * util/grub-emu.c: Include <grub_modules_init.h>.
32434 (main): Don't initialize and de-initialize any modules directly,
32435 use `grub_init_all' and `grub_fini_all' instead.
32436
32437 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
32438 `grub_vesafb_mod_init'.
32439 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
32440 all users.
32441 * term/i386/pc/vga.c (grub_vga_init): Renamed to
32442 `grub_vga_mod_init'. Updated all users.
32443 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
32444
32445 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
32446 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
32447 rules.
32448
32449 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
32450 Generate a function to initialize the module in utilities.
32451 Updated all callers.
32452 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
32453 initialize the module in utilities. Updated all callers.
32454
32455 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
32456
32457 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
32458 escape sequence and a literal ^L to clear the screen.
32459
32460 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
32461 when returning from Open Firmware.
32462
32463 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
32464
32465 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
32466 (grub_ofconsole_height): Likewise.
32467 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
32468 manually insert a '\n'.
32469 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
32470 `grub_ofconsole_height'. Return early if these are already set.
32471
32472 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
32473
32474 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
32475 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
32476 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
32477 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
32478 and `normal/script.c'.
32479 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
32480 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
32481 (test_mod_SOURCES): New variable.
32482 (test_mod_CFLAGS): Likewise.
32483 (test_mod_LDFLAGS): Likewise.
32484 (pkgdata_MODULES): Add `test.mod'.
32485 (grub_script.tab.c): New rule.
32486 (grub_script.tab.h): Likewise.
32487
32488 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
32489
32490 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
32491 `commands/test.c', `normal/execute.c', `normal/lexer.c',
32492 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
32493 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
32494 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
32495 (test_mod_SOURCES): New variable.
32496 (test_mod_CFLAGS): Likewise.
32497 (pkgdata_MODULES): Add `test.mod'.
32498 (grub_script.tab.c): New rule.
32499 (grub_script.tab.h): Likewise.
32500
32501 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
32502
32503 Add initial scripting support.
32504
32505 * commands/test.c: New file.
32506 * include/grub/script.h: Likewise.
32507 * normal/execute.c: Likewise.
32508 * normal/function.c: Likewise.
32509 * normal/lexer.c: Likewise.
32510 * normal/parser.y: Likewise.
32511 * normal/script.c: Likewise.
32512
32513 * configure.ac: Add `AC_PROG_YACC' test.
32514
32515 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
32516 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
32517 `normal/function.c' and `normal/script.c'.
32518 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
32519 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
32520 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
32521 variables.
32522 (pkgdata_MODULES): Add `test.mod'.
32523 (grub_script.tab.c): New rule.
32524 (grub_script.tab.h): Likewise.
32525
32526 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
32527
32528 * include/grub/normal.h (grub_test_init): New prototype.
32529 (grub_test_fini): Likewise.
32530
32531 * normal/command.c: Include <grub/script.h>.
32532 (grub_command_execute): Rewritten.
32533
32534 * util/grub-emu.c (main): Call `grub_test_init' and
32535 `grub_test_fini'.
32536
32537 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
32538
32539 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
32540 to 0.
32541 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
32542 there are no pending characters.
32543
32544 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
32545
32546 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
32547 `grub_strndup' to drop device arguments. Replace unnecessary
32548 `grub_strndup' with `grub_strdup'.
32549
32550 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
32551
32552 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
32553 `debug' environment variable has been set.
32554
32555 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
32556
32557 * Makefile.in (install-local): Use $(DATA).
32558 (uninstall): Likewise.
32559 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
32560 (sbin_UTILITIES): ... to here.
32561 (sbin_SCRIPTS): New variable.
32562 (grub_install_SOURCES): New variable.
32563 * util/powerpc/ieee1275/grub-install.in: New file.
32564 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
32565 variable.
32566 (add_segments): Call `grub_util_get_path'.
32567
32568 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
32569
32570 From Timothy Baldwin:
32571 * commands/ls.c (grub_ls_list_files): Close FILE with
32572 grub_file_close.
32573 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
32574
32575 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
32576
32577 * include/grub/parser.h: New file.
32578
32579 * kern/parser.c: Likewise.
32580
32581 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
32582 (grub_setup_SOURCES): Likewise.
32583 (grub_probefs_SOURCES): Likewise.
32584 (grub_emu_SOURCES): Likewise.
32585 (kernel_img_HEADERS): Add `parser.h'.
32586
32587 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
32588 (grub_emu_SOURCES): Add `kern/parser.c'.
32589 (grubof_SOURCES): Likewise.
32590
32591 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
32592 (grubof_SOURCES): Add `kern/parser.c'.
32593
32594 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
32595
32596 * kern/misc.c (grub_split_cmdline): Removed function.
32597
32598 * kern/rescue.c: Include <grub/parser.h>.
32599 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
32600 of `grub_split_cmdline'.
32601
32602 * normal/command.c: Include <grub/parser.h>.
32603 (grub_command_execute): Use `grub_parser_split_cmdline' instead
32604 of `grub_split_cmdline'.
32605
32606 * normal/completion.c: Include <grub/parser.h>.
32607 (cmdline_state): New variable.
32608 (iterate_dir): End the filename with a quote depending on the
32609 command line state.
32610 (get_state): new function.
32611 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
32612 split the arguments and determine the current argument. When the
32613 argument string is not quoted, escape all spaces.
32614
32615 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
32616
32617 * normal/sparc64/setjmp.S: New file.
32618
32619 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
32620
32621 * include/grub/sparc64/libgcc.h: New file.
32622 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
32623 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
32624 normal/sparc64/setjmp.c.
32625
32626 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
32627
32628 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
32629 * kern/sparc64/cache.S: New file.
32630 * kern/sparc64/cache.c: Removed.
32631 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
32632 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
32633 -mtune=ultrasparc.
32634 (COMMON_LDFLAGS): Add -melf64_sparc.
32635 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
32636 (grubof_SOURCES): Use cache.S instead of cache.c.
32637 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
32638 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
32639 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
32640 commented though.
32641 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
32642 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
32643 (linux_mod_CFLAGS): Commented out.
32644 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
32645 out because module isn't built.
32646 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
32647 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
32648 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
32649 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
32650 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
32651 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
32652 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
32653 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
32654 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
32655 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
32656 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
32657 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
32658 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
32659 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
32660
32661 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
32662
32663 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
32664 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
32665 longer, because HFS should not be used on PC.
32666
32667 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
32668
32669 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
32670 consistently within the loop.
32671
32672 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
32673
32674 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
32675 directory can not be read.
32676
32677 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
32678
32679 * configure.ac (AC_INIT): Increase the version number to 1.91.
32680
32681 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
32682 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
32683 term/i386/pc/serial.c.
32684
32685 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
32686
32687 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
32688 file size must be permitted.
32689
32690 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
32691 between %ah and %al.
32692
32693 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
32694
32695 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
32696 grub_uint64_t.
32697 Call the hook with a NUL-terminated filename.
32698 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
32699 grub_cpu_to_be32.
32700
32701 * kern/term.c (cursor_state): New variable.
32702 (grub_term_set_current): Reset the cursor state on a new
32703 terminal.
32704 (grub_setcursor): Rewritten to use CURSOR_STATE.
32705 (grub_getcursor): New function.
32706
32707 * include/grub/term.h (grub_getcursor): New prototype.
32708
32709 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
32710 integers on ARM. Reported by Timothy Baldwin
32711 <T.E.Baldwin99@members.leeds.ac.uk>.
32712
32713 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
32714
32715 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
32716 allocated.
32717 (grub_sfs_dir): Likewise.
32718
32719 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
32720
32721 Add support for the SFS filesystem.
32722
32723 * fs/sfs.c: New file.
32724
32725 * DISTLIST: Added `fs/sfs.c'.
32726
32727 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
32728 (grub_probefs_SOURCES): Likewise.
32729 (grub_emu_SOURCES): Likewise.
32730 (pkgdata_MODULES): Add `sfs.mod'.
32731 (sfs_mod_SOURCES): New variable.
32732 (sfs_mod_CFLAGS): Likewise.
32733 (sfs_mod_LDFLAGS): Likewise.
32734
32735 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
32736 (pkgdata_MODULES): Add `sfs.mod'.
32737 (sfs_mod_SOURCES): New variable.
32738 (sfs_mod_CFLAGS): Likewise.
32739
32740 * util/grub-emu.c (main): Call `grub_sfs_init' and
32741 `grub_sfs_fini'.
32742
32743 * include/grub/fs.h (grub_sfs_init): New prototype.
32744 (grub_sfs_fini): Likewise.
32745
32746 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
32747
32748 Add support for the AFFS filesystem.
32749
32750 * fs/affs.c: New file.
32751
32752 * DISTLIST: Added `fs/affs.c'.
32753
32754 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
32755 (grub_probefs_SOURCES): Likewise.
32756 (grub_emu_SOURCES): Likewise.
32757 (pkgdata_MODULES): Add `affs.mod'.
32758 (affs_mod_SOURCES): New variable.
32759 (affs_mod_CFLAGS): Likewise.
32760 (affs_mod_LDFLAGS): Likewise.
32761
32762 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
32763 (pkgdata_MODULES): Add `affs.mod'.
32764 (affs_mod_SOURCES): New variable.
32765 (affs_mod_CFLAGS): Likewise.
32766
32767 * util/grub-emu.c (main): Call `grub_affs_init' and
32768 `grub_affs_fini'.
32769
32770 * include/grub/fs.h (grub_affs_init): New prototype.
32771 (grub_affs_fini): Likewise.
32772
32773 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
32774
32775 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
32776
32777 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
32778
32779 * configure.ac: Accept `x86_64' as host_cpu. In that case add
32780 `-m32' to CFLAGS.
32781
32782 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
32783 linking.
32784
32785 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
32786 (COMMON_LDFLAGS): New variable.
32787 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
32788 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
32789 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
32790 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
32791 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
32792 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
32793 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
32794 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
32795 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
32796 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
32797 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
32798 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
32799 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
32800 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
32801 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
32802 variables.
32803 (normal_mod_ASFLAGS): Add `-m32'.
32804
32805 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
32806 (grub_host_size_t, grub_host_ssize_t): New types.
32807 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
32808 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
32809 `GRUB_HOST_SIZEOF_VOID_P'.
32810
32811 * include/grub/kernel.h (struct grub_module_header): Type of
32812 member offset changed to `grub_host_off_t'. Type of member size
32813 changed to `grub_host_size_t'.
32814 (struct grub_module_info): Type of member offset changed to
32815 `grub_host_off_t'. Type of member size changed to
32816 `grub_host_size_t'.
32817
32818 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
32819
32820 Make GRUB's kernel compliant to Multiboot Specification.
32821
32822 * kern/i386/pc/startup.S (multiboot_header): New label.
32823 (multiboot_entry): Likewise.
32824 (multiboot_trampoline): Likewise.
32825
32826 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
32827 Increased to 0x4A0.
32828
32829 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
32830 put parentheses after a question mark.
32831 [!GRUB_UTIL] (my_mod): New variable.
32832
32833 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
32834
32835 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
32836
32837 Adds support for the XFS filesystem. Btrees are not supported
32838 yet.
32839
32840 * fs/xfs.c: New file.
32841
32842 * DISTLIST: Added `fs/xfs.c'.
32843
32844 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
32845 (grub_probefs_SOURCES): Likewise.
32846 (grub_emu_SOURCES): Likewise.
32847 (pkgdata_MODULES): Add `xfs.mod'.
32848 (xfs_mod_SOURCES): New variable.
32849 (xfs_mod_CFLAGS): Likewise.
32850
32851 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
32852 (pkgdata_MODULES): Add `xfs.mod'.
32853 (xfs_mod_SOURCES): New variable.
32854 (xfs_mod_CFLAGS): Likewise.
32855
32856 * util/grub-emu.c (main): Call `grub_xfs_init' and
32857 `grub_xfs_fini'.
32858
32859 * include/grub/fs.h (grub_xfs_init): New prototype.
32860 (grub_xfs_fini): Likewise.
32861
32862
32863 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
32864
32865 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
32866 color modes, allow greater than 16 colors to be configured as
32867 a default palette.
32868
32869 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
32870
32871 * normal/completion.c (complete_arguments): Add the qualifier
32872 const into OPTIONS.
32873
32874 From Omniflux <omniflux+lists@omniflux.com>:
32875 * include/grub/terminfo.h: New file.
32876 * include/grub/tparm.h: Likewise.
32877 * include/grub/i386/pc/serial.h: Likewise.
32878 * term/terminfo.c: Likewise.
32879 * term/tparm.c: Likewise.
32880 * term/i386/pc/serial.c: Likewise.
32881 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
32882 serial.mod.
32883 (terminfo_mod_SOURCES): New variable.
32884 (terminfo_mod_CFLAGS): Likewise.
32885 (serial_mod_SOURCES): Likewise.
32886 (serial_mod_CFLAGS): Likewise.
32887
32888 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
32889
32890 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
32891 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
32892 and kern/powerpc/ieee1275/cmain.c, respectively.
32893
32894 * boot/powerpc/ieee1275/crt0.S: Moved to ...
32895 * kern/powerpc/ieee1275/crt0.S: ... here.
32896
32897 * boot/powerpc/ieee1275/cmain.c: Moved to ...
32898 * kern/powerpc/ieee1275/cmain.c: ... here.
32899
32900 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
32901 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
32902 instead of boot/powerpc/ieee1275/crt0.S and
32903 boot/powerpc/ieee1275/cmain.c, respectively.
32904
32905 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
32906 sectors. It was not used anyway.
32907
32908 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
32909
32910 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
32911 `unused parameter' warning.
32912
32913 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
32914
32915 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
32916 function.
32917 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
32918 getcharwidth.
32919
32920 2005-08-28 Marco Gerards <metgerards@student.han.nl>
32921
32922 * include/grub/normal.h (enum grub_completion_type): Added
32923 `GRUB_COMPLETION_TYPE_ARGUMENT'.
32924
32925 * normal/cmdline.c (print_completion): Handle
32926 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
32927 * normal/menu_entry.c (store_completion): Likewise.
32928
32929 * normal/completion.c (complete_arguments): New function.
32930 (grub_normal_do_completion): Call `complete_arguments' when the
32931 current words start with a dash.
32932
32933 2005-08-27 Marco Gerards <metgerards@student.han.nl>
32934
32935 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
32936 `gzio.mod' instead of `io.mod').
32937
32938 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
32939
32940 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
32941 (DISTDIRS): Added io and video.
32942 Rewrite the search routine to make an output consistently.
32943
32944 * DISTLIST: Added conf/sparc64-ieee1275.mk,
32945 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
32946 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
32947 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
32948 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
32949 util/powerpc/ieee1275/misc.c.
32950
32951 * include/grub/gzio.h: New file.
32952 * io/gzio.c: Likewise.
32953
32954 * kern/file.c (grub_file_close): Call grub_device_close only if
32955 FILE->DEVICE is not NULL.
32956
32957 * include/grub/mm.h [!NULL] (NULL): New macro.
32958
32959 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
32960
32961 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
32962 (pkgdata_MODULES): Added gzio.mod.
32963 (gzio_mod_SOURCES): New variable.
32964 (gzio_mod_CFLAGS): Likewise.
32965
32966 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
32967 (pkgdata_MODULES): Added gzio.mod.
32968 (gzio_mod_SOURCES): New variable.
32969 (gzio_mod_CFLAGS): Likewise.
32970
32971 * commands/cat.c: Include grub/gzio.h.
32972 (grub_cmd_cat): Use grub_gzfile_open instead of
32973 grub_file_open.
32974
32975 * commands/cmp.c: Include grub/gzio.h.
32976 (grub_cmd_cmp): Use grub_gzfile_open instead of
32977 grub_file_open.
32978
32979 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
32980 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
32981 grub_file_open.
32982 (grub_rescue_cmd_module): Likewise.
32983
32984 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
32985
32986 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
32987 kern/sparc64/ieee1275/init.c because it contains _start.
32988 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
32989
32990 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
32991
32992 * configure.ac: Add support for sparc64 host with ieee1275
32993 firmware.
32994 * configure: Generated from configure.ac.
32995 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
32996 instead of int.
32997 (grub_ofdisk_read): Likewise.
32998 (grub_ofdisk_open): Use %p to print pointer values, and cast the
32999 pointers as (void *) to remove a warning.
33000 (grub_ofdisk_close): Likewise.
33001 (grub_ofdisk_read): Likewise.
33002 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
33003 returns, so make it return void to remove a warning.
33004 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
33005 Corresponding prototype change.
33006 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
33007 values, and cast the pointers as (void *) to remove a warning.
33008 (grub_mm_dump): Likewise.
33009 * conf/sparc64-ieee1275.mk: New file.
33010 * conf/sparc64-ieee1275.rmk: Likewise.
33011 * include/grub/sparc64/setjmp.h: Likewise.
33012 * include/grub/sparc64/types.h: Likewise.
33013 * include/grub/sparc64/ieee1275/console.h: Likewise.
33014 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
33015 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
33016 * include/grub/sparc64/ieee1275/time.h: Likewise.
33017 * kern/sparc64/cache.c: Likewise.
33018 * kern/sparc64/dl.c: Likewise.
33019 * kern/sparc64/ieee1275/init.c: Likewise.
33020 * kern/sparc64/ieee1275/openfw.c: Likewise.
33021
33022 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
33023
33024 * util/console.c (grub_ncurses_putchar): If C is greater than
33025 0x7f, set C to a question mark.
33026 (grub_ncurses_getcharwidth): New function.
33027 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
33028 getcharwidth.
33029
33030 * normal/menu.c (print_entry): Made aware of Unicode. First,
33031 convert TITLE to UCS-4, and predict the cursor position by
33032 grub_getcharwidth.
33033
33034 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
33035 const to SRC.
33036 * kern/misc.c (grub_utf16_to_utf8): Likewise.
33037
33038 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
33039
33040 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
33041 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
33042 grub_strcat.
33043
33044 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
33045 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
33046 grub_strcpy and grub_strlen. Take it into account that a space
33047 character is inserted as a delimiter.
33048
33049 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
33050
33051 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
33052 invalid magic in the error.
33053
33054 * commands/search.c: New file.
33055
33056 * util/grub-emu.c (main): Call grub_search_init and
33057 grub_search_fini.
33058
33059 * kern/rescue.c (grub_rescue_print_disks): Removed.
33060 (grub_rescue_print_devices): New function.
33061 (grub_rescue_cmd_ls): Use grub_device_iterate with
33062 grub_rescue_print_devices instead of grub_disk_dev_iterate with
33063 grub_rescue_print_disks.
33064
33065 * kern/partition.c (grub_partition_iterate): Return the result of
33066 PARTMAP->ITERATE instead of GRUB_ERRNO.
33067
33068 * kern/device.c: Include grub/partition.h.
33069 (grub_device_iterate): New function.
33070
33071 * include/grub/partition.h (grub_partition_iterate): Return int
33072 instead of grub_err_t.
33073
33074 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
33075 prototype.
33076 [GRUB_UTIL] (grub_search_fini): Likewise.
33077
33078 * include/grub/device.h (grub_device_iterate): New prototype.
33079
33080 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
33081 commands/search.c.
33082 (pkgdata_MODULES): Added search.mod.
33083 (search_mod_SOURCES): New variable.
33084 (search_mod_CFLAGS): Likewise.
33085
33086 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
33087 (pkgdata_MODULES): Added search.mod.
33088 (search_mod_SOURCES): New variable.
33089 (search_mod_CFLAGS): Likewise.
33090
33091 * commands/ls.c (grub_ls_list_disks): Renamed to ...
33092 (grub_ls_list_devices): ... this, and use grub_device_iterate.
33093 All callers changed.
33094
33095 * DISTLIST: Added commands/search.c.
33096
33097 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
33098
33099 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
33100 conversion.
33101 (grub_getcharwidth): New function.
33102
33103 * kern/misc.c (grub_utf8_to_ucs4): New function.
33104
33105 * include/grub/term.h (struct grub_term): Added a new member
33106 "getcharwidth".
33107 (grub_getcharwidth): New prototype.
33108
33109 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
33110
33111 * term/i386/pc/console.c (map_char): New function. Segregated from
33112 grub_console_putchar.
33113 (grub_console_putchar): Use map_char.
33114 (grub_console_getcharwidth): New function.
33115 (grub_console_term): Specified grub_console_getcharwidth as
33116 getcharwidth.
33117
33118 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
33119 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
33120
33121 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
33122 GRUB_ERRNO.
33123 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
33124 on grub_strtoul completely.
33125 (write_char): Declare local variables in the beginning of the
33126 function.
33127 (grub_vesafb_getcharwidth): New function.
33128 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
33129 getcharwidth.
33130
33131 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
33132
33133 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
33134 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
33135 commands/i386/pc/vbetest.c.
33136
33137 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
33138 call grub_vbe_get_controller_info again, because the returned
33139 information is volatile.
33140 (grub_vbe_set_video_mode): Mostly rewritten.
33141 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
33142 grub_vbe_status_t correctly.
33143 (grub_vbe_get_video_mode_info): Likewise.
33144 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
33145 several if statements.
33146
33147 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
33148 * commands/i386/pc/vbeinfo.c: ... this.
33149
33150 * commands/i386/pc/vbe_test.c: Renamed to ...
33151 * commands/i386/pc/vbetest.c: ... this.
33152
33153 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
33154 ...
33155 (grub_cmd_vbeinfo): ... this. Save video modes before
33156 iterating. Skip a video mode, if it is not available, not enough
33157 information is given or it is monochrome. Show the memory
33158 model. Leave the interpretation of MODEVAR to grub_strtoul
33159 completely.
33160 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
33161 (GRUB_MOD_FINI): Likewise.
33162
33163 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
33164 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
33165 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
33166 duplicated grub_env_get. Leave the interpretation of MODEVAR to
33167 grub_strtoul completely.
33168 (real2pm): Removed.
33169 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
33170 (GRUB_MOD_FINI): Likewise.
33171
33172 * normal/misc.c: Include grub/mm.h.
33173
33174 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
33175 vbe_list_modes with vbetest.mod and vbeinfo.mod.
33176 (vbe_list_modes_mod_SOURCES): Removed.
33177 (vbe_list_modes_mod_CFLAGS): Likewise.
33178 (vbe_test_mod_SOURCES): Likewise.
33179 (vbe_test_mod_CFLAGS): Likewise.
33180 (vbeinfo_mod_SOURCES): New variable.
33181 (vbeinfo_mod_CFLAGS): Likewise.
33182 (vbetest_mod_SOURCES): Likewise.
33183 (vbetest_mod_CFLAGS): Likewise.
33184
33185 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
33186
33187 * normal/misc.c: New file.
33188
33189 * DISTLIST: Added normal/misc.c.
33190
33191 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
33192 DISK to HOOK. Call HOOK with DISK.
33193 * partmap/apple.c (apple_partition_map_iterate): Likewise.
33194 * partmap/pc.c (pc_partition_map_iterate): Likewise.
33195 * partmap/sun.c (sun_partition_map_iterate): Likewise.
33196
33197 * normal/menu_entry.c (struct screen): Added a new member
33198 "completion_shown".
33199 (completion_buffer): New global variable.
33200 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
33201 (store_completion): New function.
33202 (complete): Likewise.
33203 (clear_completions): Likewise.
33204 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
33205 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
33206 a tab, call complete.
33207
33208 * normal/completion.c (disk_dev): Removed.
33209 (print_simple_completion): Likewise.
33210 (print_partition_completion): Likewise.
33211 (print_func): New global variable.
33212 (add_completion): Do not take the arguments WHAT or PRINT any
33213 longer. Added a new argument TYPE. Instead of printing directly,
33214 call PRINT_FUNC if not NULL.
33215 All callers changed.
33216 (complete_device): Use a local variable DEV instead of
33217 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
33218 (grub_normal_do_completion): Take a new argument HOOK. Do not
33219 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
33220 empty string, return NULL instead.
33221 All callers changed.
33222
33223 * normal/cmdline.c (print_completion): New function.
33224
33225 * kern/partition.c (grub_partition_iterate): Add an argument DISK
33226 to HOOK.
33227 All callers changed.
33228
33229 * kern/disk.c (grub_print_partinfo): Removed.
33230
33231 * include/grub/partition.h (struct grub_partition_map): Add a new
33232 argument DISK into HOOK of ITERATE.
33233 (grub_partition_iterate): Add a new argument DISK to HOOK.
33234
33235 * include/grub/normal.h (enum grub_completion_type): New enum.
33236 (grub_completion_type_t): New type.
33237 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
33238 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
33239 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
33240 (GRUB_COMPLETION_TYPE_FILE): Likewise.
33241 (grub_normal_do_completion): Added a new argument HOOK.
33242 (grub_normal_print_device_info): New prototype.
33243
33244 * include/grub/disk.h (grub_print_partinfo): Removed.
33245
33246 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
33247 (normal_mod_SOURCES): Likewise.
33248 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33249 (normal_mod_SOURCES): Likewise.
33250
33251 * commands/ls.c (grub_ls_list_disks): Use
33252 grub_normal_print_device_info instead of grub_print_partinfo. Free
33253 PNAME.
33254 (grub_ls_list_files): Use grub_normal_print_device_info instead of
33255 duplicating the code.
33256
33257 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
33258
33259 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
33260 follow GCS more precisely.
33261 * commands/i386/pc/vbe_test.c: Likewise.
33262 * include/grub/i386/pc/vbe.h: Likewise.
33263 * term/i386/pc/vesafb.c: Likewise.
33264 * video/i386/pc/vbe.c: Likewise.
33265
33266 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
33267
33268 * DISTLIST: Added term/i386/pc/vesafb.c
33269 DISTLIST: Added video/i386/pc/vbe.c
33270 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
33271 DISTLIST: Added commands/i386/pc/vbe_test.c.
33272 * commands/i386/pc/vbe_list_modes.c: New file.
33273 * commands/i386/pc/vbe_test.c: Likewise.
33274 * term/i386/pc/vesafb.c: Likewise.
33275 * video/i386/pc/vbe.c: Likewise.
33276 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
33277 (grub_vbe_probe) Added prototype.
33278 (grub_vbe_set_video_mode) Likewise.
33279 (grub_vbe_get_video_mode) Likewise.
33280 (grub_vbe_get_video_mode_info) Likewise.
33281 (grub_vbe_set_pixel_rgb) Likewise.
33282 (grub_vbe_set_pixel_index) Likewise.
33283 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
33284 (pkgdata_MODULES): Added vesafb.mod.
33285 (pkgdata_MODULES): Added vbe_list_modes.mod.
33286 (pkgdata_MODULES): Added vbe_test.mod.
33287 (vbe_mod_SOURCES): Added.
33288 (vbe_mod_CFLAGS): Likewise.
33289 (vesafb_mod_SOURCES): Likewise.
33290 (vesafb_mod_CFLAGS): Likewise.
33291 (vbe_list_modes_mod_SOURCES): Likewise.
33292 (vbe_list_modes_mod_CFLAGS): Likewise.
33293 (vbe_test_mod_SOURCES): Likewise.
33294 (vbe_test_mod_CFLAGS): Likewise.
33295
33296 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
33297
33298 * normal/command.c (grub_command_execute): If INTERACTIVE is
33299 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
33300 CMDLINE. Disable the pager if INTERACTIVE is true.
33301 All callers are changed.
33302
33303 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
33304 before reading a config file.
33305 * normal/main.c (read_config_file): Even if a command is not
33306 found, register it if it is within an entry.
33307
33308 * util/grub-emu.c: Include sys/types.h and unistd.h.
33309 (options): Added --hold.
33310 (struct arguments): Added a new member "hold".
33311 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
33312 missing.
33313 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
33314 cleared by a debugger, if it is not zero.
33315
33316 * include/grub/normal.h (grub_command_execute): Add an argument
33317 INTERACTIVE.
33318
33319 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
33320
33321 * DISTLIST: Added include/grub/i386/pc/vbe.h.
33322
33323 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
33324
33325 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
33326 program with another one, because the old one didn't detect a bug
33327 in gcc-3.4. Always use regparm 2, because the new test is still
33328 not enough for gcc-4.0. Someone must investigate a simple test
33329 case which detects a bug in gcc-4.0.
33330
33331 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
33332
33333 * DISTLIST: Added normal/completion.c.
33334
33335 * normal/completion.c: New file.
33336
33337 * term/i386/pc/console.c (grub_console_getwh): New function.
33338 (grub_console_term): Assign grub_console_getwh to getwh.
33339
33340 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
33341 function is defined in normal/completion.c as
33342 grub_normal_do_completion.
33343 (grub_cmdline_get): Use grub_normal_do_completion instead of
33344 grub_tab_complete.
33345
33346 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
33347 returns non-zero, otherwise return 0.
33348 (grub_partition_iterate): First, probe the partition map. Then,
33349 call ITERATE only for this partition map.
33350
33351 * kern/misc.c (grub_strncmp): Rewritten.
33352
33353 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
33354 returns non-zero. Otherwise return 0.
33355
33356 * include/grub/partition.h (grub_partition_map_iterate): Return
33357 int instead of void.
33358
33359 * include/grub/normal.h (grub_normal_do_completion): New prototype.
33360
33361 * include/grub/misc.h (grub_strncmp): Change the type of N to
33362 grub_size_t.
33363
33364 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
33365 of void.
33366
33367 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
33368 unsigned explicitly before comparing it with I.
33369
33370 * kern/main.c (grub_env_write_root): Add the attribute unused into
33371 VAR.
33372
33373 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
33374 normal/completion.c.
33375 (normal_mod_SOURCES): Likewise.
33376 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
33377 (normal_mod_SOURCES): Likewise.
33378
33379 * normal/command.c (grub_iterate_commands): If ITERATE returns
33380 non-zero, return one immediately.
33381
33382 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
33383
33384 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
33385 * kern/i386/pc/startup.S: Updated Global Descriptor table's
33386 descriptions.
33387 (grub_vbe_get_controller_info): New function.
33388 (grub_vbe_get_mode_info): Likewise.
33389 (grub_vbe_set_mode): Likewise.
33390 (grub_vbe_get_mode): Likewise.
33391 (grub_vbe_set_memory_window): Likewise.
33392 (grub_vbe_get_memory_window): Likewise.
33393 (grub_vbe_set_scanline_length): Likewise.
33394 (grub_vbe_get_scanline_length): Likewise.
33395 (grub_vbe_set_display_start): Likewise.
33396 (grub_vbe_get_display_start): Likewise.
33397 (grub_vbe_set_palette_data): Likewise.
33398 * include/grub/i386/pc/vbe.h: New file.
33399
33400 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
33401
33402 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
33403 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
33404 * DISTLIST: Likewise.
33405 * kern/ieee1275/of.c: Moved to ...
33406 * kern/ieee1275/ieee1275.c: ... here.
33407
33408 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
33409
33410 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
33411 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
33412 Pass 0 as `end' parameter to grub_strtoul().
33413
33414 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
33415
33416 * include/grub/powerpc/ieee1275/console.h: Do not include
33417 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
33418 ifdef.
33419 (grub_console_cur_color): Remove i386-specific prototype.
33420 (grub_console_real_putchar): Likewise.
33421 (grub_console_checkkey): Likewise.
33422 (grub_console_getkey): Likewise.
33423 (grub_console_getxy): Likewise.
33424 (grub_console_gotoxy): Likewise.
33425 (grub_console_cls): Likewise.
33426 (grub_console_setcursor): Likewise.
33427 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
33428 Include <grub/machine/console.h>.
33429 * term/ieee1275/ofconsole.c: Likewise.
33430
33431 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
33432
33433 * Makefile.in (LIBLZO): New variable.
33434
33435 * configure.ac: Check for LZO version 2.
33436
33437 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
33438 lzo/lzo1x.h instead of lzo1x.h.
33439
33440 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
33441 of -llzo.
33442
33443 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
33444 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
33445
33446 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
33447 copying the data from PARTITION to P.
33448
33449 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
33450
33451 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
33452 negative, unload the module.
33453
33454 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
33455 map is "pc_partition_map" but not "pc".
33456 (usage): Fix the description. The options are --boot-image and
33457 --core-image but not --boot-file or --core-file.
33458 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
33459 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
33460 DEFAULT_DIRECTORY.
33461
33462 * util/i386/pc/grub-install.in: Do not specify --boot-file or
33463 --core-file. Specify INSTALL_DEVICE as an argument.
33464
33465 * util/console.c: Include config.h.
33466 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
33467 [HAVE_NCURSES_H]: Include ncurses.h.
33468 [HAVE_CURSES_H]: Include curses.h.
33469 [!A_NORMAL] (A_NORMAL): Defined as zero.
33470 [!A_STANDOUT] (A_STANDOUT): Likewise.
33471
33472 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
33473 -lncurses.
33474 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
33475
33476 * configure.ac: Check for curses libraries and headers.
33477
33478 * Makefile.in (LIBCURSES): New variable.
33479
33480 * genmk.rb (Script::rule): Set the executable bits.
33481
33482 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
33483 name of the PC partition map is "pc_partition_map" but not "pc".
33484
33485 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
33486
33487 * util/i386/pc/grub-install.in (grub_probefs): New variable.
33488 (modules): Likewise.
33489 (usage): Added descriptions for --modules and --grub-probefs.
33490 Handle --modules and --grub-probefs. Save the arguments in MODULES
33491 and GRUB_PROBEFS, respectively.
33492 Auto-detect a filesystem module against GRUBDIR. If the result is
33493 empty and modules are not specified explicitly, abort the
33494 installation. Add the result to MODULES.
33495
33496 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
33497 disk/powerpc/ieee1275/ofdisk.c,
33498 include/grub/powerpc/ieee1275/init.h and
33499 term/powerpc/ieee1275/ofconsole.c.
33500 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
33501 term/ieee1275/ofconsole.c.
33502
33503 * include/grub/powerpc/ieee1275/console.h: Resurrected.
33504
33505 * COPYING: Upgraded to the latest version. Only the address of the
33506 FSF office has changed.
33507
33508 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
33509
33510 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
33511 kern/ieee1275.c with kern/ieee1275/of.c.
33512
33513 * kern/ieee1275.c: Moved to ...
33514 * kern/ieee1275/of.c: ... here.
33515
33516 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
33517
33518 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
33519 readability.
33520
33521 * config.guess: Updated to the latest version from gnulib.
33522 * config.sub: Likewise.
33523 * install.sh: Likewise.
33524 * mkinstalldirs: Likewise.
33525
33526 * include/grub/console.h: Removed. This file is arch-specific. Do
33527 not put this in include/grub.
33528
33529 * include/grub/i386/pc/console.h: Resurrected.
33530
33531 * util/console.c: Include grub/machine/console.h instead of
33532 grub/console.h.
33533 * util/grub-emu.c: Likewise.
33534
33535 2005-08-04 Marco Gerards <metgerards@student.han.nl>
33536
33537 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
33538 hardcoded value.
33539
33540 From Vincent Pelletier <subdino2004@yahoo.fr>
33541 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
33542 Redefined to use grub_getwh.
33543 (grub_term): New member named getwh.
33544 (grub_getwh): New prototype.
33545 * kern/term.c (grub_getwh): New function.
33546 * term/i386/pc/console.c (grub_console_getwh): New function.
33547 (grub_console_term): New member `getwh'.
33548 * term/i386/pc/vga.c (grub_vga_getwh): New function.
33549 (grub_vga_term): New member `getwh'.
33550 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
33551 grub_ssize_t.
33552 (grub_ofconsole_getw): New function.
33553 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
33554 (grub_ofconsole_term): New field named getwh and new initial
33555 value.
33556
33557 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
33558
33559 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
33560 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
33561 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
33562 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
33563 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
33564 of <grub/machine/ieee1275.h>.
33565 * commands/ieee1275/reboot.c: Likewise.
33566 * boot/powerpc/ieee1275/ieee1275.c: Move ...
33567 * kern/ieee1275.c: ... to here. All users updated. Change all
33568 parameter structs to use new type `grub_ieee1275_cell_t'.
33569 * term/powerpc/ieee1275/ofconsole.c: Move ...
33570 * term/ieee1275/ofconsole.c: ... to here. All users updated.
33571 * disk/powerpc/ieee1275/ofdisk.c: Move ...
33572 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
33573 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
33574 to return int.
33575 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
33576 Remove unused prototypes. All users updated.
33577 * include/grub/powerpc/ieee1275/console.h: Removed.
33578 * include/grub/powerpc/ieee1275/ieee1275.h: Define
33579 `grub_ieee1275_cell_t'.
33580 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
33581 Cast comparisons with -1 to the correct type.
33582 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
33583 type to match `grub_ieee1275_entry_fn'.
33584
33585 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
33586
33587 * DISTLIST: Added util/i386/pc/grub-probefs.c.
33588
33589 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
33590 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
33591 partmap/sun.c.
33592 (grub_probefs_SOURCES): New variable.
33593
33594 * util/i386/pc/grub-probefs.c: New file.
33595
33596 * util/i386/pc/grub-setup.c (main): Call
33597 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
33598 grub_hfs_init and grub_jfs_init to initialize the system. Call
33599 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
33600 grub_pc_partition_map_fini to finish the system.
33601
33602 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
33603
33604 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
33605 function.
33606 (grub_multiboot_load_elf32): Likewise.
33607 (grub_multiboot_is_elf64): Likewise.
33608 (grub_multiboot_load_elf64): Likewise.
33609 (grub_multiboot_load_elf): Likewise.
33610 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
33611 an ELF32 or ELF64 file.
33612 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
33613
33614 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
33615 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
33616 NULL before calling FS->LABEL.
33617 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
33618 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
33619 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
33620 before calling FS->LABEL.
33621
33622 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
33623
33624 * util/i386/pc/grub-install.in (datadir): New variable.
33625 (libdir): Removed.
33626 (pkgdatadir): New variable.
33627 (pkglibdir): Removed.
33628
33629 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
33630
33631 * DISTLIST: Added util/i386/pc/grub-install.in.
33632
33633 * util/i386/pc/grub-install.in: New file.
33634
33635 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
33636 (grub_install_SOURCES): Likewise.
33637
33638 * genmk.rb: Added support for scripts.
33639 (Script): New class.
33640 (scripts): New variable.
33641
33642 * Makefile.in (install-local): Install sbin_SCRIPTS by
33643 INSTALL_SCRIPT.
33644 (uninstall): Remove sbin_SCRIPTS.
33645
33646 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
33647 device, try to get a GRUB device by
33648 grub_util_biosdisk_get_grub_dev.
33649 Free DEST_DEV.
33650
33651 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
33652 description for --device-map.
33653
33654 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
33655
33656 Change the semantics of variable hooks. They now return strings
33657 instead of error values.
33658
33659 * util/i386/pc/grub-setup.c: Include grub/env.h.
33660 (setup): Use grub_device_set_root instead of grub_env_set.
33661
33662 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
33663 grub_env_get instead of grub_device_set_root and
33664 grub_device_get_root, respectively.
33665
33666 * kern/main.c (grub_env_write_root): New function.
33667 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
33668 grub_env_set instead of grub_device_set_root.
33669
33670 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
33671 many variables.
33672 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
33673 rather than calling ENV->WRITE_HOOK afterwards.
33674 (grub_env_get): Return the result of ENV->READ_HOOK rather than
33675 passing a pointer of a pointer.
33676 (grub_register_variable_hook): Change the types of "read_hook" and
33677 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
33678 respectively.
33679 Allocate the default empty string on the heap, because this string
33680 may be freed later.
33681
33682 * kern/device.c: Include grub/env.h.
33683 (grub_device_set_root): Removed.
33684 (grub_device_get_root): Likewise.
33685 (grub_device_open): Use grub_env_get instead of
33686 grub_device_get_root.
33687
33688 * include/grub/env.h (grub_env_read_hook_t): New type.
33689 (grub_env_write_hook_t): Likewise.
33690 (grub_env_var): Change the types of "read_hook" and "write_hook"
33691 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
33692 (grub_register_variable_hook): Likewise.
33693
33694 * include/grub/device.h (grub_device_set_root): Removed.
33695 (grub_device_set_root): Likewise.
33696
33697 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
33698 make sure that DIRNAME terminates with '/', so that
33699 grub_fat_find_dir will fail if PATH is not a directory.
33700
33701 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
33702 from DIRNAME.
33703 Use the qualifier auto for print_files and print_files_long.
33704 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
33705 as a regular file.
33706 Put a newline only if there is no error.
33707 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
33708 used.
33709
33710 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
33711
33712 * kern/partition.c (grub_partition_probe): Initialize PART to
33713 NULL. Otherwise, when no partition map is registered, this returns
33714 a garbage.
33715
33716 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
33717
33718 * partmap/apple.c (apple_partition_map_iterate): Check if POS
33719 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
33720 valid.
33721
33722 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
33723
33724 * commands/ls.c (grub_ls_list_disks): Print the filesystem
33725 information on each device, if it does not have partitions. Print
33726 "Device" instead of "Disk", because this function is not specific
33727 to disk devices.
33728
33729 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
33730 static to ensure that it is put on the memory rather than a
33731 register.
33732
33733 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
33734
33735 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
33736 (grub_cat_init): Likewise.
33737 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
33738 (options): Likewise.
33739 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
33740 (grub_configfile_init): Likewise.
33741 * font/manager.c (GRUB_MOD_INIT): Likewise.
33742 * commands/help.c (GRUB_MOD_INIT): Likewise.
33743 (grub_help_init): Likewise.
33744 * normal/command.c (grub_command_init): Likewise.
33745 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
33746 * disk/loopback.c (grub_loop_init): Likewise.
33747 (GRUB_MOD_INIT): Likewise.
33748 * commands/ls.c (grub_ls_init): Likewise.
33749 (GRUB_MOD_INIT): Likewise.
33750 (options): Likewise.
33751 * commands/boot.c (grub_boot_init): Likewise.
33752 (GRUB_MOD_INIT): Likewise.
33753 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
33754 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
33755 (GRUB_MOD_INIT): Likewise.
33756 * commands/cmp.c (grub_cmp_init): Likewise.
33757 (GRUB_MOD_INIT): Likewise.
33758
33759 * normal/arg.c: Use <> instead of "" to include header files.
33760 (SHORT_ARG_HELP): New macro.
33761 (SHORT_ARG_USAGE): Likewise.
33762 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
33763 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
33764 descriptions.
33765 (find_short): Check if C is 'h' or 'u' explicitly.
33766 (grub_arg_show_help): Use space characters instead of tabs. Treat
33767 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
33768 are shown with --help and --usage only if they are not used for
33769 the command itself.
33770 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
33771 'h' and 'u'.
33772
33773 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
33774 const into "longarg". Change the type of "shortarg" to int.
33775
33776 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
33777
33778 * boot/i386/pc/boot.S (boot_drive_check): New label.
33779
33780 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
33781 macro.
33782
33783 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
33784 which do not pass a boot drive correctly. Copied from GRUB Legacy.
33785
33786 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
33787
33788 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
33789 When turning off Gate A20, skip the check and return immediately,
33790 because this is not fatal usually.
33791
33792 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
33793
33794 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
33795 be 0x7C00 instead of 0x8000.
33796
33797 * boot/i386/pc/pxeboot.S: Rewritten.
33798
33799 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
33800 EXT_C.
33801 (gate_a20_check_state): Read a byte from 0x108000. Invert the
33802 result.
33803
33804 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
33805
33806 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
33807 robustness. This routine now supports a BIOS call and System
33808 Control Port A to modify the gate A20.
33809
33810 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
33811 Increased to 0x440.
33812
33813 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
33814
33815 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
33816 device path and resulting ihandle.
33817 (grub_ofdisk_close): dprintf the ihandle being closed.
33818 (grub_ofdisk_read): dprintf function parameters.
33819 * kern/mm.c (grub_mm_init_region): Likewise.
33820 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
33821 (grub_linux_boot): dprintf the Linux entry point, initrd address and
33822 size, and boot arguments.
33823 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
33824 before loading into memory.
33825 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
33826 before loading into memory.
33827
33828 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
33829
33830 * kern/mm.c: Added much documentation.
33831 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
33832 8, set to 5 instead of 8.
33833
33834 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
33835
33836 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
33837
33838 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
33839 (grub_mkdevicemap_SOURCES): New variable.
33840
33841 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
33842 lib/device.c of GRUB Legacy.
33843
33844 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
33845
33846 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
33847 instead of PATH is NULL.
33848
33849 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
33850
33851 * commands/cmp.c (BUFFER_SIZE): New macro.
33852 (grub_cmd_cmp): Close the right file at the right time. Compare
33853 only data just read. Don't report files of different size as
33854 identical. Dynamically allocate buffers. Move variable
33855 declarations at the beginning of function.
33856
33857 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
33858
33859 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
33860 reverse.
33861
33862 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
33863
33864 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
33865 when backspace is pressed at beginning of line.
33866
33867 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
33868
33869 * DISTLIST: Added genfslist.sh.
33870
33871 * normal/main.c (fs_module_list): New variable.
33872 (autoload_fs_module): New function.
33873 (read_fs_list): Likewise.
33874 (grub_normal_execute): Call read_fs_list.
33875
33876 * kern/fs.c (grub_fs_autoload_hook): New variable.
33877 (grub_fs_probe): Added support for auto-loading.
33878
33879 * include/grub/normal.h (struct grub_fs_module_list): New struct.
33880 (grub_fs_module_list_t): New type.
33881
33882 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
33883 (grub_fs_autoload_hook): New prototype.
33884
33885 * genfslist.sh: New file.
33886
33887 * genmk.rb: Added a rule to generate a filesystem list.
33888
33889 2005-06-30 Marco Gerards <metgerards@student.han.nl>
33890
33891 * configure.ac: Fix the test for cross-compiling.
33892
33893 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
33894 define GRUB_UTIL anymore.
33895
33896 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
33897 so this function works on other systems than just big endian.
33898 (load_modules): Likewise.
33899 (add_segments): Likewise.
33900
33901 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
33902
33903 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
33904 contains `l' modifier, get a long from va_arg().
33905
33906 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
33907
33908 * kern/mm.c (grub_free): If the next free block which is being
33909 merged is the first free block, set the first block to the block
33910 being freed.
33911 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
33912
33913 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
33914
33915 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
33916 `grub_ieee1275_chosen'.
33917
33918 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
33919
33920 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
33921 (grub_ieee1275_chosen): New variable.
33922 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
33923 `chosen'.
33924 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
33925 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
33926 Rename first argument to `phandle' for consistency.
33927 (grub_ieee1275_get_property_length): Likewise.
33928 (grub_ieee1275_next_property): Likewise. Change type of first argument
33929 to grub_ieee1275_phandle_t.
33930 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
33931 Move export next to declaration.
33932 (grub_ieee1275_chosen): New variable.
33933 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
33934 Correct cosmetic typo.
33935 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
33936 `grub_ieee1275_chosen'.
33937 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
33938 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
33939 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
33940 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
33941 `grub_ieee1275_chosen'.
33942
33943 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
33944
33945 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
33946 /chosen/bootargs.
33947 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
33948 /chosen/bootargs as "variable=value" pairs.
33949
33950 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
33951
33952 * include/grub/misc.h (grub_dprintf): New macro.
33953 (grub_real_dprintf): New prototype.
33954 (grub_strword): Likewise.
33955 (grub_iswordseparator): Likewise.
33956 * kern/misc.c (grub_real_dprintf): New function.
33957 (grub_strword): Likewise.
33958 (grub_iswordseparator): Likewise.
33959
33960 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
33961
33962 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
33963 (roundup): Remove macro.
33964 (grub_ieee1275_flags): Make static.
33965 (grub_ieee1275_realmode): Remove.
33966 (grub_ieee1275_test_flag): New function.
33967 (grub_ieee1275_set_flag): Likewise.
33968 (find_options): Rename to `grub_ieee1275_find_options'; update
33969 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
33970 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
33971 (cmain): New prototype.
33972 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
33973 `grub_ieee1275_flags' directly.
33974 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
33975 machine/biosdisk.h.
33976 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
33977 Don't include grub/machine/init.h.
33978 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
33979 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
33980 Remove prototype.
33981 (grub_ieee1275_realmode): Likewise.
33982 (grub_ieee1275_flag): New enum.
33983 (grub_ieee1275_test_flag): New prototype.
33984 (grub_ieee1275_set_flag): New prototype.
33985 * include/grub/powerpc/ieee1275/init.h: Remove file.
33986 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
33987 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
33988 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
33989 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
33990 comment.
33991 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
33992 `grub_ieee1275_test_flag'.
33993 (grub_ieee1275_encode_devname): Likewise.
33994
33995 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
33996
33997 * include/grub/powerpc/ieee1275/ieee1275.h
33998 (grub_ieee1275_encode_devname): New prototype.
33999 (grub_ieee1275_get_filename): Likewise.
34000 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
34001 function.
34002 (grub_set_prefix): Likewise.
34003 (grub_machine_init): Call grub_set_prefix.
34004 * kern/powerpc/ieee1275/openfw.c: Fix typos.
34005 (grub_parse_type): New enum.
34006 (grub_ieee1275_get_devargs): New function.
34007 (grub_ieee1275_get_devname): Likewise.
34008 (grub_ieee1275_parse_args): Likewise.
34009 (grub_ieee1275_get_filename): Likewise.
34010 (grub_ieee1275_encode_devname): Likewise.
34011
34012 2005-03-30 Marco Gerards <metgerards@student.han.nl>
34013
34014 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
34015 `grub_loader_unset'.
34016
34017 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
34018
34019 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
34020 instead of grub_ieee1275_interpret.
34021 (grub_halt_init): New function.
34022 (grub_halt_fini): Likewise.
34023 (GRUB_MOD_INIT): Correct message grammar.
34024 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
34025 instead of grub_ieee1275_interpret.
34026 (grub_reboot_init): New function.
34027 (grub_reboot_fini): Likewise.
34028 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
34029 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
34030 util/i386/pc/misc.c with commands/ieee1275/halt.c,
34031 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
34032 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
34033 function.
34034 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
34035 Add prototype.
34036 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
34037 prototype.
34038 (grub_halt): Likewise.
34039 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
34040 (cmain): Remove __attribute__((unused)).
34041 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
34042 (grub_heap_len): Likewise.
34043 (grub_machine_fini): New function.
34044 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
34045 (grub_halt): Likewise.
34046 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
34047 function.
34048 * util/powerpc/ieee1275/misc.c: New file.
34049
34050 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
34051
34052 * DISTLIST: New file.
34053 * gendistlist.sh: Likewise.
34054
34055 * Makefile.in (COMMON_DISTFILES): Removed.
34056 (BOOT_DISTFILES): Likewise.
34057 (CONF_DISTFILES): Likewise.
34058 (DISK_DISTFILES): Likewise.
34059 (FS_DISTFILES): Likewise.
34060 (INCLUDE_DISTFILES): Likewise.
34061 (KERN_DISTFILES): Likewise.
34062 (LOADER_DISTFILES): Likewise.
34063 (TERM_DISTFILES): Likewise.
34064 (UTIL_DISTFILES): Likewise.
34065 (DISTFILES): Likewise.
34066 (uninstall): Uninstall files in $(pkgdata_DATA).
34067 (DISTLIST): New target.
34068 (distdir): Use the contents of the file DISTLIST to get a list of
34069 distributed files.
34070
34071 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
34072
34073 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
34074 descriptor. This is ported from GRUB Legacy.
34075
34076 * gencmdlist.sh: Added an extra semicolon to make it work with
34077 old sed versions. Reported by Robert Bihlmeyer
34078 <robbe@orcus.priv.at>.
34079
34080 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
34081
34082 Automatic loading of commands is supported.
34083
34084 * normal/main.c (read_command_list): New function.
34085 (grub_normal_execute): Call read_command_list.
34086
34087 * normal/command.c (grub_register_command): Return zero or CMD.
34088 Allocate CMD->NAME from the heap.
34089 Initialize CMD->MODULE_NAME to zero.
34090 Find the same name as well. If the same command is found and it is
34091 a dummy command, overwrite members. If it is not a dummy command,
34092 return zero.
34093 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
34094 (grub_command_find): If a dummy command is found, load a module
34095 and retry to find a command only once.
34096
34097 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
34098 make sure that each command is loaded.
34099
34100 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
34101 macro.
34102 (struct grub_command): Remove const from the member `name'.
34103 Add a new member `module_name'.
34104 (grub_register_command): Return grub_command_t.
34105
34106 * commands/help.c (grub_cmd_help): Call grub_command_find to make
34107 sure that each command is loaded.
34108
34109 * genmk.rb (PModule::rule): Specify a module name without the
34110 suffix ".mod" to gencmdlist.sh.
34111
34112 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
34113
34114 * gencmdlist.sh: New file.
34115
34116 * genmk.rb (PModule::rule): Generate a rule for a command list.
34117 Clean command.lst.
34118 Generate command.lst from $(COMMANDFILES).
34119
34120 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
34121 (DATA): Added $(pkgdata_DATA).
34122 (install-local): Install files in $(pkgdata_DATA).
34123
34124 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
34125
34126 * term/i386/pc/vga.c (debug_command): Removed.
34127 (GRUB_MOD_INIT): Do not register the command "debug".
34128
34129 From Hollis Blanchard:
34130 * commands/configfile.c: New file.
34131 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
34132 commands/configfile.c.
34133 (pkgdata_MODULES): Added configfile.mod.
34134 (configfile_mod_SOURCES): New variable.
34135 (configfile_mod_CFLAGS): Likewise.
34136 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
34137 commands/configfile.c.
34138 (pkgdata_MODULES): Added configfile.mod.
34139 (configfile_mod_SOURCES): New variable.
34140 (configfile_mod_CFLAGS): Likewise.
34141 * util/grub-emu.c (main): Call grub_configfile_init and
34142 grub_configfile_fini.
34143 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
34144 prototype.
34145 [GRUB_UTIL] (grub_configfile_fini): Likewise.
34146
34147 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
34148
34149 * normal/arg.c (grub_arg_show_help): Do not show the bug report
34150 address.
34151
34152 * commands/help.c (grub_cmd_help): Do not print newlines after
34153 the last command in print_command_help.
34154
34155 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
34156
34157 * commands/default.h: New file.
34158 * commands/timeout.h: Likewise.
34159 * normal/context.c: Likewise.
34160
34161 * util/misc.c: Do not include sys/times.h.
34162 Include sys/time.h and grub/machine/time.h.
34163 (grub_get_rtc): Rewritten with gettimeofday.
34164
34165 * util/grub-emu.c (main): Call grub_default_init and
34166 grub_timeout_init before grub_normal_init, and call
34167 grub_timeout_fini and grub_default_fini after grub_main.
34168
34169 * util/console.c (grub_ncurses_checkkey): Return the read
34170 character or -1.
34171
34172 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
34173 timeouts.
34174
34175 * normal/main.c (read_config_file): Push MENU. If this fails,
34176 print an error and wait for a user input.
34177 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
34178 If a menu is empty or an error occurs, pop MENU.
34179 (grub_normal_execute): Pop and free MENU after grub_menu_run
34180 returns.
34181
34182 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
34183
34184 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
34185 include time.h.
34186 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
34187 without GRUB_UTIL.
34188 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
34189 time.h.
34190 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
34191 without GRUB_UTIL.
34192
34193 * include/grub/normal.h (struct grub_menu_list): New struct.
34194 (grub_menu_list_t): New type.
34195 (struct grub_context): New struct.
34196 (grub_context_t): New type.
34197 (grub_register_command): Got rid of EXPORT_FUNC.
34198 (grub_unregister_command): Likewise.
34199 (grub_context_get): New prototype.
34200 (grub_context_get_current_menu): Likewise.
34201 (grub_context_push_menu): Likewise.
34202 (grub_context_pop_menu): Likewise.
34203 [GRUB_UTIL] (grub_default_init): Likewise.
34204 [GRUB_UTIL] (grub_default_fini): Likewise.
34205 [GRUB_UTIL] (grub_timeout_init): Likewise.
34206 [GRUB_UTIL] (grub_timeout_fini): Likewise.
34207
34208 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
34209 commands/timeout.c and normal/context.c.
34210 (pkgdata_MODULES): Added default.mod and timeout.mod.
34211 (normal_mod_SOURCES): Added normal/context.c.
34212 (default_mod_SOURCES): New variable.
34213 (default_mod_CFLAGS): Likewise.
34214 (timeout_mod_SOURCES): Likewise.
34215 (timeout_mod_CFLAGS): Likewise.
34216 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
34217 conf/i386-pc.rmk.
34218 (pkgdata_MODULES): Added default.mod and timeout.mod.
34219 (normal_mod_SOURCES): Added normal/context.c.
34220 (default_mod_SOURCES): New variable.
34221 (default_mod_CFLAGS): Likewise.
34222 (timeout_mod_SOURCES): Likewise.
34223 (timeout_mod_CFLAGS): Likewise.
34224
34225 * Makefile.in (all-local): Added $(MKFILES).
34226
34227 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
34228
34229 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
34230 (grub_emu_SOURCES): Likewise.
34231 (pkgdata_MODULES): Add `sun.mod'.
34232 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
34233 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
34234 `partmap/sun.c'.
34235 (pkgdata_MODULES): Add `sun.mod'.
34236 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
34237 * include/grub/partition.h (grub_sun_partition_map_init): New
34238 prototype.
34239 (grub_sun_partition_map_fini): Likewise.
34240 * partmap/sun.c: New file.
34241 * util/grub-emu.c (main): Initialize and de-initialize the sun
34242 partitionmap support.
34243
34244 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
34245
34246 This implements an Emacs-like menu entry editor.
34247
34248 * normal/menu_entry.c: New file.
34249
34250 * util/console.c (grub_ncurses_putchar): Translate some Unicode
34251 characters to ASCII.
34252 (saved_char): New variable.
34253 (grub_ncurses_checkkey): Rewritten completely.
34254 (grub_ncurses_getkey): Likewise.
34255 (grub_ncurses_init): Call raw instead of cbreak.
34256
34257 * normal/menu.c (print_entry): Do not put a space.
34258 (init_page): Renamed to ...
34259 (grub_menu_init_page): ... this. All callers changed.
34260 (edit_menu_entry): Removed.
34261 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
34262
34263 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
34264
34265 * kern/misc.c (grub_vprintf): Call grub_refresh.
34266
34267 * normal/menu.c (DISP_LEFT): Renamed to ...
34268 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
34269 * normal/menu.c (DISP_UP): Renamed to ...
34270 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
34271 * normal/menu.c (DISP_RIGHT): Renamed to ...
34272 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
34273 * normal/menu.c (DISP_DOWN): Renamed to ...
34274 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
34275 * normal/menu.c (DISP_HLINE): Renamed to ...
34276 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
34277 * normal/menu.c (DISP_VLINE): Renamed to ...
34278 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
34279 * normal/menu.c (DISP_UL): Renamed to ...
34280 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
34281 * normal/menu.c (DISP_UR): Renamed to ...
34282 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
34283 * normal/menu.c (DISP_LL): Renamed to ...
34284 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
34285 * normal/menu.c (DISP_LR): Renamed to ...
34286 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
34287 * normal/menu.c (TERM_WIDTH): Renamed to ...
34288 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
34289 * normal/menu.c (TERM_HEIGHT): Renamed to ...
34290 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
34291 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
34292 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
34293 * normal/menu.c (TERM_MARGIN): Renamed to ...
34294 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
34295 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
34296 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
34297 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
34298 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
34299 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
34300 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
34301 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
34302 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
34303 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
34304 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
34305 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
34306 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
34307 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
34308 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
34309 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
34310 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
34311 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
34312 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
34313 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
34314 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
34315 All callers changed.
34316
34317 * include/grub/normal.h: New prototype.
34318
34319 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
34320 normal/menu_entry.c.
34321 (normal_mod_SOURCES): Likewise.
34322 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34323 (normal_mod_SOURCES): Likewise.
34324
34325 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
34326
34327 * include/grub/normal.h (grub_halt_init): New prototype.
34328 (grub_halt_fini): Likewise.
34329 (grub_reboot_init): Likewise.
34330 (grub_reboot_fini): Likewise.
34331
34332 * util/grub-emu.c: Include signal.h.
34333 (main_env): New global variable.
34334 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
34335 catch C-c.
34336 (grub_machine_fini): New function.
34337 (main): Call grub_halt_init and grub_reboot_init before
34338 grub_main, and grub_reboot_fini and grub_halt_fini after it.
34339 Call setjmp with MAIN_ENV to go back afterwards.
34340 Call grub_machine_fini right before return.
34341
34342 * include/grub/util/misc.h: Include setjmp.h.
34343 (main_env): New prototype.
34344
34345 * include/grub/kernel.h (grub_machine_fini): New prototype.
34346 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
34347 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
34348
34349 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
34350 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
34351 * term/i386/pc/console.c (grub_console_fini): Likewise.
34352
34353 * util/i386/pc/misc.c: New file.
34354
34355 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
34356 util/i386/pc/misc.c, commands/i386/pc/halt.c and
34357 commands/i386/pc/reboot.c.
34358
34359 2005-02-14 Guillem Jover <guillem@hadrons.org>
34360
34361 * include/grub/dl.h (grub_dl_check_header): New prototype.
34362 (grub_arch_dl_check_header): Change return type to grub_err_t,
34363 remove size parameter and export function. Update all callers.
34364 * kern/dl.c (grub_dl_check_header): New function.
34365 (grub_dl_load_core): Use `grub_dl_check_header' instead of
34366 `grub_arch_dl_check_header'. Check ELF type. Check if sections
34367 are inside the core.
34368 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
34369 independent ELF header checks.
34370 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
34371 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
34372 `grub_dl_check_header' instead of explicit checks. Check for the
34373 ELF type.
34374 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
34375 `grub_dl_check_header' instead of explicit checks. Remove arch
34376 specific ELF header checks.
34377
34378 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
34379 argument SIZE.
34380
34381 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
34382
34383 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
34384 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
34385
34386 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
34387
34388 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
34389 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
34390 (part_map_iterate): Clear `grub_errno' and return 0 if
34391 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
34392 * partmap/amiga.c (amiga_partition_map_iterate): Return
34393 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
34394 * partmap/apple.c (apple_partition_map_iterate): Likewise.
34395
34396 2005-02-01 Guillem Jover <guillem@hadrons.org>
34397
34398 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
34399 help info.
34400
34401 2005-01-31 Marco Gerards <metgerards@student.han.nl>
34402
34403 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
34404 Removed prototype.
34405 (grub_rescue_cmd_linux): New prototype.
34406 (grub_rescue_cmd_initrd): Likewise.
34407 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
34408 `bi_rec'.
34409 (grub_linux_release_mem): Release the memory for the initrd.
34410 (grub_load_linux): Renamed from this...
34411 (grub_rescue_cmd_linux): ...To this. Changed all callers.
34412 Changed `entry' not to be static. Loop over memory regions to
34413 find another one when the default fails.
34414 (grub_rescue_cmd_initrd): New function.
34415 (grub_linux_init): Remove function.
34416 (grub_linux_fini): Likewise.
34417 (GRUB_MOD_INIT): Register `initrd'.
34418 (GRUB_MOD_FINI): Unregister `initrd'.
34419 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
34420 Function removed.
34421 (grub_linux_normal_fini): Likewise.
34422 (GRUB_MOD_INIT): Register `initrd'.
34423 (GRUB_MOD_FINI): Unregister `initrd'.
34424
34425 2005-01-31 Marco Gerards <metgerards@student.han.nl>
34426
34427 * commands/help.c: New file.
34428 * normal/arg.c (show_help): Renamed to...
34429 (grub_arg_show_help): ... this.
34430 * commands/i386/pc/halt.c: New file.
34431 * commands/i386/pc/reboot.c: Likewise.
34432 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
34433 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
34434 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
34435 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
34436 variables.
34437 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
34438 `commands/help.c'.
34439 (pkgdata_MODULES): Add `help.mod'.
34440 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
34441 * grub/i386/pc/init.h (grub_reboot): New prototype.
34442 (grub_halt): Likewise.
34443 * include/grub/normal.h (grub_arg_show_help): New prototype.
34444 (grub_help_init): Likewise.
34445 (grub_help_fini): Likewise.
34446 * util/grub-emu.c (main): Initialize and deinitialize the help
34447 command.
34448
34449 * normal/cmdline.c (grub_cmdline_get): Doc fix.
34450
34451 * normal/command.c (grub_command_init): Fixed the description of
34452 the `set' and `unset' commands.
34453
34454 2005-01-31 Marco Gerards <metgerards@student.han.nl>
34455
34456 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
34457 function.
34458 * commands/ieee1275/halt.c: New file.
34459 * commands/ieee1275/reboot.c: Likewise.
34460 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
34461 `__attribute__ ((unused))'. Some GCS related fixed.
34462 (grub_suspend_init) [GRUB_UTIL]: Function removed.
34463 (grub_suspend_fini): Likewise.
34464 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
34465 and `halt.mod'.
34466 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
34467 (halt_mod_CFLAGS): New variables.
34468 * include/grub/powerpc/ieee1275/ieee1275.h
34469 (grub_ieee1275_interpret): New prototype.
34470
34471 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
34472
34473 * include/grub/misc.h (memmove): New prototype.
34474 (memcpy): Likewise.
34475
34476 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
34477
34478 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
34479 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
34480
34481 2005-01-22 Marco Gerards <metgerards@student.han.nl>
34482
34483 * kern/misc.c (grub_strndup): Function rewritten.
34484
34485 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
34486
34487 * normal/menu.c (TERM_WIDTH): Macro redefined.
34488 (TERM_TOP_BORDER_Y): Likewise.
34489 (draw_border): Replaced while-loop by a for-loop. Make the number
34490 of lines consistent with the number of lines displayed in
34491 print_entries. Added a margin below the rectangle.
34492 (print_entry): Make the entry fit in the rectangle.
34493 (print_entries): Display the scroll arrows next to the right
34494 border.
34495
34496 2005-01-21 Marco Gerards <metgerards@student.han.nl>
34497
34498 * fs/minix.c (grub_minix_find_file): Reserve more space for
34499 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
34500 `grub_strncpy' to copy `path' into it.
34501
34502 2005-01-21 Marco Gerards <metgerards@student.han.nl>
34503
34504 Add the loopback device, a device via which files can be accessed
34505 as devices.
34506
34507 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
34508 (pkgdata_MODULES): Add loopback.mod.
34509 (loopback_mod_SOURCES): New variable.
34510 (loopback_mod_CFLAGS): Likewise.
34511 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
34512 `disk/loopback.c'.
34513 (pkgdata_MODULES): Add loopback.mod.
34514 (loopback_mod_SOURCES): New variable.
34515 (loopback_mod_CFLAGS): Likewise.
34516 * disk/loopback.c: new file.
34517 * include/grub/normal.h (grub_loop_init): New prototype.
34518 (grub_loop_fini): New prototype.
34519 * util/grub-emu.c (main): Initialize and de-initialize loopback
34520 support.
34521 * include/grub/disk.h (grub_disk_dev_id): Add
34522 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
34523
34524 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
34525
34526 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
34527 function.
34528 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
34529 (suspend_mod_SOURCES): New variable.
34530 (suspend_mod_CFLAGS): Likewise.
34531 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
34532 New prototype.
34533 * commands/ieee1275/suspend.c: New file.
34534
34535 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
34536
34537 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
34538 ((unused))' to `__attribute__ ((used))'.
34539 (GRUB_MOD_FINI): Likewise.
34540 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
34541 * genmk.rb (PModule): Assign space to common symbols when linking
34542 modules.
34543
34544 2005-01-20 Marco Gerards <metgerards@student.han.nl>
34545
34546 * include/grub/mm.h (grub_mm_init_region): Change the type of the
34547 `unsigned' arguments to `grub_size_t'.
34548 (grub_malloc): Likewise.
34549 (grub_realloc): Likewise.
34550 (grub_memalign): Likewise.
34551 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
34552 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
34553 * util/misc.c (grub_malloc): Likewise.
34554 (grub_realloc): Likewise.
34555 * kern/mm.c (get_header_from_pointer): Change the casts to
34556 `unsigned' into a cast to `grub_size_t'.
34557
34558 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
34559 point to `currnode' when `currnode' is changed.
34560
34561 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
34562 Schottelius <nico-linux@schottelius.org>.
34563
34564 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
34565
34566 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
34567 (note_path): Remove variable.
34568 (GRUB_IEEE1275_NOTE_NAME): New macro.
34569 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
34570 (grub_ieee1275_note_hdr): New structure.
34571 (grub_ieee1275_note_desc): Likewise.
34572 (grub_ieee1275_note): Likewise.
34573 (load_note): Remove `dir' argument. All callers updated. Remove
34574 `note_img' and `path'. Do not load a file from `note_path'.
34575 Initialize a struct grub_ieee1275_note and write that to `out'.
34576 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
34577
34578 2005-01-05 Marco Gerards <metgerards@student.han.nl>
34579
34580 * util/misc.c (grub_util_read_image): Revert last change. It
34581 called `grub_util_read_at', which seeks from the beginning of the
34582 file.
34583
34584 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
34585
34586 * TODO: Add note about endianness in grub-mkimage.
34587 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
34588 section.
34589 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
34590 (grub_mkimage_SOURCES): New target.
34591 * include/grub/kernel.h (grub_start_addr): Remove variable.
34592 (grub_end_addr): Likewise.
34593 (grub_total_module_size): Likewise.
34594 (grub_kernel_image_size): Likewise.
34595 (GRUB_MODULE_MAGIC): New constant.
34596 (grub_module_info): New structure.
34597 (grub_arch_modules_addr): New prototype.
34598 (grub_get_end_addr): Remove prototype.
34599 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
34600 * include/grub/powerpc/ieee1275/kernel.h: New file.
34601 * include/grub/util/misc.h (grub_util_get_fp_size): New
34602 prototype.
34603 (grub_util_read_at): Likewise.
34604 (grub_util_write_image_at): Likewise.
34605 * kern/main.c (grub_get_end_addr): Remove function.
34606 (grub_load_modules): Call grub_arch_modules_addr instead of using
34607 grub_end_addr. Look for a grub_module_info struct in memory. Use
34608 the grub_module_info fields instead of calling grub_get_end_addr
34609 as loop conditions. Move grub_add_unused_region code here.
34610 (grub_add_unused_region): Remove function.
34611 * kern/i386/pc/init.c: Include grub/cache.h.
34612 (grub_machine_init): Remove call to grub_get_end_addr. Remove
34613 one call to add_mem_region.
34614 (grub_arch_modules_addr): New function.
34615 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
34616 (grub_total_module_size): Likewise.
34617 Include grub/machine/kernel.h.
34618 (grub_arch_modules_addr): New function.
34619 * util/grub-emu.c (grub_end_addr): Remove variable.
34620 (grub_total_module_size): Likewise.
34621 (grub_arch_modules_addr): New function.
34622 * util/misc.c: Include unistd.h.
34623 (grub_util_get_fp_size): New function.
34624 (grub_util_read_at): Likewise.
34625 (grub_util_write_image_at): Likewise.
34626 (grub_util_read_image): Call grub_util_read_at.
34627 (grub_util_write_image): Call grub_util_write_image_at.
34628 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
34629 additional memory in kernel_img for a struct grub_module_info.
34630 Fill in that grub_module_info.
34631 * util/powerpc/ieee1275/grub-mkimage.c: New file.
34632
34633 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
34634
34635 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
34636 New function.
34637 * include/grub/powerpc/ieee1275/ieee1275.h
34638 (grub_ieee1275_milliseconds): New prototype.
34639 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
34640 Change to 1000.
34641 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
34642 grub_ieee1275_milliseconds.
34643
34644 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
34645
34646 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
34647 variable.
34648 (find_options): New function.
34649 (cmain): Call find_options.
34650 * include/grub/powerpc/ieee1275/ieee1275.h
34651 (grub_ieee1275_realmode): New extern variable.
34652 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
34653 grub_map if grub_ieee1275_realmode is false.
34654
34655 2004-12-29 Marco Gerards <metgerards@student.han.nl>
34656
34657 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
34658 lines are inserted and make it work like readline. Reported by
34659 Vincent Pelletier <subdino2004@yahoo.fr>.
34660
34661 2004-12-28 Marco Gerards <metgerards@student.han.nl>
34662
34663 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
34664
34665 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
34666 `kern/powerpc/cache.S'.
34667
34668 2004-12-27 Marco Gerards <metgerards@student.han.nl>
34669
34670 * genmk.rb: Handle the `Program' class in the main loop. Written
34671 by Johan Rydberg <jrydberg@gnu.org>.
34672 (Program): New class.
34673 (programs): New variable.
34674 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
34675 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
34676 instead of "grub/kernel.h". Include <grub/machine/init.h>.
34677 (help_arch): Function removed.
34678 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
34679 `powerpc/libgcc.h' and `loader.h'.
34680 (pkgdata_PROGRAMS): New variable.
34681 (sbin_UTILITIES): Variable removed.
34682 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
34683 (grubof_SOURCES): Variable re-defined so it only includes the
34684 core functionality.
34685 (grubof_CFLAGS): Remove `-DGRUBOF'.
34686 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
34687 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
34688 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
34689 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
34690 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
34691 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
34692 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
34693 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
34694 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
34695 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
34696 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
34697 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
34698 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
34699 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
34700 (pc_mod_CFLAGS): New variables.
34701 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
34702 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
34703 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
34704 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
34705 Moved from here...
34706 * include/grub/i386/pc/init.h (grub_os_area_addr)
34707 (rub_os_area_size): ... to here.
34708 * include/grub/powerpc/ieee1275/ieee1275.h
34709 (grub_ieee1275_entry_fn): Export symbol.
34710 * include/grub/powerpc/ieee1275/init.h: New file.
34711 * include/grub/powerpc/libgcc.h: Likewise.
34712 * include/grub/cache.h: Likewise.
34713 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
34714 <hollis@penguinppc.org>.
34715 * kern/dl.c: Include <grub/cache.h>.
34716 (grub_dl_flush_cache): New function.
34717 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
34718 for this module.
34719 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
34720 (grub_console_init): Removed prototypes.
34721 (grub_machine_init): Don't initialize the modules anymore.
34722 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
34723 static.
34724 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
34725 Macro undef removed.
34726 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
34727 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
34728 relocation `R_PPC_REL32'. Return an error when the relocation is
34729 unknown.
34730 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
34731 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
34732 * util/misc.c (grub_arch_sync_caches): Likewise.
34733
34734 2004-12-19 Marco Gerards <metgerards@student.han.nl>
34735
34736 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
34737 `symlist.c', add `grubof_symlist.c'.
34738 (symlist.c): Variable removed.
34739 (grubof_HEADERS): Variable added.
34740 (grubof_symlist.c): New target.
34741 (kernel_syms.lst): Use `grubof_HEADERS' instead of
34742 `kernel_img_HEADERS'.
34743 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
34744 * kern/powerpc/dl.c: New file.
34745 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
34746 Function removed.
34747 (grub_arch_dl_relocate_symbols): Likewise.
34748 (grub_register_exported_symbols): Likewise.
34749
34750 2004-12-13 Marco Gerards <metgerards@student.han.nl>
34751
34752 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
34753 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
34754 to fail instead. Reported by Vincent Pelletier
34755 <subdino2004@yahoo.fr>.
34756
34757 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
34758 it is not allocated. Reported by Vincent Pelletier
34759 <subdino2004@yahoo.fr>.
34760
34761 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
34762 output so the output looks better.
34763
34764 2004-12-04 Marco Gerards <metgerards@student.han.nl>
34765
34766 Modulize the partition map support and add support for the amiga
34767 partition map.
34768
34769 * commands/ls.c: Include <grub/partition.h> instead of
34770 <grub/machine/partition.h>.
34771 * kern/disk.c: Likewise.
34772 * kern/rescue.c: Likewise.
34773 * loader/i386/pc/chainloader.c: Likewise.
34774 * normal/cmdline.c: Likewise.
34775 * kern/powerpc/ieee1275/init.c: Likewise.
34776 (grub_machine_init): Call `grub_pc_partition_map_init',
34777 `grub_amiga_partition_map_init' and
34778 `grub_apple_partition_map_init'.
34779 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
34780 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
34781 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
34782 `partition.h' and `pc_partition.h'.
34783 (grub_setup_SOURCES): Remove
34784 `disk/i386/pc/partition.c'. Add `kern/partition.c',
34785 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
34786 (grub_emu_SOURCES): Likewise.
34787 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
34788 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
34789 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
34790 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
34791 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
34792 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
34793 (grubof_SOURCES): Likewise.
34794 * disk/i386/pc/partition.c: File removed.
34795 * disk/powerpc/ieee1275/partition.c: Likewise.
34796 * include/grub/powerpc/ieee1275/partition.h: Likewise.
34797 * include/grub/i386/pc/partition.h: Likewise.
34798 * kern/partition.c: New file.
34799 * partmap/amiga.c: Likewise.
34800 * partmap/apple.c: Likewise.
34801 * partmap/pc.c: Likewise.
34802 * include/grub/partition.h: Likewise..
34803 * include/grub/pc_partition.h: Likewise.
34804 * util/grub-emu.c: Include <grub/partition.h> instead of
34805 <grub/machine/partition.h>.
34806 (main): Call `grub_pc_partition_map_init',
34807 `grub_amiga_partition_map_init' and
34808 `grub_apple_partition_map_init' and deinitialize afterwards.
34809 * util/i386/pc/biosdisk.c: Include `#include
34810 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
34811 `<grub/machine/partition.h>'.
34812 * util/i386/pc/grub-setup.c: Likewise.
34813 * util/i386/pc/biosdisk.c: Likewise.
34814 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
34815 partition information in case of a PC partition.
34816 * util/i386/pc/grub-setup.c: Include `#include
34817 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
34818 `<grub/machine/partition.h>'.
34819 (setup): Only access the PC specific partition information in case
34820 of a PC partition.
34821
34822 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
34823
34824 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
34825 (grub_longjmp): Likewise.
34826 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
34827 20.
34828 * normal/powerpc/setjmp.S: New file.
34829 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
34830 `normal/powerpc/setjmp.S'.
34831 (grubof_CFLAGS): Add `-DGRUBOF'.
34832 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
34833 [GRUB_UTIL && !GRUBOF].
34834
34835 2004-11-16 Marco Gerards <metgerards@student.han.nl>
34836
34837 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
34838 property named `name'. Correctly handle the error returned by
34839 `grub_ieee1275_finddevice' if a device can not be opened.
34840
34841 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
34842
34843 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
34844 `actual' for negativity.
34845 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
34846 kern/fshelp.c.
34847
34848 2004-11-01 Marco Gerards <metgerards@student.han.nl>
34849
34850 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
34851 (PAGE_OFFSET): New macro.
34852 (CRTC_ADDR_PORT): Likewise.
34853 (CRTC_DATA_PORT): Likewise.
34854 (START_ADDR_HIGH_REGISTER): Likewise.
34855 (START_ADDR_LOW_REGISTER): Likewise.
34856 (GRAPHICS_ADDR_PORT): Likewise.
34857 (GRAPHICS_DATA_PORT): Likewise.
34858 (READ_MAP_REGISTER): Likewise.
34859 (INPUT_STATUS1_REGISTER): Likewise.
34860 (INPUT_STATUS1_VERTR_BIT): Likewise.
34861 (page): New variable.
34862 (wait_vretrace): New function.
34863 (set_read_map): Likewise.
34864 (set_start_address): Likewise.
34865 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
34866 the right page.
34867 (check_vga_mem): Take the page into account.
34868 (write_char): Likewise.
34869 (write_cursor): Likewise.
34870 (scroll_up): Likewise. Copy the page to the page that is not
34871 shown and switch between both pages.
34872 (grub_vga_putchar): Fix off by one error.
34873 (grub_vga_cls): Wait for the vertical retrace. Take the page into
34874 account.
34875
34876 2004-11-01 Marco Gerards <metgerards@student.han.nl>
34877
34878 Add support for iso9660 (including rockridge).
34879
34880 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
34881 (iso9660_mod_SOURCES): New variable.
34882 (iso9660_mod_CFLAGS): Likewise.
34883 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
34884 * include/grub/fs.h (grub_iso9660_init): New prototype.
34885 * util/grub-emu.c (main): Call `grub_iso9660_init'.
34886 * fs/iso9660.c: New file.
34887
34888 * include/grub/misc.h (grub_strncat): New prototype.
34889 * kern/misc.c (grub_strncat): New function.
34890
34891 * fs/hfs.c (grub_hfs_mount): Translate the error
34892 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
34893 * fs/jfs.c (grub_jfs_mount): Likewise.
34894 * fs/ufs.c (grub_ufs_mount): Likewise.
34895
34896 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
34897
34898 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
34899 which initialized BAT registers.
34900 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
34901 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
34902 Move from here...
34903 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
34904 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
34905 ... to here.
34906 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
34907 (grub_mapclaim): Likewise.
34908 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
34909 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
34910 hand.
34911
34912 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
34913
34914 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
34915 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
34916 -ffreestanding and -msoft-float.
34917
34918 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
34919
34920 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
34921 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
34922 set in grub_ieee1275_flags.
34923
34924 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
34925
34926 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
34927 prototype.
34928 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
34929 grub_console_init first.
34930 Change the memory range used for grub_ieee1275_claim and
34931 grub_mm_init_region.
34932 Print an error message if the claim fails.
34933 Include <grub/misc.h>.
34934
34935 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
34936
34937 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
34938 Call grub_children_iterate for device nodes of type `scsi',
34939 `ide', or `ata'.
34940 (grub_ofdisk_open): Remove manual device alias resolution.
34941 Fix memory leak when device cannot be opened.
34942 * include/grub/powerpc/ieee1275/ieee1275.h
34943 (grub_children_iterate): New prototype.
34944 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
34945 New function.
34946 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
34947 Return -1 if args.size was -1.
34948
34949 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
34950
34951 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
34952 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
34953 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
34954 Open Firmware's memory for it; claim memory from _start to _end.
34955 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
34956 (_end): New extern.
34957 (_start): Zero BSS from __bss_start to _end.
34958 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
34959 New extern.
34960 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
34961
34962 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
34963
34964 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
34965 -1 if args.base was -1.
34966
34967 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
34968
34969 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
34970 escape sequence instead of a literal ^L. Also call
34971 grub_ofconsole_gotoxy.
34972
34973 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
34974
34975 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
34976 void * arguments to grub_addr_t. All callers updated. Also make
34977 the `result' argument optional.
34978 (grub_ieee1275_release): change void * arguments to grub_addr_t.
34979 All callers updated.
34980
34981 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
34982
34983 * commands/ls.c (grub_ls_list_files): Use the string following the
34984 initial ')', if present, as the filesystem path.
34985 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
34986
34987 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
34988
34989 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
34990
34991 Make the source code of the menu interface more readable.
34992
34993 * normal/menu.c: Include grub/mm.h.
34994 (TERM_WIDTH): New macro.
34995 (TERM_HEIGHT): Likewise.
34996 (TERM_INFO_HEIGHT): Likewise.
34997 (TERM_MARGIN): Likewise.
34998 (TERM_SCROLL_WIDTH): Likewise.
34999 (TERM_TOP_BORDER_Y): Likewise.
35000 (TERM_LEFT_BORDER_X): Likewise.
35001 (TERM_BORDER_WIDTH): Likewise.
35002 (TERM_MESSAGE_HEIGHT): Likewise.
35003 (TERM_BORDER_HEIGHT): Likewise.
35004 (TERM_NUM_ENTRIES): Likewise.
35005 (TERM_FIRST_ENTRY_Y): Likewise.
35006 (TERM_ENTRY_WIDTH): Likewise.
35007 (TERM_CURSOR_X): Likewise.
35008 (draw_border): Use macros instead of magic numbers.
35009 (print_entry): Likewise.
35010 (print_entries): Likewise.
35011 (run_menu): Likewise. Also, handle the key 'e'.
35012 (run_menu_entry): Ignore empty command lines.
35013 (print_message): Added a new argument EDIT. If EDIT is true,
35014 print a different message.
35015 (init_page): Likewise.
35016 (edit_menu_entry): New function. Not implemented yet.
35017
35018 2004-09-17 Marco Gerards <metgerards@student.han.nl>
35019
35020 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
35021 can be loaded from normal mode.
35022
35023 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
35024 `multiboot.mod'.
35025 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
35026 (multiboot_mod_CFLAGS): New variables.
35027 * loader/i386/pc/linux_normal.c: New file.
35028 * loader/i386/pc/multiboot_normal.c: Likewise.
35029
35030 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
35031 attribute `unused'.
35032
35033 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
35034 `fdiro' to read the mode information from instead of `diro'.
35035
35036 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
35037 looking up a symlink.
35038
35039 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
35040 macro.
35041 * normal/command.c (grub_command_execute): Don't parse the
35042 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
35043 flags of the command.
35044
35045 * normal/menu.c (grub_menu_run): Fix typo.
35046
35047 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
35048
35049 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
35050
35051 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
35052 `y + 1' instead of `y - 1'.
35053
35054 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
35055
35056 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
35057
35058 From Hollis Blanchard <hollis@penguinppc.org>:
35059 * kern/misc.c (memmove): New alias for grub_memmove.
35060 (memcmp): New alias for grub_memcmp.
35061 (memset): New alias for grub_memset.
35062 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
35063 Change "int handle" to "grub_ieee1275_phandle_t handle".
35064 * include/grub/powerpc/ieee1275/ieee1275.h
35065 (grub_ieee1275_get_property): Likewise.
35066
35067 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
35068
35069 Added normal mode command `chainloader' as module chain.mod, which
35070 depends on normal.mod and _chain.mod.
35071
35072 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
35073 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
35074 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
35075 Deleted prototype.
35076 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
35077 but arguments parsing moved to ...
35078 (grub_chainloader_cmd): ... here. New function.
35079 * include/grub/i386/pc/chainloader.h: New file.
35080 * loader/i386/pc/chainloader_normal.c: Likewise.
35081
35082 2004-09-11 Marco Gerards <metgerards@student.han.nl>
35083
35084 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
35085 (grub_mkimage_LDFLAGS): Likewise.
35086 (grub_emu_SOURCES): Likewise.
35087 (kernel_img_HEADERS): Added fshelp.h.
35088 * fs/ext2.c: Include <grub/fshelp.h>.
35089 (FILETYPE_REG): New macro.
35090 (FILETYPE_INO_REG): Likewise.
35091 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
35092 Changed all users.
35093 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
35094 all users.
35095 (grub_fshelp_node): New struct.
35096 (grub_ext2_data): Added member `diropen'. Changed member `inode'
35097 to a pointer.
35098 (grub_ext2_get_file_block): Removed function.
35099 (grub_ext2_read_block): New function.
35100 (grub_ext2_read_file): Replaced parameter `data' by `node'.
35101 This function was written.
35102 (grub_ext2_mount): Read the root inode. Create a diropen struct.
35103 (grub_ext2_find_file): Removed function.
35104 (grub_ext2_read_symlink): New function.
35105 (grub_ext2_iterate_dir): Likewise.
35106 (grub_ext2_open): Rewritten.
35107 (grub_ext2_dir): Rewritten.
35108 * include/grub/fshelp.h: New file.
35109 * fs/fshelp.c: Likewise.
35110
35111 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
35112
35113 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
35114 (print_message): Add a missing newline.
35115 (run_menu): Added timeout support.
35116 (run_menu_entry): New local function.
35117 (grub_menu_run): Added support for booting.
35118
35119 * kern/loader.c (grub_loader_is_loaded): New function.
35120
35121 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
35122 (grub_get_rtc): Exported.
35123
35124 * include/grub/i386/pc/time.h: Include grub/symbol.h.
35125 (grub_get_rtc): Exported.
35126
35127 * include/grub/normal.h (struct grub_command_list): Remove
35128 constant from the member `command'.
35129
35130 * include/grub/loader.h (grub_loader_is_loaded): Declared.
35131
35132 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
35133
35134 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
35135
35136 2004-08-28 Marco Gerards <metgerards@student.han.nl>
35137
35138 Add support for the JFS filesystem.
35139
35140 * fs/jfs.c: New file.
35141 * include/grub/fs.h (grub_jfs_init): New prototype.
35142 (grub_jfs_fini): New prototype.
35143 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
35144 (grub_emu_SOURCES): Likewise.
35145 (pkgdata_MODULES): Add jfs.mod.
35146 (jfs_mod_SOURCES): New variable.
35147 (jfs_mod_CFLAGS): Likewise.
35148 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
35149 (grubof_SOURCES): Likewise.
35150 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
35151
35152 * fs/fat.c (grub_fat_find_dir): Convert the filename little
35153 endian to the host endian.
35154 (grub_fat_utf16_to_utf8): Move function from there...
35155 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
35156 the endianness of the source string anymore.
35157 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
35158
35159 2004-08-24 Marco Gerards <metgerards@student.han.nl>
35160
35161 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
35162 (grub_boot_fini) [GRUB_UTIL]: Likewise.
35163 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
35164 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
35165
35166 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
35167 (grub_hfs_iterate_dir): Make the function static. Add prototypes
35168 for `node_found' and `it_dir'.
35169 (grub_hfs_dir): Add prototype for `dir_hook'.
35170
35171 * fs/minix.c (grub_minix_get_file_block): Add prototype for
35172 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
35173 and `indir32' to silence a gcc warning.
35174
35175 * include/grub/fs.h (grub_hfs_init): New prototype.
35176 (grub_hfs_fini): Likewise.
35177
35178
35179 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
35180
35181 Each disk device has its own id now. This is useful to make use
35182 of multiple disk devices.
35183
35184 * include/grub/disk.h (grub_disk_dev_id): New enum.
35185 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
35186 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
35187
35188 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
35189 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
35190
35191 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
35192 GRUB_DISK_DEVICE_OFDISK_ID as an id.
35193
35194 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
35195 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
35196
35197 * include/grub/disk.h (struct grub_disk_dev): Added a new member
35198 "id" which is used by the cache manager.
35199
35200 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
35201 of just "GRUB".
35202
35203 2004-08-18 Marco Gerards <metgerards@student.han.nl>
35204
35205 * fs/hfs.c: New file.
35206 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
35207 (grub_emu_SOURCES): Likewise.
35208 (pkgdata_MODULES): Add hfs.mod.
35209 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
35210 (grubof_SOURCES): Likewise.
35211 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
35212
35213 * include/grub/misc.h (grub_strncasecmp): Add prototype.
35214 * kern/misc.c (grub_strncasecmp): Add function.
35215
35216 2004-08-14 Marco Gerards <metgerards@student.han.nl>
35217
35218 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
35219 with parentheses.
35220
35221 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
35222 (grub_ext2_dir): In case the directory entry type is unknown, read
35223 it from the inode.
35224
35225 2004-08-02 Peter Bruin <pjbruin@dds.nl>
35226
35227 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
35228 grub_load_linux instead of grub_rescue_cmd_linux as second
35229 argument of grub_rescue_register_command.
35230
35231 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
35232
35233 2004-07-27 Marco Gerards <metgerards@student.han.nl>
35234
35235 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
35236 function.
35237 * commands/boot.c: Remove the check for `GRUB_UTIL'.
35238 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
35239 `loader/powerpc/ieee1275/linux.c',
35240 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
35241 * include/grub/powerpc/ieee1275/ieee1275.h
35242 (grub_ieee1275_release): New prototype.
35243 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
35244 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
35245 normal, boot, linux and linux_normal.
35246 * loader/powerpc/ieee1275/linux.c: New file.
35247 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
35248
35249 2004-07-12 Marco Gerards <metgerards@student.han.nl>
35250
35251 * normal/arg.c (grub_arg_parse): Correct error handling after
35252 reallocating the argumentlist (check if `argl' is not null instead
35253 of checking if `args' is not null).
35254 * kern/mm.c (grub_realloc): Return the same pointer when using the
35255 same region, instead of returning the header address.
35256
35257 2004-07-11 Marco Gerards <metgerards@student.han.nl>
35258
35259 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
35260 one block instead of two when looking for the initial partition.
35261 (grub_partition_probe): Initialize the local variable `p' with 0.
35262 Use base 10 for the grub_strtoul call.
35263 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
35264 need for one local variable.
35265 (grub_strtoul): Don't add the new value to `num', instead of that
35266 just assign it.
35267
35268 2004-07-11 Marco Gerards <metgerards@student.han.nl>
35269
35270 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
35271 (pxeboot_img_SOURCES): New variable.
35272 (pxeboot_img_ASFLAGS): Likewise.
35273 (pxeboot_img_LDFLAGS): Likewise.
35274 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
35275 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
35276 <lode_leroy@hotmail.com>.
35277
35278 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
35279
35280 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
35281 there was no input.
35282
35283 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
35284
35285 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
35286 the history buffer logic.
35287
35288 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
35289
35290 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
35291 (FILETYPE_INO_SYMLINK): New macros.
35292 (grub_ext2_find_file): Check if the node is a directory using the
35293 inode stat information instead of using the filetype in the
35294 dirent. Exclude the first character of an absolute symlink.
35295 (grub_ext2_dir): Mask out the filetype part of the mode member of
35296 the inode.
35297
35298 2004-05-24 Marco Gerards <metgerards@student.han.nl>
35299
35300 Add support for UFS version 1 and 2. Add support for the minix
35301 filesystem version 1 and 2, both the variants with 14 and 30 long
35302 filenames.
35303
35304 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
35305 fs/minix.c.
35306 (grub_emu_SOURCES): Likewise.
35307 (pkgdata_MODULES): Add ufs.mod and minix.mod.
35308 (ufs_mod_SOURCES): New variable.
35309 (ufs_mod_CFLAGS): Likewise.
35310 (minix_mod_SOURCES): Likewise.
35311 (minix_mod_CFLAGS): Likewise.
35312 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
35313 fs/minix.c.
35314 (grubof_SOURCES): Likewise.
35315 * fs/ufs.c: New file.
35316 * fs/minix.c: New file.
35317 * include/grub/fs.h (grub_ufs_init): New prototype.
35318 (grub_ufs_fini): Likewise.
35319 (grub_minix_init): Likewise.
35320 (grub_minix_fini): Likewise.
35321 * util/grub-emu.c (main): Initialize and deinitialize UFS and
35322 minix fs.
35323
35324 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
35325
35326 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
35327 commands/ls.c, commands/terminal.c, commands/boot.c,
35328 commands/cmp.c and commands/cat.c.
35329 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
35330
35331 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
35332 "env.h"
35333
35334 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
35335
35336 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
35337 and grub_, respectively. Because the conversion is trivial and
35338 mechanical, I omit the details here. Please refer to the CVS
35339 if you need more information.
35340
35341 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
35342
35343 * include/pupa: Renamed to ...
35344 * include/grub: ... this.
35345 * util/i386/pc/pupa-mkimage.c: Renamed to ...
35346 * util/i386/pc/grub-mkimage.c: ... this.
35347 * util/i386/pc/pupa-setup.c: Renamed to ...
35348 * util/i386/pc/grub-setup.c: ... this.
35349 * util/pupa-emu.c: Renamed to ...
35350 * util/grub-emu.c: ... this.
35351
35352 2004-03-29 Marco Gerards <metgerards@student.han.nl>
35353
35354 Add support for the newworld apple macintosh (PPC). This has been
35355 tested on the powerbook 2000 only. It only adds support for
35356 generic ieee1275 functions, console and disk support. This should
35357 be easy to port to other architectures with support for Open
35358 Firmware.
35359
35360 * configure.ac: Accept the powerpc as host_cpu. In the case of
35361 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
35362 specific tests are only executed while building for the i386.
35363 Inverse test for crosscompile.
35364 * genmk.rb (Utility): Allow assembler files.
35365 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
35366 * conf/powerpc-ieee1275.rmk: New file.
35367 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
35368 * disk/powerpc/ieee1275/partition.c: Likewise.
35369 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
35370 * include/pupa/powerpc/ieee1275/console.h: Likewise.
35371 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
35372 * include/pupa/powerpc/ieee1275/time.h: Likewise.
35373 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
35374 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
35375 * include/pupa/powerpc/ieee1275/loader.h
35376 * include/pupa/powerpc/setjmp.h: Likewise.
35377 * include/pupa/powerpc/types.h: Likewise.
35378 * kern/powerpc/ieee1275/init.c: Likewise.
35379 * kern/powerpc/ieee1275/openfw.c: Likewise.
35380 * term/powerpc/ieee1275/ofconsole.c: Likewise.
35381
35382 These files were written by Johan Rydberg
35383 (jrydberg@night.trouble.net) and I only modified them slightly.
35384
35385 * boot/powerpc/ieee1275/cmain.c: New file.
35386 * boot/powerpc/ieee1275/crt0.S: Likewise.
35387 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
35388 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
35389
35390 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
35391
35392 * Makefile.in: Update copyright.
35393 * genmodsrc.sh: Likewise.
35394 * gensymlist.sh: Likewise.
35395 * term/i386/pc/vga.c: Indent correctly.
35396
35397 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
35398 bugreporting address.
35399 * util/i386/pc/pupa-setup.c (usage): Likewise,
35400 (main): Call pupa_ext2_init and pupa_ext2_fini.
35401
35402 * fs/fat.c (log2): Renamed to ...
35403 (fat_log2): ... this.
35404 All callers changed.
35405 * kern/misc.c (memcpy): Alias to pupa_memmove.
35406 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
35407 lvalue cast.
35408 * util/console.c (pupa_ncurses_fini): Return 0.
35409
35410 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
35411 Move fail label here.
35412 [__GNU__]: Don't warn when using stat.
35413 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
35414 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
35415 long int. Use strtol instead of strtoul.
35416
35417 2004-03-14 Marco Gerards <metgerards@student.han.nl>
35418
35419 * commands/boot.c: New file.
35420 * commands/cat.c: Likewise.
35421 * commands/cmp.c: Likewise.
35422 * commands/ls.c: Likewise.
35423 * commands/terminal.c: Likewise.
35424 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
35425 (pupa_register_command): Changed interface to match the new
35426 argument parser.
35427 (pupa_command_execute): Changed (almost rewritten) so it uses
35428 pupa_split_command. Added support for setting variables using the
35429 syntax `foo=bar'.
35430 (rescue_command): Changed to work with the new argument parser.
35431 (terminal_command): Moved from here to commands/terminal.c.
35432 (set_command): New function.
35433 (unset_command): New function.
35434 (insmod_command): New function.
35435 (rmmod_command): New function.
35436 (lsmod_command): New function.
35437 (pupa_command_init): Don't initialize the command terminal
35438 anymore. Initialize the commands set, unset, insmod, rmmod and
35439 lsmod.
35440 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
35441 (kernel_img_HEADERS): Add arg.h and env.h.
35442 (pupa_mkimage_LDFLAGS): Add kern/env.c.
35443 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
35444 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
35445 normal/arg.c.
35446 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
35447 terminal.mod.
35448 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
35449 (boot_mod_SOURCES): New variable.
35450 (terminal_mod_SOURCES): Likewise.
35451 (ls_mod_SOURCES): Likewise.
35452 (cmp_mod_SOURCES): Likewise.
35453 (cat_mod_SOURCES): Likewise.
35454
35455 * normal/arg.c: New file.
35456 * kern/env.c: Likewise.
35457 * include/pupa/arg.h: Likewise.
35458 * include/pupa/env.h: Likewise.
35459 * font/manager.c (font_command): Changed to match argument parsing
35460 interface changes.
35461 (PUPA_MOD_INIT): Likewise.
35462 * hello/hello.c (pupa_cmd_hello): Likewise.
35463 (PUPA_MOD_INIT): Likewise.
35464 * include/pupa/disk.h: Include <pupa/device.h>.
35465 (pupa_print_partinfo): New prototype.
35466 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
35467 (pupa_dl_get_prefix): Likewise.
35468 * include/pupa/misc.h: Include <pupa/err.h>.
35469 (pupa_isgraph): New prototype.
35470 (pupa_isdigit): Likewise.
35471 (pupa_split_cmdline): Likewise.
35472 * include/pupa/normal.h: Include <pupa/arg.h>.
35473 (pupa_command): Changed the prototype of the member `func' to
35474 match the argument parsing interface. Added member `options'.
35475 (pupa_register_command): Updated to match function.
35476 (pupa_arg_parse): New prototype.
35477 (pupa_hello_init) [PUPA_UTIL]: New prototype.
35478 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
35479 (pupa_ls_init) [PUPA_UTIL]: Likewise.
35480 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
35481 (pupa_cat_init) [PUPA_UTIL]: Likewise.
35482 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
35483 (pupa_boot_init) [PUPA_UTIL]: Likewise.
35484 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
35485 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
35486 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
35487 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
35488 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
35489 * kern/disk.c: Include <pupa/file.h>.
35490 (pupa_print_partinfo): New function.
35491 * kern/dl.c: Include <pupa/env.h>.
35492 (pupa_dl_dir): Variable removed.
35493 (pupa_dl_load): Use the environment variable `prefix' instead of
35494 the variable pupa_dl_dir.
35495 (pupa_dl_set_prefix): Function removed.
35496 (pupa_dl_get_prefix): Likewise.
35497 * kern/i386/pc/init.c: Include <pupa/env.h>.
35498 (pupa_machine_init): Use the environment variable `prefix' instead of
35499 using pupa_dl_set_prefix to set the prefix.
35500 * kern/main.c: Include <pupa/env.h>.
35501 (pupa_set_root_dev): Use the environment variable `prefix' instead of
35502 using pupa_dl_get_prefix to get the prefix.
35503 * kern/misc.c: Include <pupa/env.h>.
35504 (pupa_isdigit): New function.
35505 (pupa_isgraph): Likewise.
35506 (pupa_ftoa): Likewise.
35507 (pupa_vsprintf): Added support for printing values of the type
35508 `double'. Make it possible to format variable output when using
35509 formatting like `%1.2%f'.
35510 (pupa_split_cmdline): New function.
35511 * kern/rescue.c: Include <pupa/env.h>.
35512 (next_word): Removed function.
35513 (pupa_rescue_cmd_prefix): Likewise.
35514 (pupa_rescue_cmd_set): New function.
35515 (pupa_rescue_cmd_unset): New function.
35516 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
35517 split the command line instead of splitting it here. Added
35518 support for setting variables using the syntax `foo=bar'. Don't
35519 initialize the prefix command anymore. Initialized the set and
35520 unset commands.
35521 * normal/cmdline.c: Include <pupa/env.h>.
35522 (pupa_tab_complete): Added prototypes for print_simple_completion,
35523 print_partition_completion, add_completion, iterate_commands,
35524 iterate_dev, iterate_part and iterate_dir. Moved code to print
35525 partition information from here to kern/disk.c.
35526 (pupa_cmdline_run): Don't check if the function exists anymore.
35527 * normal/main.c: Include <pupa/env.h>.
35528 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
35529 instead of using pupa_dl_get_prefix to get the prefix.
35530 * term/i386/pc/vga.c: Include <pupa/arg.h>.
35531 (check_vga_mem): Cast pointers to `void *' to silence a gcc
35532 warning.
35533 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
35534 (pupa_vga_setcolor): Declare unused variables with `__attribute__
35535 ((unused))' to silence a gcc warning.
35536 (pupa_vga_setcolor): Likewise.
35537 (debug_command): Changed to match argument parsing
35538 interface changes.
35539 * util/pupa-emu.c: Include <pupa/env.h>.
35540 (options): Added 0's for unused fields to silence a gcc warning.
35541 (argp): Likewise.
35542 (main): Use the environment variable `prefix' instead of using
35543 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
35544 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
35545 and terminal.
35546
35547 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
35548 * util/misc.c: Include <malloc.h>.
35549 (pupa_malloc): Rewritten so errors are correctly reported.
35550 (pupa_realloc): Likewise.
35551 (pupa_memalign): Likewise.
35552 (pupa_mm_init_region): Declare unused variables with
35553 `__attribute__ ((unused))' to silence a gcc warning.
35554 * normal/i386/setjmp.S: Remove tab at the end of the file to
35555 silence a gcc warning.
35556 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
35557 variables with `__attribute__ ((unused))' to silence a gcc
35558 warning.
35559 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
35560 local variable i unsigned to silence a gcc warning.
35561
35562 * kern/term.c: Include <pupa/misc.h>.
35563 (pupa_more_lines): New variable.
35564 (pupa_more): Likewise.
35565 (pupa_putcode): When the pager is active pause at the end of every
35566 screen.
35567 (pupa_set_more): New function.
35568 * include/pupa/term.h (pupa_set_more): New prototype.
35569
35570
35571 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
35572
35573 Now this project is GRUB 2 rather than PUPA. The location of
35574 the CVS repository was moved to GRUB's.
35575
35576 * configure.ac: Use bug-grub as the reporting address.
35577 Use GRUB instead of PUPA.
35578 Change the version number to 1.90.
35579
35580 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
35581
35582 * genkernsyms.sh: Updated copyright information.
35583 * genmk.rb: Likewise.
35584 * genmodsrc.sh: Likewise.
35585 * gensymlist.sh: Likewise.
35586 * boot/i386/pc/boot.S: Likewise.
35587 * boot/i386/pc/diskboot.S: Likewise.
35588 * disk/i386/pc/biosdisk.c: Likewise.
35589 * disk/i386/pc/partition.c: Likewise.
35590 * font/manager.c: Likewise.
35591 * fs/ext2.c: Likewise.
35592 * fs/fat.c: Likewise.
35593 * include/pupa/boot.h: Likewise.
35594 * include/pupa/device.h: Likewise.
35595 * include/pupa/disk.h: Likewise.
35596 * include/pupa/dl.h: Likewise.
35597 * include/pupa/elf.h: Likewise.
35598 * include/pupa/err.h: Likewise.
35599 * include/pupa/file.h: Likewise.
35600 * include/pupa/font.h: Likewise.
35601 * include/pupa/fs.h: Likewise.
35602 * include/pupa/kernel.h: Likewise.
35603 * include/pupa/loader.h: Likewise.
35604 * include/pupa/misc.h: Likewise.
35605 * include/pupa/mm.h: Likewise.
35606 * include/pupa/net.h: Likewise.
35607 * include/pupa/normal.h: Likewise.
35608 * include/pupa/rescue.h: Likewise.
35609 * include/pupa/setjmp.h: Likewise.
35610 * include/pupa/symbol.h: Likewise.
35611 * include/pupa/term.h: Likewise.
35612 * include/pupa/types.h: Likewise.
35613 * include/pupa/i386/setjmp.h: Likewise.
35614 * include/pupa/i386/types.h: Likewise.
35615 * include/pupa/i386/pc/biosdisk.h: Likewise.
35616 * include/pupa/i386/pc/boot.h: Likewise.
35617 * include/pupa/i386/pc/console.h: Likewise.
35618 * include/pupa/i386/pc/init.h: Likewise.
35619 * include/pupa/i386/pc/kernel.h: Likewise.
35620 * include/pupa/i386/pc/linux.h: Likewise.
35621 * include/pupa/i386/pc/loader.h: Likewise.
35622 * include/pupa/i386/pc/memory.h: Likewise.
35623 * include/pupa/i386/pc/multiboot.h: Likewise.
35624 * include/pupa/i386/pc/partition.h: Likewise.
35625 * include/pupa/i386/pc/time.h: Likewise.
35626 * include/pupa/i386/pc/vga.h: Likewise.
35627 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
35628 * include/pupa/util/getroot.h: Likewise.
35629 * include/pupa/util/misc.h: Likewise.
35630 * include/pupa/util/resolve.h: Likewise.
35631 * kern/device.c: Likewise.
35632 * kern/disk.c: Likewise.
35633 * kern/dl.c: Likewise.
35634 * kern/err.c: Likewise.
35635 * kern/file.c: Likewise.
35636 * kern/fs.c: Likewise.
35637 * kern/loader.c: Likewise.
35638 * kern/main.c: Likewise.
35639 * kern/misc.c: Likewise.
35640 * kern/mm.c: Likewise.
35641 * kern/rescue.c: Likewise.
35642 * kern/term.c: Likewise.
35643 * kern/i386/dl.c: Likewise.
35644 * kern/i386/pc/init.c: Likewise.
35645 * kern/i386/pc/lzo1x.S: Likewise.
35646 * kern/i386/pc/startup.S: Likewise.
35647 * loader/i386/pc/chainloader.c: Likewise.
35648 * loader/i386/pc/linux.c: Likewise.
35649 * loader/i386/pc/multiboot.c: Likewise.
35650 * normal/cmdline.c: Likewise.
35651 * normal/command.c: Likewise.
35652 * normal/main.c: Likewise.
35653 * normal/menu.c: Likewise.
35654 * normal/i386/setjmp.S: Likewise.
35655 * term/i386/pc/console.c: Likewise.
35656 * term/i386/pc/vga.c: Likewise.
35657 * util/console.c: Likewise.
35658 * util/genmoddep.c: Likewise.
35659 * util/misc.c: Likewise.
35660 * util/pupa-emu.c: Likewise.
35661 * util/resolve.c: Likewise.
35662 * util/unifont2pff.rb: Likewise.
35663 * util/i386/pc/biosdisk.c: Likewise.
35664 * util/i386/pc/getroot.c: Likewise.
35665 * util/i386/pc/pupa-mkimage.c: Likewise.
35666 * util/i386/pc/pupa-setup.c: Likewise.
35667
35668 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
35669
35670 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
35671 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
35672 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
35673 reading and reset it after reading.
35674 (pupa_ext2_close): Return PUPA_ERR_NONE.
35675
35676 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
35677 Correct value.
35678 (struct linux_kernel_header): Add kernel_version and
35679 initrd_addr_max.
35680 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
35681 pupa_file_read succeeds.
35682 (pupa_rescue_cmd_initrd): Implement.
35683
35684 2003-12-03 Marco Gerards <metgerards@student.han.nl>
35685
35686 * fs/ext2.c (pupa_ext2_label): New function.
35687 (pupa_ext2_fs): Added label.
35688 * fs/fat.c (pupa_fat_label): New function.
35689 (pupa_fat_fs): Added label.
35690 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
35691
35692 * kern/misc.c (pupa_strndup): New function.
35693 * include/pupa/misc.h (pupa_strndup): New prototype.
35694
35695 * include/pupa/normal.h: Include <pupa/err.h>.
35696 (pupa_set_history): New prototype.
35697 (pupa_iterate_commands): New prototype.
35698 * normal/cmdline.c: Include <pupa/machine/partition.h>,
35699 <pupa/disk.h>, <pupa/file.h>.
35700 (hist_size): New variable.
35701 (hist_lines): Likewise.
35702 (hist_end): Likewise.
35703 (hist_used): Likewise.
35704 (pupa_set_history): New function.
35705 (pupa_history_get): Likewise.
35706 (pupa_history_add): Likewise.
35707 (pupa_history_replace): Likewise.
35708 (pupa_tab_complete): Likewise.
35709 (pupa_cmdline_run): Added tab completion and history buffer. Tab
35710 completion shows partitionnames while completing partitions, this
35711 feature was suggested by Jeff Bailey.
35712 * normal/command.c (pupa_iterate_commands): New function.
35713 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
35714 (pupa_normal_init): Initialize history buffer.
35715 (PUPA_MOD_INIT): Likewise.
35716 (pupa_normal_fini): Free the history buffer.
35717 (PUPA_MOD_FINI): Likewise.
35718
35719 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
35720 key.
35721
35722 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
35723 * configure.ac [i386]: Check for regparam bug.
35724 (NESTED_FUNC_ATTR) [! i386]: Defined.
35725
35726 2003-11-17 Marco Gerards <metgerards@student.han.nl>
35727
35728 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
35729 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
35730 (pupa_emu_SOURCES): New variable.
35731 (pupa_emu_LDFLAGS): Likewise.
35732 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
35733 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
35734 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
35735 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
35736 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
35737 (pupa_jmp_buf): New typedef.
35738 (pupa_setjmp) [PUPA_UTIL]: New macro.
35739 (pupa_longjmp) [PUPA_UTIL]: Likewise.
35740 * include/pupa/term.h (struct pupa_term): New member `refresh'.
35741 (pupa_refresh): New prototype.
35742 * include/pupa/util/getroot.h: New file.
35743 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
35744 it.
35745 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
35746 (pupa_rescue_cmd_cat): Likewise.
35747 (pupa_rescue_cmd_ls): Likewise.
35748 (pupa_rescue_cmd_testload): Likewise.
35749 (pupa_rescue_cmd_lsmod): Likewise.
35750 * normal/cmdline.c (pupa_cmdline_get): Likewise.
35751 * normal/menu.c (run_menu): Likewise.
35752 * kern/term.c (pupa_cls): Likewise.
35753 (pupa_refresh): New function.
35754 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
35755 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
35756 * util/console.c: New file.
35757
35758 * util/i386/pc/getroot.c: New file.
35759 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
35760 (pupa_putchar): New function.
35761 (pupa_refresh): Likewise.
35762 (xgetcwd): Function moved to ...
35763 (strip_extra_slashes): Likewise.
35764 (get_prefix): Likewise.
35765 * util/i386/pc/getroot.c: ... here.
35766 (find_root_device): Function moved and renamed to...
35767 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
35768 Changed all callers.
35769 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
35770 and renamed to...
35771 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
35772 Changed all callers.
35773 * util/misc.c (pupa_memalign): New function.
35774 (pupa_mm_init_region): Likewise.
35775 (pupa_register_exported_symbols): Likewise.
35776 (pupa_putchar): Function removed.
35777 * util/pupa-emu.c: New file.
35778
35779 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
35780
35781 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
35782 (_multiboot_mod_SOURCES): New variable.
35783 (_multiboot_mod_CFLAGS): Likewise.
35784 * loader/i386/pc/multiboot.c: New file.
35785 * include/pupa/i386/pc/multiboot.h: Likewise.
35786 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
35787 (pupa_multiboot_real_boot): New function.
35788 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
35789 (pupa_multiboot_real_boot): New prototype.
35790 (pupa_rescue_cmd_multiboot): Likewise
35791 (pupa_rescue_cmd_module): Likewise.
35792
35793 * kern/loader.c (pupa_loader_set): Continue when
35794 pupa_loader_unload_func() fails.
35795 (pupa_loader_unset): New function.
35796 * include/pupa/loader.h (pupa_loader_unset): New prototype.
35797
35798 * kern/misc.c (pupa_stpcpy): New function.
35799 * include/pupa/misc.h (pupa_stpcpy): New prototype.
35800
35801 2003-11-12 Marco Gerards <metgerards@student.han.nl>
35802
35803 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
35804 for available extensions.
35805
35806 * include/pupa/i386/pc/time.h: New file.
35807 * kern/disk.c: Include <pupa/machine/time.h>.
35808 (PUPA_CACHE_TIMEOUT): New macro.
35809 (pupa_last_time): New variable.
35810 (pupa_disk_open): Flush the cache when there was a timeout.
35811 (pupa_disk_close): Reset the timer.
35812 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
35813 pupa_currticks.
35814 * util/misc.c: Include <sys/times.h>
35815 (pupa_get_rtc): New function.
35816
35817 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
35818
35819 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
35820 as blocks.
35821 (pupa_ext2_get_file_block): Use blocks member.
35822
35823 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
35824 first block. Return -1 instead of pupa_errno on error.
35825
35826 2003-10-27 Marco Gerards <metgerards@student.han.nl>
35827
35828 * README: In the pupa-mkimage example use _chain instead of chain
35829 and ext2 instead of fat.
35830 * TODO: Replace ext2fs with jfs as an example. Add an item for
35831 adding journal playback for ext2fs.
35832 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
35833 (pkgdata_MODULES): Added ext2.mod.
35834 (ext2_mod_SOURCES): New variable.
35835 (ext2_mod_CFLAGS): Likewise.
35836 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
35837 * include/pupa/misc.h (pupa_strncpy): New prototype.
35838 (pupa_strcat): Likewise.
35839 (pupa_strncmp): Likewise.
35840 * kern/misc.c (pupa_strcat): Enable function.
35841 (pupa_strncpy): New function.
35842 (pupa_strncmp): Likewise.
35843 * fs/ext2.c: New file.
35844
35845 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
35846 when the read failed before retrying.
35847 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
35848 (_FILE_OFFSET_BITS): Likewise.
35849 * configure.ac: Added AC_SYS_LARGEFILE.
35850
35851 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
35852
35853 * genmk.rb (PModule#rule): Make sure to get only symbol names
35854 from the output of nm.
35855 Reported by Robert Millan <rmh.grub@aybabtu.com>.
35856
35857 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
35858
35859 I forgot to check in these changes for a long time. This adds
35860 incomplete support for VGA console, and this is still very
35861 buggy. Also, a lot of consideration is required for I18N,
35862 UNICODE, and VGA font issues. Therefore, assume that this is
35863 such that "better than nothing".
35864
35865 * font/manager.c: New file.
35866 * include/pupa/font.h: Likewise.
35867 * include/pupa/i386/pc/vga.h: Likewise.
35868 * term/i386/pc/vga.c: Likewise.
35869 * util/unifont2pff.rb: Likewise.
35870
35871 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
35872 (pkgdata_MODULES): Added vga.mod and font.mod.
35873 (vga_mod_SOURCES): New variables.
35874 (vga_mod_CFLAGS): Likewise.
35875 (font_mod_SOURCES): Likewise.
35876 (font_mod_CFLAGS): Likewise.
35877
35878 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
35879
35880 * include/pupa/term.h: Include pupa/err.h.
35881 (struct pupa_term): Added init and fini.
35882 Changed the argument of putchar to pupa_uint32_t.
35883
35884 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
35885 (pupa_console_real_putchar): New prototype.
35886 (pupa_console_putchar): Removed.
35887 (pupa_console_checkkey): Exported.
35888 (pupa_console_getkey): Likewise.
35889
35890 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
35891 characters.
35892
35893 * kern/term.c (pupa_term_set_current): Rewritten.
35894 (pupa_putchar): Likewise.
35895 (pupa_putcode): New function.
35896
35897 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
35898 (pupa_console_real_putchar): ... this.
35899 (pupa_vga_set_mode): New function.
35900 (pupa_vga_get_font): Likewise.
35901
35902 * normal/command.c: Include pupa/term.h.
35903 (terminal_command): New function.
35904 (pupa_command_init): Register the command "terminal".
35905
35906 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
35907 (DISP_UP): Likewise.
35908 (DISP_RIGHT): Likewise.
35909 (DISP_DOWN): Likewise.
35910 (DISP_HLINE): Likewise.
35911 (DISP_VLINE): Likewise.
35912 (DISP_UL): Likewise.
35913 (DISP_UR): Likewise.
35914 (DISP_LL): Likewise.
35915 (DISP_LR): Likewise.
35916
35917 * term/i386/pc/console.c (pupa_console_putchar): New function.
35918
35919 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
35920
35921 * util/resolve.c (pupa_util_resolve_dependencies): BUG
35922 FIX. Reverse the path_list.
35923
35924 * include/pupa/normal.h: Export pupa_register_command and
35925 pupa_unregister_command.
35926
35927 * hello/hello.c (pupa_cmd_hello): New module.
35928 * conf/i386-pc.rmk: Added hello.mod.
35929
35930 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
35931
35932 * kern/i386/pc/lzo1x.S: New file.
35933
35934 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
35935 (compress_kernel): New variable.
35936 (generate_image): Heavily modified to support compressing a
35937 large part of the core image.
35938
35939 * util/misc.c (pupa_util_read_image): Fix a file descriptor
35940 leak.
35941 (pupa_util_load_image): New function.
35942
35943 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
35944 (pupa_compressed_size): New variable.
35945 (codestart): Enable Gate A20 here.
35946 Decompress the compressed part of the core image.
35947 Rearrange the code to put functions and variables which are
35948 required for initialization in the non-compressed part.
35949 Include lzo1x.S.
35950
35951 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
35952 here.
35953
35954 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
35955
35956 * include/pupa/i386/pc/kernel.h
35957 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
35958 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
35959 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
35960 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
35961 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
35962
35963 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
35964
35965 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
35966 (Utility#rule): Likewise.
35967
35968 * configure.ac: Check if LZO is available.
35969
35970 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
35971
35972 * include/pupa/normal.h: New file.
35973 * include/pupa/setjmp.h: Likewise.
35974 * include/pupa/i386/setjmp.h: Likewise.
35975 * normal/cmdline.c: Likewise.
35976 * normal/command.c: Likewise.
35977 * normal/main.c: Likewise.
35978 * normal/menu.c: Likewise.
35979 * normal/i386/setjmp.S: Likewise.
35980
35981 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
35982 (pupa_rescue_cmd_initrd): Likewise.
35983
35984 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
35985 Likewise.
35986
35987 * kern/i386/pc/startup.S (translation_table): New variable.
35988 (translate_keycode): New function.
35989 (pupa_console_getkey): Call translate_keycode.
35990
35991 * kern/rescue.c (attempt_normal_mode): New function.
35992 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
35993 it failed, print a message.
35994
35995 * kern/mm.c (pupa_real_malloc): Print more information when a
35996 free magic is broken.
35997 (pupa_free): If the first free header is not free actually, set
35998 it to P.
35999
36000 * kern/main.c (pupa_load_normal_mode): Just load the module
36001 "normal".
36002 (pupa_main): Don't print the message
36003 "Entering into rescue mode..." here.
36004
36005 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
36006 Declared.
36007 (pupa_rescue_cmd_initrd): Likewise.
36008 (pupa_rescue_cmd_initrd): Likewise.
36009
36010 * include/pupa/symbol.h (FUNCTION): Specify the type.
36011 (VARIABLE): Likewise.
36012
36013 * include/pupa/err.h (pupa_err_t): Added
36014 PUPA_ERR_UNKNOWN_COMMAND.
36015
36016 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
36017 (pupa_dl_get_prefix): Likewise.
36018
36019 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
36020 Added _chain.mod and _linux.mod instead of chain.mod and
36021 linux.mod.
36022 (chain_mod_SOURCES): Renamed to ...
36023 (_chain_mod_SOURCES): ... this.
36024 (chain_mod_CFLAGS): Renamed to ...
36025 (_chain_mod_CFLAGS): ... this.
36026 (linux_mod_SOURCES): Renamed to ...
36027 (_linux_mod_SOURCES): ... this.
36028 (linux_mod_CFLAGS): Renamed to ...
36029 (_linux_mod_CFLAGS): ... this.
36030 (normal_mod_SOURCES): New variable.
36031 (normal_mod_CFLAGS): Likewise.
36032 (normal_mod_ASFLAGS): Likewise.
36033
36034 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
36035
36036 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
36037 possible.
36038
36039 * kern/dl.c (pupa_dl_ref): Refer depending modules
36040 recursively.
36041 (pupa_dl_unref): Unrefer depending modules recursively.
36042 Don't call pupa_dl_unload implicitly, because PUPA can crash if
36043 a module is unloaded before one depending on that module is
36044 unloaded.
36045 (pupa_dl_unload): Unload depending modules explicitly,
36046 if possible.
36047
36048 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
36049
36050 * include/pupa/i386/pc/linux.h: New file.
36051 * loader/i386/pc/linux.c: Likewise.
36052
36053 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
36054 Removed.
36055 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
36056 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
36057 of PUPA_CHAINLOADER_BOOT_SECTOR.
36058
36059 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
36060 (pupa_linux_prot_size): New variable.
36061 (pupa_linux_tmp_addr): Likewise.
36062 (pupa_linux_real_addr): Likewise.
36063 (pupa_linux_boot_zimage): New function.
36064 (pupa_linux_boot_bzimage): Likewise.
36065
36066 * kern/i386/pc/init.c (struct mem_region): New structure.
36067 (MAX_REGIONS): New macro.
36068 (mem_regions): New variable.
36069 (num_regions): Likewise.
36070 (pupa_os_area_addr): Likewise.
36071 (pupa_os_area_size): Likewise.
36072 (pupa_lower_mem): Likewise.
36073 (pupa_upper_mem): Likewise.
36074 (add_mem_region): New function.
36075 (compact_mem_regions): Likewise.
36076 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
36077 the size of the conventional memory and that of so-called upper
36078 memory (before the first memory hole).
36079 Instead of adding each found region to free memory, use
36080 add_mem_region and add them after removing overlaps.
36081 Also, add only 1/4 of the upper memory to free memory. The rest
36082 is used for loading OS images. Maybe this is ad hoc, but this
36083 makes it much easier to relocate OS images when booting.
36084
36085 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
36086 (pupa_enter_rescue_mode): Don't register initrd and module.
36087
36088 * kern/mm.c: Include pupa/dl.h.
36089
36090 * kern/main.c: Include pupa/file.h and pupa/device.h.
36091
36092 * kern/loader.c (pupa_loader_load_module_func): Removed.
36093 (pupa_loader_load_module): Likewise.
36094
36095 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
36096 ``.o''.
36097
36098 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
36099 (pupa_linux_tmp_addr): Likewise.
36100 (pupa_linux_real_addr): Likewise.
36101 (pupa_linux_boot_zimage): Likewise.
36102 (pupa_linux_boot_bzimage): Likewise.
36103
36104 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
36105 (pupa_upper_mem): Likewise.
36106 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
36107 module is too dangerous.
36108
36109 * include/pupa/loader.h (pupa_os_area_addr): Declared.
36110 (pupa_os_area_size): Likewise.
36111 (pupa_loader_set): Remove the first argument. Loader doesn't
36112 manage modules or initrd any longer.
36113 (pupa_loader_load_module): Removed.
36114
36115 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
36116 (linux_mod_SOURCES): New variable.
36117 (linux_mod_CFLAGS): Likewise.
36118
36119 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
36120
36121 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
36122 the length of a blocklist correctly.
36123
36124 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
36125 Use ioctl only if the OS file is a block device.
36126 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
36127 not very useful for normal files.
36128
36129 * kern/main.c (pupa_set_root_dev): New function.
36130 (pupa_load_normal_mode): Likewise.
36131 (pupa_main): Call those above.
36132
36133 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
36134 pupa_uint16_t.
36135
36136 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
36137
36138 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
36139
36140 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
36141 (setup): Configure the installed partition information and the
36142 dl prefix.
36143
36144 * loader/i386/pc/chainloader.c (my_mod): New variable.
36145 (pupa_chainloader_unload): New function.
36146 (pupa_rescue_cmd_chainloader): Refer itself.
36147 (PUPA_MOD_INIT): Save its own module in MY_MOD.
36148
36149 * kern/i386/pc/startup.S (install_partition): Removed.
36150 (version_string): Likewise.
36151 (config_file): Likewise.
36152 (pupa_install_dos_part): New variable.
36153 (pupa_install_bsd_part): Likewise.
36154 (pupa_prefix): Likewise.
36155 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
36156
36157 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
36158 and pupa/misc.h.
36159 (make_install_device): New function.
36160 (pupa_machine_init): Set the dl prefix.
36161
36162 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
36163 (buf): Renamed to ...
36164 (linebuf): ... this.
36165 (pupa_rescue_cmd_prefix): New function.
36166 (pupa_rescue_cmd_insmod): Likewise.
36167 (pupa_rescue_cmd_rmmod): Likewise.
36168 (pupa_rescue_cmd_lsmod): Likewise.
36169 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
36170 rmmod and lsmod.
36171
36172 * kern/mm.c (pupa_memalign): If failed even after invalidating
36173 disk caches, unload unneeded modules and retry.
36174
36175 * kern/misc.c (pupa_memmove): New function.
36176 (pupa_memcpy): Removed.
36177 (pupa_strcpy): New function.
36178 (pupa_itoa): Made static.
36179
36180 * kern/dl.c (pupa_dl_iterate): New function.
36181 (pupa_dl_ref): Likewise.
36182 (pupa_dl_unref): Likewise.
36183 (pupa_dl_unload): Return if succeeded or not.
36184 (pupa_dl_unload_unneeded): New function.
36185 (pupa_dl_unload_all): Likewise.
36186 (pupa_dl_init): Renamed to ...
36187 (pupa_dl_set_prefix): ... this.
36188 (pupa_dl_get_prefix): New function.
36189
36190 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
36191 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
36192 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
36193 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
36194 (pupa_install_dos_part): Declared.
36195 (pupa_install_bsd_part): Likewise.
36196 (pupa_prefix): Likewise.
36197 (pupa_boot_drive): Likewise.
36198
36199 * include/pupa/types.h: Fix a typo.
36200
36201 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
36202 pupa_memmove.
36203 (pupa_memmove): Declared.
36204 (pupa_strcpy): Likewise.
36205
36206 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
36207 pupa_mod_init takes one argument, its own module.
36208 (pupa_dl_unload_unneeded): Declared.
36209 (pupa_dl_unload_all): Likewise.
36210 (pupa_dl_ref): Likewise.
36211 (pupa_dl_unref): Likewise.
36212 (pupa_dl_iterate): Likewise.
36213 (pupa_dl_init): Renamed to ...
36214 (pupa_dl_set_prefix): ... this.
36215 (pupa_dl_get_prefix): Declared.
36216
36217 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
36218 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
36219 unloaded.
36220 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
36221 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
36222
36223 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
36224 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
36225
36226 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
36227
36228 * util/i386/pc/pupa-setup.c (setup): Define the internal
36229 function find_first_partition_start at the top level, because GCC
36230 3.0.x cannot compile internal functions in deeper scopes
36231 correctly.
36232 (find_root_device): Use lstat instead of stat.
36233 Don't follow symbolic links.
36234 Fix the path-constructing code.
36235
36236 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
36237 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
36238 by a BLKGETSIZE ioctl first, because block devices don't fill
36239 the member st_mode of the structure stat on Linux.
36240 [__linux__] (linux_find_partition): Use a temporary buffer
36241 REAL_DEV for the working space. Copy it to DEV before returning.
36242 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
36243 buffer cache consistent.
36244 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
36245 strncmp. The previous value was merely wrong.
36246 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
36247
36248 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
36249 FAT size is 12. The previous value was merely wrong.
36250
36251 * kern/main.c (pupa_main): Don't split the starting message from
36252 newlines.
36253
36254 * kern/term.c (pupa_putchar): Put CR after LF instead of before
36255 LF, because BIOS goes crazy about character attributes in this
36256 case.
36257
36258 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
36259
36260 * include/i386/pc/util/biosdisk.h: New file.
36261 * util/i386/pc/biosdisk.c: Likewise.
36262 * util/i386/pc/pupa-setup.c: Likewise.
36263
36264 * Makefile.in (INCLUDE_DISTFILES): Added
36265 include/pupa/i386/pc/util/biosdisk.h.
36266 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
36267 directory util/i386/pc.
36268 (install-local): Added a rule for sbin_UTILITIES.
36269 (uninstall): Likewise.
36270
36271 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
36272
36273 * util/misc.c (xrealloc): New function.
36274 (pupa_malloc): Likewise.
36275 (pupa_free): Likewise.
36276 (pupa_realloc): Likewise.
36277 (pupa_stop): Likewise.
36278 (pupa_putchar): Likewise.
36279
36280 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
36281
36282 * include/pupa/util/misc.h (xrealloc): Declared.
36283
36284 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
36285 macro.
36286 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
36287 (PUPA_BOOT_MACHINE_BPB_END): ... this.
36288
36289 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
36290 [PUPA_UTIL] (pupa_fat_fini): Likewise.
36291
36292 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
36293 way should be implemented.
36294 [PUPA_UTIL] (pupa_fat_fini): Likewise.
36295
36296 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
36297 the size of NAME for safety.
36298 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
36299 0x88.
36300
36301 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
36302 (pupa_setup_SOURCES): Likewise.
36303
36304 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
36305
36306 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
36307
36308 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
36309 bunch of pushl's from pusha, because this destroys the return
36310 value.
36311
36312 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
36313
36314 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
36315 This means that any missing prototypes could be fatal. Also, you
36316 must take care when writing assembly code. See the comments at
36317 the beginning of startup.S, for more details.
36318
36319 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
36320 compilation mechanism.
36321 (pupa_chainloader_real_boot): Likewise.
36322 (pupa_biosdisk_rw_int13_extensions): Likewise.
36323 (pupa_biosdisk_rw_standard): Likewise.
36324 (pupa_biosdisk_check_int13_extensions): Likewise.
36325 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
36326 (pupa_biosdisk_get_diskinfo_standard): Likewise.
36327 (pupa_get_memsize): Likewise.
36328 (pupa_get_mmap_entry): Likewise.
36329 (pupa_console_putchar): Likewise.
36330 (pupa_console_setcursor): Likewise.
36331 (pupa_getrtsecs): Use pushl instead of push.
36332
36333 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
36334 memory instead of the stack for a mmap entry, because some
36335 BIOSes may ignore the maximum size and overflow.
36336
36337 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
36338
36339 * genmk.rb (PModule#rule): Compile automatically generated
36340 sources with module-specific CFLAGS as well as other sources.
36341
36342 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
36343
36344 * configure.ac: Check ld.
36345 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
36346 respectively, before checking endianness and sizes.
36347
36348 * Makefile.in (LD): New variable.
36349
36350 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
36351
36352 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
36353
36354 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
36355
36356 * Changelog: New file.
36357